// JavaScript Document
// make xml http request object

var xmlhttp = false;

// Microsoft Browser
try
{
	// internet explorer
	xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(E)
{
	try
	{
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch(E)
	{
		xmlhttp = false;
	}
}

// No Microsoft Browser
if(!xmlhttp || typeof XMLHttpRequest != 'undefined')
{
	xmlhttp = new XMLHttpRequest();
}
   

// function for insert ajax respons into the element
function MakeRequest(serverPage, objID)
{
	var obj = document.getElementById(objID);
	xmlhttp.open("GET", serverPage);
	xmlhttp.onreadystatechange = function() {
	if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
	obj.innerHTML = xmlhttp.responseText;
	}
	}
	xmlhttp.send(null);
};