﻿function GetXmlHttp()
    {
		//return window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
		this.OutPutXmlHttp = null;

    try 
    {
     
        this.OutPutXmlHttp = new XMLHttpRequest();
        return OutPutXmlHttp;
    } 
    catch(FFError)
    {
        try 
        {
       
            this.OutPutXmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
            return OutPutXmlHttp;
        } 
        catch(NewIEError)
        {
            try 
            {
            
　              this.OutPutXmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
　              return OutPutXmlHttp;
            } 
            catch(IEError)
            {
　              this.OutPutXmlHttp = false;
　          }
　      }
　  }
　  
　      if (this.OutPutXmlHttp == null)
　      {
　          alert("浏览器不支持AJAX");
　          return;
　      }
    }