/**************************************************************************
	page verifFormFormation.js : vérifie le formulaire de formation                          				 
	---------------------------------------------------------------------------
	Auteur: bhisz	                                                           
	Email:  bhisz@toutcaen.com                                                 
	Web:  http://www.math-info.univ-paris5.fr/Lic_Pro/Intranet                                        
	**************************************************************************/
function verifFormFormation(){
var intitule=document.formFormation.intitule_formation.value;
var lieu=document.formFormation.ecole_formation.value;
var diplome=document.formFormation.diplome_formation.value;
var chainealert="vous n'avez pas rempli le champ obligatoire : ";
var test=0;

if(trim(intitule)=="")
{
	chainealert=chainealert+"intitulé ";
	test=1;
}
else if(trim(lieu)=="")
{
	chainealert=chainealert+"lieu ";
	test=1;
}
else if(trim(diplome)=="")
{
	chainealert=chainealert+"diplôme ";
	test=1;
}
if(Verif_num_pos('annee_fin_form','formFormation')==false ){
		alert("Champ année de fin formation");
		return false;
}
if(Verif_num_pos('annee_deb_form','formFormation')==false ){
		alert("Champ année de début formation");
		return false;
}	
if (test==1)
{
	alert(chainealert);
	return false;
}
else 
{
	return true;
}
}

