

function stopRKey(evt) {
  var evt = (evt) ? evt : ((event) ? event : null);
  var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
  if ((evt.keyCode == 13) && (node.type=="text"))  {return false;}
}

document.onkeypress = stopRKey; 


function makerequest(serverPage, objID) {
//Create a boolean variable to check for a valid Internet Explorer instance.

var xmlhttp = false



//Check if we are using IE

try{

		//IF the Javascript is great than 5

		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");

	} catch (E) {

		//If not then use the older active x object

		try{

			//If we are using Internet Explorer

			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");

		} catch (E) {

			//Else we must be using a non IE browser

			xmlhttp = false;

		}

	}



//If we are using a non IE browser

if(!xmlhttp && typeof XMLHttpRequest != 'undefined'){

	xmlhttp = new XMLHttpRequest();

}
	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 loadXMLDocbox1(objVal)
{

var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {




document.getElementById('box1txt').innerHTML=xmlhttp.responseText;



setTimeout("loadXMLDocbox1(document.getElementById('sweepval2').value)",50000);




}
  }



var customer = 'sweepval='+ objVal;

xmlhttp.open("POST","search.php",true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send(customer);


}

function loadXMLDocbox2(objVal)
{

var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {




document.getElementById('box2txt').innerHTML=xmlhttp.responseText;

setTimeout("loadXMLDocbox2(document.getElementById('sweepval3').value)",50000);




}
  }



var customer = 'sweepval='+ objVal;

xmlhttp.open("POST","search.php",true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send(customer);


}
function loadXMLDocbox3(objVal)
{

var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {




document.getElementById('box3txt').innerHTML=xmlhttp.responseText;

setTimeout("loadXMLDocbox3(document.getElementById('sweepval4').value)",50000);




}
  }



var customer = 'sweepval='+ objVal;

xmlhttp.open("POST","search.php",true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send(customer);


}


function loadXMLDocbox4(objVal)
{

var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {




document.getElementById('box4txt').innerHTML=xmlhttp.responseText;

setTimeout("loadXMLDocbox4(document.getElementById('sweepval5').value)",50000);




}
  }



var customer = 'sweepval='+ objVal;

xmlhttp.open("POST","search.php",true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send(customer);


}

