// JavaScript Document
function mailto_contact(){
	tab=new Array("w","e","b","m","a","s","t","e","r","@","c","a","r","r","i","e","r","e","b","t","p",".","c","o","m");
	var mail="";
	for(i=0;i<tab.length;i++){
		mail=mail+""+tab[i];
	}
	return (mail);

}


//--------------------------------------Rechercher-------------------------------------------------------------------------------
function getXhr(){
   var xhr = null; 
	if(window.XMLHttpRequest) // Firefox et autres
		 xhr = new XMLHttpRequest(); 
		 else if(window.ActiveXObject){ // Internet Explorer 
		 try {
			   xhr = new ActiveXObject("Msxml2.XMLHTTP");
		 } catch (e) {
			   xhr = new ActiveXObject("Microsoft.XMLHTTP");
		 }
	}
	else { // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		 xhr = false; 
	} 
    return xhr;
}

function repli(){
	
//alert(document.recherche_express.tempo_cache.value);
	if(document.recherche_express.tempo_cache.value==0){
		document.getElementById("formrechercheimg2").style.display='';
		document.getElementById("formrechercheimg").style.display='none';
		document.getElementById("formrecherche").style.display='none';
		document.recherche_express.tempo_cache.value=1;
		
		//document.getElementById("recherche_img2").style.display='none';
	}
	else{
		document.getElementById("formrechercheimg2").style.display='none';

		document.getElementById("formrechercheimg").style.display='';
		document.getElementById("formrecherche").style.display='';
		document.recherche_express.tempo_cache.value=0;
		//document.getElementById("recherche_img2").style.display='';
	}
	
}

function verif_test_recherche_express(){
	if(document.recherche_express.tempo_metier.value=="0-" || document.recherche_express.tempo_metier.value=="-"){
		alert("Veuillez renseigner un metier");
		return false;
	}
}


