﻿function Validator1()
{
  if (document.getElementById('Contact_Email').value.length == 0)
  {
    alert("Inserire un valore per il campo \"Contact_Email\".");
    document.getElementById('Contact_Email').focus();
    return (false);
  }

  if (document.getElementById('Contact_Email').value.length < 3)
  {
    alert("Inserire almeno 3 caratteri nel campo \"Contact_Email\".");
    document.getElementById('Contact_Email').focus();
    return (false);
  }

  if (document.getElementById('Contact_Email_2').value.length == 0)
  {
    alert("Inserire un valore per il campo \"Contact_Email_2\".");
    document.getElementById('Contact_Email_2').focus();
    return (false);
  }

  if (document.getElementById('Contact_Email_2').value.length < 3)
  {
    alert("Inserire almeno 3 caratteri nel campo \"Contact_Email_2\".");
    document.getElementById('Contact_Email_2').focus();
    return (false);
  }
  return (true);
}

function Validator2()
{

  if (document.getElementById('F2_Contact_Email_s').value.length == 0)
  {
    alert("Inserire un valore per il campo \"Contact_Email\".");
    document.getElementById('F2_Contact_Email_s').focus();
    return (false);
  }

  if (document.getElementById('F2_Contact_Email_s').value.length < 3)
  {
    alert("Inserire almeno 3 caratteri nel campo \"Contact_Email\".");
    document.getElementById('F2_Contact_Email_s').focus();
    return (false);
  }

  if (document.getElementById('F2_Contact_Email_2_s').value.length == 0)
  {
    alert("Inserire un valore per il campo \"Contact_Email_2\".");
    document.getElementById('F2_Contact_Email_2_s').focus();
    return (false);
  }

  if (document.getElementById('F2_Contact_Email_2_s').value.length < 3)
  {
    alert("Inserire almeno 3 caratteri nel campo \"Contact_Email_2\".");
    document.getElementById('F2_Contact_Email_2_s').focus();
    return (false);
  }
  return (true);
}

function Validator3()
{

  if (document.getElementById('F2_Contact_Email_s').value.length == 0)
  {
    alert("Inserire un valore per il campo \"Contact_Email\".");
    document.getElementById('F2_Contact_Email_s').focus();
    return (false);
  }

  if (document.getElementById('F2_Contact_Email_s').value.length < 3)
  {
    alert("Inserire almeno 3 caratteri nel campo \"Contact_Email\".");
    document.getElementById('F2_Contact_Email_s').focus();
    return (false);
  }

  return (true);
}
