
<!-- Javascript "Referrer-log"
	var a = document.referrer; 
	var q = location.search, id= "";
	var isdlpage= (q.indexOf("what=")!=-1) && (q.indexOf("link=")!=-1);
	var s= SesID(a);

	if (q!="" && !isdlpage) {
		SetCookie("ref_id", q.substring(1,q.length), 90, "/");
		if (debug) document.writeln("set ref_id= ", q, "<p>");
	}

	if (debug) document.writeln("a=", a, "<p>");
	if (debug) document.writeln("s=", s, "<p>");
	if (debug) document.writeln("q=", q, "<p>");
	if (debug) document.writeln("isdl=", isdlpage, "<p>");

	if ((a=="" || a.substr(0,7)=="http://") || q!="") { 
		q= escape(q);
		a= escape(a);
		s= escape(s);
		
		document.writeln("<img src=","http://www.emtec.com/cgi-local/reflog.cgi?ref=", a, "&target=", thisfile, "&q=", q, "&ses=", s, ">");
	}
// -->