function disabled_france(){
	if(document.recruteuroffre.FRANCENTIERE.checked==true){
		document.recruteuroffre.DEPARTEMENT.disabled=true;
	}
	else{
		document.recruteuroffre.DEPARTEMENT.disabled=false;
	}
}
//--ajax
function selection_metier(val){
	if(val==0){
		document.recherche_express.METIER.selectedIndex=0;
	}	
}
function selection_secteur(val,val2){

		document.getElementById("metierall").style.display='none';
		document.getElementById("metier1").style.display='none';
		document.getElementById("metier2").style.display='none';
		document.getElementById("metier3").style.display='none';
		document.getElementById("metier4").style.display='none';
		document.getElementById("metier5").style.display='none';
		document.getElementById("metier6").style.display='none';
		document.getElementById("metier7").style.display='none';
		document.getElementById("metier8").style.display='none';
		
		/*for(i=0;i<=document.recherche_express.METIER.length-1;i++){
			document.recherche_express.METIER.options[i].selected = false;
		}
		for(i=0;i<=document.recherche_express.METIER1.length-1;i++){
			document.recherche_express.METIER1.options[i].selected = false;
		}
		for(i=0;i<=document.recherche_express.METIER2.length-1;i++){
			document.recherche_express.METIER2.options[i].selected = false;
		}
		for(i=0;i<=document.recherche_express.METIER3.length-1;i++){
			document.recherche_express.METIER3.options[i].selected = false;
		}
		for(i=0;i<=document.recherche_express.METIER4.length-1;i++){
			document.recherche_express.METIER4.options[i].selected = false;
		}
		for(i=0;i<=document.recherche_express.METIER5.length-1;i++){
			document.recherche_express.METIER5.options[i].selected = false;
		}
		for(i=0;i<=document.recherche_express.METIER6.length-1;i++){
			document.recherche_express.METIER6.options[i].selected = false;
		}
		for(i=0;i<=document.recherche_express.METIER7.length-1;i++){
			document.recherche_express.METIER7.options[i].selected = false;
		}
		for(i=0;i<=document.recherche_express.METIER8.length-1;i++){
			document.recherche_express.METIER8.options[i].selected = false;
		}*/
		
		
	if(val2==0){
		document.recherche_express.tempo_metier.value="-";
	}
		
		
	if(val==0){document.getElementById("metierall").style.display='';}
	else if(val==1){document.getElementById("metier1").style.display='';}
	else if(val==2){document.getElementById("metier2").style.display='';}
	else if(val==3){document.getElementById("metier3").style.display='';}
	else if(val==4){document.getElementById("metier4").style.display='';}
	else if(val==5){document.getElementById("metier5").style.display='';}
	else if(val==6){document.getElementById("metier6").style.display='';}	
	else if(val==7){document.getElementById("metier7").style.display='';}
	else if(val==8){document.getElementById("metier8").style.display='';}

}
function traitement_metier(val){
	if(val==0){
		select_metier='<p class="cellule"><span class="gras">M&eacute;tiers : </span><select name="METIER[]" class="recherche" onchange="selection_metier(this.value)"><option value="0">Choisir une catégorie de métier</option></select></p>';
	}
	if(val==1){
		select_metier='<p class="cellule_txtmetier"><span class="gras">M&eacute;tiers : </span></p><p class="cellule_metier"><select multiple="MULTIPLE" onchange="selection_metier(this.value)" size="4" name="METIER[]" class="recherche"><option value="0" selected="selected">Indifférent</option><option value="1">Monteur, installateur, thermique</option><option value="2">Chasseur d\'appartement</option><option value="3">Géometre</option><option>Syndicat</option><option>Géologue</option><option>Styliste</option><option>Urbaniste</option><option>Directeur de programme</option><option>Chargé d\'agence</option><option>Marchand de bien</option><option>Notaire</option><option>Promoteur</option><option>Notaire</option><option>Promoteur</option></select></p>';
	}
	if(val==2){
		select_metier='<p class="cellule_txtmetier"><span class="gras">M&eacute;tiers : </span></p><p class="cellule_metier"><select multiple="MULTIPLE" onchange="selection_metier(this.value)" size="4" name="METIER[]" class="recherche"><option value="0" selected="selected">Indifférent</option><option value="1">test1</option><option>test2</option><option value="2">test1</option><option>test2</option><option value="3">test1</option><option>test2</option><option>test2</option><option>test1</option><option>test2</option><option>test2</option><option>test1</option><option>test2</option></select></p>';
	}
	if(val==3){
		select_metier='<p class="cellule_txtmetier"><span class="gras">M&eacute;tiers : </span></p><p class="cellule_metier"><select multiple="MULTIPLE" onchange="selection_metier(this.value)" size="4" name="METIER[]" class="recherche"><option value="0" selected="selected">Indifférent</option><option value="1">test1</option><option>test2</option><option value="2">test1</option><option>test2</option><option value="4">test2</option><option>test1</option><option>test2</option><option>test2</option><option>test1</option><option>test2</option></select></p>';
	}
	document.getElementById('METIER').innerHTML = select_metier;	
}
function traitement_region(val){

	document.getElementById("trdepart").style.display='';					
	if(val==0){
		select_departement='';
		document.getElementById("trdepart").style.display='none';
	}
	
	
	if(val==1){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="67" checked>Bas-Rhin <input type="checkbox" name="DEPT[]" value="68" checked>Haut-Rhin</p>';
	}
	if(val==2){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="24" checked>Dordogne <input type="checkbox" name="DEPT[]" value="33" checked>Gironde <input type="checkbox" name="DEPT[]" value="40" checked>Landes <input type="checkbox" name="DEPT[]" value="47" checked>Lot-et-Garonne <input type="checkbox" name="DEPT[]" value="64" checked>Pyrénées-Atlantiques</p>';
	}
	if(val==3){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="3" checked>Allier <input type="checkbox" name="DEPT[]" value="15" checked>Cantal <input type="checkbox" name="DEPT[]" value="43" checked>Haute-Loire <input type="checkbox" name="DEPT[]" value="63" checked>Puy-de-Dôme</p>';
	}
	if(val==4){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="14" checked>Calvados <input type="checkbox" name="DEPT[]" value="50" checked>Manche <input type="checkbox" name="DEPT[]" value="61" checked>Orne</p>';
	}
	if(val==5){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="21" checked>Côte-d\'Or<input type="checkbox" name="DEPT[]" value="58" checked>Nièvres <input type="checkbox" name="DEPT[]" value="71" checked>Saône-et-Loire <input type="checkbox" name="DEPT[]" value="89" checked>Yonne</p>';
	}
	if(val==6){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="22" checked>Côtes-d\'Armor <input type="checkbox" name="DEPT[]" value="29" checked>Finistère <input type="checkbox" name="DEPT[]" value="35" checked>Ille-et-Vilaine <input type="checkbox" name="DEPT[]" value="56" checked>Morbihan</p>';
	}
	if(val==7){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="18" checked>Cher <input type="checkbox" name="DEPT[]" value="28" checked>Eure-et-Loir <input type="checkbox" name="DEPT[]" value="36" checked>Indre <input type="checkbox" name="DEPT[]" value="37" checked>Indre-et-Loire <input type="checkbox" name="DEPT[]" value="41" checked>Loir-et-Cher <input type="checkbox" name="DEPT[]" value="45" checked>Loiret</p>';
	}
	if(val==8){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="8" checked>Ardennes <input type="checkbox" name="DEPT[]" value="10" checked>Aube <input type="checkbox" name="DEPT[]" value="51" checked>Marne <input type="checkbox" name="DEPT[]" value="52" checked>Haute-Marne</p>';
	}
	if(val==9){
		select_departement='';
		document.getElementById("trdepart").style.display='none';
	}
	if(val==10){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="25" checked>Doubs <input type="checkbox" name="DEPT[]" value="39" checked>Jura <input type="checkbox" name="DEPT[]" value="70" checked>Haute-Saône <input type="checkbox" name="DEPT[]" value="90" checked>Territoire de Belfort</p>';
	}
	if(val==11){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="27" checked>Eure <input type="checkbox" name="DEPT[]" value="76" checked>Seine-Maritime</p>';
	}
	if(val==12){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="75" checked>Paris <input type="checkbox" name="DEPT[]" value="77" checked>Seine-et-Marne <input type="checkbox" name="DEPT[]" value="78" checked>Yvelines <input type="checkbox" name="DEPT[]" value="91" checked>Essonne <input type="checkbox" name="DEPT[]" value="92" checked>Hauts-de-Seine </p><p class="cellule3"><input type="checkbox" name="DEPT[]" value="93" checked>Seine-Saint-Denis <input type="checkbox" name="DEPT[]" value="94" checked> Val-de-Marne <input type="checkbox" name="DEPT[]" value="95" checked>Val-d\'Oise</p>';
	}
	if(val==13){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="10" checked>Aude <input type="checkbox" name="DEPT[]" value="30" checked>Gard <input type="checkbox" name="DEPT[]" value="34" checked>Hérault <input type="checkbox" name="DEPT[]" value="48" checked>Lozère <input type="checkbox" name="DEPT[]" value="66" checked>Pyrénées-Orientales</p>';
	}
	if(val==14){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="19" checked>Corrèze <input type="checkbox" name="DEPT[]" value="23" checked>Creuse <input type="checkbox" name="DEPT[]" value="87" checked>Haute-Vienne </p>';
	}
	if(val==15){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="54" checked>Meurthe-et-Moselle <input type="checkbox" name="DEPT[]" value="55" checked>Meuse <input type="checkbox" name="DEPT[]" value="57" checked>Moselle <input type="checkbox" name="DEPT[]" value="88" checked>Vosges </p>';
	}
	if(val==16){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="9" checked>Ariège <input type="checkbox" name="DEPT[]" value="12" checked>Aveyron <input type="checkbox" name="DEPT[]" value="31" checked>Haute-Garonne <input type="checkbox" name="DEPT[]" value="32" checked>Gers <input type="checkbox" name="DEPT[]" value="46" checked>Lot <input type="checkbox" name="DEPT[]" value="65" checked>Hautes-Pyrénées </p><p class="cellule3"><input type="checkbox" name="DEPT[]" value="81" checked>Tarn <input type="checkbox" name="DEPT[]" value="82" checked>Tarn-et-Garonne</p>';
	}
	if(val==17){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="59" checked>Nord <input type="checkbox" name="DEPT[]" value="62" checked>Pas-de-Calais</p>';
	}
	if(val==18){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="44" checked>Loire-Atlantique<input type="checkbox" name="DEPT[]" value="49" checked>Maine-et-Loire <input type="checkbox" name="DEPT[]" value="53" checked>Mayenne <input type="checkbox" name="DEPT[]" value="72" checked>Sarthe <input type="checkbox" name="DEPT[]" value="82" checked>Vendée</p>';
	}
	if(val==19){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="2" checked>Aisne <input type="checkbox" name="DEPT[]" value="60" checked>Oise <input type="checkbox" name="DEPT[]" value="80" checked>Somme </p>';
	}
	if(val==20){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="16" checked>Charente <input type="checkbox" name="DEPT[]" value="17" checked>Charente-Maritime <input type="checkbox" name="DEPT[]" value="79" checked>Deux Sèvres <input type="checkbox" name="DEPT[]" value="86" checked>Vienne </p>';
	}
	if(val==21){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="4" checked>Alpes-de-Haute-Provence<input type="checkbox" name="DEPT[]" value="5" checked>Hautes-Alpes<input type="checkbox" name="DEPT[]" value="6" checked>Alpes-Maritimes</p><p class="cellule3"><input type="checkbox" name="DEPT[]" value="13" checked>Bouches-du-Rhône<input type="checkbox" name="DEPT[]" value="83" checked>Var <input type="checkbox" name="DEPT[]" value="84" checked>Vaucluse</p>';
	}
	if(val==22){
		select_departement='<p class="cellule2"><span class="gras">Département : </span><input type="checkbox" name="DEPT[]" value="1" checked>Ain<input type="checkbox" name="DEPT[]" value="7" checked>Ardèche <input type="checkbox" name="DEPT[]" value="26" checked>Drôme <input type="checkbox" name="DEPT[]" value="38" checked>Isère <input type="checkbox" name="DEPT[]" value="42" checked>Loire <input type="checkbox" name="DEPT[]" value="69" checked>Rhône <input type="checkbox" name="DEPT[]" value="73" checked>Savoie <input type="checkbox" name="DEPT[]" value="74" checked>Haute-Savoie</p>';
	}
	document.getElementById('depart').innerHTML = select_departement;	
}
//---------Recherche changement couleur de fond-------------------------------

