   var regmail = new RegExp('^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9_\-])+\.)+([a-zA-Z0-9]{2,4})+$');
   
   function openMenu(id) {
   var obj;

      obj = document.getElementById(id);
//      document.menuper.moveTo(obj.style.left+120,obj.style.top);
      obj.style.left=0;
   }

   function closeMenu() {
   var obj;

      obj = document.getElementById('menuper');
      obj.style.left = -120;
   }

   function showLayer(id) { 
   var obj;

      obj = document.getElementById(id);
      obj.style.visibility='visible'; 
   }

   function hideLayers() { 
   var obj,
      args = hideLayers.arguments;

      for (i=0;i<args.length;i++) {
         obj = document.getElementById(args[i]);
         obj.style.visibility='hidden'; 
      }
   }

   function jump() {
   var form = window.document.forms["vai"];

      if (form.sezione.options[form.sezione.selectedIndex].value != "empty") {
         switch (form.sezione.options[form.sezione.selectedIndex].value) {
         case "0":
            window.document.location.href = "index.php";
         break;
         case "periscopio":
            window.document.location.href = "p.php";
         break;
         case "sagre":
            window.document.location.href = "sagre.php?page=0";
         break;
         case "sposi":
            window.document.location.href = "sposi.php";
         break;
         case "abruzzo":
            window.document.location.href = "a.php";
         break;
	 case "cantine":
            window.document.location.href = "c_search.php?page=0";
         break;
	 case "frantoi":
            window.document.location.href = "f_search.php?page=0";
         break;
         case "blocknotes":
            window.document.location.href = "blocknotes.php";
         break;
         case "insannuncio":
            window.document.location.href = "insannuncio.php";
         break;
         default:
            window.document.location.href = "index.php?id="+form.sezione.options[form.sezione.selectedIndex].value;
         break;
         }
      }
   }

