function sendReport(User, Session, URL, Referrer)
{
	track_url='http://www.tlarson.com/tracking';
	
	
	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') {
	  xmlhttp = new XMLHttpRequest();
	}
	// fail silently
	if (!xmlhttp) return;
	
	xmlhttp.open("POST", track_url, true);
	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	xmlhttp.send("User="+User+"&Session="+Session+"&URL="+
		escape(URL)+"&Ref="+escape(Referrer));
}
function RandomStr() {
  return Math.round(Math.random()*10000000000)
  +''+Math.round(Math.random()*10000000000);
}
function getCookie(name)
{
    var begin = document.cookie.indexOf(name+"=");
    if (begin == -1) return null;
    var end = document.cookie.indexOf(";", begin);
    if (end == -1) end = document.cookie.length;
    return unescape(document.cookie.substring(begin + name.length+1, end));
}
function setCookie(name, value, expires)
{
    document.cookie= name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "");
}
if (getCookie("TSession")==null) setCookie("TSession", RandomStr(), null);
if (getCookie("TUser")==null) {
	d=new Date();
	d.setFullYear(d.getFullYear()+1);
	setCookie("TUser", RandomStr(), d);
}
sendReport(getCookie("TUser"), getCookie("TSession"), document.location, document.referrer);
