<!--
function Conferma(){
var f = document.modulo

//if (f.accetto.checked == 1)
//{
//NewWindow=window.open('about:blank','richiesta','resizable=no,width=300,height=250,status=no,location=no,toolbar=no'); 
//NewWindow.focus();
//void(0);
//modulo.submit();
//}
if (f.nome.value == "") {
alert("Il nome è obbligatorio !")
f.nome.focus();
f.nome.select();
return false;
}
//if (f.cognome.value == "") {
//alert("Il cognome è obbligatorio !")
//f.cognome.focus();
//f.cognome.select();
//return false;
//}
//if (f.tel.value == "") {
//alert("Il telefono è obbligatorio !")
//f.tel.focus();
//f.tel.select();
//return false;
//}

//if (f.indirizzo.value == "") {
//alert("Indirizzo obbligatorio !")
//f.indirizzo.focus();
//f.indirizzo.select();
//return false;
//}
if (f.posta_el.value.indexOf("@") == -1) {
alert("Indirizzo E-Mail non valido !")
f.posta_el.focus();
f.posta_el.select();
return false;
}	
if (f.posta_el.value.indexOf(".") == -1) {
alert("Indirizzo E-Mail non valido!")
f.posta_el.focus();
f.posta_el.select();
return false;
}


if (f.messaggio.value == "") {
alert("Messaggio obbligatorio !")
f.messaggio.focus();
f.messaggio.select();
return false;
}

if (f.accetto.checked == 0)
{
alert("Selezionare AUTORIZZO per consentire il trattamento dei Vostri dati personali !");
return false;
}

return true;
}





function Conferma2(){
var f = document.modulo2

if (f.azienda.value == "") {
alert("Il nome dell\'azienda è obbligatorio !")
f.azienda.focus();
f.azienda.select();
return false;
}

if (f.indirizzo.value == "") {
alert("L\'indirizzo dell\'azienda è obbligatorio !")
f.indirizzo.focus();
f.indirizzo.select();
return false;
}

if (f.telefono.value == "") {
alert("Un recapito telefonico è obbligatorio !")
f.telefono.focus();
f.telefono.select();
return false;
}

if (f.email.value == "")
		{
		alert("Indirizzo E-mail obbligatorio!")
		f.email.focus()
		f.email.select()
		return false
		}
	else
		{
			var str=f.email.value
			var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
				if (filter.test(str))
				{}
				else{
				alert("Indirizzo email inserito in un formato non valido!")
				f.email.focus()
				f.email.select()
				return false
				}
		}

if (f.accetto.checked == 0)
{
alert("Selezionare AUTORIZZO per consentire il trattamento dei Vostri dati personali !");
return false;
}

//alert("Invio del Form non ancora funzionante...");
return true;
}
//-->
