
function ShowChoice(srtorder)
{

 FillDiv("stores","store",srtorder);
 // FillDiv("restaurants","restaurant",srtorder);
 
 }
 
function FillDiv(loc, type, srtorder)
{ 
  var xmlHttp = new GetXmlHttpObject();
  if (xmlHttp==null)
  {
   	 alert ("Browser does not support HTTP Request");
  	 return;
  }
  var prog="php/popupver.php";
  prog=prog+"?type="+type+"&srt="+srtorder;
  prog=prog+"&sid="+Math.random();
  xmlHttp.onreadystatechange=function()
  {
	 	if (xmlHttp.readyState == 4) {
			 if (xmlHttp.status == 200) {
  	   		$res = xmlHttp.responseText; 
  	   		document.getElementById(loc).innerHTML=$res;
			 }
	 }
  }
  
  xmlHttp.open("GET",prog,true);
  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;
}



