////code de test de validité des infos

function ctrlDwnldForm(formul){

// rendre actif ci dessous après les tests
if (formul.person.value.length==0 || formul.organisation.value.length==0)
        {
        alert("your name and organisation are necessary");
        formul.person.focus();
        formul.person.select();
        return false;
        }
if (formul.email.value.length==0 )
        {
        alert("your email is necessary");
        formul.email.focus();
        formul.email.select();
        return false;
        }
if (formul.tel.value.length==0){
        alert("your phone is necessary");
        formul.tel.focus();
        formul.tel.select();
        return false;
        }

if(!syntaxeMail(formul.email.value)){
        alert("your email is not correct ! Note that we will send to you by email the links to download the files. \nIt is not possible to download any file with an incorrect email address. \nCheck it, please");
        formul.email.focus();
        formul.email.select();
        return false;
        }

if(!formul.recognize.checked){
        alert(" Sorry, but you have to recognize that all information received is for your review purposes only and may not be reproduced or distributed (in whole or in part) without the explicit written permission of Sinapse Graphic.\n Check the case to give your OK.");
        formul.recognize.focus();
        formul.recognize.select();
        return false;
        }
cpteur_checkbox=0;

if (formul.id=="dongle_form")
   {
   for (i=1;i<3; i++)
       {
       if (eval("formul.dongle_0"+i+".checked")) cpteur_checkbox++;
       }
   if (cpteur_checkbox==0){
       alert("you have not selected any file !");
       return false;
       }
       return true;

   }else{
   // download manuals
  for (i=1;i<15; i++){
       if(i<10){j="0"+i;}else{j=i;}
       if (j!=2){ // le 02 est supprimé
           if (eval("formul.manual_"+j+".checked")) cpteur_checkbox++;
           }
           
  }
  
  if (cpteur_checkbox==0){
       alert("you have not selected any manual !");
       return false;
       }

  if (cpteur_checkbox>1){
     formul.plusieurs.value="yes";
     }
     
     return true;
 }// manuals
}



