  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 Email è obbligatorio");
          document.modulo.email.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();
        }
  }
  
  /* current page */
window.onload = clearCurrentLink;

function clearCurrentLink(){
    var a = document.getElementsByTagName("A");
    for(var i=0;i<a.length;i++)
        if(a[i].href == window.location.href.split("#")[0])
            removeNode(a[i]);
}

function removeNode(n){
    if(n.hasChildNodes())
        for(var i=0;i<n.childNodes.length;i++)
            n.parentNode.insertBefore(n.childNodes[i].cloneNode(true),n);
    n.parentNode.removeChild(n);
}

