//<!--

function valide_access_form ()
{
  var fo = document.access_form;
  
  if (fo.LOGIN.value.length == 0)
  {
    alert ("You forgot to enter the login");
    return false;
  }
  
  if (fo.PASSWORD.value.length == 0)
  {
    alert ("You forgot to enter the password");
    return false;
  }
  
  return true;
}

function valide_access_form_part ()
{
  var fo = document.access_form_part;
  
  if (fo.LOGIN.value.length == 0)
  {
    alert ("You forgot to enter the login");
    return false;
  }
  
  if (fo.PASSWORD.value.length == 0)
  {
    alert ("You forgot to enter the password");
    return false;
  }
  
  return true;
}

function valide_Support_Form_1 ()
{
  var fo = document.support_form_1;
  
  if (document.getElementById('numero_serie').value.length == 0) {
    alert ("You forgot to enter the serial number of equipment");
    return false;
  }
  
  if (fo.company.value.length == 0) {
    alert ("You forgot to enter your company");
    return false;
  }
  
  if (fo.last_name.value.length == 0)
  {
    alert ("You forgot to enter your name");
    return false;
  }
  
  if (fo.zip_code.value.length == 0) {
    alert ("You forgot to enter your postcode");
    return false;
  }

  if (fo.phone.value.length == 0) {
    alert ("You forgot to enter your phone");
    return false;
  }
  
  if (!fo.email.value.match(/^[a-z0-9&\'\.\-_\+]*@[a-z0-9]+([\.\-][a-z0-9]+)*\.[a-z]{2,}$/i))
  {
    alert ("You must enter a valid E-Mail address (surname.name@myemail.com)");
    return false;
  }
  
  return true;
  
}

function valide_Support_Form_2 ()
{
  var fo = document.support_form_2;
  
  if (document.getElementById('numero_serie').value.length == 0) {
    alert ("You forgot to enter your serial number of equipment");
    return false;
  }
  
  if (document.getElementById('marque').value.length == 0) {
    alert ("You forgot to enter the brand");
    return false;
  }
  
  if (document.getElementById('modele').value.length == 0) {
    alert ("You forgot to enter the model");
    return false;
  }
  
  if (fo.company.value.length == 0) {
    alert ("You forgot to enter your company");
    return false;
  }
  
  if (fo.last_name.value.length == 0)
  {
    alert ("You forgot to enter your name");
    return false;
  }
  
  if (fo.address.value.length == 0)
  {
    alert ("You forgot to enter your address");
    return false;
  }
  
  if (fo.zip_code.value.length == 0) {
    alert ("You forgot to enter your postcode");
    return false;
  }

  if (fo.phone.value.length == 0) {
    alert ("You forgot to enter your phone");
    return false;
  }
  
  if (!fo.email.value.match(/^[a-z0-9&\'\.\-_\+]*@[a-z0-9]+([\.\-][a-z0-9]+)*\.[a-z]{2,}$/i))
  {
    alert ("You must enter a valid E-Mail address (surname.name@myemail.com)");
    return false;
  }
  
  if (fo.date_factu.value.length == 0) {
    alert ("You forgot to enter the billing date");
    return false;
  }
  
  return true;
  
}

function valide_mail ()
{
  var fo = document.contact_form;
  
  if (fo.company.value.length == 0) {
    alert ("You forgot to enter your company");
    return false;
  }

  if (document.getElementById('activite').value.length == 0) {
    alert ("You forgot to enter your activity");
    return false;
  }
  
  if (fo.last_name.value.length == 0)
  {
    alert ("You forgot to enter your name");
    return false;
  }
  
  if (fo.zip_code.value.length == 0) {
    alert ("You forgot to enter your postcode");
    return false;
  }

  if (fo.phone.value.length == 0) {
    alert ("You forgot to enter your phone");
    return false;
  }
  
  if (!fo.email.value.match(/^[a-z0-9&\'\.\-_\+]*@[a-z0-9]+([\.\-][a-z0-9]+)*\.[a-z]{2,}$/i))
  {
    alert ("You must enter a valid E-Mail address (surname.name@myemail.com)");
    return false;
  }
  
  if (document.getElementById('date') && document.getElementById('date').value.length == 0) {
    alert ("You forgot to enter the date");
    return false;
  }

  if (document.getElementById('heure') && document.getElementById('heure').value.length == 0) {
    alert ("You forgot to enter time");
    return false;
  }
  
  if (document.getElementById('jour') && document.getElementById('jour').value.length == 0) {
    alert ("You forgot to enter the day");
    return false;
  }

  if (document.getElementById('type_doc') && document.getElementById('type_doc').value.length == 0) {
    alert ("You forgot to enter the type of documents to compress");
    return false;
  }

  Display('loading');
  return true;
  
}


function valide_print_access ()
{
  var fo = document.print_access;
  
  if (!fo.LOGIN.value.match(/^[a-z0-9&\'\.\-_\+]*@[a-z0-9]+([\.\-][a-z0-9]+)*\.[a-z]{2,}$/i))
  {
    alert ("You must enter a valid E-Mail address (surname.name@myemail.com)");
    return false;
  }
  if (fo.PASSWORD.value.length == 0)
  {
    alert ("You forgot to enter the password");
    return false;
  }

  return true;
}

function valide_send_friend ()
{
  var fo = document.send_friend;
  
  if (!fo.email_source.value.match(/^[a-z0-9&\'\.\-_\+]*@[a-z0-9]+([\.\-][a-z0-9]+)*\.[a-z]{2,}$/i))
  {
    alert ("You must enter a valid E-Mail address (surname.name@myemail.com)");
    return false;
  }
  
  if (!fo.email_dest.value.match(/^[a-z0-9&\'\.\-_\+]*@[a-z0-9]+([\.\-][a-z0-9]+)*\.[a-z]{2,}$/i))
  {
    alert ("You must enter a valid E-Mail address for the recipient (surname.name@myemail.com)");
    return false;
  }
  
  return true;
  
}

//-->
