var xmlHttp
//show ratings
function showratings(str,id,userid)
{ 
/*alert(str);
alert(id);
alert(userid);*/

//sendRequest("//fileserver:8088/marissa/backpages/showratings.php","q="+str+"&receipeId="+id+"&userid="+userid,"POST");
sendRequest("http://www.sandyandsue.com/backpages/showratings.php","q="+str+"&receipeId="+id+"&userid="+userid,"POST")
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
	alert(xmlHttp.responseText);
 document.getElementById("div_ratings").innerHTML=xmlHttp.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;
}
