// JavaScript Document
var xmlHttp;
function CreateXmlHttpRequest()
{
	if(window.ActiveXObject)
	{
		xmlHttp=new ActiveXObject("Microsoft.XMLHttP");
	}
	else if(window.XmlHttpRequest)
	{
		xmlHttp=new XmlHttpRequest();
	}
}
function DingCount(ID)
{
	CreateXmlHttpRequest();
	if(xmlHttp!=null)
	{
		var url="http://fazhi.xooob.com/showcount.asp?ID="+ID+"&FID=0";
		xmlHttp.open("post",url,false);
		xmlHttp.onreadystatechange=ShowUserErr;
		xmlHttp.setrequestheader("cache-control","no-cache"); 
		xmlHttp.setrequestheader("Content-Type","application/x-www-form-urlencoded");
		xmlHttp.send(null);
	}
}
function CaiCount(ID)
{
	CreateXmlHttpRequest();
	if(xmlHttp!=null)
	{
		var url="http://fazhi.xooob.com/showcount.asp?FID="+ID+"&ID=0";
		xmlHttp.open("post",url,false);
		xmlHttp.onreadystatechange=ShowUserErr;
		xmlHttp.setrequestheader("cache-control","no-cache"); 
		xmlHttp.setrequestheader("Content-Type","application/x-www-form-urlencoded");
		xmlHttp.send(null);
	}
}
function ShowUserErr()
{
	//var TList=document.getElementById("Content1");
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)	
		{
			if(xmlHttp.ResponseText!="")
			{
				var registernames=xmlHttp.ResponseText;
				var registername=registernames.split("|");
				document.getElementById("DingNum").innerHTML=registername[0];
				document.getElementById("CaiNum").innerHTML=registername[1];
			}
		}
	}
}
function ShowPageCount(ID)
{
	CreateXmlHttpRequest();
	if(xmlHttp!=null)
	{
		var url="http://fazhi.xooob.com/pagecount.asp?FID="+ID;
		xmlHttp.open("post",url,false);
		xmlHttp.onreadystatechange=ShowPageErr;
		xmlHttp.setrequestheader("cache-control","no-cache"); 
		xmlHttp.setrequestheader("Content-Type","application/x-www-form-urlencoded");
		xmlHttp.send(null);
	}
}
function ShowPageErr()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)	
		{
			if(xmlHttp.ResponseText!="")
			{
				var pagecount=xmlHttp.ResponseText;
				document.getElementById("pagecount").innerHTML=pagecount;
			}
		}
	}
}
function ShowDCCount(ID)
{
	CreateXmlHttpRequest();
	if(xmlHttp!=null)
	{
		var url="http://fazhi.xooob.com/visitcount.asp?FID="+ID;
		xmlHttp.open("post",url,false);
		xmlHttp.onreadystatechange=ShowUserErr;
		xmlHttp.setrequestheader("cache-control","no-cache"); 
		xmlHttp.setrequestheader("Content-Type","application/x-www-form-urlencoded");
		xmlHttp.send(null);
	}
}
function ShowBackMsg(ID)
{
	CreateXmlHttpRequest();
	if(xmlHttp!=null)
	{
		var url="http://fazhi.xooob.com/backmsg.asp?FID="+ID;
		xmlHttp.open("post",url,false);
		xmlHttp.onreadystatechange=ShowbackErr;
		xmlHttp.setrequestheader("cache-control","no-cache"); 
		xmlHttp.setrequestheader("Content-Type","application/x-www-form-urlencoded");
		xmlHttp.send(null);
	}
}
function ShowbackErr()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)	
		{
			if(xmlHttp.ResponseText!="")
			{
				var pagecount=xmlHttp.ResponseText;
				document.getElementById("backusercount").innerHTML=pagecount;
			}
		}
	}
}