function validateForm() {
	var myform = document.forms.AmmForm;
	var email = myform.email;
	var nomecognome = myform.nomecognome;
	var errorPresent = false;
	
	if (nomecognome.value == "") {
		errorPresent = true;
		nomecognome.style.backgroundColor = "#D1EAFC";
	}
	else {
		nomecognome.style.backgroundColor = "";
	}
		
	if (email.value == "" || email.value.indexOf("@")<0 || email.value.indexOf(".")<0) {
		errorPresent = true;
		email.style.backgroundColor = "#D1EAFC";
		alert("Inserire indirizzo e-mail (valido) !!! ");
	}
	else {
		email.style.backgroundColor = "";
	}
	
	if (!errorPresent) 	{
		myform.submit();
	} 
	
}
