//Eccemedia TPS Javascript Capure v1
//--
function res(){
	if (self.screen) {     
			width = screen.width
			height = screen.height
	}
	else if (self.java) { 
		   var jkit = java.awt.Toolkit.getDefaultToolkit();
		   var scrsize = jkit.getScreenSize();       
		   width = scrsize.width; 
		   height = scrsize.height; 
	}
	else{
	width = height = '';
	}
	return (width +"x"+ height);
	//or whatever based on the above results
}
function current_page(){
	return window.location.pathname;;
}
function user_agent(){
	return navigator.userAgent;
}
function ref(){
	return document.referrer;
}
function tps(){
	var page="jaxx/trafficspy.asp?res=" + res() + "&page=" + current_page() + "&ua=" + user_agent() + "&ref=" +ref();
	AjaxResponse(page);
}
/**
SAL - Simple Ajax Lib. 23-Sep-2005
by Nigel Liefrink
Email: leafrink@hotmail.com
*/

var debug = false;
function GetXmlHttp() {
  var xmlhttp = false;
  if (window.XMLHttpRequest)
  {
    xmlhttp = new XMLHttpRequest()
  }
  else if (window.ActiveXObject)// code for IE
  {
    try
    {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP")
    } catch (e) {
      try
      {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP")
      } catch (E) {
        xmlhttp=false
      }
    }
  }
  return xmlhttp;
}
function AjaxResponse(url)
{
  var xmlhttp = new GetXmlHttp();
  //now we got the XmlHttpRequest object, send the request.
  if (xmlhttp)
  {
    xmlhttp.onreadystatechange = 
            function ()
            {
              if (xmlhttp && xmlhttp.readyState==4)
              {//we got something back..
                if (xmlhttp.status==200)
                {
                                  if(debug)
                                  {
                    alert(xmlhttp.responseText);
                  }
                } else if(debug){
                  document.Write(xmlhttp.responseText);
                }
              }
            }
    xmlhttp.open("GET",url,true);
    xmlhttp.send(null);
  }
}
