// JavaScript Document
 var intCount = 0;
 var remplacant = '«';
  var remplacant_plus = '»';

            //-Fonction d'ajout d'entrées principales-------------------------
            function DynamicMenu_addParent(strName,strURL) {
				var strID = 'P_' + strName.replace('&','').replace(';',''); 
				if (strURL=='') {
                	var strTemp = '<DIV ID="' + strID + '" CLASS="menu_parent"';
                	strTemp += ' onClick="expandCollapse(this);">';
                	strTemp += '<IMG src="http://www.cfar.org/4DBin/img/fleche_left.gif" Height="10">';
                	strTemp += '&nbsp;' + strName;
                	strTemp += '<DIV STYLE="display: none" CLASS="menu_child"></DIV>';
                	strTemp += '</DIV>';

               	 	this.div.innerHTML += strTemp;
                	this.currentChild = document.getElementById(strID);
				} else {
					 var strTemp = '<DIV CLASS="menu_parent"'
					 		 + ' onClick="cancelBubble(arguments[0]);">' 
							+ '<IMG src="http://www.cfar.org/4DBin/img/fleche_left.gif" Height="10">'
							+' <a CLASS="menu_parent2" HREF="javascript:parent_direct(\'' + strURL + '\');"> '
							+strName 
							+ '</a></DIV>'
						    +'<DIV STYLE="display: none" CLASS="menu_child"></DIV>'
						    + '</DIV>';
                	this.div.innerHTML += strTemp;
                	this.currentChild = document.getElementById(strID);
				}
            }

			function parent_direct(url){
				document.cookie = "Id_lien="; 
				document.cookie = "Id_lien_parent="; 
				document.cookie = "compteur=0"; 
				document.location.href = url;
			}

            //-Fonction d'ajout des sous entrées principales-------------------------
            function DynamicMenu_addSousParent(strName) {
                var strID = 'S_' + strName.replace('&','').replace(';',''); 
                var strTemp = '<DIV ID="' + strID + '" CLASS="menu_sousparent"';
                strTemp += ' onClick="expandCollapse(this);">';
                strTemp += '<IMG src="http://www.cfar.org/4DBin/img/fleche_left.gif" Height="10">';
                strTemp += '&nbsp;' + strName;
                strTemp += '<DIV STYLE="display: none" CLASS="menu_souschild"></DIV>';
                strTemp += '</DIV>';

                if (document.all) {
                    this.currentChild.children[1].innerHTML += strTemp;
                } else {
                    this.currentChild.childNodes[2].innerHTML += strTemp;
                }

                this.currentChild = document.getElementById(strID);
            }
			
			
			 //-Fonction d'ajout d'un frere a une sous entré-------------------------
            function DynamicMenu_addFrere(strName,strName2) {
                var strID = 'S_' + strName.replace('&','').replace(';',''); 
                var strTemp = '<DIV ID="' + strID + '" CLASS="menu_sousparent"';
                strTemp += ' onClick="expandCollapse(this);">';
                strTemp += '<IMG src="http://www.cfar.org/4DBin/img/fleche_left.gif" Height="10">';
                strTemp += '&nbsp;'+ strName;
                strTemp += '<DIV STYLE="display: none" CLASS="menu_souschild"></DIV>';
                strTemp += '</DIV>';

				this.currentChild=document.getElementById(strName2)
                if (document.all) {
                    this.currentChild.children[1].innerHTML += strTemp;
                } else {
                    this.currentChild.childNodes[2].innerHTML += strTemp;
                }

                this.currentChild = document.getElementById(strID);
            }

			
			

            //-Fonction d'ajout de liens dans le menu-------------------------
            function DynamicMenu_addChild(strName,strURL,p3) {
				if(p3==1){
					var strTemp = '<A CLASS="menu_child" '
                            + ' onClick="'+strURL+';">' 
                            + strName + '</A><BR>';
				}else{
					var strTemp = '<A CLASS="menu_child" HREF="' + strURL + '"'
                            + ' onClick="cancelBubble(arguments[0]);">' 
                            + strName + '</A><BR>';
					}

                if (document.all) {
                    this.currentChild.children[1].innerHTML += strTemp;
                } else {
                    this.currentChild.childNodes[2].innerHTML += strTemp;
                }
            }

            //-inhibe la cascade d'évènements au DIV conteneur----------------
            function cancelBubble(netEvent) {
                if (document.all) {
                    window.event.cancelBubble = true;
                } else {
                    netEvent.cancelBubble = true;
                }
            }

            //-Contracte ou expanse le menu-----------------------------------
            function expandCollapse(objElement) {
				var strId = objElement.id;
				//alert(strId);
				if (intCount == 0) {
	                if (document.all) {
	                    var imgIcon = objElement.children[0];
	                    objElement = objElement.children[1];
	                } else {
	                    var imgIcon = objElement.childNodes[0];
	                    objElement = objElement.childNodes[2];
	                }    
	
	                if (objElement.style.display == "none") {  
	                    objElement.style.display = "block" ;
	                    imgIcon.src = "http://www.cfar.org/4DBin/img/fleche_bottom.gif" ;
	                } else {
	                    objElement.style.display = "none" ;
	                    imgIcon.src = "http://www.cfar.org/4DBin/img/fleche_left.gif" ;
	                }
				}

				if (strId.substring(0,1) == 'S') {
					intCount = 1;
				}

				if (strId.substring(0,1) == 'P' && intCount == 1) {
					intCount = 0;
				}

				var tmp2=getCookieInfo("compteur");
				if(tmp2!='1'){
					document.cookie = "Id_lien="+strId; 
				}
				else{
					document.cookie = "Id_lien_parent="+strId; 
				}
				document.cookie = "compteur="+intCount; 
			}



            //-Contracte ou expanse le menu-----------------------------------
            function expandCollapsebyId(objElementid) {
				var objElement=document.getElementById(objElementid); 
				expandCollapse(objElement);
            }

			
			function getCookieInfo(dataName)
			{
				 var cookieLen = dataName.length;
				 var cookieData = document.cookie;
				 var allcookieLen = cookieData.length;
			
				 var i = 0;
				 var cookieEnd;
			
				 while(i < allcookieLen)
				 {
					  var j = i + cookieLen;
					  if (cookieData.substring(i,j) == dataName)
					  {
						   cookieEnd = cookieData.indexOf(";", j);
						   if (cookieEnd == -1)
						   {
								cookieEnd = cookieData.length;
						   }
						  return unescape(cookieData.substring(j+1, cookieEnd))
					 }
					 i++;
				 }
			return "Echec : cookie non cree ?";
			
			}


            //-Fonction de création de menu dynamique------------------------- 
            function DynamicMenu(strName) {
                //var id = "Menu" + intCount++;
                var id = strName;
                document.write('<DIV Id="' + id + '"></DIV>');

                this.div = document.getElementById(id);
                this.currentChild = null;

                this.addParent = DynamicMenu_addParent;
                this.addSousParent = DynamicMenu_addSousParent;
				this.addFrere = DynamicMenu_addFrere;
                this.addChild = DynamicMenu_addChild;
            }



            //-Fonction de création de l'url pour l'identification et redirection
            function create_url() {
                var url = 'https://bdd.cfar.org/4DMETHOD/identification_web/'+document.ident.login.value+'/'+document.ident.password.value;
				
						//ajout du 18/01/07
			url = Remplace(url  ,'?',' ') ; 
			url = Remplace(url  ,'é','e') ; 
			url = Remplace(url  ,'è','e') ; 
			url = Remplace(url  ,'à','a') ; 
			url = Remplace(url  ,'ù','u') ; 
			url = Remplace(url  ,'ô','o') ; 			
			url = Remplace(url  ,'\'',' ') ; 							
			url = Remplace(url  ,'#',' ');
			url = Remplace(url  ,'@',' ');
			url = Remplace(url  ,':','&&&&');
			url = Remplace(url  ,'%',' ');
			url = Remplace(url  ,'https&&&&//','https://');
			url = Remplace(url  ,'http&&&&//','http://');
			url = Remplace(url  ,'&&&&',' ');
			// fin d'ajout ***********************************
				document.location.href = url;
            }			
			 //-Fonction de création de l'url avec le numero de process Web 4D
            function create_url_for_contexte_4D(strUrl){
                var url = strUrl;
				var tmp2 = getCookieInfo("num_process");
				url += "/%23%23";
				url += tmp2;
				document.location.href = url;
			}
				
				
            //-Fonction de chaine pour recherche base docu
            function create_url_recherche_docu() {
                var url = "http://bdd.cfar.org/4DMETHOD/resultat_recherche_base_docu/Web_MotCle1=";
				url += document.recherche.Web_MotCle1.value;
				url += "&Web_MotCle2=";
				url += document.recherche.Web_MotCle2.value;
				url += "&Web_MotCle3=";
				url += document.recherche.Web_MotCle3.value;
				url += "&deb=";
				url += document.recherche.deb.value;
				url += "&fin=";
				url += document.recherche.fin.value;
				url += "&cache=";
				url += document.recherche.cache.value;
				url = Remplace(url,'é','e');
				document.location.href = url;
            }
			
			function Remplace(expr,a,b) {  // source, obselete, nouvelle
				var i=0
				while (i!=-1) {
					i=expr.indexOf(a,i);
					if (i>=0) {
						expr=expr.substring(0,i)+b+expr.substring(i+a.length);
						i+=b.length;
					}
				}
				return expr
			}
			   
			function create_url_valid_mail(){
				if(isValidEmail(document.mail.email.value)==true){
				var url = 'https://bdd.cfar.org/4DMETHOD/valide_changer_mail/'+document.mail.email.value;
				var tmp2 = getCookieInfo("num_process");
				url += "/%23%23";
				url += tmp2;				
				//alert(url);
				document.location.href = url;
				}
				else{
					alert("L'adresse mel n'est pas valide.");
				}
			}
			
			function isValidEmail(str) {
				return (str.indexOf("@") > 0);
			}
			

			function cmplt_ufc_individuelle(){
				var tmp = document.add_ufc.annee.value;
				tmp += "/" + document.add_ufc.lr.checked ; 
				tmp += "/" + document.add_ufc.ll.checked ; 
				//tmp += "/" + document.add_ufc.av.checked ; 
				//tmp += "/" + document.add_ufc.vh.checked ; 
				//tmp += "/" + document.add_ufc.pe.checked ; 
				//tmp += "/" + document.add_ufc.tic.checked ; 
				//tmp += "/" + document.add_ufc.rs.checked ; 
				//tmp += "/" + document.add_ufc.rd.checked ; 
				//tmp += "/" + document.add_ufc.ri.checked ; 
				tmp += "/" + document.add_ufc.cd.checked ; 
				return tmp;
			}
			
			function cmplt_eval_fmc(){
				var tmp = document.eval_fmc.num_accredit.value;
				tmp += "/" + document.eval_fmc.c1.value; 
				tmp += "/" + document.eval_fmc.c2.value ; 
				tmp += "/" + document.eval_fmc.c3.value ; 
				tmp += "/" + document.eval_fmc.c4.value ; 
				tmp += "/" + document.eval_fmc.c5.value ; 
				tmp += "/" + document.eval_fmc.c6.value ; 
				tmp += "/" + document.eval_fmc.c7.checked ; 
				tmp += "/" + document.eval_fmc.c8.checked ; 
				tmp += "/" + document.eval_fmc.c9.checked ; 
				tmp += "/" + document.eval_fmc.c10.checked ; 
				tmp += "/" + document.eval_fmc.c11.checked ; 
//				var tmp2 = escape(document.eval_fmc.c12.value); 
				
				var tmp2 = Remplace(document.eval_fmc.c12.value,'\n'," "); 
				tmp2 = Remplace(tmp2,'?'," ") ; 

				tmp += "/%23" + tmp2;
				return escape(tmp);
			}


			 function expandMeFaq(strid) {
				 var strid2 = "Q_"+strid;
				objElement = document.getElementById(strid2);
					                if (objElement.style.display == "none") {  
	                    objElement.style.display = "block" ;
	            } else {
	                    objElement.style.display = "none" ;
	             }
				 
				 var strid2 = "R_"+strid;				 
				objElement = document.getElementById(strid2);
					                if (objElement.style.display == "none") {  
	                    objElement.style.display = "block" ;
	            } else {
	                    objElement.style.display = "none" ;
	             }
				 
				 var strid2 = "D1_"+strid;				 
				objElement = document.getElementById(strid2);
					                if (objElement.style.display == "none") {  
	                    objElement.style.display = "block" ;
	            } else {
	                    objElement.style.display = "none" ;
	             }
				 
				 var strid2 = "D2_"+strid;				 
				objElement = document.getElementById(strid2);
					                if (objElement.style.display == "none") {  
	                    objElement.style.display = "block" ;
	            } else {
	                    objElement.style.display = "none" ;
	             }			 
			}
			
			
            function get_url_for_contexte_4D(strUrl) {
                var url = strUrl;
				var tmp2=getCookieInfo("num_process");
				url += "/%23%23";
				url += tmp2;
				return url;
            }
			
			function go_to_liste_epp(){
				var url = get_url_for_contexte_4D("http://bdd.cfar.org/4DMETHOD/liste_programmes_epp");
				document.location.href = url;
			}
			
			function go_to_faq(){
				var url = get_url_for_contexte_4D("http://bdd.cfar.org/4DMETHOD/to_faq/1");
				document.location.href = url;
			}
			
			function Go_to_pdf_referentiel(num_prog, type_pdf){
				var url = "http://bdd.cfar.org/4DACTION/meth_referentiel/"+num_prog+"/"+type_pdf;
				window.open(url);
			}
			
			function ident_epp(){
				var url = "https://bdd.cfar.org/4DMETHOD/identifier_dans_epp/"+document.ident_epp.login.value+"/"+document.ident_epp.password.value+"/"+document.ident_epp.prog.value;
				document.location.href = url;
			}
			
			function cmplt_creation_epp(num_dossier){
				if(document.creer_contrat_epp.aff_etab.value=="" | document.creer_contrat_epp.aff_service.value=="" | document.creer_contrat_epp.finess.value==""  | document.creer_contrat_epp.type_action.value == "Votre choix svp")
				{
					alert("Veuillez renseigner les zones obligatoires.");
				}
				else{
					
					var tmp = Remplace(document.creer_contrat_epp.aff_etab.value,'é','é');
					tmp += "/" + Remplace(Remplace(Remplace(document.creer_contrat_epp.aff_service.value ,'é','é'),'/',remplacant),'+',remplacant_plus); 
					//tmp += "/" + document.creer_contrat_epp.aff_tel.value ; 
					//tmp += "/" + document.creer_contrat_epp.aff_fax.value ; 
					tmp += "/" + document.creer_contrat_epp.v2.checked ; 
					tmp += "/" + Remplace(Remplace(Remplace(document.creer_contrat_epp.type_action.value,'é','é'),'/',remplacant),'+',remplacant_plus); 
					tmp += "/" + Remplace(Remplace(Remplace(document.creer_contrat_epp.finess.value,'é','é'),'/',remplacant),'+',remplacant_plus); 
					
					//choix multiple :critere
					var selectione=""; 
					for (i=0; i<document.creer_contrat_epp.critere_choix.options.length; i++) { 
						if (document.creer_contrat_epp.critere_choix.options[i].selected ) { 
							selectione = selectione+"/"+Remplace(Remplace(Remplace(document.creer_contrat_epp.critere_choix.options[i].text,'é','é'),'/',remplacant),'+',remplacant_plus);	  
						} 
					} 
	//				return tmp+selectione;
					
		// ajout purge caractère chiant de l url*********
				/*tmp = Remplace(tmp ,'?','µµµµµ') ; 
				tmp = Remplace(tmp ,'#','~~~~~');
				tmp = Remplace(tmp ,':','&&&&');
				tmp = Remplace(tmp ,'%','§§§§§');
				tmp = Remplace(tmp ,'https&&&&//','https://');
				tmp = Remplace(tmp ,'http&&&&//','http://');*/
				// fin d'ajout ***********************************
			
												//ajout du 18/01/07
			// ajout purge caractère chiant de l url*********
				/*selectione = Remplace(selectione ,'?','µµµµµ') ; 
				selectione = Remplace(selectione ,'#','~~~~~');
				selectione = Remplace(selectione ,':','&&&&');
				selectione = Remplace(selectione ,'%','§§§§§');
				selectione = Remplace(selectione ,'https&&&&//','https://');
				selectione = Remplace(selectione ,'http&&&&//','http://');*/
				// fin d'ajout ***********************************
			
					tmp = escape(tmp);
					selectione = escape(selectione);			
					
					//selectione  = Remplace(Remplace(Remplace(selectione,'\n','|'),'/',remplacant),'+',remplacant_plus);		
					//tmp = Remplace(Remplace(Remplace(tmp,'\n','|'),'/',remplacant),'+',remplacant_plus);		
					
					var url = create_url_for_contexte_4D("https://bdd.cfar.org/4DMETHOD/creer_contrat_engagement_epp/"+num_dossier+"/"+tmp+selectione);
					//document.location.href = url;
					
					
					
					
					/*var tmp = escape(document.creer_contrat_epp.aff_etab.value);
					tmp += "/" + escape(document.creer_contrat_epp.aff_service.value) ; 
					//tmp += "/" + document.creer_contrat_epp.aff_tel.value ; 
					//tmp += "/" + document.creer_contrat_epp.aff_fax.value ; 
					tmp += "/" + document.creer_contrat_epp.v2.checked ; 
					tmp += "/" + escape(document.creer_contrat_epp.type_action.value); 
					
					//choix multiple :critere
					var selectione=""; 
					for (i=0; i<document.creer_contrat_epp.critere_choix.options.length; i++) { 
						if (document.creer_contrat_epp.critere_choix.options[i].selected ) { 
							selectione = selectione+"/"+escape(document.creer_contrat_epp.critere_choix.options[i].text);  
						} 
					} 
	//				return tmp+selectione;
					
					var url = create_url_for_contexte_4D("https://bdd.cfar.org/4DMETHOD/creer_contrat_engagement_epp/"+num_dossier+"/"+tmp+selectione);
					//document.location.href = url;*/
				}
			}
			
			
			
			
			
			function cmplt_completer_dossier(){
				 var remplacant = '«';
 				 var remplacant_plus = '»';
				
				var tmp = Remplace(Remplace(document.complete.date_deb.value,'/','-'),'\n','|');
				tmp += '/' + Remplace(Remplace(document.complete.date_fin.value,'/','-'),'\n','|'); 

//				tmp += '/' + Remplace(Remplace(Remplace(document.complete.raison_choix_thema.value,'ééé','e'),'\n','|'),'/',' ');
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.raison_choix_thema.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.organisation.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.resultats_obtenus.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.analyses_forts.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.analyses_faibles.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.amelioration_mise_oeuvre.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.modalites_suivi.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.actions_communication.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.implication_perso.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
				
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.apport_1_com.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
				//notation 1
				var notation_1 = "0";
				if(document.complete.pratiques_1.checked == true) notation_1 = "1";
				if(document.complete.pratiques_2.checked == true) notation_1 = "2";
				if(document.complete.pratiques_3.checked == true) notation_1 = "3";
				if(document.complete.pratiques_4.checked == true) notation_1 = "4";
				if(document.complete.pratiques_5.checked == true) notation_1 = "5";
				tmp += '/' + notation_1;
				
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.apport_2_com.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
				//notation 2
				var notation_2 = "0";
				if(document.complete.orga_soins_1.checked == true) notation_2 = "1";
				if(document.complete.orga_soins_2.checked == true) notation_2 = "2";
				if(document.complete.orga_soins_3.checked == true) notation_2 = "3";
				if(document.complete.orga_soins_4.checked == true) notation_2 = "4";
				if(document.complete.orga_soins_5.checked == true) notation_2 = "5";
				tmp += '/' + notation_2;
				
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.apport_3_com.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
				//notation 3
				var notation_3 = "0";
				if(document.complete.utilite_1.checked == true) notation_3 = "1";
				if(document.complete.utilite_2.checked == true) notation_3 = "2";
				if(document.complete.utilite_3.checked == true) notation_3 = "3";
				if(document.complete.utilite_4.checked == true) notation_3 = "4";
				if(document.complete.utilite_5.checked == true) notation_3 = "5";
				tmp += '/' + notation_3;
				
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.points_satisfaction.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.difficultes_rencontrees.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
				tmp += '/' + Remplace(Remplace(Remplace(document.complete.ameliorations_possibles.value,'\n','|'),'/',remplacant),'+',remplacant_plus);				

				// ajout purge caractère chiant de l url*********
				/*tmp = Remplace(tmp ,'?','µµµµµ') ; 
				tmp = Remplace(tmp ,'#','~~~~~');
				tmp = Remplace(tmp ,':','&&&&');
				tmp = Remplace(tmp ,'%','§§§§§');
				tmp = Remplace(tmp ,'https&&&&//','https://');
				tmp = Remplace(tmp ,'http&&&&//','http://');*/
				// fin d'ajout ***********************************

				/*
				raison_choix_thema
				organisation
				resultats_obtenus
				analyses_forts
				analyses_faibles
				amelioration_mise_oeuvre
				modalites_suivi
				actions_communication
				implication_perso
				apport_1_com
				pratiques
				apport_2_com
				orga_soins
				apport_3_com
				utilite
				
				points_satisfaction
				difficultes_rencontrees
				ameliorations_possibles
				*/
				var resultat = escape(tmp);
				//alert(tmp);
				return resultat;
			}
			
			function surveille(touche){
				if(touche==13){
					document.ident.submit();
				}
			}

		function cmplt_completer_evaluation(){
			var tmp ='';
			// les notes
			tmp = tmp + document.evaluation.note_1.value ;
			tmp = tmp + '/' + document.evaluation.note_2.value ;
			tmp = tmp + '/' + document.evaluation.note_3.value ;
			tmp = tmp + '/' + document.evaluation.note_4.value ;
			tmp = tmp + '/' + document.evaluation.note_5.value ;
			tmp = tmp + '/' + document.evaluation.note_6.value ;
			tmp = tmp + '/' + document.evaluation.note_7.value ;
			tmp = tmp + '/' + document.evaluation.note_8.value ;
			tmp = tmp + '/' + document.evaluation.note_9.value ;
			tmp = tmp + '/' + document.evaluation.note_10.value ;
			// les coches
			tmp = tmp + '/' + document.evaluation.reco_2.checked ;
			tmp = tmp + '/' + document.evaluation.reco_3.checked ;
			tmp = tmp + '/' + document.evaluation.reco_4.checked ;
			tmp = tmp + '/' + document.evaluation.reco_5.checked ;
			tmp = tmp + '/' + document.evaluation.reco_6.checked ;
			tmp = tmp + '/' + document.evaluation.reco_7.checked ;
			tmp = tmp + '/' + document.evaluation.reco_8.checked ;
			tmp = tmp + '/' + document.evaluation.reco_9.checked ;
			// les textarea
			tmp += '/' + Remplace(Remplace(Remplace(document.evaluation.comm.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
			tmp += '/' + Remplace(Remplace(Remplace(document.evaluation.reco.value,'\n','|'),'/',remplacant),'+',remplacant_plus);			
			tmp += '/' + Remplace(Remplace(Remplace(document.evaluation.renseig.value,'\n','|'),'/',remplacant),'+',remplacant_plus);
			return tmp;
		}

		function goto_recherche_site(){
			//var url = "http://bdd.cfar.org/4DMETHOD/rechercher_sur_site/"+escape(document.ma_recherche.recherche.value);
			var url = "http://bdd.cfar.org/4DMETHOD/rechercher_sur_site/"+(document.ma_recherche.recherche.value);
								
					//ajout du 18/01/07
			url = Remplace(url  ,'?',' ') ; 
			url = Remplace(url  ,'é','e') ; 
			url = Remplace(url  ,'è','e') ; 
			url = Remplace(url  ,'à','a') ; 
			url = Remplace(url  ,'ù','u') ; 
			url = Remplace(url  ,'ô','o') ; 			
			url = Remplace(url  ,'\'',' ') ; 						
			url = Remplace(url  ,'#',' ');
			url = Remplace(url  ,'@',' ');
			url = Remplace(url  ,':','&&&&');
			url = Remplace(url  ,'%',' ');
			url = Remplace(url  ,'https&&&&//','https://');
			url = Remplace(url  ,'http&&&&//','http://');
			url = Remplace(url  ,'&&&&',' ');
			// fin d'ajout ***********************************
									
			document.location.href = url;
			
		}




		function goto_valid_evaluation(){
			var passe = 1;
			
			if ((ev.exerce_prive.checked||ev.exerce_public.checked||ev.exerce_CHU.checked||ev.exerce_nonchu.checked||ev.exerce_psph.checked||ev.exerce_militaire.checked)&& (ev.activite_anesthesie.checked||ev.activite_reanimation.checked||ev.activite_urgences.checked||ev.activite_douleur.checked||ev.activite_autre.checked)&& (ev.nba_formation.checked||ev.nba_moins10.checked||ev.nba_10a20.checked||ev.nba_plus20.checked)&& (ev.typesession_atelier.checked||ev.typesession_stage.checked||ev.typesession_club.checked||ev.typesession_simulateurs.checked||ev.typesession_conference.checked||ev.typesession_debats.checked||ev.typesession_autre.checked)){
				//rien de plus
			}
			else{
				passe=0;
			}
			




			if((ev.connaissances[0].checked)|(ev.connaissances[1].checked)|(ev.connaissances[2].checked)|(ev.connaissances[3].checked)){
								
			}
			else{
				passe=0;
			}			
			

			if((ev.donnees[0].checked)|(ev.donnees[1].checked)|(ev.donnees[2].checked)|(ev.donnees[3].checked)){
								
			}
			else{
				passe=0;
			}


			if((ev.objectifs[0].checked)|(ev.objectifs[1].checked)|(ev.objectifs[2].checked)|(ev.objectifs[3].checked)){
								
			}
			else{
				passe=0;
			}


			if((ev.documents[0].checked)|(ev.documents[1].checked)|(ev.documents[2].checked)|(ev.documents[3].checked)){
								
			}
			else{
				passe=0;
			}


			if((ev.support[0].checked)|(ev.support[1].checked)|(ev.support[2].checked)|(ev.support[3].checked)){
								
			}
			else{
				passe=0;
			}


			if((ev.interet[0].checked)|(ev.interet[1].checked)|(ev.interet[2].checked)|(ev.interet[3].checked)){
								
			}
			else{
				passe=0;
			}


			if((ev.pratique[0].checked)|(ev.pratique[1].checked)|(ev.pratique[2].checked)|(ev.pratique[3].checked)){
								
			}
			else{
				passe=0;
			}



			if((ev.interact[0].checked)|(ev.interact[1].checked)|(ev.interact[2].checked)|(ev.interact[3].checked)){
								
			}
			else{
				passe=0;
			}



			if (passe==1){
				ev.submit();
			}
			else {
				alert('Veuillez renseigner les zones obligatoires.');
			}
		}



		 function expandMeCalendrier(strid) {
				 
				 var strid2 = "D2_"+strid;				 
				objElement = document.getElementById(strid2);
					                if (objElement.style.display == "none") {  
	                    objElement.style.display = "block" ;
	            } else {
	                    objElement.style.display = "none" ;
	             }			 
			}