

//Create a boolean variable to check for a valid Internet Explorer instance.
var xmlhttp1 = false;

//Check if we are using IE.
try
{
	//If the Javascript version is greater than 5.
	xmlhttp1 = new ActiveXObject("Msxml2.XMLHTTP");

} 
catch (e) 
{
	//If not, then use the older active x object.
	try 
	{
		//If we are using Internet Explorer.
		xmlhttp1 = new ActiveXObject("Microsoft.XMLHTTP");

	} 
	catch (E) 
	{
		//Else we must be using a non-IE browser.
		xmlhttp1 = false;

	}
}

//If we are using a non-IE browser, create a javascript instance of the object.
if (!xmlhttp1 && typeof XMLHttpRequest != 'undefined') 
{
	xmlhttp1 = new XMLHttpRequest();
}

function makerequest(serverPage, objID) 
{
	var obj = document.getElementById(objID);
	
	xmlhttp1.open("GET", serverPage);
	xmlhttp1.onreadystatechange = function() {
		if (xmlhttp1.readyState == 4 && xmlhttp1.status == 200) {
			obj.innerHTML = xmlhttp1.responseText;
		}
		else
		{
			obj.innerHTML = '<div style="padding-top:30px; padding-left:15px; font-size:14px; color:#043977; font-weight:bold">loading results ...</div>';
		}
	}
	
	xmlhttp1.send(null);
}
