<!--

 function chk_form(theForm)
 {

   if (theForm.equipcost.value == '')      { alert("S'il vous plaît remplir votre Coût de léquipement");        theForm.equipcost.focus();	 return (false); }

   if (theForm.validate.value == 'Y')
   { 

     if (theForm.customer.value == '')       { alert("S'il vous plaît remplir votre Compagnie");                  theForm.customer.focus();	return (false); }
     if (theForm.custaddr.value == '')       { alert("S'il vous plaît remplir votre Adresse");                    theForm.custaddr.focus();	return (false); }
     if (theForm.custcity.value == '')       { alert("S'il vous plaît remplir votre Ville");                      theForm.custcity.focus();	return (false); }
     if (theForm.custprov.value == '')       { alert("S'il vous plaît remplir votre Province");                   theForm.custprov.focus();	return (false); }
     if (theForm.custpostcode.value == '')   { alert("S'il vous plaît remplir votre Code Postale");               theForm.custpostcode.focus();	return (false); }
     if (theForm.custtel.value == '')        { alert("S'il vous plaît remplir votre Téléphone");                  theForm.custtel.focus();	return (false); }
     if (theForm.custcontact.value  == '')   { alert("S'il vous plaît remplir votre Personne Ressource");         theForm.custcontact.focus();	return (false); }
     if (theForm.custemail.value == '')      { alert("S'il vous plaît remplir votre Courriel");                   theForm.custemail.focus();	return (false); }
     if (theForm.equipdesc.value == '')      { alert("S'il vous plaît remplir votre Description de léquipement"); theForm.equipdesc.focus();	return (false); }
     if (theForm.vcontact.value == '')       { alert("S'il vous plaît remplir votre Représentant de commerce");   theForm.vcontact.focus();	return (false); }

     if (!theForm.custtel.value == '')
     {

       if (theForm.custtel.value.length < 10)
       {
         alert("Le téléphone est trop court (10 numériques)");
         theForm.custtel.focus();
         return (false);
       }

       var checkOK = "0123456789 -()";
       var checkStr = theForm.custtel.value;
       var allValid = true;
       var allNum = "";
       for (i = 0;  i < checkStr.length;  i++)
       {
         ch = checkStr.charAt(i);
         for (j = 0;  j < checkOK.length;  j++)
           if (ch == checkOK.charAt(j))
             break;
         if (j == checkOK.length)
         {
           allValid = false;
           break;
         }  
       }
       if (!allValid)
       {
         alert("Le téléphone contient des caractères qui ne sont pas numérique - Permis: numériques, espaces et ( ) -");
         theForm.custtel.focus();
         return (false);
       }
     }

     var checkOK = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-.@";
     var checkStr = theForm.custemail.value;
     var allValid  = true;
     var allemailatFormat = false;
     var allemaildotFormat = false;
     var allNum = "";
     for (i = 0;  i < checkStr.length;  i++)
     {
       ch = checkStr.charAt(i);
       if (ch == "@")
       {
        allemailatFormat = true;
       }
       if (ch == ".")
       {
        allemaildotFormat = true;
       }
       for (j = 0;  j < checkOK.length;  j++)
         if (ch == checkOK.charAt(j))
           break;
       if (j == checkOK.length)
       {
         allValid = false;
         break;
       }
     }
     if (!allValid)
     {
       alert("Le courriel contient des caractères qui ne sont pas permis");
       theForm.custemail.focus();
       return (false);
     }
     if (!allemailatFormat)
     {
       alert("Le champ de courriel est invalide 'pas de @' : votrenom@votredomaine.votredomaineextention");
       theForm.custemail.focus();
       return (false);
     }
     if (!allemaildotFormat)
     {
       alert("Le champ de courriel est invalide 'pas de .': votrenom@votredomaine.votredomaineextention");
       theForm.custemail.focus();
       return (false);
     }

     if (!theForm.custpostcode.value == '')
     {
       if (theForm.custpostcode.value.length < 6)
       {
         alert("Code Postale est trop court (6 caractères sans un espace ou 7 caractères avec un espace)");
         theForm.custpostcode.focus();
         return (false);
       }
     }
   }
 }

//-->
