function ajax_set_rates(rate,artwork_id)
{
	var xmlHttpE=GetXmlHttpObject();			
	if (xmlHttpE==null)
	{
		alert ("Your browser does not support AJAX!");
		return;
	}
				
	xmlHttpE.onreadystatechange=function()
	{
		if(xmlHttpE.readyState==4)
		{
			var chk_r_response = xmlHttpE.responseText ;			
			if (chk_r_response == 1)
			{				
				//document['rates_stars_im'].src="http://"+thishost+"/images/stars_"+chk_r_response+"_yours_gray.png";
				document.getElementById("user_hidden_rates_info").innerHTML = rate;
				alert('Saved');
			}
		}      
	}
		
		
    smrnd = (Math.round((Math.random()*110000)+1));
	xmlHttpE.open("GET","/artwork_rate.php?rate="+rate+"&artwork_id="+artwork_id+"&"+smrnd,true);
	xmlHttpE.send(null);
}
//setInterval('ajaxFunction()',15000);
