
function createXMLHttpRequest() {
	try {return new ActiveXObject("Msxml2.XMLHTTP");} catch (e) {}
	try {return new ActiveXObject("Microsoft.XMLHTTP");} catch (e) {}
	try {return new XMLHttpRequest();} catch (e) {}
	alert ("XMLHttpRequest not supported!");
	return null;
}

function makerequest(serverPage, objID) {
	var obj = document.getElementById(objID);
	var xmlhttp = createXMLHttpRequest();
	xmlhttp.open("GET", serverPage);
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			obj.innerHTML = xmlhttp.responseText;
		}
	}
	xmlhttp.send(null);
}

function clearWindow (objID) {
	var obj = $(objID);
	obj.innerHTML = '';
}

