function controllaFormCommento()
{
	if ($(".obbligatorio[value='']").size() != 0)
	{
		var messaggioerrore = "Perfavore, riempire i campi obligatori ";
		/*
		for (var i = 0; i < $(".obbligatorio[value='']").size(); i++)
			messaggioerrore += $(".obbligatorio[value='']")[i].name + ", ";
		messaggioerrore = messaggioerrore.substring(0, messaggioerrore.length -2);
		messaggioerrore += ".";
		*/
		$("#errorecommento").html("<h2>" + messaggioerrore + "</h2>");
		$(".obbligatorio[value!='']").css('background', 'rgb(255,255,255)');
		$(".obbligatorio[value='']").css('background', '#FFFF80');
	}
	else
		submit();
}
