gg = new Array("Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"); 
function visua() 
   { 
   var ora = new Date(); 
   var aa = ora.getDate(); 
   var mm = ora.getMonth() + 1; 
   var yy = ora.getYear(); 
   var oo = ora.getHours(); 
   var mn = ora.getMinutes(); 
   var sec = ora.getSeconds(); 
   var dd = ora.getDay(); 
   var aa2  = ((aa < 10) ? "0" : ""); 
   var mm2  = ((mm < 10) ? ".0" : "."); 
   var oo2  = ((oo < 10) ? "0" : ""); 
   var mn2  = ((mn < 10) ? ":0" : ":"); 
   var sec2  = ((sec < 10) ? ":0" : ":"); 
   var Data = aa2 + aa + mm2 + mm  + "." + yy; 
   var hh = oo2 + oo + mn2 + mn + sec2 + sec; 
   if(document.all) 
      document.all.primo.innerHTML = gg[dd] + ", " + Data + ", " + hh; 
   else 
      if(document.getElementById) 
         document.getElementById('primo').innerHTML  = gg[dd] + ", " + Data + ", " + hh; 
   window.setTimeout("visua()",1000); 
   } 
onload=visua;


function preferiti(){
var url="http://www.globostraslochi.com"
var titolo="Globos Traslochi - web site -"
if (document.all) {
window.external.AddFavorite(url,titolo);
}
}

function Modulo() {

        if ((document.modulo.nome.value == "")) 
		{
           alert("Il campo Nome è obbligatorio");
           document.modulo.nome.focus();
           return false;
        }

        else if ((document.modulo.email.value == "")) {
          alert("Il campo Email è obbligatorio");
          document.modulo.email.focus();
          return false;
        }

        else if ((document.modulo.messaggio.value == "")) {
           alert("Il campo Messaggio è obbligatorio");
           document.modulo.messaggio.focus();
           return false;
        }

        else {
           document.modulo.action = "mail.php";
           document.modulo.submit();
        }
		
		
  }
  
  function prev() {

        if ((document.prev.nome.value == "")) 
		{
           alert("Il campo Nome è obbligatorio");
           document.prev.nome.focus();
           return false;
        }

        else if ((document.prev.cognome.value == "")) {
          alert("Il campo Email è obbligatorio");
          document.prev.cognome.focus();
          return false;
        }

        else if ((document.prev.telefono.value == "")) {
           alert("Il campo telefono è obbligatorio");
           document.prev.telefono.focus();
           return false;
        }
		 
		else if ((document.prev.via.value == "")) {
           alert("Il campo Via/Piazza è obbligatorio");
           document.prev.via.focus();
           return false;
        }
		  
		 else if ((document.prev.citta.value == "")) {
           alert("Il campo Città è obbligatorio");
           document.prev.citta.focus();
           return false;
        }
		
		 else if ((document.prev.provincia.value == "")) {
           alert("Il campo Provincia è obbligatorio");
           document.prev.provincia.focus();
           return false;
        }
		
		else if ((document.prev.via1.value == "")) {
           alert("Il campo Via/Piazza è obbligatorio");
           document.prev.via1.focus();
           return false;
        }
		  
		 else if ((document.prev.citta1.value == "")) {
           alert("Il campo Città è obbligatorio");
           document.prev.citta1.focus();
           return false;
        }
		
		 else if ((document.prev.provincia1.value == "")) {
           alert("Il campo Provincia è obbligatorio");
           document.prev.provincia1.focus();
           return false;
        }
		


        else {
           //document.prev.action = "preventivi.php";
           document.prev.submit();return true;
        }
		
		
  }
  
   function apri_note() 
   { 
   nuova = window.open("note_legali/notelegali.htm","nuova","width=590,height=300,scrollbars=1"); 
   nuova.moveTo(screen.width-780,screen.height-600); 
   nuova.focus(); 
   } 
   
   function apri_privacy() 
   { 
   nuova = window.open("note_legali/privacy.htm","nuova","width=590,height=300,scrollbars=1"); 
   nuova.moveTo(screen.width-780,screen.height-600); 
   nuova.focus(); 
   } 
   
   function apri_disclaimer() 
   { 
   nuova = window.open("note_legali/disclaimer.htm","nuova","width=590,height=300,scrollbars=1"); 
   nuova.moveTo(screen.width-780,screen.height-600); 
   nuova.focus(); 
   }
   function apri_trademark() 
   { 
   nuova = window.open("note_legali/trademark.htm","nuova","width=590,height=300,scrollbars=1"); 
   nuova.moveTo(screen.width-780,screen.height-600); 
   nuova.focus(); 
   }