	
	function chk_mlist(){		
		var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
		if(document.frmmlist.ml_name.value==''){
			alert("Per favore, inserire il proprio nome");
			document.frmmlist.ml_name.focus();
			return false;
		}
		if(document.frmmlist.ml_surname.value==''){
			alert("Per favore, inserire il proprio cognome");
			document.frmmlist.ml_surname.focus();
			return false;
		}
		if(document.frmmlist.ml_mail.value==''){
			alert("Per favore, inserire il proprio indirizzo mail");
			document.frmmlist.ml_mail.focus();
			return false;
		}
		if(!email_reg_exp.test(document.frmmlist.ml_mail.value)) {
			alert("L'indirizzo mail inserito non è corretto");
			document.frmmlist.ml_mail.focus();
			return false;
		}
		return true;
	}
	
	function chksendcontact(){		
		var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
		if(document.frmsendcontact.name.value==''){
			alert("Per favore, inserire il proprio nome");
			document.frmsendcontact.name.focus();
			return false;
		}
		if(document.frmsendcontact.surname.value==''){
			alert("Per favore, inserire il proprio cognome");
			document.frmsendcontact.surname.focus();
			return false;
		}
		if(document.frmsendcontact.mail.value==''){
			alert("Per favore, inserire il proprio indirizzo mail");
			document.frmsendcontact.mail.focus();
			return false;
		}
		if(!email_reg_exp.test(document.frmsendcontact.mail.value)) {
			alert("L'indirizzo mail inserito non è corretto");
			document.frmsendcontact.mail.focus();
			return false;
		}
		if(document.frmsendcontact.msg.value==''){
			alert("Il campo del messaggio è vuoto");
			document.frmsendcontact.msg.focus();
			return false;
		}
		if(!document.frmsendcontact.privacy.checked){
			alert("E' necessario acconsentire al trattamento dei propri dati personali");
			document.frmsendcontact.privacy.focus();
			return false;
		}
		return true;
	}
