
function GetPage(URL, DivE) {
if (window.ActiveXObject) {var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");} else if (window.XMLHttpRequest) {var xmlhttp = new XMLHttpRequest();}
if (xmlhttp) { 
  d=document
  xmlhttp.open("GET", URL,true);
  xmlhttp.onreadystatechange= function () {
	if (xmlhttp.readyState == 1) {document.getElementById(DivE).style.display="block";document.getElementById(DivE).innerHTML='<div align="center"><br><br><img src="images/spinner.gif"><br><br></div>';}
	if (xmlhttp.readyState == 4) {document.getElementById(DivE).style.display="block";document.getElementById(DivE).innerHTML=xmlhttp.responseText;}
	}
  xmlhttp.send(null);
}
}

function PostData(URL, DivE, PostVars) {
if (window.ActiveXObject) {var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");} else if (window.XMLHttpRequest) {var xmlhttp = new XMLHttpRequest();}
if (xmlhttp) {
  d=document
  xmlhttp.open("POST", URL,true);
  xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  xmlhttp.send(PostVars);
  xmlhttp.onreadystatechange= function () {  
	if (xmlhttp.readyState == 1) {document.getElementById(DivE).style.display="block";document.getElementById(DivE).innerHTML='<div align="center"><br><br><img src="images/spinner.gif"><br><br></div>';}
	if (xmlhttp.readyState == 4) {document.getElementById(DivE).style.display="block";document.getElementById(DivE).innerHTML=xmlhttp.responseText;}
	}
}
}



