var MouseScanID=0;
var msID=0;
function countScan(w,aid){
	msID = setTimeout("countMouseScan('"+w+"',"+aid+")",1000);
}

function countClick(w,aid){	
	xmlhttp=null;
	if (window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();}else if (window.ActiveXObject){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
	if(xmlhttp!=null){
		xmlhttp.open("GET","countclick.asp?w="+w+"&aid="+aid+"&cb="+Math.floor(Math.random()*99999999999),true);
		xmlhttp.send(null);
	}
}

function countMouseScan(w,aid){	
	xmlhttp=null;
	if (window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();}else if (window.ActiveXObject){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
	if(xmlhttp!=null){
		xmlhttp.open("GET","countmouse.asp?w="+w+"&aid="+aid+"&cb="+Math.floor(Math.random()*99999999999),true);
		xmlhttp.send(null);
	}
}

function countAdImp(w,aid){	
	xmlhttp=null;
	if (window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();} else if (window.ActiveXObject){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }
	if(xmlhttp!=null){
		xmlhttp.open("GET","countadimp.asp?aid="+aid+"&w="+w+"&cb="+Math.floor(Math.random()*99999999999),true);
		xmlhttp.send(null);
	}
}