function Color_ov(cellule) {
  cellule.style.backgroundColor = '#DDDDDD';
}
function Color_ou(cellule) {
  cellule.style.backgroundColor = '#FFFFFF';
}
function Color_ov3(cellule) {
  cellule.style.backgroundColor = '#DDDDDD';
}
function Color_ou3(cellule) {
 cellule.style.backgroundColor = '#FFE0CC';
}

function Color_ov2(cellule) {
  cellule.style.backgroundColor = '#DDDDDD';
}
function Color_ou2(cellule) {
 cellule.style.backgroundColor = '#FFE0CC';
}


function verif_test_recherche(){
	/*if(document.recherche_express.CATEGORIE.selectedIndex==0 && document.recherche_express.MOTCLE.value==""){
		alert("Vous devez selectionner une catégorie de métier");
		return false;
	}*/
	
}

//----------------------------------------------------------------------------
function select_metier(val_metier,formu){
	
	if(formu==1){
		if(val_metier.length==1){
			window.location="recherche-offre-emploi.php?"+document.trie_metier.URL.value+"00"+val_metier+"";
		}
		else if(val_metier.length==2){
				window.location="recherche-offre-emploi.php?"+document.trie_metier.URL.value+"0"+val_metier+"";
		
		}
		else if(val_metier.length==3){
			window.location="recherche-offre-emploi.php?"+document.trie_metier.URL.value+val_metier+"";
		}
	}
	if(formu==2){
		if(val_metier.length==1){
			window.location="recherche-offre-emploi.php?"+document.trie_metier1.URL.value+"00"+val_metier+"";
		}
		else if(val_metier.length==2){
			window.location="recherche-offre-emploi.php?"+document.trie_metier1.URL.value+"0"+val_metier+"";
		}
		else if(val_metier.length==3){
			window.location="recherche-offre-emploi.php?"+document.trie_metier1.URL.value+val_metier+"";
		}
	}
	
}

