function Form_it () {
form = document.getElementById("contact");
if (form.name.value =="") {
	alert("Inserisci il tuo nome.");
	form.name.focus();
	return false;
}	
if (form.surname.value =="") {
	alert("Inserisci il tuo cognome.");
	form.surname.focus();
	return false;
}	
if (form.posta.value =="") {
	alert("Inserisci il tuo indirizzo email.");
	form.email.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 è facoltativo, ma 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.surname.value =="") {
	alert("Please enter your surname.");
	form.surname.focus();
	return false;
}	
if (form.posta.value =="") {
	alert("Please enter your email address.");
	form.email.focus();
	return false;
}	
if (form.posta.value.length > 0 && form.posta.value.search(/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/) == -1){
	alert("Please verify the entered email address.");
	form.posta.focus();
	return false;
}
if (form.privacy.checked==false) {
	alert("Please check the box that allows us to process your personal data. Your consent is necessary for us to handle your information within the scope and purpose of the service you've requested.");
	form.privacy.focus();
	return false;
}	
	return true;
}


