var xmlHttp;
var xmlHttpR;
//创建xmlHttp
function createXMLHttpRequest()
{
    if(window.ActiveXObject)
    {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else if(window.XMLHttpRequest)
    {
        xmlHttp = new XMLHttpRequest();
    }
}
//向后台发送数据
/*
function PostBack(url)
{
    createXMLHttpRequest();
    xmlHttp.open("Post",url,true);
    //xmlHttp.onreadystatechange=showResult;
    xmlHttp.onreadystatechange=function r(){return showResult(this);}
    xmlHttp.send(null);
}
*/

function PostBack(url,objID)
{
    //alert(objID);
    createXMLHttpRequest();
    xmlHttp.open("Post",url,true);
    //xmlHttp.onreadystatechange=showResult;
    xmlHttp.onreadystatechange=function r(){return showResult(objID);}
    xmlHttp.send(null);
}
