var recordpath = "/bookmark/";//ADD trailing slash
var imgpath = "/bookmark/gfx/";//ADD trailing slash
var sburl = encodeURIComponent(location.href);
var sbtitle = encodeURIComponent(document.title);

if( bmlang == "de" ) {
	var txtsite = "Diese Seite mit";
	var txtenter = " bookmarken.";	
	
	var rss = "recordClick('rss'),location.href= 'http://www.i-sft.de/backend.php?op=news' ;return false";

	document.write('<a href="index.php" rel="nofollow" onClick="' + rss +'" title="' + txtsite +' index.php' + txtenter +'"><img src="' + imgpath +'RSS.gif" alt="' + txtsite +' RSS-Feed' + txtenter +'" border="0"></a> ')
	}
else {
	var txtsite = "Bookmark this site at";
	var txtenter = ".";
	
	var rss = "recordClick('rss'),location.href= 'http://www.i-sft.de/backend.php?op=news' ;return false";

	document.write('<a href="index.php" rel="nofollow" onClick="' + rss +'" title="' + txtsite +' index.php' + txtenter +'"><img src="' + imgpath +'rss.jpg" alt="' + txtsite +' RSS-Feed' + txtenter +'" border="0"></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);

}