function ReturnMessage(FunName,Url)//GET提交
{
    var xmlHttp;
    if (window.ActiveXObject) 
    { 
       xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    } 
    else if (window.XMLHttpRequest)
    { 
       xmlHttp = new XMLHttpRequest();
    }
    xmlHttp.open("get",Url,true); 
    xmlHttp.onreadystatechange = function()
    {
       if(xmlHttp.readyState == 4 && xmlHttp.status == 200)
	   {
		 FunName(xmlHttp.responseText);
       }
    }
    xmlHttp.send(null);
}

function ReturnMessagePost(FunName,Url,PostStr)//POST提交
{
    var xmlHttp;
    if (window.ActiveXObject) 
    { 
       try
       {
          xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
       }
       catch(e)
       {
          
       }
       
    } 
    else if (window.XMLHttpRequest)
    { 
       try
       {
          xmlHttp = new XMLHttpRequest();
       }
       catch(e)
       {
       
       }
    }
    if (xmlHttp)
    {
        xmlHttp.open("POST", Url, true);
        xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
        xmlHttp.onreadystatechange = function()
        {
          if(xmlHttp.readyState == 4 && xmlHttp.status == 200)
	      {
		    FunName(xmlHttp.responseText);
          }
        }
        xmlHttp.send(PostStr);
    }
    else
    {
        alert("Failed to create XMLHTTP object!");//创建XMLHTTP对象失败！
    }
    
}
