function CerereAjax3(url,functieDupa) {
	var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
	try {
		xmlhttp = new XMLHttpRequest();
	} catch (e) {
		xmlhttp=false;
	}
}
if (!xmlhttp && window.createRequest) {
	try {
		xmlhttp = window.createRequest();
	} catch (e) {
		xmlhttp=false;
	}
}
if (!xmlhttp)
	alert("No AJAX support here");
else
{
 Modificare=new Date().valueOf();
 xmlhttp.open("GET", url + "&DataModificataPtNou=" + Modificare ,true);
 xmlhttp.onreadystatechange=function() {
  if (xmlhttp.readyState==4) {
   raspunsAjax=xmlhttp.responseText;
   eval(functieDupa);
  }
 }
 xmlhttp.send(null)
}
}


function query_finish(answer, tip, id) {
	html_res=answer;
	document.getElementById("classrating" + tip + id).innerHTML=html_res;
}
function take_rating(tip, id, rating) {
    document.getElementById("classrating" + tip + id).innerHTML="<table border='0'><tbody><tr><td align='right'><img src='/images/loading.gif' width='25' height='25'><img src='/images/loading.gif' width='25' height='25'><img src='/images/loading.gif' width='25' height='25'><img src='/images/loading.gif' width='25' height='25'><img src='/images/loading.gif' width='25' height='25'><br><font size='1'>Va rugam asteptati ...</font></td></tr></table>";
    text_res="/add_rating.php?tip="+tip+"&id="+id+"&rating="+rating;
    res_s=CerereAjax3(text_res,"query_finish(raspunsAjax, '" + tip + "', '" + id + "')");	
}

