function formIscrizione() {

	oNomeCognome=document.getElementById('nomeCognome');
	oDataNascita=document.getElementById('dataNascita');
	oLuogoNascita=document.getElementById('luogoNascita');
	oIndirizzo=document.getElementById('indirizzo');
	oTel=document.getElementById('tel');
	oEmail=document.getElementById('email');
	oNoRefund=document.getElementById('noRefund');
	oPrivacy=document.getElementById('privacy');
	oDataArrivo=document.getElementById('dataArrivo');
	oDataPartenza=document.getElementById('dataPartenza');

	if (oNomeCognome.value=='') {
		alert ("Inserisci il nome e il cognome");
		oNomeCognome.focus();
		return false;
	}

	if (oDataNascita.value=='') {
		alert ("Inserisci la data di nascita");
		oDataNascita.focus();
		return false;
	}

	if (oLuogoNascita.value=='') {
		alert ("Inserisci il luogo di nascita");
		oLuogoNascita.focus();
		return false;
	}

	if (oIndirizzo.value=='') {
		alert ("Inserisci l'indirizzo");
		oIndirizzo.focus();
		return false;
	}

	if (oTel.value=='') {
		alert ("Inserisci il numero di telefono");
		oTel.focus();
		return false;
	}

	if ((oEmail.value.length<5) || (oEmail.value.indexOf("@")==-1)) {
		alert ("Formato email non valido");
		oEmail.focus();
		return false;
	}

	if (oDataArrivo.value=='' || oDataArrivo.value=='gg-mm-aaaa' || oDataArrivo.value=='dd-mm-yyyy' || oDataArrivo.value=='tt-mm-jjjj') {
		alert ("Inserisci la data di arrivo");
		oDataArrivo.focus();
		return false;
	}

	if (oDataPartenza.value=='' || oDataPartenza.value=='gg-mm-aaaa' || oDataPartenza.value=='dd-mm-yyyy' || oDataPartenza.value=='tt-mm-jjjj') {
		alert ("Inserisci la data di partenza");
		oDataPartenza.focus();
		return false;
	}

	if (oNoRefund.checked!=true) {
		alert ("Per procedere con l'iscrizione e' necessario accettare le condizioni di contratto");
		return false;
	}

	if (oPrivacy.checked!=true) {
		alert ("Per procedere con l'iscrizione e' necessario l'autorizzazione al trattamento dei dati");
		return false;
	}



	return true;

}

function formContatti() {

	oNome=document.getElementById('nome');
	oCognome=document.getElementById('cognome');
	oIndirizzo=document.getElementById('indirizzo');
	oCitta=document.getElementById('citta');
	oTel=document.getElementById('tel');
	oEmail=document.getElementById('email');
	oPrivacy=document.getElementById('privacy');
	oTesto=document.getElementById('testo');

	if (oNome.value=='') {
		alert ("Inserisci il nome");
		oNome.focus();
		return false;
	}

	if (oCognome.value=='') {
		alert ("Inserisci il cognome");
		oCognome.focus();
		return false;
	}

	if (oIndirizzo.value=='') {
		alert ("Inserisci l'indirizzo");
		oIndirizzo.focus();
		return false;
	}

	if (oCitta.value=='') {
		alert ("Inserisci la citta'");
		oCitta.focus();
		return false;
	}

	if (oTel.value=='') {
		alert ("Inserisci il numero di telefono");
		oTel.focus();
		return false;
	}

	if ((oEmail.value.length<5) || (oEmail.value.indexOf("@")==-1)) {
		alert ("Formato email non valido");
		oEmail.focus();
		return false;
	}

	if (oPrivacy.checked!=true) {
		alert ("Per procedere con l'iscrizione e' necessario l'autorizzazione al trattamento dei dati");
		return false;
	}

	if (oTesto.value.length<10) {
		alert ("Inserisci il testo del messaggio");
		oTesto.focus();
		return false;
	}

	return true;

}
