var xmlHttp;

function searchdis()
{ 

xmlHttp1=GetXmlHttpObject()
if (xmlHttp1==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }

 
document.getElementById("locations").style.display='none';
document.getElementById("searchres").style.display='block';
window["searchres"].document.body.innerHTML = "<img src=\"http://yummyuck.com/19-0.gif\">";

		var cityname	=	document.getElementById("cityname").value;
		var cusine	=	document.getElementById("cusine").value;
		
		var url="newfunction1.php?cityname="+cityname+"&cuname="+cusine;
xmlHttp1.onreadystatechange=stateChanged2
xmlHttp1.open("GET",url,true)
xmlHttp1.send(null)
}
function stateChanged2() 
{ 
if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")
 { 
 

window["searchres"].document.body.innerHTML ="";
 window["searchres"].document.body.innerHTML=xmlHttp1.responseText;

}
}

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;
}

function showProgress(name)
   {
       prg = "<img src='19-0.gif'>";
       progressViewer = document.getElementById(name);
       progressViewer.innerHTML = prg;
   }
   
   function hideProgress(name)
   {
       progressViewer = document.getElementById(name);
       progressViewer.innerHTML = "";
   }