cha=new RegExp("&","g");
re=document.referrer.replace(cha,"§");
ref=re.split("/");
ref1=location.href.split("/");

function nav(){
xhr = null; 
if(window.XMLHttpRequest){
xhr = new XMLHttpRequest();
asp();
}
else if(window.ActiveXObject){
xhr = new ActiveXObject("Microsoft.XMLHTTP");
asp();
}
else{
return false;
}
}

function asp(){
xhr.open("POST","ajax.aspx",false);
xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
we=screen.width;
he=screen.height;
xhr.send("env="+we+"&env1="+he+"&env2="+re);
}


//if (ref[2]!=ref1[2]){
nav();
//}
