function GetXmlHttpObject()
{
   /* running locally on IE5.5, IE6, IE7 */
     if(location.protocol=="file:"){
      if(!xmlhttp)try{ xmlhttp=new ActiveXObject("MSXML2.XMLHTTP"); }catch(e){xmlhttp=false;}
      if(!xmlhttp)try{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){xmlhttp=false;}
     }
   /* IE7, Firefox, Safari, Opera...  */
     if(!xmlhttp){
        try{ xmlhttp=new XMLHttpRequest(); }catch(e){xmlhttp=false;}
     }
   /* IE6 */
     if(window.ActiveXObject){
      if(!xmlhttp)try{ xmlhttp=new ActiveXObject("MSXML2.XMLHTTP"); }catch(e){xmlhttp=false;}
      if(!xmlhttp)try{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){xmlhttp=false;}
     }
   /* IceBrowser */
     if(!xmlhttp)try{ xmlhttp=createRequest(); }catch(e){xmlhttp=false;}

return xmlhttp;
}