
function MakeXMLHttpRequest() 
{
	var http = false;
	if(window.XMLHttpRequest) 
	{ 
		//Mozilla, Safari, etc
		http = new XMLHttpRequest();
		if(http.overrideMimeType) 
		{
			//set type accordingly to anticipated content type
			http.overrideMimeType('text/html');
		}
	} 
	else if(window.ActiveXObject) 
	{ 
		//IE
		try 
		{
			http = new ActiveXObject("Msxml2.XMLHTTP");
		} 
		catch (e) 
		{
			try 
			{
				http = new ActiveXObject("Microsoft.XMLHTTP");
			} 
			catch (e) {}
		}
	}
	if(!http) 
	{
		alert('Cannot create XMLHTTP instance');
		return false;
	}
	
	return http;
}
function MakeXMLHttpRequest2() 
{
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer")
	{
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{
		return new XMLHttpRequest();
	}   
}

