function userRate(feedback, companyId)
{
	window.location.href = "profile.php?feedback="+feedback+"&ci="+companyId;
}


/*var xmlHttp1, xmlHttp2;

function userRatePositive(str)
{ 
	xmlHttp1=GetXmlHttpObject();
	if (xmlHttp1==null)
	 {
		 alert ("Browser does not support HTTP Request");
		 return;
	 }
	var url="general/ratingDetails.php";
	url=url+"?companyId="+str+"&toGet=userRatePositive";
	url=url+"&sid="+Math.random();
	xmlHttp1.open("GET",url,true);
	xmlHttp1.send(null);
}

function userRateNegative(str)
{ 
	xmlHttp2=GetXmlHttpObject();
	if (xmlHttp2==null)
	 {
		 alert ("Browser does not support HTTP Request");
		 return;
	 }
	var url="general/ratingDetails.php";
	url=url+"?companyId="+str+"&toGet=userRateNegative";
	url=url+"&sid="+Math.random();
	xmlHttp2.open("GET",url,true);
	xmlHttp2.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;
}
