function ValidateForm(Res){
	if (Res.nome.value.length < 1){
		alert("Nome obbligatorio");
		Res.nome.focus();
		return false;
	}
	if (Res.cognome.value.length < 1){
		alert("Cognome obbligatorio");
		Res.cognome.focus();
		return false;
	}
	if (Res.mail){
		if (Res.mail.value.length < 1){
			alert("E-mail obbligatoria");
			Res.mail.focus();
			return false;
		}
	}
	if (Res.telefono){
		if (Res.telefono.value.length < 1){
			alert("Numero di telefono obbligatorio");
			Res.telefono.focus();
			return false;
		}
	}	
	if (!Res.consenti.checked){
		alert("Non hai acconsentito al trattamento dei dati");
		Res.consenti.focus();
		return false;
	}
	Res.submit();
}
