function feedSubmit_(value, id, type) {
	var filtri = Math.round(9999*Math.random());

	// Ajax Request
	var xmlHttp;
	try {  // Firefox, Opera 8.0+, Safari
  		xmlHttp=new XMLHttpRequest();  
	}
	catch (e) {  // Internet Explorer  
		try {   
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    
		}
  		catch (e) {
			try {
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
    		catch (e) {
				alert("Il tuo browser non supporta AJAX!");
				return false;
			}
		}
	}

	//Richiama la pagina con le azioni
  	xmlHttp.open("GET","./functions/feedSubmit.php?v="+value+"&id="+id+"&t="+type+"&chk="+filtri,true);
  	xmlHttp.send(null);

	xmlHttp.onreadystatechange=function() {
    	if(xmlHttp.readyState==4)
    	{
			//alert(xmlHttp.responseText);
			if (xmlHttp.responseText=='' || xmlHttp.responseText==null || xmlHttp.responseText==0) {
				alert("Errore!");
			} else {
				var result = xmlHttp.responseText.split("_");

				if (document.all) {
					if (xmlHttp.responseText==2){
						document.all["ratingres"+id].innerHTML = "hai già votato";
					} else {
						document.all["artrating"+id].style.width = "'" + result[2] + "%" + "'";
						document.all["ratingres"+id].innerHTML = "voto registrato!";
					}
	   			} else {
					if (xmlHttp.responseText==2){
						document.getElementById("ratingres"+id).innerHTML = "hai già votato!";
					} else {
						document.getElementById("artrating"+id).style.width = "'" + result[2] + "%" + "'";
						document.getElementById("ratingres"+id).innerHTML = "voto registrato!";
					}
	   			}
			}
    	}
	} // End Ajax request

} // End Function

