function getHTTPObject() 
{
    var xmlhttp;
    var browser = navigator.appName; 	
  
	if(browser == "Microsoft Internet Explorer")
	{
        try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }
        catch (e)
        {
            try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }
            catch (e) {
                alert("Your browser does not support AJAX!");
                return false;
            }
        }		
	} 
	else xmlhttp = new XMLHttpRequest();
	
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') 
	{
        try 
        {
            xmlhttp = new XMLHttpRequest();
            xmlhttp.overrideMimeType("text/xml"); 
        } 
        catch (e) { xmlhttp = false; }
	}
	return xmlhttp;
}