<!--

function lf() { document.theForm.user.focus(); }

function gf() { document.theForm.txtName.focus(); }

function postcheck(theForm)
{
  var whitespace = /^[\ ]+$/;
  
  if (theForm.txtName.value == "" || whitespace.test(theForm.txtName.value))
  {
    alert("Veuillez saisir votre Nom");
    theForm.txtName.focus();
    return (false);
  }
  
  if (theForm.txtEmail.value == "")
  {
    alert("Veuillez saisir votre Email");
    theForm.txtEmail.focus();
    return (false);
  }
     var emailStr = theForm.txtEmail.value;
     var emailReg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/;
     var emailReg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,6}|[0-9]{1,3})(\]?)$/;

     if (!(!emailReg1.test(emailStr) && emailReg2.test(emailStr)))
     {
       alert("Veuillez entrer un valid Email");
       theForm.txtEmail.focus();
       return (false);
     }
  
  if (theForm.txtCity.value != "")
  {
    if(whitespace.test(theForm.txtCity.value))
    {
      alert("Veuillez entrer le nom de votre Ville");
      theForm.txtCity.focus();
      return (false);
    }
  }

  if (theForm.txtCountry.value == "" || whitespace.test(theForm.txtCountry.value))
  {
    alert("Veuillez entrer le nom de votre Pays");
    theForm.txtCountry.focus();
    return (false);
  }  

  if (theForm.txtSubject.value == "" || whitespace.test(theForm.txtSubject.value))
  {
    alert("Veuillez entrer votre Sujet");
    theForm.txtSubject.focus();
    return (false);
  }

  if (theForm.txtMessage.value == "" || whitespace.test(theForm.txtMessage.value))
  {
    alert("Veuillez entrer vos Commentaires");
    theForm.txtMessage.focus();
    return (false);
  }

  return (true);
}


-->

