function ControlForm()

{ 
if ((document.Formulaire.User[0].checked==false) && (document.Formulaire.User[1].checked==false)&&(document.Formulaire.User[2].checked==false))
{alert("Vous n'avez pas coché une civilité !");return false;}
if (document.Formulaire.Email.value != document.Formulaire.Email2.value) {alert("Erreur lors de la confirmation de votre Email");return false;}
var len;
  var i;
  var nomchamp;
  var chaine;
  var typechamp;
  chaine="";
  len=document.Formulaire.elements.length;
  for (i=0;i<len;i++)
      {	typechamp=document.Formulaire.elements[i].type;
        if ((typechamp=="text") || (typechamp=="textarea") || (typechamp=="checkbox") || (typechamp=="radio") )
           { nomchamp=document.Formulaire.elements[i].name;
		   
             if ( (nomchamp!="Station") && (nomchamp!="Infos") ) 
                if (document.Formulaire.elements[i].value.length==0)
                   chaine+=nomchamp+"\r\n";
           }
      }
  if (chaine.length>0)
     { alert("Les champs obligatoires suivants n'ont pas ete remplis\r\n"+chaine);
       return false;
     }
       else return true;
}
function ControlLog()

{ var len;
  var i;
  var nomchamp;
  var chaine;
  var typechamp;
  chaine="";
  len=document.Form.elements.length;
  for (i=0;i<len;i++)
      {	typechamp=document.Form.elements[i].type;
        if ((typechamp=="text") || (typechamp=="textarea") || (typechamp=="checkbox") || (typechamp=="radio")   || (typechamp=="password"))
           { nomchamp=document.Form.elements[i].name;
                if (document.Form.elements[i].value.length==0)
                   chaine+=nomchamp+"\r\n";
           }
      }
  if (chaine.length>0)
     { alert("Les champs obligatoires suivants n'ont pas été remplis:\r\n"+chaine);
       return false;
     }
       else return true;
}
//#########################################################################################################################################################
//#########################################################################################################################################################
//#########################################################################################################################################################
function couleur(obj) {
     obj.style.backgroundColor = "#CCCCFF";
}
// ****************** controle de la demande d'identifiant **************************************
function ControlLostEmail()
{  
  if (document.formLost.LostEmail.value == "") 
     { alert("Veuillez nous communiquer votre adresse Email.\nMerci.");
       document.formLost.LostEmail.focus();
	   document.formLost.LostEmail.style.backgroundColor = "#FF0000";
       return false;
     }
  if ( (document.formLost.LostEmail.value.indexOf('@')< 0) || (document.formLost.LostEmail.value.indexOf('.')< 0)|| (document.formLost.LostEmail.value.indexOf(' ')> 0) )
	{alert("Erreur lors de la saisie de votre adresse Email");
	 document.formLost.LostEmail.focus();
	 document.formLost.LostEmail.style.backgroundColor = "#FF0000";
	 return false;
	 }
return true;
}
