-ABILITA TASTO INVIA-
<script type="text/javascript" language="javascript">
<!--
var checkobj
function accetta(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
}
}
function disabilita(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Per favore leggi l'Informativa sulla Privacy")
return false
}
}
}
-->
</script>
-CAMPI OBBLIGATORI-
<script language="javascript" type="text/javascript">
<!--
function Modulo() {
if ((document.modulo.nome.value == "")) {
alert("Il campo Nome è obbligatorio");
document.modulo.nome.focus();
return false;
}
else if ((document.modulo.email.value == "")) {
alert("Il campo E-mail è obbligatorio");
document.modulo.email.focus();
return false;
}
else if ((document.modulo.oggetto.value == "")) {
alert("Il campo Oggetto è obbligatorio");
document.modulo.oggetto.focus();
return false;
}
else if ((document.modulo.messaggio.value == "")) {
alert("Il campo Messaggio è obbligatorio");
document.modulo.messaggio.focus();
return false;
}
else {
document.modulo.action = "mailto.php";
document.modulo.submit();
}
}
//-->
</script>
<form name="modulo" method="post" action="mailto.php" onSubmit="return disabilita(this); return false">
<input type="text" size="28" name="nome" class="box-form" maxlength="30">
E-mail:
<input type="text" size="28" name="email" class="box-form" maxlength="30">
Oggetto:
<input type="text" size="28" name="oggetto" class="box-form" maxlength="60">
Messaggio:
<textarea rows="7" name="messaggio" class="msg-form" cols="27"></textarea>
<input type="submit" value="Invia" onClick="Modulo()" disabled onClick="document.modulo.submit()">
<input type="reset" value="Annulla">
</form>
<script type="text/javascript" language="javascript">
document.forms.modulo.chekka.checked=false </script>
<input name="chekka" type="checkbox" onClick="accetta(this)"> Dichiaro di aver letto l'Informativa sulla Privacy