
var xmlHttp
var did;
function setrate(score,docid)
{ 
did=docid;
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="http://www.medicalgig.com/rate.php"
url=url+"?"+"score="+score+"&shopid="+docid;
xmlHttp.onreadystatechange=stateChanged2 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged2() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById(did).innerHTML=xmlHttp.responseText 
 //document.getElementById(searchMode+"_status").innerHTML=""
 } 
 
 if (xmlHttp.readyState==1 )
 { 
 ///document.getElementById(searchMode+"_status").innerHTML="&nbsp;<b>Please Wait...</b>"
 } 
}

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;
}