function changement_liste(val){
	if(val==1){
		document.candidat_monparcours.formation2.selectedIndex=0;
		document.candidat_monparcours.formation3.selectedIndex=0;
		document.candidat_monparcours.formation4.selectedIndex=0;
		document.candidat_monparcours.formation5.selectedIndex=0;
		document.candidat_monparcours.DIPLOME.disabled=true;
		document.candidat_monparcours.DIPLOME.value='renseigné';
	}
	else if(val==2){
		document.candidat_monparcours.formation1.selectedIndex=0;
		document.candidat_monparcours.formation3.selectedIndex=0;
		document.candidat_monparcours.formation4.selectedIndex=0;
		document.candidat_monparcours.formation5.selectedIndex=0;
		document.candidat_monparcours.DIPLOME.disabled=true;
		document.candidat_monparcours.DIPLOME.value='renseigné';

	}
	else if(val==3){
		document.candidat_monparcours.formation1.selectedIndex=0;
		document.candidat_monparcours.formation2.selectedIndex=0;
		document.candidat_monparcours.formation4.selectedIndex=0;
		document.candidat_monparcours.formation5.selectedIndex=0;
		document.candidat_monparcours.DIPLOME.disabled=false;
		if(document.candidat_monparcours.DIPLOME.value=="renseigné"){
			document.candidat_monparcours.DIPLOME.value=""
		}
		
	}
	else if(val==4){
		document.candidat_monparcours.formation1.selectedIndex=0;
		document.candidat_monparcours.formation2.selectedIndex=0;
		document.candidat_monparcours.formation3.selectedIndex=0;
		document.candidat_monparcours.formation5.selectedIndex=0;

		document.candidat_monparcours.DIPLOME.disabled=false;
		if(document.candidat_monparcours.DIPLOME.value=="renseigné"){
			document.candidat_monparcours.DIPLOME.value=""
		}
	}
	else if(val==5){
		document.candidat_monparcours.formation1.selectedIndex=0;
		document.candidat_monparcours.formation2.selectedIndex=0;
		document.candidat_monparcours.formation3.selectedIndex=0;
		document.candidat_monparcours.formation4.selectedIndex=0;
		document.candidat_monparcours.DIPLOME.disabled=false;
		if(document.candidat_monparcours.DIPLOME.value=="renseigné"){
			document.candidat_monparcours.DIPLOME.value=""
		}
	}
	else{
		document.candidat_monparcours.formation2.selectedIndex=0;
		document.candidat_monparcours.formation3.selectedIndex=0;
		document.candidat_monparcours.formation4.selectedIndex=0;
		document.candidat_monparcours.formation5.selectedIndex=0;
	}
	document.candidat_monparcours.idecole.value=val;
}

function test_nb_region(){
	//alert(document.forms.candidat_moncompte.REGION.length);
	
	/*
	var nbselect = 0;
	var i = 0;
	var last_select;
		for(i=0;i<=document.forms.candidat_moncompte.REGION.length-1;i++){
			if(document.forms.candidat_moncompte.REGION.options[i].selected == true){
			nbselect = nbselect+1;
				if(nbselect >= 6){
				document.forms.candidat_moncompte.REGION.options[i].selected = false;
				alert("Vous ne pouvez sélectionner que 5 régions.");
				}
			}
		}*/
}

