var xmlHttp;
    function createXMLHttpRequest()
    {
          if(window.XMLHttpRequest)
        {
              xmlHttp = new XMLHttpRequest();//mozilla浏览器
        }
        else if(window.ActiveXObject)
        {
            try
            {
             xmlHttp = new ActiveX0bject("Msxml2.XMLHTTP");//IE老版本
            }
            catch(e)
            {}
            try
            {
                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");//IE新版本
            }
            catch(e)
            {}
            if(!xmlHttp)
            {
                window.alert("不能创建XMLHttpRequest对象实例");
                return false;
            }
        }
    }

function downcount(id)
{
	createXMLHttpRequest();//特编
	url="/down/onmousedo/id/"+id;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
function setadcookie(id)
{
	createXMLHttpRequest();//特编
	url="/recive/setadcookie/id/"+id;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
function setnewadcookie(id)
{
	createXMLHttpRequest();//特编
	url="/recive/setnewadcookie/id/"+id;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
function setvisitcookie(id)
{
	createXMLHttpRequest();//特编
	url="/recive/dianji/id/"+id;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
