﻿ var $ = function (id) {return "string" == typeof id ? document.getElementById(id) : id;};
 function CreateXmlHttp()
{
    var xmlHttp;
    // 检测MSXMLHTTP版本，为了兼容IE各个版本
    var activeKey = new Array("MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP");
    if(window.ActiveXObject)
    {
       for(var i=0;i<activeKey.length;i++)
       {
          try
          {
              xmlHttp = new ActiveXObject(activeKey[i]);
              if(xmlHttp!=null)
                 return xmlHttp;
          }
          catch(error)
          {
              throw new Error("您的浏览器版本过低，请更新浏览器");
          }
       }
    }
    else if(window.XMLHttpRequest)
    {
       xmlHttp = new XMLHttpRequest();
    } 
    return xmlHttp;  
} 
function Send_Post(url)
{
    
   var xmlhttp2 = CreateXmlHttp();
   xmlhttp2.onreadystatechange=function()
   
{
        
     if(xmlhttp2.readyState==4&&xmlhttp2.status==200)  
        
     {
         eval(xmlhttp2.responseText);
     }
  }

   xmlhttp2.open("POST",url,true);
   xmlhttp2.setRequestHeader("Content-Type","text/html;charset=gb2312");
   xmlhttp2.send(null);
}

