// JavaScript Document - creates & returns the HTTP connection object
function getHTTPObject() { //figures out which browser they are using & then uses that object
	var xhr = false;
	if(window.XMLHttpRequest) //standard
	{
		xhr = new XMLHttpRequest();
	} else {
		if(window.ActiveXObject) //which version of ID
		{
			try
			{
				xhr = new ActiveXObject("Msxml2.XMLHTTP");
			} catch(e) {
				try
				{
					xhr = new ActiveXObject("Microsoft.HMLHTTP");
				} catch(e) {
					xhr = false; //if none of them, remains false
				}
			}
		}
	}
	return xhr; //returns the object
}
