function initVisit()
{	
	var  category = document.all("__stat_category");
	if(!category)
		return;

	if(category==null || category.value==0)
		return;
	
	var statUrl = "/apps/visit.jsp?catalogId="+category.value;
	//NSS_RemoteCall( "Get", statUrl, "" );
	var script = "<script src=\""+statUrl+"\"></script>";
	document.write(script);
}
function NSS_RemoteCall(method, url, params)
{
	try{   
		var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		xmlhttp.Open(method, url, false);
			
		if (method.toUpperCase() == 'POST')
		{
			xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			xmlhttp.Send(params);
		}
		else
		{
			xmlhttp.Send();				
		}
		
		if (xmlhttp.status == 200)
			return xmlhttp.responseText;
		else
			return xmlhttp.status;
	}
	catch (e)
	{
		return -999;
	}
}
initVisit();
