var xmlhttp = false;
try {
	xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
	try {
	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	} catch (E) {
		xmlhttp = false;
		}
	}
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
	xmlhttp = new XMLHttpRequest();
}
function makerequest(serverPage, objID) {
	document.getElementById('show').style.height = '100%';
	//document.body.onload(alert( document.getElementById( 'main_table' ).offsetHeight ));
	//var H = document.getElementById('main_table').offsetHeight;
	//document.getElementById('show').style.height = H;
	var ScrollTop = document.body.scrollTop;
	if (ScrollTop == 0)
	{
		if (window.pageYOffset)
			ScrollTop = window.pageYOffset;
		else
			ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
	}
	document.getElementById('show').style.paddingTop = ScrollTop+100;
	document.getElementById('show').style.width = '100%';
	//window.scrollTo(0,0);
	document.getElementById('show').style.visibility = "visible";
	var w=1;
	document.getElementById('morph').style.width = w;
	var startW = 1;
	var endW = 60;
	var morphId = null;
	function incW() {
		startW++;
		document.getElementById('morph').style.width = startW+"%";
		if (startW == endW) {
		clearInterval(morphId);
		}
	}
	morphId = setInterval(incW, 15);
	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);
}
function rerequest(serverPage, objID) {
	document.getElementById('show').style.height = '100%';
	//document.body.onload(alert( document.getElementById( 'main_table' ).offsetHeight ));
	//var H = document.getElementById('main_table').offsetHeight;
	//document.getElementById('show').style.height = H;
	var ScrollTop = document.body.scrollTop;
	if (ScrollTop == 0)
	{
		if (window.pageYOffset)
			ScrollTop = window.pageYOffset;
		else
			ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
	}
	document.getElementById('show').style.paddingTop = ScrollTop+100;
	document.getElementById('show').style.width = '100%';
	document.getElementById('show').style.visibility = "visible";
	var obj = document.getElementById(objID);
	obj.innerHTML = "<img src='images/loadingLB.gif' />";
	xmlhttp.open("GET", serverPage);
	xmlhttp.onreadystatechange = function() {
	if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
	obj.innerHTML = xmlhttp.responseText;
	}
	}
	xmlhttp.send(null);
}
