
dim = 12;
var min=8;
var max=18;

 function zooma(val) {
  
  ii = "";

  if (val == "0") 
   dim = 12;
  if (val == "+") 
   dim = dim +2;
  if (val == "-")
   dim = dim - 2;

  
  if (document.getElementById("contBarre") != null) {
     ii = "contBarre";
     document.getElementById(ii).style.fontSize = dim +"px";

   var p = document.getElementsByTagName('h2');
   for(i=0;i<p.length;i++) {
     if ((p[i].id != "headul") && (p[i].id != "bottomul"))
      p[i].style.fontSize = dim+"px"
   }
   var p = document.getElementsByTagName('h1');
   for(i=0;i<p.length;i++) {
     if ((p[i].id != "headul") && (p[i].id != "bottomul"))
      p[i].style.fontSize = dim+"px"
   }

  }  else if (document.getElementById("container") != null) {
     document.getElementById("container").style.fontSize = dim +"px";  
  }

}


function checkSubmitInoltra(modulo){
    
    eval("f = document."+modulo);

    if(trimValue(f.nome.value) == ""){
        alert("Inserire il proprio nome.");
        f.nome.focus();
        return false;
    }
    
    if(!validEmailAddress(f.email.value)){
        alert("L\'indirizzo email del destinatario non è stato scritto correttamente (es. tuonome@tuodominio.it).");
        f.email.focus();
        return false;
    }
    
    if(f.infor[0].checked != true){
        alert("E' necessario accettare l'informativa per proseguire!");
        return false;
    }
       
    f.submit();

}

function inoltra(l,par){

 window.open('/opencms/servizio/inoltraCollega.html?pag='+l,'w',par);

}
