function europa_over(){
	document.getElementById('vegas_red').className='yellow-gradient1'; 
	document.getElementById('europa').className='yellow-gradient'; 
	document.getElementById('tropez').className='yellow-gradient1';
}
function tropez_over(){ //alert('hello');
	document.getElementById('vegas_red').className='yellow-gradient1'; 
	document.getElementById('europa').className='yellow-gradient1'; 
	document.getElementById('tropez').className='yellow-gradient'; 
}
function vegas_red_over(){
    document.getElementById('vegas_red').className='yellow-gradient';
	document.getElementById('europa').className='yellow-gradient1'; 
	document.getElementById('tropez').className='yellow-gradient1';	
}

function europa_out(){
	document.getElementById('vegas_red').className='yellow-gradient1'; 
	document.getElementById('europa').className='yellow-gradient'; 
	document.getElementById('tropez').className='yellow-gradient1' ;
}
function tropez_out(){
	document.getElementById('vegas_red').className='yellow-gradient1'; 
	document.getElementById('europa').className='yellow-gradient'; 
	document.getElementById('tropez').className='yellow-gradient1' ;
}
function vegas_red_out(){
	document.getElementById('vegas_red').className='yellow-gradient1'; 
	document.getElementById('europa').className='yellow-gradient'; 
	document.getElementById('tropez').className='yellow-gradient1';	
}

/*************************************************************************************/
var xmlhttp;

function save_crv(id, value)
{
//alert(id+'=======>'+value);
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
//var url="http://localhost/italiadazzardo_2_09/sites/all/themes/italia/rating.php";
var url="http://www.handbags4women.com/italiadazzardo/sites/all/themes/italia/rating.php";
url=url+"?id="+id;
url=url+"&value="+value;
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

function stateChanged(id)
{//alert(id)
	if (xmlhttp.readyState==4)
	{	//alert(xmlhttp.responseText);
		aa = xmlhttp.responseText;
		arr = aa.split("_");
		//alert(arr[0]);
		//alert(arr[1]);
		if(arr[0] == 1)
			document.getElementById(arr[1]+"_txtHint").innerHTML= 'Done';
		else
			document.getElementById("txtHint").innerHTML= 'Please Try Again.';
	}
}

function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  // code for IE6, IE5
  return new ActiveXObject("Microsoft.XMLHTTP");
  }
return null;
}