function test_nb_fonction(){
	/*var nbselect = 0;
	var i = 0;
	var last_select;
		for(i=0;i<=document.forms.candidat_moncompte.FONCTION.length-1;i++){
			if(document.forms.candidat_moncompte.FONCTION.options[i].selected == true){
			nbselect = nbselect+1;
				if(nbselect >= 6){
				document.forms.candidat_moncompte.FONCTION.options[i].selected = false;
				alert("Vous ne pouvez sélectionner que 5 fonctions.");
				}
			}
		}*/
}
function affich_metier_alerte(val){
	window.document.getElementById("id1").style.display='none';
	window.document.getElementById("id2").style.display='none';
	window.document.getElementById("id3").style.display='none';
	window.document.getElementById("id4").style.display='none';
	window.document.getElementById("id5").style.display='none';
	window.document.getElementById("id6").style.display='none';
	window.document.getElementById("id7").style.display='none';
	window.document.getElementById("id8").style.display='none';
	
	if(val==0){
		document.getElementById("id1").style.display='';
		document.candidat_email_nw.select_metier.value=0;
		window.document.candidat_email_nw.METIER1.selectedIndex=0;
		window.document.candidat_email_nw.METIER2.selectedIndex=0;
		window.document.candidat_email_nw.METIER3.selectedIndex=0;
		window.document.candidat_email_nw.METIER4.selectedIndex=0;
		window.document.candidat_email_nw.METIER5.selectedIndex=0;
		window.document.candidat_email_nw.METIER6.selectedIndex=0;
		window.document.candidat_email_nw.METIER7.selectedIndex=0;
		window.document.candidat_email_nw.METIER8.selectedIndex=0;
	}
	
	if(val==1){
		document.getElementById("id1").style.display='';
		document.candidat_email_nw.select_metier.value=1;
		window.document.candidat_email_nw.METIER2.selectedIndex=0;
		window.document.candidat_email_nw.METIER3.selectedIndex=0;
		window.document.candidat_email_nw.METIER4.selectedIndex=0;
		window.document.candidat_email_nw.METIER5.selectedIndex=0;
		window.document.candidat_email_nw.METIER6.selectedIndex=0;
		window.document.candidat_email_nw.METIER7.selectedIndex=0;
		window.document.candidat_email_nw.METIER8.selectedIndex=0;
	}
	if(val==2){
		document.getElementById("id2").style.display='';
		document.candidat_email_nw.select_metier.value=2;
		window.document.candidat_email_nw.METIER1.selectedIndex=0;
		window.document.candidat_email_nw.METIER3.selectedIndex=0;
		window.document.candidat_email_nw.METIER4.selectedIndex=0;
		window.document.candidat_email_nw.METIER5.selectedIndex=0;
		window.document.candidat_email_nw.METIER6.selectedIndex=0;
		window.document.candidat_email_nw.METIER7.selectedIndex=0;
		window.document.candidat_email_nw.METIER8.selectedIndex=0;
	}
	if(val==3){
		document.getElementById("id3").style.display='';
		document.candidat_email_nw.select_metier.value=3;
		window.document.candidat_email_nw.METIER1.selectedIndex=0;
		window.document.candidat_email_nw.METIER2.selectedIndex=0;
		window.document.candidat_email_nw.METIER4.selectedIndex=0;
		window.document.candidat_email_nw.METIER5.selectedIndex=0;
		window.document.candidat_email_nw.METIER6.selectedIndex=0;
		window.document.candidat_email_nw.METIER7.selectedIndex=0;
		window.document.candidat_email_nw.METIER8.selectedIndex=0;
	}
	if(val==4){
		document.getElementById("id4").style.display='';
		document.candidat_email_nw.select_metier.value=4;
		window.document.candidat_email_nw.METIER1.selectedIndex=0;
		window.document.candidat_email_nw.METIER2.selectedIndex=0;
		window.document.candidat_email_nw.METIER3.selectedIndex=0;
		window.document.candidat_email_nw.METIER5.selectedIndex=0;
		window.document.candidat_email_nw.METIER6.selectedIndex=0;
		window.document.candidat_email_nw.METIER7.selectedIndex=0;
		window.document.candidat_email_nw.METIER8.selectedIndex=0;
	}
	if(val==5){
		document.getElementById("id5").style.display='';
		document.candidat_email_nw.select_metier.value=5;
		window.document.candidat_email_nw.METIER1.selectedIndex=0;
		window.document.candidat_email_nw.METIER2.selectedIndex=0;
		window.document.candidat_email_nw.METIER3.selectedIndex=0;
		window.document.candidat_email_nw.METIER4.selectedIndex=0;
		window.document.candidat_email_nw.METIER6.selectedIndex=0;
		window.document.candidat_email_nw.METIER7.selectedIndex=0;
		window.document.candidat_email_nw.METIER8.selectedIndex=0;
	}
	if(val==6){
		document.getElementById("id6").style.display='';
		document.candidat_email_nw.select_metier.value=6;
		window.document.candidat_email_nw.METIER1.selectedIndex=0;
		window.document.candidat_email_nw.METIER2.selectedIndex=0;
		window.document.candidat_email_nw.METIER3.selectedIndex=0;
		window.document.candidat_email_nw.METIER4.selectedIndex=0;
		window.document.candidat_email_nw.METIER5.selectedIndex=0;
		window.document.candidat_email_nw.METIER7.selectedIndex=0;
		window.document.candidat_email_nw.METIER8.selectedIndex=0;
	}
	if(val==7){
		document.getElementById("id7").style.display='';
		document.candidat_email_nw.select_metier.value=7;
		window.document.candidat_email_nw.METIER1.selectedIndex=0;
		window.document.candidat_email_nw.METIER2.selectedIndex=0;
		window.document.candidat_email_nw.METIER3.selectedIndex=0;
		window.document.candidat_email_nw.METIER4.selectedIndex=0;
		window.document.candidat_email_nw.METIER5.selectedIndex=0;
		window.document.candidat_email_nw.METIER6.selectedIndex=0;
		window.document.candidat_email_nw.METIER8.selectedIndex=0;
	}
	if(val==8){
		document.getElementById("id8").style.display='';
		document.candidat_email_nw.select_metier.value=8;
		window.document.candidat_email_nw.METIER1.selectedIndex=0;
		window.document.candidat_email_nw.METIER2.selectedIndex=0;
		window.document.candidat_email_nw.METIER3.selectedIndex=0;
		window.document.candidat_email_nw.METIER4.selectedIndex=0;
		window.document.candidat_email_nw.METIER5.selectedIndex=0;
		window.document.candidat_email_nw.METIER6.selectedIndex=0;
		window.document.candidat_email_nw.METIER7.selectedIndex=0;
	}
	
}
function verrou(val){
	if(val==1){
		document.recruteuroffre.POSTE[0].checked=true;
		document.recruteuroffre.POSTE[1].checked=false;
		document.recruteuroffre.ETRANGERVILLE.disabled=true;
		document.recruteuroffre.pays_.disabled=true;
		//document.recruteuroffre.ETRANGERPAYS.disabled=true;
		document.recruteuroffre.VILLE.disabled=false;
		document.recruteuroffre.FRANCENTIERE.disabled=false;
		if(document.recruteuroffre.FRANCENTIERE.checked==true){
			document.recruteuroffre.DEPARTEMENT.disabled=true;
		}
		else{
			document.recruteuroffre.DEPARTEMENT.disabled=false;
		}	
	}
	else{
		document.recruteuroffre.POSTE[0].checked=false;
		document.recruteuroffre.POSTE[1].checked=true;
		document.recruteuroffre.ETRANGERVILLE.disabled=false;
		//document.recruteuroffre.ETRANGERPAYS.disabled=false;

		document.recruteuroffre.pays_.disabled=false;

		document.recruteuroffre.VILLE.disabled=true;
	
			document.recruteuroffre.DEPARTEMENT.disabled=true;
		
		document.recruteuroffre.FRANCENTIERE.disabled=true;
	}
	
}

