var recordpath = "/php/rss-statistik/";//ADD trailing slash
var imgpath = "/php/rss-statistik/gfx/";//ADD trailing slash
var sburl = encodeURIComponent(location.href);
var sbtitle = encodeURIComponent(document.title);

if( bmlang == "de" ) {
	var txtsite = "";
	var txtenter = " abonnieren.";	
	
	var rss_feed = "recordClick('Pressemitteilungen'),location.href='http://hwk-koblenz.de/index.php?option=com_rd_rss&id=2='+sburl+'&title='+sbtitle;return false";

	document.write('<a href="http://hwk-koblenz.de/index.php?option=com_rd_rss&id=2" rel="nofollow" onClick="' + rss_feed +'" title="' + txtsite +' Pressemitteilungen' + txtenter +'"><img src="' + imgpath +'rssFeed.gif" alt="' + txtsite +' RSS Feed' + txtenter +'">Pressemitteilungen abonnieren</a> ')

}

function recordClick(bookedsite) {
	
	var xmlhttp=false;
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	 try {
	  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
	  try {
	   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
	   xmlhttp = false;
	  }
	 }
	@end @*/
	
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
			xmlhttp.overrideMimeType('text/xml');//for several mozilla versions
		} catch (e) {
			xmlhttp=false;
		}
	}
	if (!xmlhttp && window.createRequest) {
		try {
			xmlhttp = window.createRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}

	xmlhttp.open( 'POST', 'http://' + window.location.hostname + recordpath + 'record.php?clickedBookmark=' + bookedsite, false);//must be false for firefox
	xmlhttp.send(null);

}