var xmlHttp;
function createXMLHttpRequest()
{
	if(window.ActiveXObject)
	{
		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	else if(window.XMLHttpRequest)
	{
		xmlHttp=new XMLHttpRequest();
	}
}
function initHit(id)
{
	try
	{
		createXMLHttpRequest();
	}
	catch(exception){}
	try
	{
		var url = "/jscript/initHitscompany.asp?id=" +CompanyID;
		xmlHttp.open("GET", url, true);
		xmlHttp.onreadystatechange = checkUserok;
		xmlHttp.send(null);
	}
	catch(exception){}
}
function checkUserok()
{
	if (xmlHttp.readyState == 4) 
	{
		try
		{
			var response = xmlHttp.responseText;
			var alertObj = document.getElementById("a_hit");
			alertObj.innerHTML="µã»÷´ÎÊý£º"+response+" ´Î";
		}
		catch(exception){}
	}	
}
function viewPL(id)
{
	try
	{
		createXMLHttpRequest();
	}
	catch(exception){}
	try
	{
		var url = "/jscript/viewpinglun.asp?id=" +aid;
		xmlHttp.open("GET", url, true);
		xmlHttp.onreadystatechange = checkUseroks;
		xmlHttp.send(null);
	}
	catch(exception){}
}
function checkUseroks()
{
	if (xmlHttp.readyState == 4) 
	{
		try
		{
			var response = xmlHttp.responseText;
			openwin(response);
		}
		catch(exception){}
	}	
}
function openwin(txt)
{
	var win = window.open();
	win.document.open("text/html", "replace"); 
	win.document.write(txt); 
	win.document.close();
}
