function check_contatti(theForm) {		
	if (theForm.nome.value == "") {
    	alert("Per favore inserire il proprio nome, grazie.");
    	theForm.nome.focus();
    	return (false);
		}
	if (theForm.cognome.value == "") {
    	alert("Per favore inserire il proprio cognome, grazie.");
    	theForm.cognome.focus();
    	return (false);
		}	
	if (theForm.mittente.value == "") {
    	alert("Per favore inserire il proprio indirizzo Email, grazie.");
    	theForm.mittente.focus();
    	return (false);
	}
	if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(theForm.mittente.value))) {
		alert("Indirizzo E-Mail non valido, si prega di verificarlo.\nGrazie.");
		theForm.mittente.focus();
		return (false);
		}	
	if (theForm.testo.value == "") {
    	alert("Per favore inserire il testo del messaggio, grazie.");
    	theForm.testo.focus();
    	return (false);
		}
	if (theForm.code.value == "") {
    	alert("Per favore inserire il codice di sicurezza, grazie.");
    	theForm.code.focus();
    	return (false);
		}
	if ((theForm.privacy) && theForm.privacy.type == 'checkbox') {
			if (!theForm.privacy.checked) {
			alert("Non č possibile proseguire senza acconsentire al trattamento dei dati personali, grazie.");
			theForm.privacy.focus();		
			return (false);
			}  	
	}
 }
 
 function check_partecipa(theForm) {		
	if (theForm.nome.value == "") {
    	alert("Per favore inserire il proprio nome, grazie.");
    	theForm.nome.focus();
    	return (false);
		}
	if (theForm.cognome.value == "") {
    	alert("Per favore inserire il proprio cognome, grazie.");
    	theForm.cognome.focus();
    	return (false);
		}	
	if (theForm.azienda.value == "") {
    	alert("Per favore inserire il nome della propria azienda, grazie.");
    	theForm.azienda.focus();
    	return (false);
	}
	if (theForm.attivita.value == "") {
    	alert("Per favore inserire la propria attivitā, grazie.");
    	theForm.attivita.focus();
    	return (false);
	}	
	if (theForm.telefono.value == "") {
    	alert("Per favore inserire il proprio numero di telefono, grazie.");
    	theForm.telefono.focus();
    	return (false);
		}
	if (theForm.code.value == "") {
    	alert("Per favore inserire il codice di sicurezza, grazie.");
    	theForm.code.focus();
    	return (false);
		}
	if ((theForm.privacy) && theForm.privacy.type == 'checkbox') {
			if (!theForm.privacy.checked) {
			alert("Non č possibile proseguire senza acconsentire al trattamento dei dati personali, grazie.");
			theForm.privacy.focus();		
			return (false);
			}  	
	}
 }
