var xmlHttpInfo
var idInfo
function retrieveInfo(str,id,div){
	idInfo=id;
	xmlHttpInfo=GetXmlHttpObject()
	if (xmlHttpInfo==null)
	{
		alert("Browser does not support")
		return
	}
	var url="retrieveInfo.php"
	url=url+"?q="+str;
	url=url+"&r="+div;
	url=url+"&sid="+Math.random();
	xmlHttpInfo.onreadystatechange=stateChangedInfo 
	xmlHttpInfo.open("GET",url,true)
	xmlHttpInfo.send(null)	

}

function stateChangedInfo() 
{ 
if (xmlHttpInfo.readyState==4 || xmlHttpInfo.readyState=="complete")
 { 
	//document.getElementById("myframe1").contentWindow.document.getElementById("txtHint").innerHTML=xmlHttp.responseText 

	document.getElementById(idInfo).innerHTML = xmlHttpInfo.responseText
	//document.frm1.formToBlank.value = xmlHttp.responseText
	//document.getElementById("myframe1").document.getElementById("txtHint")
	//document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
	//frames['myframe'].document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
 //document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
 //begin();
 } 
}function GetXmlHttpObject()
{
var xmlHttpInfo=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpInfo=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpInfo=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpInfo=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpInfo;
}