
function GetXmlHttpObject()
{
    var xmlHttp = null;
    
    try
    {
        xmlHttp = new XMLHttpRequest(); //IE7, Firefox, Safari etc
    }
    catch(e)
    {
        try
        {
            xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); //IE6+
        }
        catch(e)
        {
            try
            {
                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); //older versions of IE5+
            }
            catch(e)
            {
                return false;
            }
        }
    }
    
    return xmlHttp;
}


