var premier_clic = true;
    var eAccentGrav = "e";
	var eAccentAigu = "e";
	var eAccentCirc = "e";
	var aAccentGrav = "a";
//On teste si le javascript >= 1.2

if ((String.fromCharCode(232))!=false && (String.fromCharCode(232))!=null) {
	eAccentGrav = String.fromCharCode(232);
	eAccentAigu = String.fromCharCode(233);
	eAccentCirc = String.fromCharCode(234);
	aAccentGrav = String.fromCharCode(224);
}



function trim(chaine) { 
    // espaces au debut 
    while (chaine.substring(0,1) == ' ') 
        chaine = chaine.substring(1, chaine.length);
    // espaces a la fin 
    while (chaine.substring(chaine.length-1,chaine.length) == ' ')
        chaine = chaine.substring(0, chaine.length-1);
   return chaine;
} 

function ValideForm(leForm) {
    if(!premier_clic){
	    return (false);
	} else {
	   premier_clic=false;
	}	
 
    if (leForm.sexe_question.value.length == 0) {
	    alert ("Le genre est obligatoire");
	    leForm.sexe_question.focus() ;
		premier_clic = true;
		return (false);
	}
	 if (leForm.age_question.value.length == 0) {
	    alert ("Votre age est obligatoire");
	    leForm.age_question.focus() ;
		premier_clic = true;
		return (false);
	}
	if (leForm.dept_question.value.length == 0) {
	    alert ("Votre département est obligatoire");
	    leForm.dept_question.focus() ;
		premier_clic = true;
		return (false);
	}

	if (leForm.email_question.value.length == 0) {
	    alert ("Votre email est obligatoire");
	    leForm.email_question.focus() ;
		premier_clic = true;
		return (false);
	}
	
	if (leForm.email_confirmation_question.value.length == 0) {
	    alert ("La confirmation de votre email est obligatoire");
	    leForm.email_confirmation_question.focus() ;
		premier_clic = true;
		return (false);
	}
	
	if (leForm.email_question.value != leForm.email_confirmation_question.value){
	   alert ("la confirmation de votre email est différente de votre email");
	    leForm.email_confirmation_question.focus() ;
		premier_clic = true;
		return (false);
	} 
	
leForm.submit();
}	