function colorize(obj, col) {
  document[obj].style.backgroundColor = col;
}

function MouseOver(obj) {
  document[obj].src = "images/" + obj + "_over.gif";
}

function MouseOut(obj) {
  document[obj].src = "images/" + obj + "_norm.gif";
}

function printit(){  
  if (window.print) {
    window.print() ;  
  } else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
    document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);
  }
}

function MailPage() {
  window.location.href = "mailto:pinosa@intoit.it?body="+window.frames.top.location;
}

function Validazione_Dati() {
   var errore = false;
   var form = document.forms[0];
   if ((form.Nome_Edit.value == '') && (errore != true)) {
      alert("Il campo Nome deve contenere un valore.");
      errore = true;
   }
   if ((form.Societa_Edit.value == '') && (errore != true)) {
      alert("Il campo Società deve contenere un valore.");
      errore = true;
   }
   if ((form.Indirizzo_Edit.value == '') && (errore != true)) {
      alert("Il campo Indirizzo deve contenere un valore.");
      errore = true;
   }
   if ((form.Localita_Edit.value == '') && (errore != true)) {
      alert("Il campo Località deve contenere un valore.");
      errore = true;
   }
   if ((form.CAP_Edit.value == '') && (errore != true)) {
      alert("Il campo C.A.P. deve contenere un valore.");
      errore = true;
   }
   if ((form.Provincia_Edit.value == '') && (errore != true)) {
      alert("Il campo Provincia deve contenere un valore.");
      errore = true;
   }
   if ((form.Telefono_Edit.value == '') && (errore != true)) {
      alert("Il campo Telefono deve contenere un valore.");
      errore = true;
   }
   if (errore == false) {
      form.submit();
   }
}



