﻿// JScript 文件
function xmlhttpxmlhttp()
{
    this.new2=function()
    {
        return document.all?_IE_xmlhttp():_FF_xmlhttp();
    }
};

_IE_xmlhttp.prototype = new xmlhttpxmlhttp;

function _IE_xmlhttp()
{
    var xmlhttp=null;
    
    try
    {
        xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch (e)
    {
        try
        {
            xmlhttp= new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (err)
        {
            return xmlhttp;
        }
    }    
    return xmlhttp;
}

_FF_xmlhttp.prototype  = new xmlhttpxmlhttp; 

function _FF_xmlhttp()
{
    var xmlhttp=null; 
    xmlhttp= new XMLHttpRequest();
    if (!xmlhttp)return null;
    return xmlhttp; 
}

var ObjXml= new xmlhttpxmlhttp().new2();


