
   function cambiafont()
	{	
	 for (x=0;x<=document.all.tags("td").length-1;x++)
	     {	    
	      if (document.all.tags("td")[x].style.fontSize=="12px")
  	         {
		  ft=11;
		 }
	      else
  	         {
		  ft=12;
		 }
	      document.all.tags("td")[x].style.fontSize=ft+"px";
	     }
	 document.body.style.font=ft+"px Verdana"; 
	}


   function changeFontSize(ft)
	{
	 var tagsX = new Array("td","a","ul","ol");
	 for (a=0;a<=tagsX.length-1;a++)
	     {
	      for (x=0;x<=document.all.tags(tagsX[a]).length-1;x++)
	          {	    
	           document.all.tags(tagsX[a])[x].style.fontSize=ft+"px";
	          }
	     }
	 document.cookie = "fontSZ="+ft;
	}


	function CheckSearch(obj)
	   {
	    if (obj.cmbRicerca.selectedIndex==0)
	       {
		//***************************************
		//* NON E' STATO SELEZIONATO ALCUN SITO *
		//***************************************
	        //alert("Scegli un sito dalla lista!");
		//return false;
	       }
	    if (obj.cmbRicerca.selectedIndex<1)
	       {
		//************************************
		//* ESEGUI RICERCA SU SITI REGIONALI *
		//************************************
		//openIt("SuperCerca.asp?criterio="+document.forms[1].criterio.value+"&cmbRicerca="+document.forms[1].cmbRicerca.value,"Ricerca",600,500);
		//document.forms[1].submit();
		document.forms[1].txtCerca.value=document.forms[1].criterio.value;
		return true;
	       }
	    else
	       {
		//**********************************
		//* ESEGUI RICERCA SU SITI ESTERNI *
		//**********************************
	        obj.servizio.value=obj.cmbRicerca.value;
		document.forms[1].target="_blank";
		window.open(jsUrlSito[obj.servizio.value]+document.forms[1].criterio.value,'','width=800,height=500,toolbar=1,scrollbars=1,directories=1,location=1,menubar=1,status=1,resizable=1');
		return false;
	       }
	   }


	function EseguiRicerca()
	   {
	    if (document.forms[0].txtCerca.value!="")
	       {
		return true;
	       }
	    else
	       {
	        alert("Inserisci un termine per la ricerca!");
	        return false;
	       }
	   }


	function DoMarquee()
	   {
	    html="<marquee name=NewsScroller id=NewsScroller loop=0 scrollamount=1  truespeed scrolldelay=23 direction=left width=694 onmouseover=NewsScroller.stop() onmouseout=NewsScroller.start() style=height:15px;font-size:11px;margin-left:3px;margin-right:3px;>";
	    document.write(html);
	   }      


   	function openIt(pg,tit,xD,yD)
	   {
	    x=(screen.width-xD)/2;
	    y=((screen.height-yD)/2);
	    window.open(pg,tit,"toolbar=0,scrollbars=1,left="+x+",top="+y+",width="+xD+",height="+yD+";");
	   }


	function mailChk(Valore)
	   {
	    bAtOk=false
	    bMailOk=false
	    for(i=0;i<=Valore.value.length;i++)
	       {
		if(Valore.value.substring(i,i+1) == "@")
		  {
		   bAtOk=true;
		  }
		if(bAtOk==true && Valore.value.substring(i,i+1) == ".")
	          {
		   bMailOk=true;
		   break;
		  }
	       }
	    if(bMailOk==false)
	      {
	       alert("Attenzione! L'indirizzo mail non è corretto!");
	       return false;
	      }
	   }
	

	function CheckLink()
	   {
	    obj=document.forms[0]
	    if (obj.Email.value=="")
	       {
	       alert("Attenzione! L'indirizzo mail non è corretto!");
	       return false;
	       }
	   }


	function ShowHideNews(s,tot)
	   {
	    var Status;
	    var imgFile;
	    var strImg;
	    if (eval("document.all.ElencoNews_"+s+".style.display=='none'"))
	       {
		Status  = "block";
	       }
	    else
	       {
		Status  = "none";
	       }
	    for (var i=1;i<=tot;i++)
	        {
		 if (eval("document.all.ElencoNews_"+i)!=undefined)
		    {
	             eval("document.all.ElencoNews_"+i+".style.display='none'");
		    }
		}
	    eval("document.all.ElencoNews_"+s+".style.display='"+Status+"'");
	   }


	function ShowHide(s,n,tot)
	   {
	    var Status;
	    var imgFile;
	    var strImg;
	    if (eval("document.all.Elenco"+s+"_"+n+".style.display=='none'"))
	       {
		Status  = "block";
		imgFile = "meno"
	       }
	    else
	       {
		Status  = "none";
		imgFile = "piu"
	       }
	    for (var i=1;i<=tot;i++)
	        {
		 if (eval("document.all.Elenco"+s+"_"+i)!=undefined)
		    {
	             eval("document.all.Elenco"+s+"_"+i+".style.display='none'");
		     strImg=eval("document.all.VN"+s+"_"+i+".src");
		     if (strImg!=undefined)
			{
		         if (strImg.indexOf("img/bianco.gif")==-1)
			    {
	             	     eval("document.all.VN"+s+"_"+i+".src='img/piu.gif'");
			    }
			}
		    }
		}
	    strImg=eval("document.all.VN"+s+"_"+n+".src");
	    if (strImg!=undefined)
	       {
	        if (strImg.indexOf("img/bianco.gif")!=-1)
		   {
		    imgFile = "bianco";
	           }
	       }
	    eval("document.all.Elenco"+s+"_"+n+".style.display='"+Status+"'");
	    eval("document.all.VN"+s+"_"+n+".src='img/"+imgFile+".gif'");
	   }

