//Global XMLHTTP Request object
var XmlHttp;
//Creating and setting the instance of appropriate XMLHTTP Request object to a “XmlHttp” variable  
function CreateXmlHttp()
{
	//Creating object of XMLHTTP in IE
        try { XmlHttp = XMLHttpRequest(); }
        catch (e) { }
        if (XmlHttp == null) {
            try { XmlHttp = ActiveXObject("Msxml2.XMLHTTP"); }
            catch (e) { }
        }
        if (XmlHttp == null) {
            try {
                XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
            catch (oc) {
                XmlHttp = null;
            }
        }
}