function visible(val){

	window.document.getElementById("amenagement").style.display='none';
	window.document.getElementById("architecture").style.display='none';
	window.document.getElementById("batiment").style.display='none';
	window.document.getElementById("environnement").style.display='none';
	window.document.getElementById("immobilier").style.display='none';
	window.document.getElementById("genie").style.display='none';
	window.document.getElementById("ingenierie").style.display='none';
	window.document.getElementById("energie").style.display='none';

	if(val==1){
		window.document.getElementById("amenagement").style.display='';
	}
	if(val==2){window.document.getElementById("architecture").style.display='';}
	if(val==3){window.document.getElementById("batiment").style.display='';}
	if(val==4){window.document.getElementById("environnement").style.display='';}
	if(val==5){window.document.getElementById("immobilier").style.display='';}
	if(val==6){window.document.getElementById("genie").style.display='';}
	if(val==7){window.document.getElementById("ingenierie").style.display='';}
	if(val==8){window.document.getElementById("energie").style.display='';}

}

function newwin(destination,largeur,hauteur){
	newfen=window.open(destination,"newfen","width="+largeur+",height="+hauteur+",menubar=0,status=0,location=0,scrollbars=yes,resizable=yes,screenX=0,screenY=0");
}
//espace recruteur
function ouv(val){
window.open("recruteur-annonce.php?id="+val,"popup","scrollbars=yes,width=1000, height=800");
}


function contrat_express(val){

	//alert("io");
	/*if(document.recherche_express.CONTRAT[0].checked=="" && document.recherche_express.CONTRAT[1].checked=="" && document.recherche_express.CONTRAT[2].checked=="" && document.recherche_express.CONTRAT[3].checked=="" && document.recherche_express.CONTRAT[4].checked==""){

		document.recherche_express.CONTRAT[3].checked=true;

	}

	else{*/
	
		if(val==1){

			document.recherche_express.CONTRAT6.checked="";

			document.recherche_express.CONTRAT5.checked="";

		}

		else if(val==2){
			document.recherche_express.CONTRAT2.checked="";
			document.recherche_express.CONTRAT3.checked="";
			document.recherche_express.CONTRAT4.checked="";
			document.recherche_express.CONTRAT6.checked="";
		}

		else if(val==3){
			document.recherche_express.CONTRAT2.checked="";
			document.recherche_express.CONTRAT3.checked="";
			document.recherche_express.CONTRAT4.checked="";
			document.recherche_express.CONTRAT5.checked="";	

		}

	//}

}

