/*function join_member(rrid,uiid){
	
	//alert("hi"+id);
		xmlHttp=GetXmlHttpObject();
	
if (xmlHttp==null)
  {
  alert("Your browser does not support AJAX!");
  return;
  } 
		var url="ajax_comm.php";
		url=url+"?r_id="+rrid+"&uid="+uiid;		
		
		xmlHttp.onreadystatechange=showjoin;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
		
}
function showjoin()
{	
	if (xmlHttp.readyState==4)
	{ 
	
		document.getElementById("joindiv").innerHTML=xmlHttp.responseText;
	}	
}*/

function personality_star(f,g,h){
	
	//alert("hi"+id);
		xmlHttp=GetXmlHttpObject();
	
if (xmlHttp==null)
  {
  alert("Your browser does not support AJAX!");
  return;
  } 
		var url='video_rating.php?a='+f+'&b='+g+'&c='+h;
		 
		
		xmlHttp.onreadystatechange=function66;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
		
}


function  product_rating(f,g,h){
	
	//alert("hi"+id);
		xmlHttp=GetXmlHttpObject();
	
if (xmlHttp==null)
  {
  alert("Your browser does not support AJAX!");
  return;
  } 
		var url='video_rating.php?a='+f+'&b='+g+'&c='+h;
		 
		
		xmlHttp.onreadystatechange=function66;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
		
}




/*function personality_star(f,g,h)
{
	var filename='video_rating.php?a='+f+'&b='+g+'&c='+h;
	alert(filename);
	xmlHttp=new GetXmlHttpObject();
	xmlHttp.onreadystatechange=function6;	
	xmlHttp.open('POST',filename,true);
	xmlHttp.send(null);
}*/


function function66()
{	
	if(xmlHttp.readyState==4 || xmlHttp.readyState=='complete')
	{
		var str=xmlHttp.responseText;
		//alert(str);
		var a=str;
		
		if(a=="You Have Voted Already")
		{
			
		document.getElementById('error_msg').innerHTML=a;
		}else{
		/*var pos = a.indexOf(',');
		var len=a.length;
		
		var res1=a.substr(0,pos);
		
		var res2=a.substr(pos+1,len);*/

		
		document.getElementById('all_rate').innerHTML=a;
		}
		
		//location.reload(true);
		
	}
}











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

