	/**
	*
	*
	*
	*
	*
	*/
	function verifAddAnnonce(str){
		var mesg="";
		mesg+=champVide("libelle_poste"," - Intitulé du poste   ");
		mesg+=champVide("descrip"," - Description du poste   ");
		mesg+=champVide("code_ne"," - Niveau d'étude minimum   ");
		mesg+=champVide("code_tc[]"," - Type de contrat   ");
		mesg+=champVide("code_te"," - Type d'emploi   ");
		mesg+=champVide("adresse"," - Adresse   ");
		mesg+=champVide("ville"," - Ville   ");
		mesg+=champVide("code_postal"," - Code Postal   ");
		mesg+=champVide("pays"," - Pays   ");
		mesg+=champVide("region"," - Region   ");
		mesg+=champVide("nom_contact"," - Nom   ");
		mesg+=champVide("prenom_contact"," - Prénom   ");
		mesg+=champVide("email_contact"," - Email   ");
		mesg+=champVide("tel_contact"," - Téléphone   ");

		if(mesg==''){
			if(str!=""){
			 document.getElementById('publier').value=str;
			}
			document.frm_anonce.submit();
			return true;	
		}else{
			alert(mesg);
			return false;
		}
	}
	/**
	*
	*
	*
	*
	*
	*/
	function verifAddStage(str){
		var mesg = '';
		mesg +=champVide("libelle_poste"," - Intitulé du poste ");
		mesg +=champVide("descrip"," - Description du poste ");
		if(!validCheck("frm_anonce", "code_metier")){
			mesg +=	" - Metier doit être indiquée \n\r";
			document.getElementById("text_metier").style.background="#FF9999"
		}
		else{
			document.getElementById("text_metier").style.background="#FFFFFF"
		}
		
		mesg +=champVide("code_ne"," - Niveau d'étude minimum ");
		mesg +=champVide("adresse"," - Adresse ");
		mesg +=champVide("ville"," - Ville ");
		mesg +=champVide("code_postal"," - Code Postal ");
		mesg +=champVide("pays"," - Pays ");
		mesg +=champVide("region"," - Region ");
		mesg +=champVide("nom_contact"," - Nom ");
		mesg +=champVide("prenom_contact"," - Prénom ");
		mesg +=champVide("email_contact"," - Email ");
		mesg +=champVide("tel_contact"," - Téléphone   ");
		if(mesg==''){
			document.getElementById('publier').value=str;
			document.frm_anonce.submit();
			return true;	
		}else{
			alert(mesg);
			return false;
		}
	}
	/**
	*
	*
	*
	*
	*
	*/
	function verifTypeAnnonce(){
		var mesg = '';
		mesg +=champVide("code_ta"," - Type d'annonce ");
		if(mesg==''){
			document.frm_anonce.submit();
			return true;	
		}else{
			alert(mesg);
			return false;
		}
	}
	/**
	*
	*
	*
	*
	*
	*/
	function postuler(){
		var mesg = '';
		mesg +=champVide("cvs"," - Mes cv");
		//	mesg +=champVide("docs"," - Mes documents   ");

		cpt=0;
		for (i = 0; i <document.frm_postuler.source_annonce.length; i++) {
			if (document.frm_postuler.source_annonce[i].checked) cpt++;
		}
		if(cpt==0) mesg += " - Source de l'annonce  est obligatoire";

		if(mesg==''){
			document.frm_postuler.submit();
			return true;	
		}else{
			alert(mesg);
			return false;
		}
	}
	/*
	*
	*
	*/
	function AddCvPanier(){
		document.getElementById('act').value='add_cv';
		document.frm_panier.submit();
	}




	/*
	*
	* Panier Candidature
	*
	*/

	function calculerMntPanier() {
		var nb=0;
		var mnt=0;
		var pu=0;
		$("input[type=checkbox][name=liste_candidature[]]:checked").each(function(){
			nb++;
		});

		if(nb<=5) pu = 20;
		else if(nb<=10) pu = 19;
		else if(nb<=15) pu = 18;
		else pu = 17;

		$("#mntPanier").html((pu*nb)+" DT");
	}

	function verifEnvoiCommande() {
		var nb=0;
		var mnt=0;
		$("input[type=checkbox][name=liste_candidature[]]:checked").each(function(){
			nb++;
		});	
		if(nb < 5) {
			msg = "Minimum de commande 5 CV";
			alert(msg);
		} else {
			document.frm_commande.submit();
		}
	}

