// JavaScript Document

function controllo(){
	
with(document.form1) {
	
	
	if(nome.value=="") {
	alert("Error: fill the field NAME");
	nome.focus();
	return false;
	}

	if(telefono.value=="") {
	alert("Error: fill the field PHONE");
	telefono.focus();
	return false;
	}
	if(email.value=="") {
	alert("Error: fill the field E-MAIL");
	email.focus();
	return false;
	}

	if(privacy.checked!=true) {
	alert("Please check the box PRIVACY");
	privacy.focus();
	return false;
	}
	
	}
	//alert("Controllo effettuato con successo. Il modulo sar&agrave; inviato.");
	return true;
}