function metier_express(val){
	var nbselect = 0;
	var i = 0;
	var last_select;
	
	document.recherche_express.tempo_metier.value="";
	tempo_option="";
	
	if(val==0){
		for(i=0;i<=document.recherche_express.METIER.length-1;i++){

			if(document.recherche_express.METIER.options[i].selected == true){
				if(nbselect >= 5){
					document.recherche_express.METIER.options[i].selected = false;
					alert("Vous ne pouvez sélectionner que 5 fonctions.");
				}
				else{
					document.recherche_express.tempo_metier.value+=document.recherche_express.METIER.options[i].value+"-"
					nbselect = nbselect+1;
				}
			}
		}
	}
	if(val==1){
		
		for(i=0;i<=document.recherche_express.METIER1.length-1;i++){

			if(document.recherche_express.METIER1.options[i].selected == true){
				if(nbselect >= 5){
					document.recherche_express.METIER1.options[i].selected = false;
					alert("Vous ne pouvez sélectionner que 5 fonctions.");
				}
				else{
					document.recherche_express.tempo_metier.value+=document.recherche_express.METIER1.options[i].value+"-"
					nbselect = nbselect+1;
				}
			}
		}
	}
	if(val==2){
		for(i=0;i<=document.recherche_express.METIER2.length-1;i++){

			if(document.recherche_express.METIER2.options[i].selected == true){
				if(nbselect >= 5){
					document.recherche_express.METIER2.options[i].selected = false;
					alert("Vous ne pouvez sélectionner que 5 fonctions.");
				}
				else{
					document.recherche_express.tempo_metier.value+=document.recherche_express.METIER2.options[i].value+"-"
					nbselect = nbselect+1;
				}
			}
		}
	}
	if(val==3){
		for(i=0;i<=document.recherche_express.METIER3.length-1;i++){

			if(document.recherche_express.METIER3.options[i].selected == true){
				if(nbselect >= 5){
					document.recherche_express.METIER3.options[i].selected = false;
					alert("Vous ne pouvez sélectionner que 5 fonctions.");
				}
				else{
					document.recherche_express.tempo_metier.value+=document.recherche_express.METIER3.options[i].value+"-"
					nbselect = nbselect+1;
				}
			}
		}
	}
	if(val==4){
		for(i=0;i<=document.recherche_express.METIER4.length-1;i++){

			if(document.recherche_express.METIER4.options[i].selected == true){
				if(nbselect >= 5){
					document.recherche_express.METIER4.options[i].selected = false;
					alert("Vous ne pouvez sélectionner que 5 fonctions.");
				}
				else{
					document.recherche_express.tempo_metier.value+=document.recherche_express.METIER4.options[i].value+"-"
					nbselect = nbselect+1;
				}
			}
		}
	}
	if(val==5){
		for(i=0;i<=document.recherche_express.METIER5.length-1;i++){

			if(document.recherche_express.METIER5.options[i].selected == true){
				if(nbselect >= 5){
					document.recherche_express.METIER5.options[i].selected = false;
					alert("Vous ne pouvez sélectionner que 5 fonctions.");
				}
				else{
					document.recherche_express.tempo_metier.value+=document.recherche_express.METIER5.options[i].value+"-"
					nbselect = nbselect+1;
				}
			}
		}
	}
	if(val==6){
		for(i=0;i<=document.recherche_express.METIER6.length-1;i++){

			if(document.recherche_express.METIER6.options[i].selected == true){
				if(nbselect >= 5){
					document.recherche_express.METIER6.options[i].selected = false;
					alert("Vous ne pouvez sélectionner que 5 fonctions.");
				}
				else{
					document.recherche_express.tempo_metier.value+=document.recherche_express.METIER6.options[i].value+"-"
					nbselect = nbselect+1;
				}
			}
		}
	}
	if(val==7){
		for(i=0;i<=document.recherche_express.METIER7.length-1;i++){

			if(document.recherche_express.METIER7.options[i].selected == true){
				if(nbselect >= 5){
					document.recherche_express.METIER7.options[i].selected = false;
					alert("Vous ne pouvez sélectionner que 5 fonctions.");
				}
				else{
					document.recherche_express.tempo_metier.value+=document.recherche_express.METIER7.options[i].value+"-"
					nbselect = nbselect+1;
				}
			}
		}
	}
	if(val==8){
		for(i=0;i<=document.recherche_express.METIER8.length-1;i++){

			if(document.recherche_express.METIER8.options[i].selected == true){
				if(nbselect >= 5){
					document.recherche_express.METIER8.options[i].selected = false;
					alert("Vous ne pouvez sélectionner que 5 fonctions.");
				}
				else{
					document.recherche_express.tempo_metier.value+=document.recherche_express.METIER8.options[i].value+"-"
					nbselect = nbselect+1;
				}
			}
		}
	}
	//document.recherche_express.tempo_metier.value=document.recherche_express.tempo_metier.value.substring(0,document.recherche_express.tempo_metier.value.length-1);
//alert(document.recherche_express.tempo_metier.value);
}

function express_cle(val){
	if(val==1){
		window.document.getElementById("express").style.display='';
		window.document.getElementById("cle").style.display='none';
	}
	else{
		window.document.getElementById("express").style.display='none';
		window.document.getElementById("cle").style.display='';
	}
}

//----------------------Evite un double clique pour les flashs pour IE----------------------------
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;



 var requete = null;
   function creerRequete() {
     try {
       requete = new XMLHttpRequest();
     } catch (essaimicrosoft) {
       try {
         requete = new ActiveXObject("Msxml2.XMLHTTP");
       } catch (autremicrosoft) {
         try {
           requete = new ActiveXObject("Microsoft.XMLHTTP");
         } catch (echec) {
           requete = null;
         }
       }
     }

     if (requete == null)
       alert("Impossible de créer l'objet requête!");
   }

function ajax_moteur(val){
    creerRequete();
     var url = "http://www.carriere-industrie.com/include/ajax/formulaire_critere.php?critere="+val;
	requete.open("GET", url, true);
     requete.onreadystatechange = actualiserPage;
     requete.send(null);
}

  function actualiserPage() {
   if (requete.readyState == 4) {
      var nouveauTotal = requete.responseText;
   }
}
//--------------------------------------------------------------------------------------------------------------------------------------------

