

var xmlHttp
 
function showinfo1()
{ 
	ucxmlHttp("getinfo1.php?qa="+ document.info.infomain.value, "divinfo1");
	setTimeout("showinfo2()",1000);
}
 
function showinfo2()
{ 
	ucxmlHttp("getinfo2.php?qb="+ document.info.info1.value, "divinfo2")
	setTimeout("showinfo3()",1000);
}

function showinfo3()
{ 
	ucxmlHttp("getinfo3.php?qc="+ document.info.info2.value, "divinfo3")
	setTimeout("showinfo4()",1000);
}
function showinfo4()
{ 
	ucxmlHttp("getinfo4.php?qd="+ document.info.info3.value, "divinfo4")
	setTimeout("showinfo5()",1000);
}
function showinfo5()
{ 
	ucxmlHttp("getinfo5.php?qe="+ document.info.info4.value, "divinfo5")

}


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;
}

