// JavaScript Document


function makerequest(serverPage, ObjId) {
	var xmlHttp = false;

	try {
		xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		//alert('Your are using Microsoft Internet Explorere.');
	} catch(e) {
		try {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		//	alert("You are using Microsoft Internet Explorer");
		} catch (e) {
			xmlHttp = false;	
		}
	}
	if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
		xmlHttp  = new XMLHttpRequest();
		//alert("You are not using Microsoft Internet Explorer");
	}

	try {				
		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);
	} catch (e) {
		alert(e);
	}
	

}