function verifMotcle(MOTCLE) {
     if(MOTCLE.length>3){
		creerRequete();
		 var url = "http://www.carriere-industrie.com/include/ajax/motcle.php?motcle="+MOTCLE+"&bidon="+new Date().getTime();
	     requete.open("GET", url, true);
	     requete.onreadystatechange = motcle_affich;
	     requete.send(null);
	 }
	 else{
		document.getElementById('all_table').style.display='none';

	 }
  }
  function motcle_affich(){
	if (requete.readyState == 4){
		var resp_result = requete.responseText;
		if(resp_result!="" && resp_result!=1){
			document.getElementById('all_table').style.display='';
			document.getElementById('all_table').innerHTML = resp_result;
			document.getElementById('recherche_img').style.display='none';
			document.getElementById('recherche_img5').style.display='';
		}
		else{
		document.getElementById('all_table').style.display='none';
		}
		
	}
  }
  
  function ferm_aide_mot_cle(){
  	document.getElementById('recherche_img').style.display='';
	document.getElementById('all_table').style.display='none';
	document.getElementById('recherche_img5').style.display='none';
  }

  
  
  
  
  

  
var mouvement1;

//arret du scroll
function kill(){
	clearTimeout(mouvement1);
}


function scroll_f(nb){

	if(nb>0) {
		x = parseInt(document.getElementById("texte12").style.top)+nb;

		if(x>0){
			x = parseInt(document.getElementById("texte12").style.top);
			kill();	
		}
		else{
			document.getElementById("texte12").style.top=x+"px";
			mouvement1=setTimeout('scroll_f(7)',100);	
		}	
	}
	else {
		x = parseInt(document.getElementById("texte12").style.top)+nb;
		if(x>-parseInt(document.getElementById("texte12").style.height)+78){
			document.getElementById("texte12").style.top=x+"px";
			mouvement1=setTimeout('scroll_f(-7)',100);
		}
		else{
			x = parseInt(document.getElementById("texte12").style.top);
			kill();
		}
	}

}
//------------------------Flux rss------------------------------------------------------------
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function part_tag_flux(val,choix,nb_div){
	for(j=0;j<nb_div;j++){
		if(val.substr(4,1)==1){
			document.getElementById("met_am_"+j).style.display='none';
		}
		else if(val.substr(4,1)==2){
			document.getElementById("met_ar_"+j).style.display='none';
		}
		else if(val.substr(4,1)==3){
			document.getElementById("met_ba_"+j).style.display='none';
		}
		else if(val.substr(4,1)==4){
			document.getElementById("met_en_"+j).style.display='none';
		}
		else if(val.substr(4,1)==5){
			document.getElementById("met_ev_"+j).style.display='none';
		}
		else if(val.substr(4,1)==6){
			document.getElementById("met_ge_"+j).style.display='none';
		}
		else if(val.substr(4,1)==7){
			document.getElementById("met_im_"+j).style.display='none';
		}
		else if(val.substr(4,1)==8){
			document.getElementById("met_in_"+j).style.display='none';
		}
	}

	
	if(choix==3){
		for(j=0;j<nb_div;j++){
			if(val.substr(0,7)=="met_am_"){
				document.getElementById("met_am_"+j).style.display='none';
			}
			else if(val.substr(0,7)=="met_ar_"){
				document.getElementById("met_ar_"+j).style.display='none';
			}
			else if(val.substr(0,7)=="met_ba_"){
				document.getElementById("met_ba_"+j).style.display='none';
			}
			else if(val.substr(0,7)=="met_en_"){
				document.getElementById("met_en_"+j).style.display='none';
			}
			else if(val.substr(0,7)=="met_ev_"){
				document.getElementById("met_ev_"+j).style.display='none';
			}
			else if(val.substr(0,7)=="met_ge_"){
				document.getElementById("met_ge_"+j).style.display='none';
			}
			else if(val.substr(0,7)=="met_im_"){
				document.getElementById("met_im_"+j).style.display='none';
			}
			else if(val.substr(0,7)=="met_in_"){
				document.getElementById("met_in_"+j).style.display='none';
			}
		}
	}
	
	
	for(j=0;j<9;j++){
		if(j!=val.substr(4,1)){
			document.getElementById("all_"+j).style.display='none';
		}
	}
	
	if(choix!=3){
		for(j=1;j<9;j++){
			if(j!=val.substr(4,1)){
				document.getElementById("sec_"+j).style.display='none';
			}
		}
	}
	
	
	if(document.getElementById(val).style.display==''){
		document.getElementById(val).style.display='none';	
	}
	else{
		document.getElementById(val).style.display='';
	}
}
//--------------------------------------------------------------------------------------------------------------------------------------------------------
function moteur_ftp_extract(val){
	if(val==0){
		if(document.recruteuroffre.CARRIEREBTP.checked==false){
			document.recruteuroffre.OPTIONCARRIERE.checked=false;
			document.recruteuroffre.KELJOB.checked=false;
		}
	}
	else{
		if(document.recruteuroffre.OPTIONCARRIERE.checked==true || document.recruteuroffre.KELJOB.checked==true){
			document.recruteuroffre.CARRIEREBTP.checked=true;	
		}
	}
}
