function afficherZoneRechercheAvancee(){var tabParam=new Array(1);tabParam[0]="userID##"+oUtilCnx.id();var oRetour=SYS_service("advancedSearch",tabParam);finirRenduFormRech(oRetour);dernierServiceParams="advancedSearch[!]advancedSearch";}function ajouterRegleRecherche(){modifRegle('ajouterRegle',0,0,'selectionnerContenu','');}function modifRegle(operation,numRegle,numCond,nomAttr,valAttr){var recharge=false;if (nomAttr=="action"){if (valAttr==""){if (confirm(donneLex(501))){operation="supprimerRegle";recharge=true;} else {return ;}} else if ((valAttr=="selectionnerMessage")||(valAttr=="selectionnerAnnonce")||(valAttr=="selectionnerBlog")){changerChoixAction("Message","Contenu",numRegle);} else {changerChoixAction("Contenu","Message",numRegle);}}if ((operation=="ajouterRegle")||(operation=="ajouterCondition")||(operation=="supprimerCondition")){recharge=true;}if (nomAttr=="nomCond"){if ((valAttr.indexOf("objectiveMeasureG")>=0)||(valAttr.indexOf("objectiveMeasureL")>=0)){afficheEnLigne("seuilCond"+numRegle+numCond)} else {PF_masquerDiv("seuilCond"+numRegle+numCond)}if (valAttr.indexOf("date")==0){PF_masquerDiv("refobjCond"+numRegle+numCond);PF_masquerDiv("refparcCond"+numRegle+numCond);afficheEnLigne("selecteurDate"+numRegle+numCond);}}if (nomAttr=="seuil"){if (valAttr!=""){valAttr=valAttr/100;}}if (nomAttr=="nomChamp"){var choixOpChamp=PF_donneObjet("choixOpChamp"+numRegle+numCond);if (choixOpChamp!=null){if (valAttr=="vMos_lang"){choixOpChamp.value="champCommence";PF_masquerDiv("champvaleurCond"+numRegle+numCond);afficheEnLigne("sellangue"+numRegle+numCond);} else {choixOpChamp.value="champContient";PF_masquerDiv("sellangue"+numRegle+numCond);afficheEnLigne("champvaleurCond"+numRegle+numCond);}}}var tabParam=new Array(6);tabParam[0]="userID##"+oUtilCnx.id();tabParam[1]="operation##"+operation;tabParam[2]="numRegle##"+numRegle;tabParam[3]="numCond##"+numCond;tabParam[4]="nomAttr##"+nomAttr;tabParam[5]="valAttr##"+valAttr.replace(/&/g,"&amp;");var oRetour=SYS_service("advancedSearch",tabParam);if (recharge){finirRenduFormRech(oRetour);}historyStorage.put(dhtmlHistory.getCurrentLocation()+"cacheHTML",oZoneContenu.innerHTML)}function finirRenduFormRech(oRetour){oRetour.setAttribute("langUtil",LANGUE);IU_renduXSL(oRetour.firstChild,"rechercheForm","STY_zoneContenu");var zoneContenu=PF_donneObjet("STY_zoneContenu");var lessel=zoneContenu.getElementsByTagName("option");for (var i=0;i<lessel.length;i++){if (lessel.item(i).className=="choixTailleko"){var opt=lessel.item(i);opt.text=tailleEnKO(opt.value);}}}function sujetCondition(numReg,numCond,val){if ((val=="")&&(numCond>1)){return modifRegle("supprimerCondition",numReg,numCond,"","");}var idt=numReg+""+numCond;PF_masquerDiv("selChampCond"+idt);PF_masquerDiv("selInscritCond"+idt);PF_masquerDiv("selDateCond"+idt);PF_masquerDiv("selecteurDate"+idt);PF_masquerDiv("seldifficulte"+idt);PF_masquerDiv("seltMime"+idt);PF_masquerDiv("seltaille"+idt);PF_masquerDiv("sellangue"+idt);PF_masquerDiv("seltypeContenu"+idt);PF_masquerDiv("seltempsEstime"+idt);PF_masquerDiv("valeurChampCond"+idt);/*PF_donneObjet("champvaleurCond"+idt).value="";*/if (val=="objectif"){afficheEnLigne("refobjCond"+idt);var obj=PF_donneObjet("selObjCond"+idt);obj.style.display="";} else if (val=="parcours"){afficheEnLigne("refparcCond"+idt);var obj=PF_donneObjet("selParcCond"+idt);obj.style.display="";} else if (val=="champ"){afficheEnLigne("selChampCond"+idt);} else if (val=="utilisateur"){afficheEnLigne("selInscritCond"+idt);afficheEnLigne("refparcCond"+idt);afficheEnLigne("refgroupeCond"+idt);} else if (val=="toujours"){modifRegle("attrCondition",numReg,numCond,"nomCond","always");} else {if (val=="dateAccesMD"){val="dateAcces";}var selChampCond=PF_donneObjet("selChampCond"+idt);selChampCond.style.display="";afficheEnLigne("sel"+val+idt);modifRegle("attrCondition",numReg,numCond,"nomChamp",val);if (val=="titre"||val=="description"||val=="motsCles"||val=="auteur"||val=="catalogue"||val=="objectifP"||val=="objet"||val=="contenu"||val=="nomExp"||val=="href"){afficheEnLigne("valeurChampCond"+idt);}if (val.indexOf("date")==0){afficheEnLigne("selDateCond"+idt);}}}function basculeCombinatoire(oLien0,numReg){var txt=oLien0.innerHTML;var nLex=137;var combine="un";if (txt.indexOf(donneLex(137))>=0){combine="tous";nLex=138;}for (var i=2;i<11;i++){var pos=i+1;PF_modifTexteDiv("lienCombinatoire"+numReg+i,donneLex(nLex));}modifRegle("attrRegle",numReg,0,"combine",combine);}function afficheEnLigne(lid){var obj=PF_donneObjet(lid);if (obj!=null){obj.style.display="";}}function tailleEnKO(octets){var nbMega=Math.floor(octets/1048576);var restant=octets%1048576;var nbKilo=Math.floor(restant/1024);var unite=" MB";var virg=".";if (LANGUE.substring(0,2)=="fr"){virg=",";unite=" Mo";}var divOctet=1048576;if (octets<divOctet){divOctet=1024;unite=" KB";if (LANGUE.substring(0,2)=="fr"){unite=" Ko";}}var nbMega=new String(octets/divOctet);var indVirg=nbMega.indexOf(".");if (indVirg>0){var apresVirg=nbMega.substring(indVirg+1);if (apresVirg.length>2){apresVirg=apresVirg.substring(0,2);}nbMega=nbMega.substring(0,indVirg)+virg+apresVirg;}return nbMega+unite;}function lanceRecherche(numReg){window.focus();setTimeout("lanceRechercheTM("+numReg+")",300);}function lanceRechercheTM(numReg){historiseZC();deselectionneService();lienServiceCourant=PF_donneObjet("liensearchRule/"+numReg);if (lienServiceCourant!=null){lienServiceCourant.className="STY_lienPlanAction STY_lienPlanActionSel";}setTimeout("serviceRechercheAvancee("+numReg+")",600);}function serviceRechercheAvancee(numReg){var tabParam=initTabParam();var param1="";var oServ=donneServicePlan("advancedSearch");if (oServ!=null){param1=PF_attr(oServ,"items");}if (param1==""){param1=attrInter("itemsRR");}ajTParam(tabParam,"itemCount",param1);ajTParam(tabParam,"ruleID",numReg);var oLien=PF_donneObjet("liensearchRule/"+numReg);titreListeFuture=donneLex(106);if (oLien!=null){titreListeFuture=oLien.innerHTML;}descriptionListeFuture=donneLex(106);vraiNomService="ruleSearch";lanceEtAfficheService("ruleSearch",tabParam);}function changerChoixAction(aff,cache,numRegle){for (var i=1;i<7;i++){PF_masquerDiv("choixAction"+cache+numRegle+i);afficheEnLigne("choixAction"+aff+numRegle+i);}}function envoiMessage(){var txtsujet="";var obj=PF_donneObjet("cpsujet");if (obj){txtsujet=masqueEnXml(obj.value);}var sujetRequis=false;var idRepf=paramRetour(conserveObjMessagerie,"subjectID");var idArticle=paramRetour(conserveObjMessagerie,"announcementID");if (idArticle=="" && idRepf==""){sujetRequis=true;}if (sujetRequis && txtsujet==""){alert(donneLex(244));return ;}var objm=PF_donneObjet("cpmessage");if (objm.value.replace(/\s/g,"")==""){alert(donneLex(392));return ;}var tabParam=initTabParam();if (idArticle!=""){var numForum=paramRetour(conserveObjMessagerie,"blogID");if (numForum==""){numForum="0";}ajTParam(tabParam,"forumID",numForum);ajTParam(tabParam,"replyID","ann:"+idArticle);} else {ajTParam(tabParam,"replyID",idRepf);ajTParam(tabParam,"forumID",paramRetour(conserveObjMessagerie,"forumID"));}ajTParam(tabParam,"subject",txtsujet);if (objm.value.length>4000){var msgTL="The text is too long (4000 car max)";if (LANGUE=="fr"){msgTL="Le texte est trop long (4000 car. max)";}return alert(msgTL);}ajTParam(tabParam,"message",masqueEnXml(objm.value));ajTParam(tabParam,"userFirstName",valProfil("firstName"));ajTParam(tabParam,"userLastName",valProfil("lastName"));if (paramRetour(conserveObjMessagerie,"mustApproveComments")=="true" && paramRetour(conserveObjMessagerie,"canEditBlog")!="true"){ajTParam(tabParam,"mustApproveComments","true");}var oRetour=SYS_service("postMessageForum",tabParam);var resREt=XML_texteNoeud(oRetour);if (resREt=="OK"){objetCourant=conserveObjMessagerie;if (idArticle!=""){var oInfoEnvoie=PF_donneObjet("divInfoEnvoiCmt");oInfoEnvoie.innerHTML=donneLex(490);PF_donneObjet("cpmessage").value="";/*lanceDetailAnnonce();var oSujet=PF_donneObjet("barreZbAjoutCmt");if (oSujet!=null){oSujet.scrollIntoView();}*/} else if (idRepf==""){IU_actionObjet("voirSujetsForum");} else {IU_actionObjet("voirSujetForum");var memoDefilZC=PF_attr(conserveObjMessagerie,"memoDefilZC");if (memoDefilZC!=""){reappliquerDefilZC(memoDefilZC);}}}}function enleveEspaceZTMsg(){var cpmessage=PF_donneObjet("cpmessage");if (cpmessage!=null){cpmessage.value="";}}function soumettreEntree(evt){var oEvt=window.event;if (estMoz){oEvt=evt;}if (oEvt.keyCode==13){connecter();}}function proposeEditProfil(tedit){objSelCourant=null;deselectionneService();var zoneContenu=PF_donneObjet("STY_zoneContenu");var numlexTitre;resH="<div class=\"STY_divEditionProfil\">";var tpres="";var mpExpire=false;var ajoutExpire="";var ajCssCnx="";var ajCssCnxChamp="";if (tedit=="motDePasseExpire"){if (zoneContenu==null){zoneContenu=PF_donneObjet("STY_formCnx");}ajoutExpire="<br><b>"+donneLex(506)+"</b><br><br><br>";tedit="motDePasse";mpExpire=true;ajCssCnx=" STY_titreMpCnx";ajCssCnxChamp=" STY_champProfilCnx";resH="<div class=\"STY_divEditionProfil STY_divEditionProfilCnx\">";}if (tedit=="motDePasse"){numlexTitre=3;resH+=ajoutExpire+donneLex(582)+donneLex(19)+"<br/><input type=\"password\" id=\"cp"+tedit+"\" class=\"STY_champProfil"+ajCssCnxChamp+"\"><br/>";resH+=donneLex(8)+"<br/><input type=\"password\" id=\"cpnvmotpasse\" class=\"STY_champProfil"+ajCssCnxChamp+"\"><br/>";resH+=donneLex(465)+donneLex(19)+"<br/><input type=\"password\" id=\"cpmpconfirm\" class=\"STY_champProfil"+ajCssCnxChamp+"\">";}if (tedit=="changeCourriel"){numlexTitre=6;resH+=donneLex(13)+"<br/><input id=\"cp"+tedit+"\" value=\""+valProfil("email")+"\" class=\"STY_champProfil\">";}if (tedit=="renommerDossierPerso"){numlexTitre=201;resH+=donneLex(202)+"<br/><input id=\"cp"+tedit+"\" value=\""+valProfil("myFolderName")+"\" class=\"STY_champProfil\">";}resH+="<br/><br/><button class=\"STY_btnEnvoiMsg\" onclick=\"modifProfil('"+tedit+"')\">"+donneLex(7)+"</button>";if (!mpExpire){resH+="&#160;<button class=\"STY_btnEnvoiMsg\" onclick=\"IU_service('myProfile')\">"+donneLex(55)+"</button><div id=\"STY_infoSauveProfil\" class=\"STY_infoSauveProfil\">&#160;</div>";}resH+="</div>";zoneContenu.innerHTML="<div class=\"STY_titreListeObj"+ajCssCnx+"\">"+donneLex(numlexTitre)+"</div>"+resH;PF_affecterAlt(zoneContenu);if (tedit=="motDePasse"||(tedit=="changeCourriel"&&valProfil("email")=="")||(tedit=="presentation"&&tpres=="")){setTimeout("PF_donneObjet('cp"+tedit+"').focus()",200);}}function donneTabEditProfil(lid,estCnx){var tab=new Array();if (CRYPTE_PROFIL){tab.push("userID##"+PF_crypte(lid));tab.push("isEncrypted##true");} else {tab.push("userID##"+lid);tab.push("isEncrypted##false");}if (estCnx){tab.push("connectionID##"+IU_donneNumCnx());}return tab;}function modifProfil(tedit,nomFich){var tabParam=donneTabEditProfil(oUtilCnx.id(),true);if (tedit=="motDePasse"){tabParam.push("fieldModified##password");var mpActuel=PF_donneObjet("cp"+tedit).value;var val=PF_donneObjet("cpnvmotpasse").value;if (!verifMotPasse(val)){return alert(donneLex(459));}if (mpActuel=="" || PF_donneObjet("cpmpconfirm").value!=val){return alert(donneLex(459));}if (doitChangerMotPasse!="" && doitChangerMotPasse==val){return alert(donneLex(459));}if (CRYPTE_PROFIL){val=PF_crypte(val);mpActuel=PF_crypte(mpActuel);}tabParam.push("fieldValue##"+val);tabParam.push("currentPassword##"+mpActuel);}if (tedit=="changeCourriel"){tabParam.push("fieldModified##email");var val=PF_donneObjet("cp"+tedit).value;val=val.replace(/\s/g,'');if ((val=="")||((val.indexOf('@')>0)&&(val.indexOf('.')>0))){tabParam.push("fieldValue##"+val);var oEmail=XML_fils(oProfil,"email");if (oEmail){XML_modifTexteNoeud(oEmail,val);}} else {alert(donneLex(14));return ;}}if (tedit=="presentation"){tabParam.push("fieldModified##introduction");tabParam.push("fieldValue##"+masqueEnXml(PF_donneObjet("cp"+tedit).value));}if (tedit=="renommerDossierPerso"){tabParam.push("fieldModified##dossierPerso");var val=masqueEnXml(PF_donneObjet("cp"+tedit).value);if (val.length>80){val=val.substring(0,80);}var oNomDoss=XML_fils(oProfil,"myFolderName");if (oNomDoss==null){oNomDoss=oProfil.ownerDocument.createElement("myFolderName");oProfil.appendChild(oNomDoss);}XML_modifTexteNoeud(oNomDoss,val);majDossierPerso(true);val=val.replace(/&/g,"&amp;");tabParam.push("fieldValue##"+val);}if (tedit=="imageProfil"){var val=PF_donneObjet("cp"+tedit).value;if (val!=""){var fich=val.toLowerCase();if ((fich.indexOf(".gif")>0)||(fich.indexOf(".png")>0)||(fich.indexOf(".jpg")>0)){return document.formulaire.submit();}}if (objImageProfil==null){return false;}var src=objImageProfil.src;src=src.substring(src.lastIndexOf("/")+1);tabParam.push("fieldModified##image");tabParam.push("fieldValue##gen/"+src);}if (tedit=="selectionParc"||tedit=="selectionRess"){tabParam.push("fieldModified##"+tedit);tabParam.push("fieldValue##"+nomFich);}if (tedit=="derniereConnexion"){tabParam.push("fieldModified##lastConnection");tabParam.push("fieldValue##"+nomFich);}var oRetour=SYS_service("updateUserProfile",tabParam);if (XML_texteNoeud(oRetour)=="true"){var ajdp="";if (doitChangerMotPasse!=""){ajdp="..";}PF_modifTexteDiv("STY_infoSauveProfil",donneLex(84)+ajdp);if (doitChangerMotPasse!=""){doitChangerMotPasse="";if (leBiscuit.mpk!=""){var nmp=PF_donneObjet("cp"+tedit).value;leBiscuit.mpk=PF_crypte(nmp);leBiscuit.enregistrer();}setTimeout(IU_accueil,2000);}} else if (XML_texteNoeud(oRetour)=="adminPwd"){alert("Sorry, you must change your password from the administrator interface.");} else if (XML_texteNoeud(oRetour)=="badCurrentPwd"){alert(donneLex(459));}}function toucheDansRechercheRapide(evt,nomServ,param1){var oEvt=window.event;if (estMoz){oEvt=evt;}if (oEvt.keyCode==13){IU_service(nomServ,param1);}if (oEvt.keyCode==8){evt.returnValue=true;evt.cancelBubble=true;try {evt.stopPropagation();evt.preventDefault();}catch(e){}}}var cookieExpiration=57000;function initBiscuit(){leBiscuit = new Biscuit();leBiscuit.init(this.document,"BiscuitIU5",cookieExpiration);leBiscuit.charger();if (leBiscuit.langue!=""){ LANGUE=leBiscuit.langue; } var param=donneParam("lang"); if (param!=''){ LANGUE=param; } else if (LANGUE==""){ try { if (navigator.appName.indexOf('Microsoft') != -1){LANGUE=navigator.userLanguage;} else {LANGUE=navigator.language;}LANGUE=LANGUE.substring(0,2);} catch(e){} } if (LANGUE==""){LANGUE='en';}leBiscuit.langue = LANGUE;var styPrm=donneParam("ui");if (styPrm!=''){STYLE_INTERFACE=styPrm;} else if (leBiscuit.derInterf!=""){STYLE_INTERFACE=leBiscuit.derInterf;}}function ajouterReglesPerso(objMD){var existe=XML_premierNoeud(objMD.documentElement,"searchRule");if (existe==null){for (var i=0;i<tabReglesPerso.length;i++){var tabP=tabReglesPerso[i].split("##");var obj=objMD.createElement("searchRule");obj.setAttribute("id",tabP[0]);obj.setAttribute("title",tabP[1]);objMD.documentElement.appendChild(obj);}var nomDossierPerso=valProfil("myFolderName");if (nomDossierPerso==""){nomDossierPerso=valProfil("firstName")+" "+valProfil("lastName");}objMD.documentElement.setAttribute("nomDossierPerso",nomDossierPerso);}}function initTabParam(){var tab=new Array;ajTParam(tab,"userID",oUtilCnx.id());ajTParam(tab,"connectionID",IU_donneNumCnx());ajTParam(tab,"userLanguage",LANGUE);ajTParam(tab,"interfaceName",STYLE_INTERFACE);if (optionStyleActive("bloquerObjetsRacine")){ajTParam(tab,"hideRootObjects","true");}return tab;}function ajoutContenuGNR(codeStage,site,action,params){var src=RACINE_MOS+"MosGnr/MosGnr.htm?stg="+codeStage+"&site="+site+"&ncnx="+IU_donneNumCnx()+"&roleMng=0001&actionIU="+action;var fen=window.open(src+params,"MosGnr"+codeStage,paramFenOutil());fen.focus();serviceAccesDoc(codeStage,"_accesAuteurGNR");}function paramFenOutil(){var ww = window.screen.availWidth-7;if (ww>1280){ww=1280;} var hh = window.screen.availHeight-56; var position="top=0,left=0";if (estMoz){position="left="+window.screen.availLeft+",top="+window.screen.availTop;}return "toolbar=no,menubar=no,scrollbar=no,resizable=yes,status=yes,width="+ww+",height="+hh+","+position;}function masqueEnXml(valM){valM=valM.replace(/&/g,"&amp;");valM=valM.replace(/</g,"&lt;");valM=valM.replace(/>/g,"&gt;");return valM;}function lanceDetailAnnonce(){deselectionneService();var lienExt=paramOC("link");if (lienExt!=""){return window.open(lienExt);}var tabParam=initTabParam();ajTParam(tabParam,"announcementID",paramOC("announcementID"));var nlex=395;if (paramOC("announcementType")=="article"){nlex=396;ajTParam(tabParam,"allowComments",paramOC("allowComments"));ajTParam(tabParam,"canEditBlog",paramOC("canEditBlog"));conserveObjMessagerie=objetCourant.cloneNode(true);}if (paramOC("fromArticlesList")=="true"){ajTParam(tabParam,"fromArticlesList","true");}var nserv="announcementDetail";if (paramOC("isInternalMail")=="true"){ajTParam(tabParam,"isInternalMail","true");nserv="messageItrnDetail";ajTParam(tabParam,"messageID",paramOC("messageID"));}titreListeFuture=donneLex(nlex);var titreA=paramOC("subject");titreListeFuture=titreListeFuture.replace("ANNOUNCEMENT_TITLE",titreA);titreListeFuture=titreListeFuture.replace("ARTICLE_TITLE",titreA);lanceEtAfficheService(nserv,tabParam);if (nlex==396){enleveEspaceZTMsg();}}function Biscuit(){this.$document;this.$name;this.$domain;this.$path;this.$secure;this.idUtil=''; this.mpk='';this.langue=''; this.derService=''; this.htq="";this.vueVign="";this.derInterf="";this.histRt="";this.init=BIS_init;this.charger=BIS_charger;this.enregistrer=BIS_enregistrer;}function BIS_init(document, name, hours, path, domain, secure) { this.$document = document; this.$name = name; if (hours) this.$expiration = new Date((new Date()).getTime() + hours*3600000); else this.$expiration = null; if (path) this.$path = path; else this.$path = null; if (domain) this.$domain = domain; else this.$domain = null; if (secure) this.$secure = true; else this.$secure = false;}function BIS_enregistrer(){if (cookieExpiration!=57000){this.$expiration=new Date((new Date()).getTime() + cookieExpiration*3600000);} var cookieval = ""; for(var prop in this) { if ((prop.charAt(0) == '$') || ((typeof this[prop]) == 'function')) continue; if (cookieval != "") cookieval += '&'; cookieval += prop + ':' + escape(this[prop]); } var cookie = this.$name + '=' + cookieval; if (this.$expiration) cookie += '; expires=' + this.$expiration.toGMTString(); if (this.$path) cookie += '; path=' + this.$path; if (this.$domain) cookie += '; domain=' + this.$domain; if (this.$secure) cookie += '; secure'; this.$document.cookie = cookie;}function BIS_charger(){ var allcookies = this.$document.cookie; if (allcookies == "") return false; var start = allcookies.indexOf(this.$name + '='); if (start == -1) return false; start += this.$name.length + 1; var end = allcookies.indexOf(';', start); if (end == -1) end = allcookies.length; var cookieval = allcookies.substring(start, end); var a = cookieval.split('&'); for(var i=0; i < a.length; i++) a[i] = a[i].split(':'); for(var i = 0; i < a.length; i++) { this[a[i][0]] = unescape(a[i][1]); } return true;}function donneTexteDiv(idObj){var obj=document.getElementById(idObj);if (obj!=null){return obj.innerHTML;}return "";}function razDefilement(){var obj=oZoneContenu;while (obj!=null){if (obj.scrollTop>0){obj.scrollTop=0;break;}obj=obj.parentNode;}if (appareilMobile){setTimeout("window.scrollTo(0,0)",200);}}function surObjet(obj){if (obj!=objSelCourant){obj.className=obj.className.replace("STY_objetListe","STY_objetListeDessus");}}function dehorsObjet(obj){if (obj!=objSelCourant){obj.className=obj.className.replace("STY_objetListeDessus","STY_objetListe");}}function masqueContext(){if (ctxAffiche){PF_masquerDiv("STY_menuContextAction");ctxAffiche=false;PF_masquerDiv("STY_ombreMenuCtxt");}}function hauteurContenuFenetre(){var hh;if (self.innerHeight){hh = self.innerHeight;} else if (document.documentElement && document.documentElement.clientHeight){hh = document.documentElement.clientHeight;}return hh;}function desactiveCtxt(event){masqueContext();if (event){if (event.ctrlKey&&event.altKey){return true;}event.returnValue=false;event.stopPropagation();}if (!event && window.event.ctrlKey&window.event.altKey){return true;}return false;}function valProfil(attr){return paramRetour(oProfil,attr);}function donneTypeObjet(obj){var tabClass=obj.id.split("$");return tabClass[0];}function messageErreurCnx(txm){var msgErreur=PF_donneObjet("STY_msgErreur");if (msgErreur!=null){if (txtAppelVC.indexOf("canSendPasswordByEmail")==0){var existeLienDirect=false;var lesa=document.getElementsByTagName("a");for (var n=0;n<lesa.length;n++){if (lesa[n].name=="FC_oubliMotPasse"){existeLienDirect=true;}}if (!existeLienDirect){txm+="<br/><a href=\"javascript:;\" onclick=\"envoiMPCourriel()\">"+donneLex(504)+"</a>";}}if (txtAppelVC.indexOf("accountDisabled")>=0){txm=donneLex(522);} else if (txtAppelVC.indexOf("reservedIP")>=0){txm=donneLex(530);} msgErreur.style.display="block";msgErreur.innerHTML=txm;} else if (txm!=""){alert(txm);}}function envoiMPCourriel(){var champNomCnx=PF_donneObjet("champNomCnx");var ltxt=envoiMotPasseC(champNomCnx.value);var msgErreur=PF_donneObjet("STY_msgErreur");if (msgErreur){msgErreur.innerHTML=ltxt;} else {alert(ltxt);}}function envoiMotPasseC(lid){var tabParam;if (txtAppelVC.indexOf("mustGenerateNewPassword")>0){tabParam=donneTabEditProfil(lid,false);tabParam.push("fieldModified##password");var val=genereMotPasse();if (CRYPTE_PROFIL){val=PF_crypte(val);}tabParam.push("fieldValue##"+val);tabParam.push("mustGenerateNewPassword##true");if (politiqueMotPasse!=""){ var tabP=politiqueMotPasse.split(","); if (tabP[5]=="true"){tabParam.push("clearPwDate##true");} }var oRetour=SYS_service("updateUserProfile",tabParam);if (XML_texteNoeud(oRetour)!="true"){return "Unable to set a new password. "+XML_texteNoeud(oRetour);}}tabParam=new Array();ajTParam(tabParam,"userID",lid);ajTParam(tabParam,"lang",LANGUE);oRetour=SYS_service("sendPassword",tabParam);var lret=XML_texteNoeud(oRetour);var ltxt=donneLex(427);if (lret!=""){ltxt=donneLex(505);ltxt=ltxt.replace("EMAIL",lret);}return ltxt;}function oubliMotPasse(){var fenf=window.open("aspx/fentr.aspx?ref=rdmpu","rdmpu","resizable=no,status=no,top="+Math.round(screen.height/7)+",left=85,width=400,height=160");fenf.focus();}function retirerService(id){var lienPerso=PF_donneObjet("lien"+id);if (lienPerso!=null){lienPerso.parentNode.removeChild(lienPerso);}}function ajouterFichierPerso(stg,grp){var fen=window.open(RACINE_MOS+"MosSrv/aspx/SRV_store.aspx?tAction=ajout&ncnx="+IU_donneNumCnx()+"&stg="+stg+"&grp="+grp,"fenstore","resizable=no,menubar=no,status=yes,location=no,width=500,height=250,left="+Math.round(window.screen.width/5)+",top="+Math.round(window.screen.height/5));fen.focus();}function typeOuverture(doc,dbclic,href){var attr="Parc";var act="CTX";if (dbclic){act="DB";}if (doc){attr="Doc";}var val=attrInter("ouv"+attr+act);if (val==""){val="fenetre";}if (doc && val!="interne"){var ext=href.substring(href.lastIndexOf(".")+1);if (ext=="zip" || ext=="msi" || ext=="mos" || ext=="exe"){val="interne";}}return val;}function tabletteIPad(){return navigator.userAgent.indexOf("WebKit")>0 && navigator.userAgent.indexOf("iPad")>0;}function IU_menuContext(obj,evt){var oObjet=selectionneObjetListe(obj);window.status='';var oEvt;var oDiv=PF_donneObjet('STY_menuContextAction');if (oDiv==null){return false;}premiereSelection=false;var posXTemp,posYTemp;if (estMoz){oEvt=evt;posXTemp=oEvt.clientX+3+window.pageXOffset;posYTemp=oEvt.clientY+3+window.pageYOffset;if (appareilMobile || tabletteIPad()){posXTemp=oEvt.clientX+3;posYTemp=oEvt.clientY+3;oDiv.style.position="fixed";window.onscroll=masqueContext;}oEvt.stopPropagation();} else {oEvt=window.event;window.event.cancelBubble=true;var oHTML=document.getElementsByTagName("html"); posYTemp= oEvt.clientY+oHTML.item(0).scrollTop+3; posXTemp=oEvt.clientX+3; } var lesliens=obj.getElementsByTagName("a"); if (lesliens.length>0){ var existeLnTitre=false; for (var n=0;n<lesliens.length;n++){ if (lesliens[n].className.indexOf("STY_lienTitreA")==0){existeLnTitre=true;break;} } if (existeLnTitre){ var cible=evt.target; if (!estMoz){cible=evt.srcElement;} var nbal=cible.nodeName.toLowerCase(); if (nbal!="a" && (nbal!="img" || cible.className!="STY_imgVignette")){ return true; } } }IU_renduXSL(oObjet,"GEN_listeActionsObjet","STY_menuContextAction");var oOmbre=PF_donneObjet("STY_ombreMenuCtxt");if (oDiv.innerHTML==""){oDiv.style.display="none";if (oOmbre!=null){oOmbre.style.display="none";}return false;} oDiv.style.left=posXTemp+"px";var pHaut=posYTemp;oDiv.style.top=posYTemp+"px";oDiv.style.height="auto";oDiv.style.width="auto";oDiv.style.display="block";if (!estMoz && !window.XMLHttpRequest){retablirLargeurLiensMenu(oDiv);}if ((hauteurContenuFenetre() - pHaut) < oDiv.offsetHeight){pHaut=pHaut-oDiv.offsetHeight;oDiv.style.top=pHaut+"px";}var decal=1;if (estMoz){decal=3;}if (oOmbre!=null){oOmbre.style.width=oDiv.offsetWidth+"px";oOmbre.style.height=oDiv.offsetHeight+"px";oOmbre.style.left=(posXTemp+decal)+"px";oOmbre.style.top=(pHaut+decal)+"px";oOmbre.style.display="block";oDiv.parentNode.insertBefore(oOmbre,oDiv);}lanceDepuisDblClic=false;setTimeout("ctxAffiche=true;",300);memoriserPositionZC();effacerPlanService();return false;}function IU_cliqueCorps(){masqueContext();effacerPlanService();}function tapeRechercheRapide(event){var oEvt=event;var oCible;if (window.event){oEvt=window.event;oCible=window.event.srcElement;}else {oCible=oEvt.target;}if (oEvt.keyCode==13){if (window.toucheEntreeChampRR==null || toucheEntreeChampRR){var txtR=oCible.value;if (txtR.length>1){lanceRechercheRR(txtR,trouveLimitePorteeRR(txtR));}}}}function IU_rechercheR(){var ochamp=PF_donneObjet("STY_champRechercheRapide");var txtR="";if (ochamp!=null){txtR=ochamp.value;}if (txtR.length>1){lanceRechercheRR(txtR,trouveLimitePorteeRR(txtR));}}function trouveLimitePorteeRR(txtR){var limitePortee="";var oImg=PF_donneObjet("imgPorteeRR");titreListeFuture=donneLex(20);if (oImg!=null){var oReg=new RegExp("\w+:");if (!txtR.match(oReg)){var lsrc=oImg.src;if (lsrc.indexOf("contenu.png")>0){limitePortee="content:";}if (lsrc.indexOf("message.png")>0){limitePortee="communication:";}if (lsrc.indexOf("objectif.png")>0){limitePortee="objective:";}if (lsrc.indexOf("util.png")>0){limitePortee="user:";}}titreListeFuture=oImg.title;} else {if (!optionStyleActive("rechercheGlobal") && optionStyleActive("rechercheCtn")){limitePortee="content:";}}return limitePortee;}function lanceRechercheRR(txtR,limitePortee){deselectionneService();if (blocageAvantAcceptionConditions){return;}descriptionListeFuture=donneLex(436);descriptionListeFuture=descriptionListeFuture.replace("TEXT",txtR);txtR=txtR.replace(/&/g,"&amp;");txtR=txtR.replace(/\?/g,"");txtR=txtR.replace(/</g,"&lt;");txtR=txtR.replace(/>/g,"&gt;");var oRetour;dernierServiceParams="quickSearch[!]quickSearch";memoriserPositionZC();deselectionneBoutonCourant();if (limitePortee=="user:"){oRetour=rechercheUtilisateur(txtR);} else {var tabParam=initTabParam();ajTParam(tabParam,"searchedText",limitePortee+txtR);ajTParam(tabParam,"itemCount",nbItemsDefautRR());if (optionStyleActive("inclureMsgDansGlobal")){ajTParam(tabParam,"includeMessages","true");}if (optionStyleActive("inclureObjDansGlobal")){ajTParam(tabParam,"includeObjectives","true");}if (optionStyleActive("triAlphaParc")){ajTParam(tabParam,"sortBy","title");}if (optionStyleActive("rechercheCodeStage")){ajTParam(tabParam,"includeCourseID","true");}var rechUtil=false;if (limitePortee=="" && optionStyleActive("inclureUtilDansGlobal")){rechUtil=true;RETOUR_SERV_ASYNC=false;oRetour=SYS_service("quickSearch",tabParam);} else {RETOUR_SERV_ASYNC=true;return SYS_service("quickSearch",tabParam);}if (rechUtil){var oRUtil=rechercheUtilisateur(txtR);if (oRetour.firstChild!=null && oRUtil.firstChild!=null){oRetour.setAttribute("multi","oui");}while (oRUtil.firstChild!=null){oRetour.appendChild(oRUtil.firstChild);}}}renduRecherche(oRetour);}function renduRecherche(oRetour){oRetour.setAttribute("nomService",titreListeFuture);oRetour.setAttribute("descriptionService",descriptionListeFuture);formaterDatesDansXML(oRetour,"postedDate");formaterDatesDansXML(oRetour,"lastModified");if (CHOIX_VUE_VGN=="oui"){oRetour.setAttribute("enVignette","oui");oRetour.setAttribute("idInterface",STYLE_INTERFACE);}var vueVignette=attrInter("vueVignette");if (vueVignette=="defaut" || vueVignette=="option"){oRetour.setAttribute("proposeVignette","oui");}if (attrInter("descEnLegende")=="oui"){oRetour.setAttribute("descEnLegende","oui");}afficheListeDynamique(oRetour);DOMListeCourante=oRetour.cloneNode(true);historiseZC();if (leBiscuit.derService!=""){leBiscuit.derService="";leBiscuit.enregistrer();}}function rechercheUtilisateur(txtR){cibleASP=RACINE_MOS+"MosSrv/aspx/SRV_vCard.aspx";txtR=txtR.replace(/&/g,"&amp;");txtR=txtR.replace(/"/g,"&quot;");txtR=txtR.replace(/</g,"&lt;");txtR=txtR.replace(/>/g,"&gt;");var oRetour0=SYS_lancerOperationsRetour('<operations><operation type="SRV_rechercheUtil" param1="'+oUtilCnx.id()+'" param2="'+txtR+'" itemsRR="'+nbItemsDefautRR()+'" modeComplet="oui" ncnx="'+IU_donneNumCnx()+'"/></operations>','SRV_rechercheUtil');var lesutil=oRetour0.getElementsByTagName("user");if (lesutil.length>0){var lesids="";for (var i=0;i<lesutil.length;i++){var oUser=lesutil.item(i);if (lesids!=""){lesids+=",";}lesids+=lesutil.item(i).getAttribute("id");}var tabParam=initTabParam();ajTParam(tabParam,"userIDs",lesids);dernierServiceParams="getUsers[!]getUsers";for (var i=0;i<tabParam.length;i++){dernierServiceParams+="[!]"+tabParam[i];}oRetour0=SYS_service("getUsers",tabParam);}return oRetour0;}function basculeIconeRR(){var oImg=PF_donneObjet("imgPorteeRR");}function cliqueImgRR(oImg){var lsrc=oImg.src;var prems=true;if (lsrc.indexOf(".png")>0){prems=false;}var remplace="contenu";var lex=432;if (optionStyleActive("rechercheGlobal")){remplace="global";lex=178;}if (lsrc.indexOf("global.png")>0){if (optionStyleActive("rechercheCtn")){remplace="contenu";lex=432;}else if (optionStyleActive("rechercheMsg")){remplace="message";lex=433;}else if (optionStyleActive("rechercheUtil")){remplace="util";lex=434;}else if (optionStyleActive("rechercheObjectif")){remplace="objectif";lex=435}} else if (lsrc.indexOf("contenu.png")>0){if (optionStyleActive("rechercheMsg")){remplace="message";lex=433;}else if (optionStyleActive("rechercheUtil")){remplace="util";lex=434;}else if (optionStyleActive("rechercheObjectif")){remplace="objectif";lex=435}} else if (lsrc.indexOf("message.png")>0){if (optionStyleActive("rechercheUtil")){remplace="util";lex=434;}else if (optionStyleActive("rechercheObjectif")){remplace="objectif";lex=435}} else if (lsrc.indexOf("util.png")>0){if (optionStyleActive("rechercheObjectif")){remplace="objectif";lex=435}}oImg.src=RACINE_MOS+"MosData/MosStyleMgr/styles/"+STYLE_INTERFACE+"/media/gen/icoRR"+remplace+".png";oImg.title=donneLex(lex);oImg.alt=donneLex(lex);if (!prems){PF_donneObjet("STY_champRechercheRapide").focus();}}function optionStyleActive(attr){return (attrInter(attr)=="oui");}function traiterMiniService(nomDiv){var nomSrv=nomDiv.substring(12);var oDivSrv=PF_donneObjet(nomDiv);if (oDivSrv==null){return ;}var nomServPlan=nomSrv;var tabParam=initTabParam();ajTParam(tabParam,"miniService","true");ajTParam(tabParam,"divMiniService",nomDiv);var itemsRR=attrInter("itemsMiniServ");if (nomSrv=="randomCourse"||nomSrv=="randomResource"){itemsRR="1";var ltrCtn="C";if (nomSrv=="randomResource"){ltrCtn="R";}if (optionStyleActive("rand"+ltrCtn+"vign")){ajTParam(tabParam,"requireThumbnail","true");}if (optionStyleActive("rand"+ltrCtn+"ess")){ajTParam(tabParam,"requireFeaturedContent","true");}} else if (nomSrv=="notattemptedAccessibleCourses"){nomSrv="notattemptedCourses";ajTParam(tabParam,"authorizationRules","without");} else if (nomSrv=="notattemptedAuthorizedCourses"){ajTParam(tabParam,"enrolledFilter","not enrolled");ajTParam(tabParam,"authorizationRules","with");ajTParam(tabParam,"completionStatusFilter","not attempted");nomSrv="availableCourses";}if (nomSrv=="alerts"){nomSrv="announcements";ajTParam(tabParam,"announcementType","alert");}else if (nomSrv=="news"){nomSrv="announcements";ajTParam(tabParam,"announcementType","info");}else if (nomSrv=="mostRecentActivities"){nomSrv="mostRecentResources";ajTParam(tabParam,"objectType","activity");}else if (nomSrv=="mostRecentDocuments"){nomSrv="mostRecentResources";ajTParam(tabParam,"objectType","document");}else if (nomSrv=="newStuffSinceLastCnx"){nomSrv="newsSearch";ajTParam(tabParam,"lastConnection",valProfil("lastConnection"));}else if (nomSrv.indexOf("rss")==0){nomSrv="retrieveRSS";var filRSS=XML_texteNoeud(oDivSrv);filRSS=filRSS.replace(/&/g,"&amp;");filRSS=filRSS.replace(/\s+/g,"");filRSS=filRSS.replace(/\xA0/g,"");if (filRSS.indexOf("RSSFeed")==0){var servPlan=donneServicePlan(filRSS);nomServPlan=filRSS;filRSS=servPlan.getAttribute("href");filRSS=filRSS.replace(/&/g,"&amp;");}ajTParam(tabParam,"feedURL",filRSS);} else if (nomSrv.indexOf("virtualFolder")==0){nomSrv="ruleSearch";nomServPlan=XML_texteNoeud(oDivSrv).replace(/\W/g,"");var servPlan=donneServicePlan(nomServPlan);if (retireServiceNonSelection(servPlan,oDivSrv,nomServPlan)){return;}if (servPlan==null){return ;}if (nomServPlan.indexOf("mosWebService")==0){nomSrv=PF_attr(servPlan,"service");var prmSuppl=PF_attr(servPlan,"params").split("[;]");for (var k=0;k<prmSuppl.length;k++){var spPrmf=prmSuppl[k].split("[:]");ajTParam(tabParam,spPrmf[0],spPrmf[1]);}} else {ajTParam(tabParam,"ruleID","theme/"+PF_attr(servPlan,"site")+"/"+PF_attr(servPlan,"sub"));}}if (optionStyleActive("triAlphaParc")){if (nomSrv.indexOf("Search")>0||nomSrv.indexOf("Courses")){ajTParam(tabParam,"sortBy","title");}}var indDf=nomSrv.indexOf("Defil");if (indDf>0){nomSrv=nomSrv.substring(0,indDf);nomServPlan=nomSrv;}if (nomSrv!="mySelection"){var oServPlan=donneServicePlan(nomServPlan);if (retireServiceNonSelection(oServPlan,oDivSrv,nomServPlan)){return;}if (oServPlan!=null && PF_attr(oServPlan,"itemsMini")!=""){itemsRR=PF_attr(oServPlan,"itemsMini");}ajTParam(tabParam,"itemCount",itemsRR);}RETOUR_SERV_ASYNC=true;SYS_service(nomSrv,tabParam);}function retireServiceNonSelection(oServPlan,oDivSrv,idServ){if (oServPlan==null && window.lsRetireServiceSelection!=null && lsRetireServiceSelection.indexOf(idServ+";")>=0){ oDivSrv.parentNode.removeChild(oDivSrv);return true;}return false;}function retourMiniService(oRetour,nomSrv,nomDiv){var nomService=nomSrv;var oDivSrv=PF_donneObjet(nomDiv);if (oDivSrv==null){return;}var txtDivMS=XML_texteNoeud(oDivSrv).replace(/\W/g,"");if (txtDivMS.indexOf("virtualFolder")==0 || txtDivMS.indexOf("mosWebService")==0 || txtDivMS.indexOf("RSSFeed")==0){nomSrv=txtDivMS;}if (nomSrv=="mostRecentResources"){if (nomDiv=="STY_miniSrv_mostRecentDocuments"){nomSrv="mostRecentDocuments";}if (nomDiv=="STY_miniSrv_mostRecentActivities"){nomSrv="mostRecentActivities";}}var servPlan=donneServicePlan(nomSrv);if (servPlan==null){servPlan=donneServicePlan(nomDiv.replace("STY_miniSrv_",""));}if (servPlan!=null){nomService=titreDepuisServ(servPlan);if (PF_attr(servPlan,"itemsMini")!="" && PF_attr(oRetour,"searchOverflow")=="true"){oRetour.setAttribute("lienServiceComplet",nomSrv);}}if (servPlan==null && nomSrv=="retrieveRSS"){nomService=PF_attr(oRetour,"titreFil");}if (oRetour.childNodes.length==0 && !optionStyleActive("afficherVideMiniServ")){PF_masquerDiv(nomDiv);} else {oRetour.setAttribute("nomService",nomService);if (nomSrv=="randomCourse"||nomSrv=="randomResource"){oRetour.setAttribute("choixAleatoire","1");if (PF_attr(oRetour,"randomThumbnail")==""){var oObjet=oRetour.firstChild;var lid=XML_texteNoeud(oObjet.firstChild);var typeVgn=oObjet.nodeName;var ajPrms="";var adrVign="aspx/apercuObjet.aspx?id="+encodeURIComponent(lid)+"&type="+typeVgn+"&ui="+STYLE_INTERFACE+ajPrms;oRetour.setAttribute("randomThumbnail",adrVign);}}var estDefilant="";var indDf=nomDiv.indexOf("Defil");if (indDf>0){estDefilant=nomDiv.substring(indDf+5);}var ajXsl=estDefilant;if (estDefilant=="H"){ajXsl="V";oRetour.setAttribute("defil","H");}if (optionStyleActive("vignetteMiniServ")||optionStyleActive("vignetteMiniServ"+dernierePageAccueil)){oRetour.setAttribute("idInterfaceVgn",STYLE_INTERFACE);}if (optionStyleActive("etatAcheveMiniServ")){oRetour.setAttribute("etatAcheveMiniServ","1");}if (optionStyleActive("etatReussiMiniServ")){oRetour.setAttribute("etatReussiMiniServ","1");}if (optionStyleActive("scoreObtenuMiniServ")){oRetour.setAttribute("scoreObtenuMiniServ","1");}oDivSrv.style.visibility="visible";IU_renduXSL(oRetour,"GEN_miniService"+ajXsl,nomDiv);if (estDefilant!=""){refXSLCharge="";var oMarquee=oDivSrv.getElementsByTagName("marquee")[0];if (estDefilant=="V"){if (window.tabHautMarquee!=null && tabHautMarquee[oDivSrv.id]){oMarquee.style.height=tabHautMarquee[oDivSrv.id];} else {var hauteur=oDivSrv.offsetHeight-30;hauteur+="px";if (oDivSrv.style.height!=""){hauteur=oDivSrv.style.height;}if (window.tabHautMarquee==null){tabHautMarquee=new Array();}tabHautMarquee[oDivSrv.id]=hauteur;oMarquee.style.height=hauteur;}}if (estMoz && estDefilant=="H"){var oSpan=document.createElement("span");oSpan.id="marq"+oDivSrv.id;oSpan.style.position="absolute";oSpan.style.left=oDivSrv.offsetWidth+"px";oDivSrv.style.overflow="hidden";if (valCSS(oDivSrv,"position","position",true)!="absolute"){oDivSrv.style.position="relative";}oSpan.innerHTML=oMarquee.innerHTML;oDivSrv.replaceChild(oSpan,oMarquee);var ltxt=XML_texteNoeud(oSpan);var lliens=oSpan.getElementsByTagName("A");for (var i=0;i<lliens.length;i++){lliens[i].onmouseover=null;lliens[i].onmouseout=null;}setTimeout("faitDefilerMarqqueH('"+oSpan.id+"',"+ltxt.length*8+")",320);oDivSrv.onmouseover=function(){this.alt="stop";};oDivSrv.onmouseout=function(){this.alt="";};} else {oMarquee.start();}}}if (dernierServiceParams==nomDiv){setTimeout("historiserPageAccueil('0')",500);}}function faitDefilerMarqqueH(lid,larg){var oMar=PF_donneObjet(lid);if (oMar){if (oMar.parentNode.alt!="stop"){var tmrg=parseInt(oMar.style.left)-2;if (larg+tmrg<0){tmrg=oMar.parentNode.offsetWidth;}oMar.style.left=tmrg+"px";}setTimeout("faitDefilerMarqqueH('"+oMar.id+"',"+larg+")",50);}}function historiserPageAccueil(num){if (num=="0" && vraiNomService.indexOf("homePage")==0){num=vraiNomService.substring(8);}dernierServiceParams="homePage"+num+"[!]homePage"+num;historiseZC();memoriserPositionZC();leBiscuit.derService="";dernierServiceParams="";}function traiterXmlHttpService(nomDiv){var oDivSrv=PF_donneObjet(nomDiv);txtAppelVC=XML_texteNoeud(oDivSrv).replace(/[\s\xA0]/g,"");if (txtAppelVC.indexOf("IFRAME")==0){var srcIfrm=dynamiserURLAvecProfil(txtAppelVC.substring(6));oDivSrv.style.visibility="visible";var larg=oDivSrv.style.width;if (larg==""){larg=oDivSrv.offsetWidth+"px";}var haut=oDivSrv.style.height;if (haut==""){haut=oDivSrv.offsetHeight+"px";}oDivSrv.innerHTML='<iframe frameborder="0" style="width:'+larg+';height:'+haut+'" src="'+srcIfrm+'"></iframe>';} else {var indIntre=txtAppelVC.indexOf("?");var tabParam=initTabParam();ajTParam(tabParam,"managerID",valProfil("manager"));ajTParam(tabParam,"userTimeOffset",donneFuseauMin());for (var i=1;i<11;i++){if (valProfil("optField"+i)!=""){ajTParam(tabParam,"userOpt"+i,masqueEnXml(valProfil("optField"+i)));}}if (indIntre>0){var tabPr=txtAppelVC.substring(indIntre+1).split("&amp;");for(var i=0;i<tabPr.length;i++){var tab2=tabPr[i].split("=");ajTParam(tabParam,tab2[0],tab2[1]);}}var oRetour=SYS_service("xmlHttpServ",tabParam);var res="";if (oRetour.firstChild){res=oRetour.firstChild.nodeValue;}oDivSrv.style.visibility="visible";oDivSrv.innerHTML=res;}}function rechItemMiniSrv(lien,type){memoriserPositionZC();titreListeFuture=donneLex(20);var txtl=lien.innerHTML;txtl=txtl.replace(/&amp;/g,"&");txtl=txtl.replace(/&lt;/g,"<");txtl=txtl.replace(/&gt;/g,">");lanceRechercheRR("\""+txtl+"\"",type+":");}function clicMiniStg(obj,evt){if (obj.nodeName=="IMG"){obj=obj.parentNode.getElementsByTagName("A")[0];}if (optionStyleActive("menuCtxGauche") && (evt!=null || window.event)){return clicDroitMiniStg(obj,evt);}var objParcours=retourneObjetParcId(obj.id.substring(6));if (objParcours!=null){var courseType=paramRetour(objParcours,"courseType");if (courseType.indexOf("curriculum")>=0){objetCourant=objParcours;IU_actionObjet('ouvrirCursus');} else {lancerParcours(objParcours,"");}}}function clicMiniRsc(obj,evt){if (obj.nodeName=="IMG"){obj=obj.parentNode.getElementsByTagName("A")[0];}if (optionStyleActive("menuCtxGauche") && (evt!=null || window.event)){return clicDroitMiniRsc(obj,evt);}var lid=obj.id.substring(4);objetCourant=retourneObjetRscId(obj.id.substring(4));if (objetCourant!=null){IU_actionObjet("ouvrirRessource");}}function clicMiniAnn(num,type,obj,evt){if (optionStyleActive("menuCtxGauche") && (evt!=null || window.event)){return clicDroitMiniAnn(obj,evt);}detailAnnonceID(num,type);}function clicMiniArtExt(obj,evt){if (optionStyleActive("menuCtxGauche") && (evt!=null || window.event)){return clicDroitMiniArtExt(obj,evt);}var lien=obj.getElementsByTagName("input")[0].value;window.open(lien);}function clicMiniMsg(obj,evt){if (optionStyleActive("menuCtxGauche") && (evt!=null || window.event)){return clicDroitMiniMsg(obj,evt);}var lesin=obj.getElementsByTagName("input");if (lesin[3].value=="true"){detailMsgInterne(lesin[0].value);if (obj.className.indexOf("STY_lienMiniServMsgNonLu")>0){marquerMsgLu(lesin[0].value);}} else {detailMessageID(lesin[1].value,lesin[2].value);}}function retourneObjetParcId(stgCherche){var tabParam=initTabParam();ajTParam(tabParam,"courseID",stgCherche);var oRetour=SYS_service("getSingleCourse",tabParam);var objParcours=XML_noeudEgal(oRetour,"courseID",stgCherche);if (objParcours!=null){return objParcours.parentNode;}return null;}function retourneObjetRscId(lid){var stgCherche=lid.substring(0,lid.indexOf("/"));var idRess=lid.substring(lid.indexOf("/")+1);var tabParam=initTabParam();ajTParam(tabParam,"courseID",stgCherche);ajTParam(tabParam,"resourceID",idRess);var oRetour=SYS_service("getSingleResource",tabParam);var objParcours=XML_noeudEgal(oRetour,"courseID",stgCherche);if (objParcours!=null){return objParcours.parentNode;}return null;}function retourneObjetRscAnn(lid){var tabParam=initTabParam();ajTParam(tabParam,"announcementID",lid);var oRetour=SYS_service("announcements",tabParam);var objParcours=XML_noeudEgal(oRetour,"announcementID",lid);if (objParcours!=null){return objParcours.parentNode;}return null;}function clicDroitMiniStg(obj,evt){if (obj.nodeName=="IMG"){obj=obj.parentNode.getElementsByTagName("A")[0];}return menuContextDepuisMinSrv(retourneObjetParcId(obj.id.substring(6)),evt);}function clicDroitMiniRsc(obj,evt){if (obj.nodeName=="IMG"){obj=obj.parentNode.getElementsByTagName("A")[0];}return menuContextDepuisMinSrv(retourneObjetRscId(obj.id.substring(4)),evt);}function clicDroitMiniAnn(obj,evt){var oAnn=retourneObjetRscAnn(obj.id.substring(4));if (oAnn==null){return false;}return menuContextDepuisMinSrv(oAnn,evt);}function clicDroitMiniArtExt(obj,evt){var DOMa=IU_objDom();var oAnn=DOMa.createElement("announcement");var olk=DOMa.createElement("link");var typ=DOMa.createElement("announcementType");XML_modifTexteNoeud(typ,"article");var lien=obj.getElementsByTagName("input")[0].value;XML_modifTexteNoeud(olk,lien);oAnn.appendChild(olk);oAnn.appendChild(typ);if (DOMa.documentElement){DOMa.replaceChild(oAnn,DOMa.documentElement);} else {DOMa.appendChild(oAnn);}return menuContextDepuisMinSrv(oAnn,evt);}function clicDroitMiniMsg(obj,evt){var lesin=obj.getElementsByTagName("input");var DOMa=IU_objDom();var oAnn=DOMa.createElement("message");var oN=DOMa.createElement("messageID");XML_modifTexteNoeud(oN,lesin[0].value);oAnn.appendChild(oN);oN=DOMa.createElement("replyID");XML_modifTexteNoeud(oN,lesin[1].value);oAnn.appendChild(oN);oN=DOMa.createElement("forumID");XML_modifTexteNoeud(oN,lesin[2].value);oAnn.appendChild(oN);var nomBal="fromSearch";if (lesin[3].value=="true"){nomBal="isInternalMail";}oN=DOMa.createElement(nomBal);XML_modifTexteNoeud(oN,"true");oAnn.appendChild(oN);if (nomBal=="isInternalMail"){oN=DOMa.createElement("canViewDetails");XML_modifTexteNoeud(oN,"true");oAnn.appendChild(oN);oN=DOMa.createElement("senderID");XML_modifTexteNoeud(oN,lesin[4].value);oAnn.appendChild(oN);}if (DOMa.documentElement){DOMa.replaceChild(oAnn,DOMa.documentElement);} else {DOMa.appendChild(oAnn);}return menuContextDepuisMinSrv(oAnn,evt);}function menuContextDepuisMinSrv(oObjet,evt){objetCourant=oObjet;var oEvt;var oDiv=PF_donneObjet('STY_menuContextAction');if (oDiv==null){return false;}premiereSelection=false;var posXTemp,posYTemp;if (estMoz){oEvt=evt;posXTemp=oEvt.clientX+3+window.pageXOffset;posYTemp=oEvt.clientY+3+window.pageYOffset;if (appareilMobile || tabletteIPad()){posXTemp=oEvt.clientX+3;posYTemp=oEvt.clientY+3;oDiv.style.position="fixed";window.onscroll=masqueContext;}oEvt.stopPropagation();} else {oEvt=window.event;window.event.cancelBubble=true;var oHTML=document.getElementsByTagName("html"); posYTemp= oEvt.clientY+oHTML.item(0).scrollTop+3; posXTemp=oEvt.clientX+3; }IU_renduXSL(oObjet,"GEN_listeActionsObjet","STY_menuContextAction");var oOmbre=PF_donneObjet("STY_ombreMenuCtxt");if (oDiv.innerHTML==""){oDiv.style.display="none";if (oOmbre!=null){oOmbre.style.display="none";}return false;} oDiv.style.left=posXTemp+"px";var pHaut=posYTemp;oDiv.style.top=posYTemp+"px";oDiv.style.height="auto";oDiv.style.width="auto";oDiv.style.display="block";if (!estMoz && !window.XMLHttpRequest){retablirLargeurLiensMenu(oDiv);}if ((hauteurContenuFenetre() - pHaut) < oDiv.offsetHeight){pHaut=pHaut-oDiv.offsetHeight;oDiv.style.top=pHaut+"px";}var decal=1;if (estMoz){decal=3;}if (oOmbre!=null){oOmbre.style.width=oDiv.offsetWidth+"px";oOmbre.style.height=oDiv.offsetHeight+"px";oOmbre.style.left=(posXTemp+decal)+"px";oOmbre.style.top=(pHaut+decal)+"px";oOmbre.style.display="block";oDiv.parentNode.insertBefore(oOmbre,oDiv);}lanceDepuisDblClic=false;setTimeout("ctxAffiche=true;",300);effacerPlanService();return false;}function attrInter(attr){return PF_attr(DOMMDStyle.documentElement,attr);}function effacerPlanService(){if (attrInter("planServices")=="flottant"){PF_masquerDiv("STY_planActions");} else if (attrInter("planServices")=="barreMenu"){PF_masquerDiv("STY_sousDossierBarreMenu");PF_masquerDiv("STY_sousDossierBarreMenuSub");}}function bascPlanServices(){setTimeout(bascPlanServices0,100);}function bascPlanServices0(){var odiv=PF_donneObjet("STY_planActions");if (odiv.offsetWidth>0){odiv.style.display="none";}else{odiv.style.display="block";}}function retablirLargeurLiensMenu(oDiv){var larg=oDiv.offsetWidth-parseInt(valCSS(oDiv,"paddingLeft","",false))-parseInt(valCSS(oDiv,"paddingRight","",false));var lesa=oDiv.getElementsByTagName("a");if (lesa.length>0){var oPrem=lesa.item(0);larg=larg-parseInt(valCSS(oPrem,"paddingLeft","",false))-parseInt(valCSS(oPrem,"paddingRight","",false));for (var i=0;i<lesa.length;i++){lesa.item(i).style.width=larg+"px";}}}function ressourcesSimilaires(idAppel,motsCles){var tabM=motsCles.split(",");var tabParam=initTabParam();var rechmc=tabM[0]+" "+tabM[1];if (tabM.length>2){rechmc+=" "+tabM[2];}ajTParam(tabParam,"searchedText","resource:"+rechmc);ajTParam(tabParam,"itemCount",nbItemsDefautRR());var oRetour=SYS_service("quickSearch",tabParam);if (oRetour.childNodes.length<5 && tabM.length>2){tabParam=initTabParam();ajTParam(tabParam,"itemCount",nbItemsDefautRR());ajTParam(tabParam,"searchedText","resource:"+tabM[0]+" "+tabM[1]);var oRetour2=SYS_service("quickSearch",tabParam);for (var k=0;k<oRetour2.childNodes.length;k++){var otrouv=oRetour2.childNodes.item(k);if (XML_noeudEgal(oRetour,"resourceID",paramRetour(otrouv,"resourceID"))==null){oRetour.appendChild(otrouv.cloneNode(true));}}}if (oRetour.childNodes.length>=1){var oexiste=XML_noeudEgal(oRetour,"resourceID",idAppel);if (oexiste!=null){oexiste=oexiste.parentNode;oexiste.parentNode.removeChild(oexiste);}}titreListeFuture=donneLex(454);descriptionListeFuture=donneLex(436);descriptionListeFuture=descriptionListeFuture.replace("TEXT",rechmc);oRetour.setAttribute("lienRechercheWeb",motsCles);renduRecherche(oRetour);}function rechercheWeb(){var tabM=DOMListeCourante.getAttribute("lienRechercheWeb").split(",");var rechmc=encodeURI(tabM[0])+"+"+encodeURI(tabM[1]);if (tabM.length>2){rechmc+="+"+encodeURI(tabM[2]);}window.open("http://www.google.com/search?q="+rechmc);}function majDossierPerso(modif){var lienPerso=PF_donneObjet("sub194");if (lienPerso!=null){var nomDoss=valProfil("myFolderName");var oLien=lienPerso.parentNode.getElementsByTagName('A')[0];if (oLien!=null){if (nomDoss!=""){oLien.innerHTML=nomDoss;} else if (modif){oLien.innerHTML=donneLex(194);}}}}function enleveEspSuperflu(obj){if (obj.value==" "){obj.value="";}}function modifierArticle(idAnn){var idBlog="";var objAnn=DOMListeCourante.getElementsByTagName("announcement")[0];if (objAnn!=null){idBlog=txtFils(objAnn,"blogID");}lanceModifArticle(idAnn,idBlog);}function lanceModifArticle(idAnn,idBlog){var src=RACINE_MOS+"MosGnr/MosGnr.htm?stg=_editHtmlExtrn&ncnx="+IU_donneNumCnx()+"&idAnn="+idAnn+"&blogID="+idBlog;var fen=window.open(src,"MosGnrEDITION_ZONE_HTML","toolbar=no,menubar=no,scrollbar=no,resizable=yes,status=no,top=25,left=150,width=630,height=625");fen.focus();}function deqhtml(str){str=str.replace(/&amp;/g,"&");str=str.replace(/&lt;/g,"<");return str.replace(/&gt;/g,">");}function retourModifArticle(idAnn){detailAnnonceID(idAnn,"modifArticle");}function recherchePrompt(nomserv){var fenPtr=window.open("aspx/fentr.aspx?ref=rechMDStg&id="+nomserv,'rechMDStg'+nomserv,"scrollbars=no,toolbar=no,status=no,menubar=no,resizable=no,top="+Math.round(screen.height/4)+",left="+Math.round(screen.width/4)+dimFen(430,170));fenPtr.focus();}function getRandomNum(lbound,ubound){return (Math.floor(Math.random() * (ubound - lbound)) + lbound);}function getRandomChar(number,lower,upper,other,extra){var numberChars = "0123456789";var lowerChars = "abcdefghijklmnopqrstuvwxyz";var upperChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";var otherChars = "`~!@#$%^&*()-_=+[{]}\\|;:'\",<.>/? ";var charSet = extra;if (number == true)charSet += numberChars;if (lower == true)charSet += lowerChars;if (upper == true)charSet += upperChars;if (other == true)charSet += otherChars;return charSet.charAt(getRandomNum(0, charSet.length));}function genereMotPasse(){var mpgen=genereMotPasseChaine();var essai=0;while (!verifierMP6(mpgen) && essai<100){mpgen=genereMotPasseChaine();essai++;}return mpgen;}function verifierMP6(mp){var polMpChiffre=false;var polMpMajuscule=false;var polMpMinuscule=false;if (politiqueMotPasse!=""){ var tabP=politiqueMotPasse.split(","); if (tabP[2]=="true"){polMpChiffre=true;} if (tabP[3]=="true"){polMpMajuscule=true;} if (tabP[4]=="true"){polMpMinuscule=true;} } if (polMpChiffre && mp.match(/\d/)==null){return false;} if (polMpMajuscule && mp.match(/[A-Z]/)==null){return false;} if (polMpMinuscule && mp.match(/[a-z]/)==null){return false;} return true;}function genereMotPasseChaine(){var polMpChiffre=true;var polMpMajuscule=false;var polMpMinuscule=true;var length=6;if (politiqueMotPasse!=""){ var tabP=politiqueMotPasse.split(","); length=tabP[0]; if (length==""){length=6;} if (tabP[3]=="true"){polMpMajuscule=true;} }var rc="";for (var idx=0;idx<length;idx++){rc+= getRandomChar(polMpChiffre,polMpMinuscule,polMpMajuscule,false,"");}return rc;}function interfacesDisp(){window.open("aspx/fentr.aspx?ref=interDisp&cour="+STYLE_INTERFACE,"lsinterui","resizable=yes,status=no,top="+Math.round(screen.height/11)+",left=85,width=780,height=450");}function retourChoixInterface(lid){STYLE_INTERFACE=lid;CHOIX_VUE_VGN="non";tabStockVar=new Array();leBiscuit.derInterf=lid;leBiscuit.enregistrer();if (accueilPasse){RACINE_XSL=RACINE_STYLES+STYLE_INTERFACE+"/xsl/";IU_chargerNouvelleInterface(STYLE_INTERFACE,LANGUE);IU_accueil();} else {IU_connexion();}}function verifEssaiAuth(){if (nbTentativeCnx>1){if (politiqueMotPasse!=""){ var tabP=politiqueMotPasse.split(","); if (tabP.length>10){ var seuil=parseInt(tabP[10]); if (seuil>0 && nbTentativeCnx==seuil){ var tabParam=new Array(2);tabParam[0]="id_auth##"+id_auth;tabParam[1]="mp_auth##"+mp_auth;var oRetour=SYS_service("alertAuth",tabParam);leBiscuit.mpk="";leBiscuit.enregistrer();tabStockVar=new Array();historyStorage.sauveChampHisto();PF_donneObjet("STY_formCnx").innerHTML=donneLex(4)+". "+donneLex(510); } } }}}function viewPost(num){detailAnnonceID(num,'article');}function resultatsPrecedents(){autresResultats(false);}function resultatsSuivants(){autresResultats(true);}function autresResultats(enAvant){var decal=PF_attr(DOMListeCourante,"itemOffset");var envoiParam=XML_fils(DOMListeCourante,"requestParams");var decal=PF_attr(DOMListeCourante,"itemOffset");var itemsParListe=parseInt(PF_attr(envoiParam,"effectiveItemCount"));if (decal==""){decal=0;}else{decal=parseInt(decal);}if (enAvant){decal+=itemsParListe;}else {decal-=itemsParListe;}var tabParam=new Array();for (var i=0;i<envoiParam.childNodes.length;i++){var oFils=envoiParam.childNodes[i];if (oFils.nodeName!="itemOffset"){ajTParam(tabParam,oFils.nodeName,XML_texteNoeud(oFils));}}if (decal>0){ajTParam(tabParam,"itemOffset",decal);}titreListeFuture=PF_attr(DOMListeCourante,"nomService");descriptionListeFuture=PF_attr(DOMListeCourante,"descriptionService");lanceEtAfficheService(envoiParam.getAttribute("operationName"),tabParam);}function txtFils(obj,nom){return XML_texteNoeud(XML_fils(obj,nom));}function desactiveSelObj(obj){if (obj.getElementsByTagName("a").length>0){return true;}return false;}function IU_tmFocusRTWS(codeStg){if (PF_donneObjet("Parcours$"+codeStg)){var tabParam=initTabParam();ajTParam(tabParam,"courseID",codeStg);var oRetour2=SYS_service("getSingleCourse",tabParam);var objLance=XML_noeudEgal(oRetour2,"courseID",codeStg);if (objLance==null){return ;}objLance=objLance.parentNode;var etatAchevement=paramRetour(objLance,"courseProgressStatus");var etatReussite=paramRetour(objLance,"courseSatisfactionStatus");IU_majParcoursAffiche(codeStg,etatAchevement,etatReussite,true);setTimeout("IU_tmFocusRTWS('"+codeStg+"')",1000*62);}}function IU_majParcoursAffiche(codeStage,etatAchevement,etatReussite,depuisRTWS){if (depuisRTWS==null){var dloc=dhtmlHistory.getCurrentLocation();if (dloc!=""){if (historyStorage.hasKey(dloc)){var infoLoc=historyStorage.get(dloc);var oReg=new RegExp("^homePage(\\d*)\\[");var resR=infoLoc.match(oReg);if (resR!=null){return setTimeout("IU_service('homePage"+resR[1]+"')",600);}}}}if (DOMListeCourante==null){if (depuisRTWS){window.parcoursRTWSLance=null;}return ;}var objParcours=XML_noeudEgal(DOMListeCourante,"courseID",codeStage);if (objParcours==null){if (depuisRTWS){window.parcoursRTWSLance=null;}return ;}objParcours=objParcours.parentNode;var objHtml=PF_donneObjet("Parcours$"+codeStage);if (objHtml!=null){var lesimgs=objHtml.getElementsByTagName("img");for (var i=0;i<lesimgs.length;i++){var oImg=lesimgs[i];var lsrc=oImg.src;lsrc=lsrc.substring(lsrc.lastIndexOf("/")+1);if (lsrc=="blanc.gif"){if (oImg.parentNode.id=="STY_iconeEtatParcours"){oImg.style.filter="";if (etatAchevement=="attempted"){majImageEtat(oImg,"Parcouru",227);}if (etatAchevement=="incomplete"){majImageEtat(oImg,"Incomplet",228);}if (etatAchevement=="completed"){majImageEtat(oImg,"Complete",229);}} else if (oImg.parentNode.id=="STY_iconeEtatReussite"){oImg.style.filter="";if (etatReussite=="true"){majImageEtat(oImg,"Reussi",518);}if (etatReussite=="false"){majImageEtat(oImg,"Echoue",519);}}PF_affecterAlt();} else {lsrc=lsrc.replace(".png","");if (lsrc=="etatNonParcouru" || lsrc=="etatParcouru" || lsrc=="etatIncomplet" || lsrc=="etatComplete"){if (etatAchevement=="attempted"){majImageEtat(oImg,"Parcouru",227);}if (etatAchevement=="incomplete"){majImageEtat(oImg,"Incomplet",228);}if (etatAchevement=="completed"){majImageEtat(oImg,"Complete",229);}} else if (lsrc=="etatReussi" || lsrc=="etatEchoue"){if (etatReussite=="true"){majImageEtat(oImg,"Reussi",518);}if (etatReussite=="false"){majImageEtat(oImg,"Echoue",519);}}}}}objParcours.setAttribute("verifierAcces","oui");}function majImageEtat(oImg,nom,lex){oImg.src=RACINE_STYLES+STYLE_INTERFACE+"/media/gen/etat"+nom+".png";oImg.title=donneLex(lex);}function IU_actionsCtx(evt){var cible=evt.target; if (!estMoz){cible=evt.srcElement;} var objPere=cible.parentNode; while (objPere!=null && objPere.className.indexOf("STY_objetListe")<0){ objPere=objPere.parentNode; } if (objPere!=null){IU_menuContext(objPere,evt);}}function envoyerCourriel(idDest,codeStage,codeGroupe,msgRep){var enplus="";if (idDest=="[grp]"){enplus="&codeStage="+codeStage+"&codeGroupe="+codeGroupe;}if (msgRep){enplus+="&repID="+msgRep;}var ref=RACINE_MOS+"MosSrv/aspx/SRV_notification.aspx?tAction=msgSmtp&destID="+idDest+"&ncnx="+IU_donneNumCnx()+enplus;var fenPtr=window.open(ref,'envoyerCourriel','toolbar=no,menubar=no,width=650,height=520,left=180,top=100,status=yes,resizable=yes');fenPtr.focus();}function nbItemsDefautRR(){var nbItems=attrInter("itemsRR");if (nbItems==""){nbItems="20";}return nbItems;}function formatePrix(prix){var inversion=true;var cl=LANGUE.substring(0,2);if (cl=="en"||cl=="it"|| donnePays(LANGUE)=="CH"){inversion=false;}if (inversion){var tap=prix.split(" ");prix=tap[1]+" "+tap[0];}prix=prix.replace("EUR","\u20AC");return prix;}function prendLangueDansLanguesInterface(idinter){var oTab=new Array(1);oTab[0]="interfaceName##"+idinter;var oRetour=SYS_service("getAvailableUserLanguages",oTab);var leslangues=oRetour.getElementsByTagName("availableLanguage");if (leslangues.length>0){var langueTrouve=false;for (var n=0;n<leslangues.length;n++){if (LANGUE==paramRetour(leslangues[n],"langCode")){langueTrouve=true;break;}}if (!langueTrouve){for (var n=0;n<leslangues.length;n++){LANGUE=paramRetour(leslangues[n],"langCode");if (LANGUE.indexOf("en")==0){break;}}}}}function executeTmpSelectionReg(num,siteSelection,nomAction){memoGroupeParticipant=nomAction;window.open("aspx/ADM_baseUtil.aspx?tAction=executeTmpSelectionReg&numSel="+num+"&dblkLm=1&site="+siteSelection+"&idU="+oUtilCnx.id(),"seltmp","top=0,left=0,width=50,height=50,location=no,menubar=no,status=no,toolbar=no");}function retourExecuteRegleTemp(numBase,numTemp){var action=memoGroupeParticipant;memoGroupeParticipant="retourRegTemp"+numTemp;IU_actionObjet(action);}function urlDossierPartage(){var dossPart=paramOC("sharedFolder");var lhref=RACINE_MOS+"MosData/MosSrv/store/";if (dossPart==""){lhref+=oUtilCnx.id();} else {lhref+=dossPart}return lhref+"/";}function renduAccepterConditions(oDiv){var res='<input type="checkbox" id="caseAcceptCond" onclick="basculeCondBtnAccptCond(this)"><label for="caseAcceptCond">'+donneLex(591)+'</label>';res+='<br><br><button class=\"STY_btnEnvoiMsg\" disabled="true" onclick="IU_accepterConditions()" id="btnAccptCond">'+donneLex(56)+'</button>';oDiv.innerHTML=res;}function basculeCondBtnAccptCond(coche){var valDesa=true;if (coche.checked){valDesa=false;}PF_donneObjet("btnAccptCond").disabled=valDesa;}function IU_accepterConditions(){if (PF_donneObjet("caseAcceptCond").checked){modifProfil("derniereConnexion","CURRENT_DATE");blocageAvantAcceptionConditions=false;var lesliens=document.getElementsByTagName("a");for (var i=0;i<lesliens.length;i++){if (lesliens[i].alt!=""){lesliens[i].href=lesliens[i].alt;}}lancerPremierServiceAccueil();}}function dynamiserURLAvecProfil(href){href=href.replace("USER_TIME_OFFSET",donneFuseauMin());href=href.replace(/USER_LANGUAGE/g,LANGUE);href=href.replace("CONNECTION_ID",IU_donneNumCnx());href=href.replace("INTERFACE_NAME",STYLE_INTERFACE);if (oUtilCnx){href=href.replace("USER_ID_CRYPT",PF_crypte(oUtilCnx.id()));href=href.replace(/USER_ID/g,oUtilCnx.id());href=href.replace("MANAGER_ID",valProfil("manager"));href=href.replace("USER_EMAIL",valProfil("email"));href=href.replace("USER_LASTNAME",escape(valProfil("lastName")));href=href.replace("USER_FIRSTNAME",escape(valProfil("firstName")));href=href.replace("USER_PROFILE_LANG",valProfil("language"));if (href.indexOf("USER_OPT")>0){for (var i=1;i<11;i++){href=href.replace(new RegExp("\\bUSER_OPT"+i+"\\b","g"),escape(valProfil("optField"+i)));}}}return href;}function IU_initCadreContenuInterne(supll){var obj=PF_donneObjet("STY_cadreInterneDyn"+supll);if (obj && obj.getElementsByTagName("iframe").length==0){obj.style.visibility="visible";var srcIfrm=parent.XML_texteNoeud(obj).replace(/\s+/g,"");srcIfrm=srcIfrm.replace(/\xA0/g,"");srcIfrm=dynamiserURLAvecProfil(srcIfrm);var largw=obj.style.width;if (largw=="" && obj.offsetWidth>1){largw=obj.offsetWidth+"px";}if (largw==""){largw="100%";}var hautr=obj.style.height;if (hautr=="" && obj.offsetHeight>1){hautr=obj.offsetHeight+"px";}if (hautr==""){hautr="100%";}obj.innerHTML='<iframe frameborder="0" style="width:'+largw+';height:'+hautr+'" src="'+srcIfrm+'"></iframe>';}}function IU_donneNumCnx(){return valProfil("connectionID");}function accepteCondMsg(){var msg="You must first accept the terms of service";if (LANGUE=="fr"){msg="Vous devez d'abord accepter les conditions du site";}alert(msg);}function dechargerStageInterne(){stageOuvertEnInterne="2";var obj1=oZoneContenu.getElementsByTagName("iframe")[0];if (obj1){try {obj1.contentWindow.contenuLMS.SCO_quitter();} catch(e){}try {obj1.contentWindow.haut.NAVIG_retour("suspendAll");} catch(e){}}}

