var curUrl=document.location.href.toLowerCase();
if (curUrl.indexOf("/pages/help/")!=-1){
	vs();
}
else if (curUrl.indexOf("/pages/publish/")!=-1){
	vs();
}
else if (curUrl.indexOf("/pages/join/")!=-1){
	vs();
}
if (window.XMLHttpRequest){
	var xmlhttp=new XMLHttpRequest();
	xmlhttp.open ("get","/include/makeheader.asp",false);
	xmlhttp.send(null);
	document.write (xmlhttp.responseText);
} 
else if (window.ActiveXObject){
	var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	xmlhttp.open ("get","/include/makeheader.asp",false);
	xmlhttp.send();
	document.write (xmlhttp.responseText);
}

function vs(){
	var PageId=0;
	var vs_url="/visitstat.asp?pageid=" + PageId + "&url=" + relUrl(document.location.href);
	vsAjax(vs_url);
}

function vsAjax(url,method){
	var ret="";
	if (window.XMLHttpRequest){
		xmlHttp = new XMLHttpRequest();
		xmlHttp.open ("get",url,true);
		xmlHttp.send(null);
	} 
	else if(window.ActiveXObject){
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		xmlHttp.open ("get",url,true);
		xmlHttp.send();
	}
}

function relUrl(url){
	url=url.replace(/\?/g,"{00}");
	url=url.replace(/\&/g,"{01}");
	return url;
}