function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function openWindow(w,h) {
  window.open("","popDialog","width="+w+",height="+h+",scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no");
}

function Form_Contatti(Form) {
  if (Form.messaggio.value == "")
  {
    alert("Messaggio mancante.");
    Form.messaggio.focus();
    return (false);
  }

  if (Form.nome.value == "")
  {
    alert("Nome mancante.");
    Form.nome.focus();
    return (false);
  }

  if (Form.email.value == "")
  {
    alert("Email mancante.");
    Form.email.focus();
    return (false);
  }

  test = Form.email.value;

  if (Form.email.value != "" && test.indexOf("@") == "-1")
  {
    alert("Email non valida.");
    Form.email.focus();
    return (false);
  }
  openWindow(350,240);
  return (true);
}
