var min=8;

var max=16;

function increaseFontSize() {

   var p = document.getElementsByTagName('body');

   for(i=0;i<p.length;i++) {

      if(p[i].style.fontSize) {

         var s = parseInt(p[i].style.fontSize.replace("px",""));

      } else {

         var s = 12;

      }

      if(s!=max) {

         s += 1;

      }

      p[i].style.fontSize = s+"px"

   }

}

function decreaseFontSize() {

   var p = document.getElementsByTagName('body');

   for(i=0;i<p.length;i++) {

      if(p[i].style.fontSize) {

         var s = parseInt(p[i].style.fontSize.replace("px",""));

      } else {

         var s = 12;

      }

      if(s!=min) {

         s -= 1;

      }

      p[i].style.fontSize = s+"px"

   }   

}

function printpage() {

  window.print();

  }
function Validatore_Form(theForm){
if (theForm.nome.value =="")
                {
                alert("Inserire il nome")
                theForm.nome.focus();
                return (false);
                }
if (theForm.cognome.value =="")
                {
                alert("Inserire il cognome")
                theForm.cognome.focus();
                return (false);
                }
if (theForm.email.value =="")
                {
                alert("Inserire l'indirizzo e-mail")
                theForm.email.focus();
                return (false);
                }
if (theForm.telefono.value =="")
                {
                alert("Inserire il numero di telefono")
                theForm.telefono.focus();
                return (false);
                }
if ((theForm.checkbox.checked) == false)
                {
                alert("Spiacenti: in caso di mancata autorizzazione, non possiamo ricevere il messaggio  (legge 675/96)")
                theForm.checkbox.focus();
                return (false);
                }
}
