function Form_it () {
form = document.getElementById("contact");
if (form.name.value =="") {
	alert("Inserisci il tuo nome.");
	form.name.focus();
	return false;
}	
if (form.posta.value =="") {
	alert("Inserisci il tuo indirizzo email.");
	form.posta.focus();
	return false;
}	
if (form.posta.value.length > 0 && form.posta.value.search(/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/) == -1){
	alert("Verifica la correttezza dell'indirizzo email inserito.");
	form.posta.focus();
	return false;
}
if (form.privacy.checked==false) {
	alert("Acconsenti al trattamento dei dati personali. Il consenso è necessario allo scopo di erogazione del servizio.");
	form.privacy.focus();
	return false;
}	
	return true;
}

function Form_en () {
form = document.getElementById("contact");
if (form.name.value =="") {
	alert("Please enter your name.");
	form.name.focus();
	return false;
}	
if (form.posta.value =="") {
	alert("Please enter your email address.");
	form.posta.focus();
	return false;
}	
if (form.posta.value.length > 0 && form.posta.value.search(/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/) == -1){
	alert("Please verify the email address you entered.");
	form.posta.focus();
	return false;
}
if (form.privacy.checked==false) {
	alert("Please allow us to process your personal details. Your permission is necessary to allow us to contact you so please check the box.");
	form.privacy.focus();
	return false;
}	
	return true;
}