<!--


 var fin=null; 
 var bordo=1; 
 function visualizzaimg(img) 
  { 
  var bordo=1; 
  if (fin&&!fin.closed) 
   fin.close(); 
  fin=window.open("about:blank","fin","top=0,left=100,width=100,height=100,scrollbars=no,location=no,statusbar=no,resizable=yes"); 
 
  with (fin.document) 
   { 
   open(); 
   writeln("<html><head>"); 
   writeln("<SCR"+"IPT>"); 
   writeln("function dimensioni()"); 
   writeln("{"); 
   writeln("self.resizeTo(document.imm.width + 10 * "+bordo+",document.imm.height + 25 * "+bordo+");"); 
   writeln("}");  
   writeln("function riapri2()"); 
   writeln("{"); 
   writeln("setTimeout('dimensioni()',100)"); 
   writeln("}"); 
   writeln("</SCR"+"IPT>");  
   writeln("<title>Moretti Raffaele</title>"); 
   writeln("<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad=\"riapri2()\">"); 
   writeln("<table bgcolor='#ffffff' border=0 width='100%' height='100%' cellspacing=0 cellpadding="+bordo+"><tr><td><img src="+img+" border=0 name='imm'></td></tr></table>"); 
   writeln("</body></html>"); 
   close(); 
   }  
   fin.focus(); 
  }
  
  
  if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.menu_int{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("sottomenu").getElementsByTagName("span");
		if(el.style.display != "block"){
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="menu_int")
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}
  
  
  function window_open(filename, x, y, target)
   { windowops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=" + x + ",height=" + y + "'");
     newwindow=window.open(filename, target, windowops);
     return;
   }


    function Modulo() {
  
       // Variabili associate ai campi del modulo
       var nome = document.modulo.nome.value;
       var cognome = document.modulo.cognome.value;
       var email = document.modulo.email.value;
       var autorizzo = document.modulo.autorizzo.checked;
  
          //Effettua il controllo sul checkbox AUTORIZZO
          if (autorizzo == 0) {
             alert("Per l'invio del modulo è necessario spuntare la casella AUTORIZZO (Autorizzo il trattamento dei miei dati personali).");
             document.modulo.autorizzo.focus();
             return false;
          }
  
       // Espressione regolare dell'email
       var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
  
          //Effettua il controllo sul campo NOME
          if ((nome == "") || (nome == "undefined")) {
             alert("Il campo Nome è obbligatorio.");
             document.modulo.nome.focus();
             return false;
          }
          //Effettua il controllo sul campo COGNOME
          else if ((cognome == "") || (cognome == "undefined")) {
             alert("Il campo Cognome è obbligatorio.");
             document.modulo.cognome.focus();
             return false;
          }
          else if (!email_reg_exp.test(email) || (email == "") || (email == "undefined")) {
             alert("Inserire un indirizzo email corretto.");
             document.modulo.email.select();
             return false;
          }
 
          //INVIA IL MODULO
          else {
             document.modulo.action = "contattiGo.asp";
             document.modulo.submit();
          }
    }
 -->
 


