/*script ajax per commenta etologia articoli*/

	var XMLHTTP;

	function CommentaEtologia(utente,id_etologia,testo, NumeroCommenti)
	{
				var url = "/include/aggiungi_commento_etologia.asp?id_etologia="+ id_etologia +"&messaggio="+ testo +"&id_utente="+ utente+ "&NumeroCommenti="+ NumeroCommenti ;
				XMLHTTP = QualeBrowser(GestioneStatoCommento);
				XMLHTTP.open("GET", url, true);
				XMLHTTP.send(null);
	}
		
/*script ajax per commenta vetrina articoli*/
	

	function CommentaVetrina(utente,id_vetrina,testo, NumeroCommenti)
	{
				var url = "/include/aggiungi_commento_vetrina.asp?id_vetrina="+ id_vetrina +"&messaggio="+ testo +"&id_utente="+ utente+ "&NumeroCommenti="+ NumeroCommenti ;
				XMLHTTP = QualeBrowser(GestioneStatoCommento);
				XMLHTTP.open("GET", url, true);
				XMLHTTP.send(null);
	}
/*script ajax per commenta vetrina articoli*/
	

	function CommentaVeterinaria(utente,id_veterinaria,testo, NumeroCommenti)
	{
				var url = "/include/aggiungi_commento_veterinaria.asp?id_veterinaria="+ id_veterinaria +"&messaggio="+ testo +"&id_utente="+ utente+ "&NumeroCommenti="+ NumeroCommenti ;
				XMLHTTP = QualeBrowser(GestioneStatoCommento);
				XMLHTTP.open("GET", url, true);
				XMLHTTP.send(null);
	}
/*script ajax per commenta videocorso*/
	

	function CommentaVideoCorso(utente,id_videocorso,testo, NumeroCommenti)
	{
				var url = "/include/aggiungi_commento_videocorso.asp?id_videocorso="+ id_videocorso +"&messaggio="+ testo +"&id_utente="+ utente+ "&NumeroCommenti="+ NumeroCommenti ;
				XMLHTTP = QualeBrowser(GestioneStatoCommento);
				XMLHTTP.open("GET", url, true);
				XMLHTTP.send(null);
	}
/*gestione risultati*/
function GestioneStatoCommento()
{
	if (XMLHTTP.readyState == 4)
	{
		var Voto = document.getElementById("aggiungi_commento");
		Voto.innerHTML = XMLHTTP.responseText;
	}
}



