 var API=null;var _NoError = '0';var _GeneralException = '101';var _ServerBusy = '102';var _InvalidArgumentError = '201';var _ElementCannotHaveChildren = '202';var _ElementIsNotAnArray = '203';var _NotInitialized = '301';var _NotImplementedError = '401';var _InvalidSetValue = '402';var _ElementIsReadOnly = '403';var _ElementIsWriteOnly = '404';var _IncorrectDataType = '405';var objHTTP=null;var objHTTPFen=null; var dernierSCO='';var tailleQuestSatisf='';var STYLE_COURANT='';var PERSISTE_COMMIT=false;var lesson_mode='';var largeurCol=270;var stageCourant='';function APIAdapter(){this.cmi=null;this.oItemAPI=null;this.errorCode=_NoError;this.codeItemSelectionne='';this.modifications=false;this.changementStatut=false;this.doitEnregistrer=false;this.suivantAutoPossible;this.effaceInteractions=true;this.effaceObjectifs=true;this.surTermine=false;this.LMSInitialize=LMSInitialize;this.LMSGetValue=LMSGetValue;this.LMSSetValue=LMSSetValue;this.LMSCommit=LMSCommit;this.LMSFinish=LMSFinish;this.LMSGetLastError=LMSGetLastError;this.LMSGetErrorString=LMSGetErrorString;this.LMSGetDiagnostic=LMSGetDiagnostic;this.affecteObjectif=LMS_affecteObjectif;this.donneObjectif=LMS_donneObjectif;this.affecteInteraction=LMS_affecteInteraction;this.donneInteraction=LMS_donneInteraction;this.defaultSetValue=LMS_defaultSetValue;this.verifTaille=LMS_verifTaille;this.verifNombre=LMS_verifNombre;this.persisteParcours=LMS_persisteParcours;}function LMSInitialize(strParametre) {if (strParametre!=""){this.errorCode=_InvalidArgumentError; return "false";} if (this.cmi!=null){this.errorCode=_GeneralException; return "false";}this.errorCode=_NoError;this.changementStatut=false;this.doitEnregistrer=false;this.suivantAutoPossible=true;this.effaceInteractions=true;this.effaceObjectifs=true;this.surTermine=false; var res=""; var oItem=window.haut.NAVIG_trouveItem(this.codeItemSelectionne); if ((oItem!=null)&&(oItem.cmi!=null)){ this.cmi=oItem.cmi; var nbA=parseInt(oItem.nbAcces); if (isNaN(nbA)){nbA=0;} oItem.nbAcces=nbA+1; oItem.nbAccesSession=oItem.nbAccesSession+1; this.oItemAPI=oItem; dernierSCO=oItem.identifier;var nomItm=window.planLMS.PF_donneObjet("lienP"+oItem.codeItem); try { leBiscuit.derSco=parent.planLMS.oStageCourant.codeStage+'|'+oItem.identifier+'|'+nomItm.innerHTML; }catch(e){} var md_attache=false; if (this.oItemAPI.metadonnees){ md_attache=true; } else { if ((this.oItemAPI.parentItem!=null)&&(this.oItemAPI.parentItem.identifier!='MosPere')&&(this.oItemAPI.parentItem.metadonnees)){ md_attache=true; } } if (((window.planLMS.oStageCourant.accesMD=='tous')||(window.planLMS.oStageCourant.accesMD=='groupe'))&&(md_attache||(this.oItemAPI.stgReference!=''))){ window.haut.majFleche('Item','_of','javascript:NAVIG_detailItem()'); } res="true"; } else { res="false"; this.errorCode=_GeneralException; } return res;}function LMSGetValue(strElement) { this.errorCode=_NoError;if (this.cmi==null){this.errorCode=_NotInitialized;return "";} switch (strElement){ case 'cmi.core._children' : return this.cmi.core._children; break; case 'cmi.core.student_id' : return top.serveur.getId(); break; case 'cmi.core.student_name' : return (top.serveur.nom +", "+top.serveur.prenom); break; case 'cmi.core.lesson_location' : return this.cmi.core.lesson_location; break; case 'cmi.core.credit' : return this.cmi.core.credit; break; case 'cmi.core.lesson_status' : return this.cmi.core.lesson_status; break; case 'cmi.core.entry' : return this.cmi.core.entry; break; case 'cmi.core.score._children' : return this.cmi.core.score._children; break; case 'cmi.core.score.raw' : return this.cmi.core.score.raw; break; case 'cmi.core.score.max' : return this.cmi.core.score.max; break; case 'cmi.core.score.min' : return this.cmi.core.score.min; break; case 'cmi.core.total_time' :var tot=this.cmi.core.total_time;if (tot==''){tot='0000:00:00.00';} return tot; break; case 'cmi.core.lesson_mode' : return top.lesson_mode; break; case 'cmi.suspend_data' : return this.cmi.suspend_data; break; case 'cmi.launch_data' : return this.cmi.launch_data; break; case 'cmi.comments' : return this.cmi.comments; break; case 'cmi.comments_from_lms' : return ""; break; case 'cmi.student_data._children' : return this.cmi.student_data._children; break; case 'cmi.student_data.mastery_score' : return this.cmi.student_data.mastery_score; break; case 'cmi.student_data.time_limit_action' : return this.cmi.student_data.time_limit_action; break; case 'cmi.student_data.max_time_allowed' : return this.cmi.student_data.max_time_allowed; break; case 'cmi.student_preference._children' : return this.cmi.student_preference._children; break; case 'cmi.student_preference.audio' : return this.cmi.student_preference.audio; break; case 'cmi.student_preference.language' : return this.cmi.student_preference.language; break; case 'cmi.student_preference.speed' : return this.cmi.student_preference.speed; break; case 'cmi.student_preference.text' : return this.cmi.student_preference.text; break; case 'cmi.student_preference.text' : return this.cmi.student_preference.text; break; default : if (strElement.indexOf('cmi.objectives')==0){ return (this.donneObjectif(strElement));break; } else if (strElement.indexOf('cmi.interactions')==0){ return (this.donneInteraction(strElement));break; } else { this.errorCode=_InvalidArgumentError;return ""; } break; }}function LMSSetValue(strElement,strValeur) {if (this.cmi==null){this.errorCode=_NotInitialized;return "false";}this.errorCode=_NoError;this.modifications=true;strValeur=new String(strValeur);if ((strElement.indexOf("._children")>0)||(strElement.indexOf("._count")>0)){this.errorCode=_InvalidSetValue;return "false";}switch (strElement){case 'cmi.core.lesson_location' : if (this.verifTaille(strValeur,255)){this.cmi.core.lesson_location=strValeur;return "true";}else {return "false"}; break;case 'cmi.core.lesson_status' : return this.cmi.core.setLessonStatus(strValeur);case 'cmi.core.score.raw' : return this.cmi.core.score.setScore("raw",strValeur); break;case 'cmi.core.score.max' : return this.cmi.core.score.setScore("max",strValeur); break;case 'cmi.core.score.min' : return this.cmi.core.score.setScore("min",strValeur); break;case 'cmi.core.exit' : return this.cmi.core.setExit(strValeur);case 'cmi.core.session_time' : return this.cmi.core.setTime('session_time',strValeur); break;case 'cmi.suspend_data' : if (this.verifTaille(strValeur,4096)){this.cmi.suspend_data=strValeur;return "true";}else {return "false"}; break;case 'cmi.comments' : var nVal=this.cmi.comments+strValeur ;if (this.verifTaille(nVal,4096)){this.cmi.comments=nVal;return "true";}else {return "false"}; break;case 'cmi.student_preference.audio' : if (this.verifTaille(strValeur,3)&&this.verifNombre(strValeur,-1,100)){this.cmi.student_preference.audio=strValeur;return "true";}else {return "false"}; break;case 'cmi.student_preference.language' : if (this.verifTaille(strValeur,255)){this.cmi.student_preference.language=strValeur;return "true";}else {return "false"}; break;case 'cmi.student_preference.speed' : if (this.verifTaille(strValeur,4)&&this.verifNombre(strValeur,-100,100)){this.cmi.student_preference.speed=strValeur;return "true";}else {return "false"}; break;case 'cmi.student_preference.text' : if (this.verifTaille(strValeur,2)&&this.verifNombre(strValeur,-1,1)){this.cmi.student_preference.text=strValeur;return "true";}else {return "false"}; break;case 'cmi.core.student_id' : this.errorCode=_ElementIsReadOnly;return "false";case 'cmi.core.student_name' : this.errorCode=_ElementIsReadOnly;return "false";case 'cmi.core.credit' : this.errorCode=_ElementIsReadOnly;return "false";case 'cmi.core.entry' : this.errorCode=_ElementIsReadOnly;return "false";case 'cmi.core.total_time' : this.errorCode=_ElementIsReadOnly;return "false";case 'cmi.launch_data' : this.errorCode=_ElementIsReadOnly;return "false";default : return this.defaultSetValue(strElement,strValeur);}}function LMS_defaultSetValue(strElement,strValeur){var resSV="false";if (strElement.indexOf('cmi.objectives')==0){ resSV=this.affecteObjectif(strElement,strValeur); } else if (strElement.indexOf('cmi.interactions')==0){ resSV=this.affecteInteraction(strElement,strValeur); } else {this.errorCode=_InvalidArgumentError;} return resSV;}function LMSCommit(strParametre) {if (this.cmi==null){this.errorCode=_NotInitialized;return "false";}if (strParametre!=""){this.errorCode=_InvalidArgumentError; return "false";} this.errorCode=_NoError;if (this.surTermine&&(this.cmi.core.exit!="suspend")){if ((window.planLMS.oStageCourant.role=='0001')&&(this.oItemAPI.note=='')&&((this.oItemAPI.metadonnees&&(window.planLMS.oStageCourant.accesMD!='non'))||(this.oItemAPI.stgReference!=''))){var valFreq=serveur.evalContenuStg; if (window.planLMS.oStageCourant.codeStage=='_MosLCMS'){valFreq=serveur.evalContenuRech;} var passe=false; if ((valFreq!='')&&(valFreq!='0')){ if (valFreq=='1'){passe=true;} else { if (Math.floor(Math.random()*parseInt(valFreq))==0){passe=true;} } } if (passe &&((this.cmi.core.lesson_status=="completed")||(this.cmi.core.lesson_status=="browsed")||(this.cmi.core.lesson_status=="passed")||(this.cmi.core.lesson_status=="failed"))){ if (confirm(window.planLMS.donneLex(86))){ this.oItemAPI.note="8"; } else { this.oItemAPI.note="1"; } this.modifications=true; } } } if (this.cmi.core.exit=="logout"){this.doitEnregistrer=true;}if (this.modifications){ if (this.cmi.core.exit=="suspend"){ this.cmi.core.entry='resume'; } else { this.cmi.core.entry=''; }if (this.cmi.core.entry=="ab-initio"){this.cmi.core.entry='';}if ((this.cmi.core.score.raw!='')&&(this.cmi.student_data.mastery_score!='')){var scoreRaw=Number(this.cmi.core.score.raw);if (!isNaN(scoreRaw)){var masterScore=Number(this.cmi.student_data.mastery_score);if (!isNaN(masterScore)){if ((this.cmi.core.lesson_status!="passed")&&(scoreRaw>=masterScore)){this.cmi.core.lesson_status="passed";} else if ((this.changementStatut)&&(this.cmi.core.lesson_status=="passed")&&(this.cmi.core.score.raw<masterScore)){this.cmi.core.lesson_status="failed";}}}} window.planLMS.PLAN_calculParcours(this.oItemAPI); window.haut.NAVIG_majFleches(); window.planLMS.MENU_afficheParcours();var succ=this.persisteParcours();if (!succ){this.errorCode=_ServerBusy; return "false";} } return "true";}function LMS_persisteParcours(){var succesProcEnr=true;if ((this.modifications && (this.doitEnregistrer||this.changementStatut)) || PERSISTE_COMMIT){ succesProcEnr=false; var httpDispo=false;if ((objHTTP.readyState==0)||(objHTTP.readyState==4)){httpDispo=true;}if (httpDispo){objHTTP.open("POST", top.serveur.RACINE_MosSrv+'aspx/UTIL_majParcours.aspx', false); objHTTP.setRequestHeader("Content-Type", "text/xml"); /*var rest=window.planLMS.PLAN_donnerParcoursXML();alert(rest);objHTTP.send(rest);*/objHTTP.send(window.planLMS.PLAN_donnerParcoursXML());var txtRep=objHTTP.responseText;if (txtRep.indexOf("<fin/>")>=0){window.planLMS.dejaPersisteForm=true;this.doitEnregistrer=false;this.modifications=false;this.changementStatut=false;succesProcEnr=true;}}}return succesProcEnr;}function LMSFinish(strParametre) {if (this.cmi==null){this.errorCode=_NotInitialized;return "false";}if (strParametre!=""){this.errorCode=_InvalidArgumentError; return "false";}this.surTermine=true;var retCommit=this.LMSCommit("");if (retCommit=="false"){window.status="Save error";return "false";} if (this.cmi.core.exit==""){window.haut.majBoutonReprendre('','','');if (this.suivantAutoPossible){window.haut.NAVIG_allerSuivant();}} else if (this.cmi.core.exit=="logout"){window.haut.NAVIG_retour('liste'); } else if (this.cmi.core.exit=="suspend"){ window.haut.majBoutonReprendre(this.oItemAPI.codeItem,'_of','');} else if (this.cmi.core.exit=="time-out"){ if ((this.suivantAutoPossible)&&(window.haut.oSuivCourant!=null)){window.haut.NAVIG_allerSuivant();} else {window.haut.NAVIG_pageDefaut();}window.haut.majBoutonReprendre(this.oItemAPI.codeItem,'_of','');}this.cmi=null; this.oItemAPI=null;window.haut.majFleche('Item','','#');this.errorCode=_NoError; return "true";}function LMSGetLastError() { return this.errorCode;}function LMSGetDiagnostic(numStr) { return this.LMSGetErrorString(numStr);}function LMSGetErrorString(strCodeErreur) { switch (strCodeErreur){ case '0' : return 'No error';break; case '101' : return 'General Exception';break; case '201' : return 'Invalid argument error'; break; case '202' : return 'Element cannot have children'; break; case '203' : return 'Element not an array - Cannot have count'; break; case '301' : return 'Not initialized';break; case '401' : return 'Not implemented error';break; case '402' : return 'Invalid set value, element is a keyword';break; case '403' : return 'Element is read only';break; case '404' : return 'Element is write only';break; case '405' : return 'Incorrect Data Type';break; default : return ""; }} function LMS_donneObjectif(chRech){var ret='';if (chRech=='cmi.objectives._children'){ret=this.cmi.objectives._children;} else if (chRech=='cmi.objectives._count'){ ret=this.cmi.objectives.compte();} else if (chRech.indexOf('.score._children')>0){ ret=this.cmi.core.score._children; } else {var finCh=chRech.substring(15);var num=parseInt(finCh.substring(0,finCh.indexOf('.')));if (!isNaN(num)&&(this.cmi.objectives.compte()>num)){ var oObjf=this.cmi.objectives.tabObjectifs[num];if (oObjf!=null){if (finCh.indexOf('.id')>0){ ret=oObjf.id;} else if (finCh.indexOf('.status')>0){ ret=oObjf.status;} else if (finCh.indexOf('.score.raw')>0){ ret=oObjf.score.raw;} else if (finCh.indexOf('.score.max')>0){ret=oObjf.score.max;} else if (finCh.indexOf('.score.min')>0){ret=oObjf.score.min;}}}if (ret==""){this.errorCode=_ElementIsWriteOnly;}} return ret;}function LMS_donneInteraction(chRech){var ret='';if (chRech=='cmi.interactions._children'){ret=this.cmi.interactions._children;} else if (chRech=='cmi.interactions._count'){ ret=this.cmi.interactions.compte();} else {var finCh=chRech.substring(17);var num=parseInt(finCh.substring(0,finCh.indexOf('.')));if (!isNaN(num)&&(this.cmi.interactions.compte()>=num)){ var oObjf=this.cmi.interactions.tabInteractions[num];if (oObjf!=null){if (finCh.indexOf('.objectives._count')>0){return oObjf.objectives.compte();} else if (finCh.indexOf('.correct_responses._count')>0){return oObjf.correct_responses.length;}}} if ((finCh.indexOf('.objectives._count')>0)||(finCh.indexOf('.correct_responses._count')>0)){this.errorCode=_InvalidArgumentError;} else {this.errorCode=_ElementIsWriteOnly;}} return ret;} function LMS_affecteObjectif(chRech,val){var ret="false";this._InvalidArgumentError;if (chRech.search(/cmi.objectives.\d+./)>=0){if (this.effaceObjectifs){this.cmi.objectives.init();this.effaceObjectifs=false;}var finCh=chRech.substring(15);var num=parseInt(finCh.substring(0,finCh.indexOf('.')));if (!isNaN(num)){var oObjf;if (this.cmi.objectives.compte()>num){oObjf=this.cmi.objectives.tabObjectifs[num];} else if (num==this.cmi.objectives.compte()){ oObjf=this.cmi.objectives.ajouteObjectif(num); } else {this.errorCode=_InvalidArgumentError;return "false";}if (finCh.indexOf('.id')>0){if (this.verifTaille(val,255)&&(val.length>0)){ oObjf.id=val;ret="true";} else {this.errorCode=_IncorrectDataType;ret="false";}} else if (finCh.indexOf('.status')>0){ ret=oObjf.setStatus(val);} else if (finCh.indexOf('.score.raw')>0){ ret=oObjf.score.setScore("raw",val);} else if (finCh.indexOf('.score.max')>0){ret=oObjf.score.setScore("max",val);} else if (finCh.indexOf('.score.min')>0){ret=oObjf.score.setScore("min",val);}}} return ret;}function LMS_affecteInteraction(chRech,val){var ret="false";this._InvalidArgumentError;if (chRech.search(/cmi.interactions.\d+./)>=0){if (this.effaceInteractions){this.cmi.interactions.init();this.effaceInteractions=false;}var finCh=chRech.substring(17);var num=parseInt(finCh.substring(0,finCh.indexOf('.')));if (!isNaN(num)){var oObjf;if (this.cmi.interactions.compte()>num){oObjf=this.cmi.interactions.tabInteractions[num];} else if (num==this.cmi.interactions.compte()){ oObjf=this.cmi.interactions.ajouteInteraction(num); } else {this.errorCode=_InvalidArgumentError;return "false";}if (chRech.indexOf('cmi.interactions.'+num+'.id')==0){if (this.verifTaille(val,255)&&(val.length>0)){ oObjf.id=val;} else {this.errorCode=_IncorrectDataType;return "false";}} else if (finCh.indexOf('.objectives.')>0){ var debutNumObj=finCh.indexOf('objectives.')+11; finCh=finCh.substring(debutNumObj);var num2=parseInt(finCh.substring(0,finCh.indexOf('.')));if (!isNaN(num2)){var oInterObj;if (oObjf.objectives.compte()>num2){oInterObj=oObjf.objectives.tabObjectifs[num2];} else { oInterObj=oObjf.objectives.ajouteObjectif(num2); }if (finCh.indexOf('.id')>0){if (this.verifTaille(val,255)&&(val.length>0)){ oInterObj.id=val;} else {this.errorCode=_IncorrectDataType;return "false";} }}} else if (finCh.indexOf('.time')>0){var tsc=window.planLMS.PLAN_donneTempsScorm(val,"CMITime"); if (tsc!=''){oObjf.time=val;} else {this.errorCode=_IncorrectDataType;return "false";}} else if (finCh.indexOf('.type')>0){ return oObjf.setType(val);} else if (finCh.indexOf('.correct_responses.')>0){var debutNumObj=finCh.indexOf('correct_responses.')+18; finCh=finCh.substring(debutNumObj);var num=parseInt(finCh.substring(0,finCh.indexOf('.')));if (num<=oObjf.correct_responses.length){ oObjf.correct_responses[num]=val; } else { this.errorCode=_InvalidArgumentError; return "false"; }} else if (finCh.indexOf('.weighting')>0){if (isNaN(Number(val))){this.errorCode=_IncorrectDataType;return "false";} else {this.weighting=val;}} else if (finCh.indexOf('.student_response')>0){ oObjf.student_response=val;} else if (finCh.indexOf('.result')>0){return oObjf.setResult(val);} else if (finCh.indexOf('.latency')>0){var tsc=window.planLMS.PLAN_donneTempsScorm(val,"CMITimespan"); if (tsc!=''){oObjf.latency=val;} else {this.errorCode=_IncorrectDataType;return "false";}}ret="true";}} return ret;}function usrAsyncComplete() { if(objHTTP.readyState != 4) return(false); usrCheckHTTPStatus("200");}function usrCheckHTTPStatus(sExpected){ if (objHTTP.status != sExpected) { alert("Error "+objHTTP.status+": "+objHTTP.statusText); newWindow = window.open(); newWindow.document.body.innerHTML = objHTTP.responseText; return(false); } else return(true);} function initObjHTTP(){if (objHTTP==null){objHTTP=creerObjHTTP();}}function creerObjHTTP(){var objHTTP;if (serveur.config_navig=="Netscape"){objHTTP= new XMLHttpRequest();} else {try { objHTTP = new ActiveXObject("Msxml2.XMLHTTP");} catch(e){objHTTP = new ActiveXObject("Microsoft.XMLHTTP");}} objHTTP.onreadystatechange = usrAsyncComplete; return objHTTP;}function LMS_quitter(){try {top.leBiscuit.enregistrer();}catch(e){}if ((API!=null)&&(API.oItemAPI!=null)){API.doitEnregistrer=true;parent.droit.location=serveur.RACINE_MosSrv+'ressources/html/blanc.htm';}}function LMS_veutQuitter(evt){var oEvt=window.event;if (!window.event){oEvt=evt;}if ((API!=null)&&(top.lesson_mode!='browse')){if (API.oItemAPI!=null){API.doitEnregistrer=true;parent.droit.location=serveur.RACINE_MosSrv+'ressources/html/blanc.htm';evt.returnValue=" ";return " ";} else if ((parent.planLMS.oStageCourant!=null)&&(API.modifications)){API.doitEnregistrer=true;API.persisteParcours();evt.returnValue=" ";return " ";}} else if ((window.location.href.indexOf('/lms.htm')<0) && (serveur.nbFenLms>0)){evt.returnValue=tabLexs[284];return tabLexs[284];}}function dateVersISO(dateJS){var resu='';var moisServeur="0";var jourServeur="0";var anneeServeur=dateJS.getUTCFullYear();if (dateJS.getUTCMonth()+1<10){moisServeur = moisServeur + (dateJS.getUTCMonth()+1).toString();}else{moisServeur=dateJS.getUTCMonth()+1;}if (dateJS.getUTCDate()<10){jourServeur = jourServeur + (dateJS.getUTCDate()).toString();}else{jourServeur=dateJS.getUTCDate();} var heureServeur="0";var minutesServeur="0";var secondesServeur="0"; if (dateJS.getUTCHours()<10){heureServeur+=(dateJS.getUTCHours()).toString();}else {heureServeur=dateJS.getUTCHours();}if (dateJS.getMinutes()<10){minutesServeur+=(dateJS.getMinutes()).toString();}else {minutesServeur=dateJS.getMinutes();}if (dateJS.getSeconds()<10){secondesServeur+=(dateJS.getSeconds()).toString();}else{secondesServeur=dateJS.getSeconds();} resu=anneeServeur+ "-" + moisServeur + "-" + jourServeur + "T" + heureServeur + ":" + minutesServeur + ":" + secondesServeur;return resu;}function LMS_verifTaille(val,limite){var res=true;val=new String(val);if (val.length>limite){this.errorCode=_IncorrectDataType;return false;}return res;}function LMS_verifNombre(val,bmin,bmax){var res=true;if (val==""){this.errorCode=_IncorrectDataType;return false;}val=Number(val);if (isNaN(val)){this.errorCode=_IncorrectDataType;return false;}if ((val>bmax)||(val<bmin)){this.errorCode=_IncorrectDataType;return false;}return res;}function LMS_modePleinEcran(){var srcFen=top.location.href;var refOuvre=window.open;if (srcFen.indexOf("/lms.htm?")>0){refOuvre=top.opener.top;}refOuvre.open(top.location.href,'_blank','top=0,left=0,width='+screen.width+',height='+screen.height+',fullscreen=yes,status=no,menubar=no,toolbar=no,location=no,resizable=yes,scrollbars=auto');LMS_fermer();}function LMS_precedentHistorique(){window.haut.NAVIG_precedentHistorique();}function LMS_allerPrecedent(){window.haut.NAVIG_allerPrecedent();}function LMS_allerSuivant(){window.haut.NAVIG_allerSuivant();}function LMS_fermer(){opener = self; self.close();}function LMS_synchroActive(){return false;}function LMS_initAPI(){API= new APIAdapter();}function donneStageCourant(){var stC=null;if (stageCourant!=''){stC=serveur.donneStage(stageCourant);} return stC;}function dimCadres(haut,larg){if (haut.toString()!=''){var oFr=document.getElementById('frame1');var nVal=haut+",*,0";if (window.planLMS.barreEnBas){nVal="*,0,"+haut;}if (oFr.rows!=nVal){oFr.rows=nVal;}}if (larg.toString()!=''){if (larg!=0){largeurCol=larg;}var oFr=document.getElementById('frame2');var nVal=larg+",*";if (window.planLMS.planADroite){nVal="*,"+larg;}if (oFr.cols!=nVal){oFr.cols=nVal;}}}function reorganiseCadres(barreBas,planDroite){var planCourantGauche=true;var barreCourantHaut=true;var oFr=document.getElementById('frame2');if (oFr.getElementsByTagName('frame').item(0).getAttribute("id")=="droit"){planCourantGauche=false;}if (serveur.config_navig=="IE"){if (planDroite && planCourantGauche){var obj=document.getElementById("planLMS");oFr.appendChild(obj);}if (!planDroite && !planCourantGauche){var obj=document.getElementById("planLMS");oFr.insertBefore(obj,oFr.firstChild);}} else {window.planLMS.planADroite=!planCourantGauche;}oFr=document.getElementsByTagName('frameset').item(0);if (oFr.getElementsByTagName('frame').item(0).getAttribute("id")!="haut"){barreCourantHaut=false;}if (serveur.config_navig=="IE"){if (barreBas && barreCourantHaut){var obj=document.getElementById("haut");oFr.appendChild(obj);}if (!barreBas && !barreCourantHaut){var obj=document.getElementById("haut");oFr.insertBefore(obj,oFr.firstChild);}} else {window.planLMS.barreEnBas=!barreCourantHaut;}}
