	function validazione(){
	with(document.getElementById("modulo")) {
		if(firstname.value=="") {
		alert("Insert Firstname");
		firstname.focus();
		return false;
		}
		if(lastname.value=="") {
		alert("Insert Lastname");
		lastname.focus();
		return false;
		}
		if(email.value=="") {
		alert("Insert E-mail");
		email.focus();
		return false;
		}
		var stato=true;
		if(email.value.indexOf(" ")!=-1) {
		email.focus();
		stato=false;
		}
		var chiocciola=email.value.indexOf("@");
		if(chiocciola<2) {
		email.focus();
		stato=false;
		}
		var punto=email.value.indexOf(".", chiocciola);
		if(punto<chiocciola+3) {
		email.focus();
		stato=false;
		}
		var lung=email.value.length;
		if(lung-punto<3) {
		email.focus();
		stato=false;
		}
		
		//if(stato) {
			//alert("E-mail is valid");
		//}else{	
	
		if(stato==false) {
			alert("E-mail is not valid");
		return stato;
		}
		if(city.value=="") {
		alert("Insert City");
		city.focus();
		return false;
		}				
		if(message.value=="") {
		alert("Insert Message");
		message.focus();
		return false;
		}
	}
	alert("Message sent");
	return true;
	}	
