<!--

// funzione di controllo del modulo relativo all'inserimento di un nuovo commento;
function formAlertNewComment(form){
	var alertMsg = "Sono presenti i seguenti errori:\n";
	var l_Msg = alertMsg.length;

	if(form.nickname.value == ""){
		alertMsg += "- Nome: è richiesto.\n";
	}
	if(form.commento.value == ""){
		alertMsg += "- Commento: è richiesto.\n";
	}
	if (alertMsg.length == l_Msg){	
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}
