﻿// JScript File

function GetXmlHttpObject(handler)
{ 
    var objXmlHttp = null;
    
    if (window.XMLHttpRequest)     // Object of the current windows
    { 
        objXmlHttp = new XMLHttpRequest();     // Firefox, Safari, ...
    } 
    else 
     if (window.ActiveXObject)   // ActiveX version
     {
        objXmlHttp = new ActiveXObject("Microsoft.XMLHTTP");  // Internet Explorer 
     }
     objXmlHttp.onreadystatechange = handler; 

    return objXmlHttp; 
} 


