function CheckForm() {
	var form = document.forms[0];

	// CONTROLLO NOME
	if (form.nome.value == ''){	
		alert("Specificare il nome.");
		form.nome.select();
		return false;
	} 
	// CONTROLLO COGNOME
	if (form.cognome.value == ''){	
		alert("Specificare il cognome.");
		form.cognome.select();
		return false;
	} 
	// CONTROLLO EMAIL
	if (controllaEmail(form.email.value) == false ) {
		return false;
	}
	// CONTROLLO TELEFONO
	if (form.telefono.value != ''){	
		if (isNaN(form.telefono.value)) {
			alert("Il Numero di telefono non è formalmente corretto.");
			form.telefono.select();
			return false;
		}
	}
	// CONTROLLO TELEFONO
	if (form.fax.value != ''){	
		if (isNaN(form.fax.value)) {
			alert("Il Numero di fax non è formalmente corretto.");
			form.fax.select();
			return false;
		}
	}
	
		// CONTROLLO CODICE
	if (form.code.value == ''){	
		alert("Riscrivere il codice di sicurezza.");
		form.code.select();
		return false;
	} 
}