
var xmlHttp
 
function showinfo1x()
{ 
	ucxmlHttp("getinfo1x.php?qa="+ document.infox.infomainx.value, "divinfo1x");
	setTimeout("showinfo2x()",1000);
}
 
function showinfo2x()
{ 
	ucxmlHttp("getinfo2x.php?qb="+ document.infox.info1x.value, "divinfo2x")
	setTimeout("showinfo3x()",1000);
}

function showinfo3x()
{ 
	ucxmlHttp("getinfo3x.php?qc="+ document.infox.info2x.value, "divinfo3x")
	setTimeout("showinfo4x()",1000);
}

function showinfo4x()
{ 
	ucxmlHttp("getinfo4x.php?qd="+ document.infox.info3x.value, "divinfo4x")
}


function ucxmlHttp(url, divid)
{ 
	xmlHttp = GetXmlHttpObject();
 
	if (xmlHttp==null)
	{
 		alert ("Http Error");
 		return
 	}
	
	url=url+"&sid="+Math.random();
 
	xmlHttp.open("GET",url,true);
	xmlHttp.onreadystatechange = function(foo)
								 { return function()
										{
											if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
											{ 
													document.getElementById(divid).innerHTML=xmlHttp.responseText 
											} 
										}
								 }(divid)
 
	xmlHttp.send(null);
}
 
function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
 	{
 		// Firefox, Opera 8.0+, Safari
 		xmlHttp=new XMLHttpRequest();
 	}
	catch (e)
 	{
 		//Internet Explorer
 		try
  		{
  			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  		}
 		catch (e)
  		{
  			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  		}
 	}
 
	return xmlHttp;
}

