function controllomail(mail){
	var espressione = /^[_a-z0-9+-]+(\.[_a-z0-9+-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$/;
	if (!espressione.test(mail))
	{
	 	return	false;
	}
	return true;
}
function ConvalidaCommento(){
	if ((document.frmCommento.txtNome.value=="")){
		alert("Inserisci il tuo nome");
		document.frmCommento.txtNome.focus();
		return	false;
	}
	if (!(document.frmCommento.txtEmail.value=="")){
		if (!(controllomail(document.frmCommento.txtEmail.value))){
			alert("Inserisci un e-mail valida");
			document.frmCommento.txtEmail.focus();
			return	false;
		}
	}
	
	if (document.frmCommento.txtInfo.value==""){
		alert("Inserisci il tuo messaggio");
		document.frmCommento.txtInfo.focus();
		return	false;
	}
	

return	true;
}
