function getXMLHTTPRequest() {
try {
req = new XMLHttpRequest();
} catch(err1) {
  try {
  req = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (err2) {
    try {
    req = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (err3) {
      req = false;
    }
  }
}
return req;
}

var http = getXMLHTTPRequest();

function callAjaxhome() {
  var myurl = 'viewzofthome.asp';
  myRand = parseInt(Math.random()*999999999999999);
  var modurl = myurl+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
}

function useHttpResponse() {
   if (http.readyState == 4) {
    if(http.status == 200) {
	      document.getElementById('homeobj').innerHTML =http.responseText;
    }
	else
	{
	document.getElementById('homeobj').innerHTML ='<h1> OOPS........ Try again Later . </h1> Server Too Busy <br>Technical Details :'+http.status;
	}
		  } else {
  document.getElementById('homeobj').innerHTML = '<center><img src="images/anim.gif" /></center>Processing your Request....';
  }
  
}function clearAjaxhome(){
	   document.getElementById('homeobj').innerHTML ="";
}
function callAjaxebooks() {
  var myurl = 'viewzoftebook.asp';
  myRand = parseInt(Math.random()*999999999999999);
  var modurl = myurl+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
}
function callAjaxseminartopics() {
  var myurl = 'viewzoftseminartopics.asp';
  myRand = parseInt(Math.random()*999999999999999);
  var modurl = myurl+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
}
function callAjaxprojecttopics() {
  var myurl = 'viewzoftprojecttopics.asp';
  myRand = parseInt(Math.random()*999999999999999);
  var modurl = myurl+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
}
function callAjaxtechnews() {
  var myurl = 'viewzofttechnews.asp';
  myRand = parseInt(Math.random()*999999999999999);
  var modurl = myurl+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
}
function callAjaxaboutus() {
  var myurl = 'aboutus.asp';
  myRand = parseInt(Math.random()*999999999999999);
  var modurl = myurl+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
}
function callAjaxdisclaimer() {
  var myurl = 'disclaimer.asp';
  myRand = parseInt(Math.random()*999999999999999);
  var modurl = myurl+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
}
function callAjaxcontactus() {
  var myurl = 'contactus.asp';
  myRand = parseInt(Math.random()*999999999999999);
  var modurl = myurl+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
}
function callAjaxmetadata() {
  var myurl = 'metadata.asp';
  myRand = parseInt(Math.random()*999999999999999);
  var modurl = myurl+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
}