var msie,ns4,ns6,iemac,ie4,ie5,ie55,ie6;msie=false;ns4=false;ns6=false;iemac=false;ie4=false;ie5=false;ie55=false;ie6=false;var nVer=navigator.appVersion;var nAgt=navigator.userAgent.toLowerCase();var fullVersion=parseFloat(nVer);var majorVersion=parseInt(nVer);if((verOffset=nAgt.indexOf("msie"))!=-1){fullVersion=parseFloat(nAgt.substring(verOffset+5,nAgt.length));majorVersion=parseInt(""+fullVersion)}else{if((verOffset=nAgt.indexOf("opera"))!=-1){fullVersion=parseFloat(nAgt.substring(verOffset+6,nAgt.length));majorVersion=parseInt(""+fullVersion)}}if(navigator.appName=="Microsoft Internet Explorer"){msie=true;if(majorVersion>=4){if(nAgt.indexOf("msie 4.0")!=-1){ie4=true}if(nAgt.indexOf("msie 5.0")!=-1){ie5=true}if(nAgt.indexOf("msie 5.5")!=-1){ie55=true}if(nAgt.indexOf("msie 6.")!=-1){ie6=true}}if(navigator.appVersion.indexOf("Mac")!=-1){iemac=true}}else{if(navigator.appName=="Netscape"){ns6=parseInt(navigator.appVersion)>=5;ns4=parseInt(navigator.appVersion)<5}}function AlertBox(b,a,c){return alert(b)}function AlertMsg(e,a){var f=e[intIdLangue][a];var c;var b;if(AlertMsg.arguments.length>2){for(var d=1;d<=AlertMsg.arguments.length-2;d++){b="%"+d.toString();c=AlertMsg.arguments[d+1];f=Replace(f,b,c)}}alert(f);return true}function PrevenirBox(b,a,c){return ConfirmBox(b,a,c)}function ConfirmBox(b,a,c){return confirm(b)}function PromptBox(a){return prompt(a,"")}function VisCub(a,d,c,b){if(a==null||a==""){a="localhost"}if(b==null||b==""){b="False"}OpenW("/Eplug/Decision/OLAP/default.asp?NomSvr="+a+"&NomBdd="+d+"&NomCub="+c+"&AdmCub="+b,"WinVisCub",0,0,"status=no,toolbar=no,scrollbars=yes,menubar=no,location=no,resizable=yes")}function VisuCubeOWC(a){OpenW("/OPDOTNET/Eplug/Reporting/OLAP/visu/visuOWC.aspx?idCube="+a,"visu",800,600,"status=no,toolbar=no,scrollbars=yes,menubar=no,location=no,resizable=yes")}function DocSel(h,b,d,a,f,c){if(infomediaireV3Enabled){alert("Impossible d'utiliser Doc Sel avec l'infomdiaire v3 - Utiliser SelInfo (compatible avec les deux versions).")}else{var e="/OpDotnet/commun/Login/aspxtoasp.aspx?IdApplication=118&TypeAcces=utilisateur&titreSel=Selection de Document&modeSel=user&IdGroupeSel=&fermetureSel=auto&idUser=";if(h){e+="&IdAppliSource="+h}if(b){e+="&SourceSel=window.opener."+b}if(d){e+="&SelectMode="+d}if(a){e+="&ListeApplisSel="+a}if(f){e+="&ThemesSel="+f}if(c==null){c="0"}if(c=="true"){c="1"}else{c="0"}if(c){e+="&SelGroupe="+c}e+="&url=/Eplug/infomediaire/site/Annexe/Selecteur/Selecteur.asp";var g=OpenW(e,"WinSelDoc",700,500,"")}}function DocVis(b,c,e){if(infomediaireV3Enabled){var a="/OpDotnet/eplug/Infomediaire/FrontOffice/Consultation/pgVisualiser.aspx?idObjet="+b+"&idTypeObjet=2&IdApplication=118&TypeAcces=Utilisateur";if(c){a+="&IdAppliSource="+c}}else{var a="/OpDotnet/commun/Login/aspxtoasp.aspx?IdInfo="+b+"&IdApplication=118&TypeAcces=Utilisateur";a+=(e)?"&Origine="+e:"&Origine=moteurvam";if(c){a+="&IdAppliSource="+c}a+="&url=/eplug/infomediaire/site/utilisateur/visualiser/visualiser.asp"}var d=OpenW(a,"WinVisDoc",0,0,"")}function SelObjetG3P(c,p,m,n,k,a,o,f,e,j,g,h,q,r,b){var d="199";if(c==null){c=""}if(p==null){p=""}if(m==null){m="";d=""}if(k==null){k=""}if(a==null||a==""){a=false}if(n==null||n==""){n=false}if(o==null){o=""}if(f==null){f=""}if(e==null){e=""}if(j==null){j=""}if(g==null||g==""){g=true}if(h==null){h=""}if(q==null){q=""}if(b==null){b=""}if(r==null){r=0}var l=OpenW("/OpDotNet/Eplug/Planification/Commun/Selection.aspx?ObjetDest="+c+"&FonctionFin="+p+"&IdTypeObjet="+k+"&ShowActivite="+a+"&Multiple="+n+"&LstCod="+o+"&LstVal="+f+"&idVue="+e+"&LstIdPrjParents="+j+"&boolInclureEnfants="+g+"&IdApplication="+d+"&IdAppliSource="+m+"&TypeAcces=Utilisateur&ActivitesSansContrat="+h+"&lstActiviteAvecContrat="+q+"&idContrat="+r+"&idsFormateur="+b,"WinG3p",640,0,"")}function SelProjet(a,j,g,f,h,b,c,k,e,d){SelObjetG3P(a,j,g,k,f,false,h,b,c,e,d)}function SelActivite(a,j,g,f,h,b,c,k,e,d){SelObjetG3P(a,j,g,k,f,true,h,b,c,e,d)}function SelActionFor(a,j,g,f,h,b,c,k,e,d){SelObjetG3P(a,j,g,k,f,true,h,b,c,e,d)}function SelActivitesSansContrat(b,l,j,h,k,c,d,o,g,e,f,m,n,a){SelObjetG3P(b,l,j,o,h,true,k,c,d,g,e,true,m,n,a)}function SelModuleFpc(a,f,d,c,b,g){var h="141";if(a==null){a="FPC"}if(f==null){f="simple"}if(c==null){c=""}if(b==null){b=""}if(d==null){d="";h=""}if(!g){g=""}var e=OpenW("/opdotnet/eplug/fpc/commun/Page/Liens/SelectLiens.aspx?IdApplication="+h+"&IdAppliSource="+d+"&TypeAcces=Animateur&Insertion="+f+"&TypeReferentielLien="+a+"&visibilityAlias=True&IdVue="+c+"&IdElementCible="+b+"&CataloguesCreation=OFL&RetourJS="+g,"WinFpc",800,600,"")}function ModEve(d,c,h,b,f,a,e){if(f==null){f=""}if(d==null){d=""}if(c==null){c=""}if(h==null){h=""}if(a==null){a=""}if(e==null){e=""}var g=OpenW("/OpDotnet/commun/Login/aspxtoasp.aspx?IdApplication=190&IdApplisource="+f+"&TypeAcces="+a+"&NumEve="+d+"&NomCal="+c+"&DatSrc="+e+"&url=/EPlug/Agenda/Eve-Mod.asp","WinModEve",800,0,"")}function SelCal(a,d,e,c,b){if(a==null){a=""}if(d==null){d=""}if(c==null||c==""){c="Utilisateur"}if(e==null||e==""){e=""}if(b==null){b="OUI"}var f=OpenW("/OpDotnet/commun/Login/aspxtoasp.aspx?NomDes="+a+"&FctFin="+d+"&Multip="+b+"&IdApplication=190&TypeAcces="+c+"&IdAppliSource="+e+"&url=/EPlug/Agenda/Commun/SelCal.asp","WinSelCal",640,0,"")}function VisCal(a){if(a==null){a=""}var b=OpenW("/OpDotnet/commun/Login/aspxtoasp.aspx?NomCal="+a+"&IdApplication=190&TypeAcces=Utilisateur&url=/EPlug/Agenda/Agenda.asp","WinVisCal",0,0,"")}function RecRes(b,g,d,m,a,h,l,f,k,n,e,c){if(k==null){k=""}if(e==null){e=""}if(n==null){n=""}if(b==null){b=""}if(g==null){g=""}if(d==null){d=""}if(m==null){m=""}if(a==null){a=""}if(h==null){h=""}if(l==null){l=""}if(f==null){f=""}if(c==null){c="true"}var j=OpenW("/OpDotnet/commun/Login/aspxtoasp.aspx?url=/Eplug/Agenda/Commun/RecRes.asp&IdApplication=190&IdApplisource="+k+"&TypeAcces="+e+"&NomDes="+g+"&FctFin="+d+"&TypRes="+m+"&DatDis="+a+"&DebDis="+h+"&FinDis="+l+"&SetDat="+f+"&HorSem="+n+"&CheckDisponibilities="+c,"WinRecRes",640,0,"")}function VisRes(a,d,b){if(d==null){d=""}if(b==null){b=""}var c=OpenW("/OpDotnet/commun/Login/aspxtoasp.aspx?IdApplication=190&IdApplisource="+d+"&TypeAcces="+b+"&NumRes="+a+"&url=/Eplug/Agenda/Ressources/Vis-Res.asp","WinVisRes",640,0,"")}function SelTypRes(a,d,b,e){var f="190";if(a==null){a=""}if(d==null){d=""}if(b==null){b=""}if(e==null){e="";f=""}var c=OpenW("/OpDotnet/commun/Login/aspxtoasp.aspx?NomDes="+a+"&FctFin="+d+"&Multip="+b+"&IdAppliSource="+e+"&IdApplication="+f+"&TypeAcces=Utilisateur&url=/Eplug/Agenda/Commun/SelTypRes.asp","WinSelTypRes",640,0,"")}function SelTypEve(a,d,b,e){var f="190";if(a==null){a=""}if(d==null){d=""}if(b==null){b=""}if(e==null){e="";f=""}var c=OpenW("/OpDotnet/commun/Login/aspxtoasp.aspx?NomDes="+a+"&FctFin="+d+"&Multip="+b+"&IdAppliSource="+e+"&IdApplication="+f+"&TypeAcces=Utilisateur&url=/Eplug/Agenda/Commun/SelTypEve.asp","WinSelTypEve",640,0,"")}function SelRes(a,e,b,f,c,g){OldApp="190";if(a==null){a=""}if(e==null){e=""}if(b==null){b=""}if(f==null){f="";OldApp=""}if(c==null){c=""}if(g==null){g=""}var d=OpenW("/OpDotnet/commun/Login/aspxtoasp.aspx?NomDes="+a+"&FctFin="+e+"&Multip="+b+"&IdAppliSource="+f+"&TypeAcces="+c+"&IdApplication="+OldApp+"&NumGrp="+g+"&url=/Eplug/Agenda/Commun/SelRes.asp","WinSelRes",640,0,"")}function showUsrFiche(g,h,f,c,e,b){if(c==null){c=""}if(e==null){e=""}if(b==null){b=false}var d="";if(h==null||h=="0"||h=="142"){var a=OpenW("/OpDotNet/eplug/Annuaire/Navigation/Dossier/Dossier.aspx?IdObjet="+g+"&IdTypeObjet=25&IdAnn="+c+"&IdProfil="+e+"&AccesPerso="+b,"WinUsr",0,0,"")}else{var a=OpenW("/OpDotNet/eplug/Annuaire/Navigation/Dossier/Dossier.aspx?IdObjet="+g+"&IdTypeObjet=25&IdApplication=142&TypeAcces=Utilisateur&IdAnn="+c+"&IdProfil="+e+"&IdAppliSource="+h+"&AccesPerso="+b,"WinUsr",0,0,"")}}function modPhoto(b){var a=OpenW("/OpDotNet/eplug/Annuaire/Admin/PhotoMod.aspx?intIdUtilisateur="+b,"WinModPhoto",640,480,"")}function VisUser(e,f,d,b,c,a){showUsrDossier(e,f,d,b,c,a)}function showUsrDossier(g,h,f,c,e,b){if(c==null){c=""}if(e==null){e=""}if(b==null){b=false}if(f==null||f==""){if(h!=null&&h=="Portail"){f="Portail"}else{f="Utilisateur"}}var d="";if(h==null||h=="0"||h=="142"){var a=OpenW("/OpDotNet/eplug/Annuaire/Navigation/Dossier/Dossier.aspx?IdObjet="+g+"&IdTypeObjet=25&IdAnn="+c+"&IdProfil="+e+"&AccesPerso="+b,"WinUsr"+g,0,0,"")}else{var a=OpenW("/OpDotNet/eplug/Annuaire/Navigation/Dossier/Dossier.aspx?IdObjet="+g+"&IdTypeObjet=25&IdApplication=142&TypeAcces="+f+"&IdAnn="+c+"&IdProfil="+e+"&IdAppliSource="+h+"&AccesPerso="+b,"WinUsr"+g,0,0,"")}}function showOrgFiche(c,d,e,b){if(d==""){d="VIS"}if(b==null){b=false}if(e==null||e=="0"||e=="142"){var a=OpenW("/OpDotNet/eplug/Annuaire/Navigation/Dossier/Dossier.aspx?IdObjet="+c+"&IdTypeObjet=28&mode="+d+"&AccesPerso="+b,"WinModOrg",0,0,"")}else{var a=OpenW("/OpDotNet/eplug/Annuaire/Navigation/Dossier/Dossier.aspx?IdObjet="+c+"&IdTypeObjet=28&mode="+d+"&IdApplication=142&TypeAcces=Utilisateur&IdAppliSource="+e+"&AccesPerso="+b,"WinModOrg",0,0,"")}}function showOrgDossier(d,f,g,e,a,c){if(d==-1){return false}if(f==""){f="VIS"}if(c==null){c=false}if(g==null||g=="0"||g=="142"){if(e==""||e==null){var b=OpenW("/OpDotNet/eplug/Annuaire/Navigation/Dossier/Dossier.aspx?IdObjet="+d+"&IdTypeObjet=28&mode="+f+"&AccesPerso="+c,"WinModOrgDossier"+d,0,0,"")}else{if(a==""||a==null){var b=OpenW("/OpDotNet/eplug/Annuaire/Navigation/Dossier/Dossier.aspx?IdAnn="+e+"&IdObjet="+d+"&IdTypeObjet=28&mode="+f+"&AccesPerso="+c,"WinModOrgDossier"+d,0,0,"")}else{var b=OpenW("/OpDotNet/eplug/Annuaire/Navigation/Dossier/Dossier.aspx?IdProfil="+a+"&IdAnn="+e+"&IdObjet="+d+"&IdTypeObjet=ORG&mode="+f+"&AccesPerso="+c,"WinModOrgDossier"+d,0,0,"")}}}else{if(e==""||e==null){var b=OpenW("/OpDotNet/eplug/Annuaire/Navigation/Dossier/Dossier.aspx?IdObjet="+d+"&IdTypeObjet=28&mode="+f+"&IdApplication=142&TypeAcces=Utilisateur&IdAppliSource="+g+"&AccesPerso="+c,"WinModOrgDossier"+d,0,0,"")}else{if(a==""||a==null){var b=OpenW("/OpDotNet/eplug/Annuaire/Navigation/Dossier/Dossier.aspx?IdAnn="+e+"&IdObjet="+d+"&IdTypeObjet=28&mode="+f+"&IdApplication=142&TypeAcces=Utilisateur&IdAppliSource="+g+"&AccesPerso="+c,"WinModOrgDossier"+d,0,0,"")}else{var b=OpenW("/OpDotNet/eplug/Annuaire/Navigation/Dossier/Dossier.aspx?IdProfil="+a+"&IdAnn="+e+"&IdObjet="+d+"&IdTypeObjet=28&mode="+f+"&IdApplication=142&TypeAcces=Utilisateur&IdAppliSource="+g+"&AccesPerso="+c,"WinModOrgDossier"+d,0,0,"")}}}}function showFctFiche(a,c){if(c==""){c="VIS"}var b=OpenW("/OpDotNet/eplug/Annuaire/FicheRel.aspx?IdRelation="+a+"&mode="+c,"WinModFct",640,480,"")}function showCatFiche(d,c,a){if(c==""){c="VIS"}if(a==""||a==null){a="28"}var b=OpenW("/OpDotNet/eplug/Annuaire/FicheCat.aspx?IdCategorie="+d+"&mode="+c+"&idTypeObjet="+a,"WinModCat",640,480,"")}function selVues(b,d,c,g,e,a){if(!d){d="true"}if(!a){a=""}if(!c){c=""}var f;if(g){if(!e){e="Administrateur"}f="&IdApplication=101&IdAppliSource="+g+"&TypeAcces="+e}else{f=""}OpenW("/opdotnet/Commun/UserControls/Noyau/Vues/pgChoixVues.aspx?FctDes="+b+"&Multi="+d+"&TypeVue="+a+"&IdGroupe="+c+f,"SelVueAdmin",600,600,"scrollbars=no")}function SelUser(g,j,o,u,n,e,q,c,f,a,b,k,t,s,l,h){if(o==null){o=""}if(u==null){u=""}if(n==null){n=""}if(k==null){k=""}if(e==null){e=""}if(q==null||q==""){q="OUI"}if(c==null||c==""){c="OUI"}if(f==null){f=""}if(a==null){a="Utilisateur"}if(b==null){b="OUI"}if(g==null){g=""}if(t==null){t=false}if(l==null){l="25"}if(g.toLowerCase().indexOf("selusrorgintra")>-1){l="28"}var d="8415d519-41f8-409c-a82a-96bb5616468d";if(g.toLowerCase().indexOf("selusrorgintra")>-1||f!=""){d="cc2cab04-54c3-444c-9fa2-98419d773c6b"}var r="";if(g.toLowerCase().indexOf("selusrorgintra")>-1||f!=""){r="&IdApplication=142&TypeAcces="+a+"&IdAppliSource="+f}if(s==null){s=""}else{s="&IdAnn="+s}if(h==null){h=""}else{h="&idOrg="+h}var m="/OpDotNet/eplug/Annuaire/Navigation/Navigation.aspx?IdTypeObjetNav="+l+"&Wizard="+d+"&mode="+g+"&JSFCTName="+j+"&FctDes="+n+"&FctDesPlus="+k+"&InpDes="+o+"&SelDes="+u+"&FctFin="+e+"&Multip="+b+"&AccesPerso="+t+s+r+h;var p=OpenW(m,"WinSelUser",0,0,"")}function SelFctOrg(m,q,e,n,b,f,a,p,d,l,k,s,r,o,t,h,g){if(m==null){m=""}if(q==null){q="0"}if(e==null){e="OUI"}if(n==null){n="OUI"}if(b==null){b="NON"}if(a==null){a="Utilisateur"}if(f==null){f="";a=""}if(p==null){p=""}if(d==null){d=""}if(l==null){l="VIS"}if(s==null){s=false}if(h==null){h=""}if(g==null){g=""}if(r==null){r=""}else{r="&IdAnn="+r}if(o==null){o=""}if(t==null){t=""}var c="";if(k!=null&&k!=""){c="&IdNoeud="+k}if(f!=""){var j=OpenW("/OpDotNet/eplug/Annuaire/Navigation/Navigation.aspx?IdTypeObjetNav=28&Wizard=dd78b732-433e-4ed8-9874-da2f26123fd9&FctDes="+m+"&InpDes="+o+"&SelDes="+t+"&DebOrg="+q+"&FctAct="+e+"&CatAct="+n+"&Multip="+b+"&NumAnn="+p+"&IdAppliSource="+f+"&TypeAcces="+a+"&IdApplication=142&FctFin="+d+"&Mode="+l+c+"&AccesPerso="+s+r+"&FctDesPlus="+h+"&JSFCTName="+g,"WinSelFctOrg","","","")}else{var j=OpenW("/OpDotNet/eplug/Annuaire/Navigation/Navigation.aspx?IdTypeObjetNav=28&Wizard=dd78b732-433e-4ed8-9874-da2f26123fd9&FctDes="+m+"&InpDes="+o+"&SelDes="+t+"&DebOrg="+q+"&FctAct="+e+"&CatAct="+n+"&Multip="+b+"&NumAnn="+p+"&FctFin="+d+"&Mode="+l+c+"&AccesPerso="+s+r+"&FctDesPlus="+h+"&JSFCTName="+g,"WinSelFctOrg","","","")}}function SelFct(a,c,e,b){if(a==null){a=""}if(c==null){c=""}if(e==null){e=""}if(e!=""){var d=OpenW("/OpDotNet/eplug/Annuaire/Fonctions/Wizards/Selection/Selection.aspx?IdType=38&Wizard=dd78b732-433e-4ed8-9874-da2f26123fd9&FctDes="+a+"&FctFin="+c+"&IdAppliSource="+e+"&TypeAcces=Utilisateur&IdApplication=142&AccesPerso="+b,"WinAddFct",640,0,"")}else{var d=OpenW("/OpDotNet/eplug/Annuaire/Fonctions/Wizards/Selection/Selection.aspx?IdType=38&Wizard=dd78b732-433e-4ed8-9874-da2f26123fd9&FctDes="+a+"&FctFin="+c+"&AccesPerso="+b,"WinAddFct",640,0,"")}}function SelRole(a,b,c){if(b==null){b=""}if(c==null){c=""}if(b!=""&&c!=""){OpenW("/OpDotNet/Commun/Assistant/Roles/selectRoles.aspx?FctDes="+a+"&IdApplication=101&TypeAcces="+c+"&IdAppliSource="+b,"SelPAdmin",600,600,"scrollbars=no")}else{OpenW("/OpDotNet/Commun/Assistant/Roles/selectRoles.aspx?FctDes="+a,"SelPAdmin",600,600,"scrollbars=no")}}function OpenLanguages(a,b,c){if(b==null){b=""}if(c==null){c=""}if(b!=""&&c!=""){OpenW("/OpDotNet/Commun/UserControls/Tools/Languages/pgLanguages.aspx?codes="+a+"&IdApplication=142&TypeAcces="+c+"&IdAppliSource="+b,"WOpenLanguages",600,400,"scrollbars=no")}else{OpenW("/OpDotNet/Commun/UserControls/Tools/Languages/pgLanguages.aspx?codes="+a,"WOpenLanguages",600,400,"scrollbars=no")}}function SelProfil(a,c){if(a==null){a=""}if(c==null){c=""}if(c!=""){var b=OpenW("/OpDOtNet/eplug/Annuaire/Admin/AnnAddProfil.aspx?mode=Selprofil&Dest="+a+"&IdApplication=142&TypeAcces=Utilisateur&IdAppliSource="+c,"WinAddPro",640,0,"")}else{var b=OpenW("/OpDOtNet/eplug/Annuaire/Admin/AnnAddProfil.aspx?mode=Selprofil&Dest="+a,"WinAddPro",640,0,"")}}function selProfil(a,b,c){if(b==null){b=""}if(c==null){c=""}if(b!=""&&c!=""){OpenW("/opdotnet/eplug/Administration/profils/selProfil.aspx?FctDes="+a+"&IdApplication=101&TypeAcces="+c+"&IdAppliSource="+b,"SelPAdmin",600,600,"scrollbars=no")}else{OpenW("/opdotnet/eplug/Administration/profils/selProfil.aspx?FctDes="+a,"SelPAdmin",600,600,"scrollbars=no")}}function SelGrpPro(a,d,c){if(a==null){a=""}if(c==null){c=""}if(d==null){d=""}if(d!=""){var b=OpenW("/OpDOtNet/eplug/Annuaire/Admin/AnnAddProfil.aspx?mode=SelGroupeProfil&Dest="+a+"&FctFin="+c+"&IdApplication=142&TypeAcces=Utilisateur&IdAppliSource="+d,"WinAddPro",640,0,"")}else{var b=OpenW("/OpDOtNet/eplug/Annuaire/Admin/AnnAddProfil.aspx?mode=SelGroupeProfil&Dest="+a+"&FctFin="+c,"WinAddPro",640,0,"")}}function SelGrp(a,d,c){if(a==null){a=""}if(c==null){c=""}if(d==null){d=""}if(d!=""){var b=OpenW("/OpDOtNet/eplug/Annuaire/Admin/AnnAddProfil.aspx?mode=SelGrp&Dest="+a+"&FctFin="+c+"&IdApplication=142&TypeAcces=Utilisateur&IdAppliSource="+d,"WinAddGrp",640,0,"")}else{var b=OpenW("/OpDOtNet/eplug/Annuaire/Admin/AnnAddProfil.aspx?mode=SelGrp&Dest="+a+"&FctFin="+c,"WinAddPro",640,0,"")}}function SelTheme(b,f,h,d,g,j,a,e){if(b==null){b=""}if(f==null){f=""}if(h==null){h=""}if(d==null){d="false"}if(g==null){g=""}if(j==null){j=""}if(a==null){a=""}if(e==null){e="0"}if(e=="true"){e="1"}else{e="0"}if(infomediaireV3Enabled){if(h!=""){var c=OpenW("/OpDotNet/Eplug/Infomediaire/FrontOffice/Selection/pgSelectThemes.aspx?FctDes="+b+"&FctFin="+f+"&Multip="+d+"&SelectedThemes="+g+"&IdAppliSource="+h+"&TypeAcces=Utilisateur&IdApplication=118","WinSelTheme",640,480,"status=no,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=yes")}else{var c=OpenW("/OpDotNet/Eplug/Infomediaire/FrontOffice/Selection/pgSelectThemes.aspx?FctDes="+b+"&FctFin="+f+"&Multip="+d+"&SelectedThemes="+g,"WinSelTheme",640,480,"status=no,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=yes")}}else{if(h!=""){var c=OpenW("/OpDotNet/Commun/Assistant/Infomediaire/SelectTheme.aspx?FctDes="+b+"&FctFin="+f+"&Multip="+d+"&SelectedThemes="+g+"&ListeThemes="+j+"&Groupe="+a+"&SelGroupe="+e+"&IdAppliSource="+h+"&TypeAcces=Utilisateur&IdApplication=118","WinSelTheme",640,480,"status=no,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=yes")}else{var c=OpenW("/OpDotNet/Commun/Assistant/Infomediaire/SelectTheme.aspx?FctDes="+b+"&FctFin="+f+"&Multip="+d+"&SelectedThemes="+g+"&ListeThemes="+j+"&Groupe="+a+"&SelGroupe="+e,"WinSelTheme",640,480,"status=no,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=yes")}}}function SelInfo(e,f,b,c,g,d,a){if(e==null){e=""}if(a==null){a=""}if(infomediaireV3Enabled){if(f==null){f=""}if(g==null){g=""}if(d==null){d="Utilisateur"}if(c==null||c=="true"||c==true){c="OUI"}if(g!=""){if(b==null){var h=OpenW("/OpDotNet/eplug/Infomediaire/FrontOffice/Navigation/pgNavigation.aspx?IdTypeObjetNav=2&Wizard=cc2cab04-54c3-444c-9fa2-98419d573c6b&JSFCTName="+e+"&FctDes="+a+"&FctFin="+f+"&Multip="+c+"&IdAppliSource="+g+"&TypeAcces="+d+"&IdApplication=118","WinSelInfo",0,0,"status=no,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=yes")}else{var h=OpenW("/OpDotNet/eplug/Infomediaire/FrontOffice/Navigation/pgNavigation.aspx?IdTheme="+b+"&IdTypeObjetNav=2&Wizard=cc2cab04-54c3-444c-9fa2-98419d573c6b&JSFCTName="+e+"&FctDes="+a+"&FctFin="+f+"&Multip="+c+"&IdAppliSource="+g+"&TypeAcces="+d+"&IdApplication=118","WinSelInfo",0,0,"status=no,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=yes")}}else{if(b==null){var h=OpenW("/OpDotNet/eplug/Infomediaire/FrontOffice/Navigation/pgNavigation.aspx?IdTypeObjetNav=2&Wizard=cc2cab04-54c3-444c-9fa2-98419d573c6b&JSFCTName="+e+"&FctDes="+a+"&FctFin="+f+"&Multip="+c,"WinSelInfo",0,0,"status=no,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=yes")}else{var h=OpenW("/OpDotNet/eplug/Infomediaire/FrontOffice/Navigation/pgNavigation.aspx?IdTheme="+b+"&IdTypeObjetNav=2&Wizard=cc2cab04-54c3-444c-9fa2-98419d573c6b&JSFCTName="+e+"&FctDes="+a+"&FctFin="+f+"&Multip="+c,"WinSelInfo",0,0,"status=no,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=yes")}}}else{if(c==null||c=="true"){c="multi"}if(e!=""){DocSel(g,e,c,"",b,"")}else{if(a!=""){DocSel(g,a,c,"",b,"")}}}}function selectPortailInfo(b,a){var c=OpenW("/opdotnet/eplug/portail/admin/commun/selectPAve.aspx?intIdGroupe="+b+"&profils=&Portail=&Mode=2&FctDes="+a,"WinSelInfo",800,600,"status=no,toolbar=no,scrollbars=yes,menubar=no,location=no,resizable=yes")}function OpenW(Url,NomWin,Width,Height,Param,Top,Left){if(!(/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent))){if(iemac==false&&eval("window."+NomWin)!=null){eval("window."+NomWin+".close();")}}if(Width==0||Width==null){Width=window.screen.availWidth-100}if(Height==0||Height==null){Height=window.screen.availHeight-50}if(Top==null&&Top!=0){Top=(window.screen.availHeight/2)-(Height/2)-50}if(Left==null&&Left!=0){Left=(window.screen.availWidth/2)-(Width/2)}if(Param==""||Param==null){Param="scrollbars=1,resizable=yes"}if(Left<=0){Left=1}if(Top<=0){Top=1}eval(NomWin+'=window.open("'+Url+'","'+NomWin+'","top='+Top+",left="+Left+",width="+Width+",height="+Height+","+Param+'");')}function Cocher(Form,TypCoc,NomChk,NomImg,ValChk,DisabledChk){if(TypCoc==null){TypCoc=2}else{if(TypCoc!=0&&TypCoc!=1){TypCoc=2}}if(NomChk==null){NomChk=""}if(ValChk==null){ValChk=""}if(DisabledChk==null){DisabledChk=""}for(var i=0;i<Form.elements.length;i++){var Case=Form.elements[i];if(Case.type=="checkbox"){if((NomChk==""||Case.name.indexOf(NomChk)>=0)&&(DisabledChk==""||(DisabledChk=="1"&&!Case.disabled))){var Valeur=Case.value;if(ValChk.indexOf("|")>=0){Valeur="|"+Valeur+"|"}if(ValChk.indexOf("#")>=0){Valeur="#"+Valeur+"#"}if(ValChk==""||ValChk==Valeur||(ValChk.indexOf("|")>=0&&Valeur.indexOf(ValChk)>=0)||(ValChk.indexOf("#")>=0&&ValChk.indexOf(Valeur)>=0)){if(TypCoc==0){if(Case.checked==true){Case.checked=false}}else{if(TypCoc==1){if(Case.checked==false){Case.checked=true}}else{if(Case.checked==true){TypCoc=0;Case.checked=false}else{TypCoc=1;Case.checked=true}}}}}}}if(NomImg!=null){if(TypCoc==1){eval("document."+NomImg+".src='/DataOp/Visuel/Icones/16x16/RienCocher.gif';")}else{eval("document."+NomImg+".src='/DataOp/Visuel/Icones/16x16/ToutCocher.gif';")}}}function AffDiv(f,a){var c=AffDiv.arguments;if(f=="Patienter"){self.scroll(0,0)}var g,d,e,b;if(document.getElementById||document.all){if(document.getElementById){b=document.getElementById(f)}else{b=document.all[f]}if(b==null){return}if(a!=0&&a!=1){if(b.style.visibility=="visible"){e="hide"}else{e="show"}}else{if(a==1){e="show"}else{e="hide"}}if(e=="show"){b.style.visibility="visible";b.style.display="block";if(c.length==5){if(c[4]=="mouse"||c[4]=="mouse|absolute"){if(c[3]=="gauche"){g=window.event.clientX-b.offsetWidth;g=(g<0)?0:g;d=window.event.clientY}else{g=window.event.clientX;d=window.event.clientY}}else{g=c[3];d=c[2]}if(c[4]!="absolute"&&c[4]!="mouse|absolute"){g=g+document.body.scrollLeft;g=g.toString();d=d+document.body.scrollTop;d=d.toString()}b.style.left=g+"px";b.style.top=d+"px"}}else{b.style.visibility="hidden";b.style.display="none"}}else{if(document.layers){b=document.layers[f];if(b==null){return}if(a!=0&&a!=1){if(b.style.visibility=="visible"){e="hide"}else{e="show"}}else{if(a==1){e="show"}else{e="hide"}}if(e=="show"){b.visibility="show";b.display="block";if(c.length==5){if(c[5]=="mouse"||"mouse|absolute"){if(c[4]=="gauche"){g=c[3].pageX-b.clip.width;g=(g<0)?0:g;d=c[3].pageY}else{g=c[3].pageX;d=c[3].pageY}}else{g=c[3];d=c[4]}b.left=g;b.top=d}}else{b.visibility="hidden";b.display="none"}}}return e}function SetTrs(a,c){var b=ObjGet(a);if(b){b.ValeurOpacite=c;b.style.opacity=(c/100);b.style.MozOpacity=(c/100);b.style.KhtmlOpacity=(c/100);b.style.filter="alpha(opacity="+c+")"}}var XMouse=0;var YMouse=0;function SetMousePos(a){XMouse=0;YMouse=0;if((document.getElementById)&&!(document.all)){XMouse=a.pageX;YMouse=a.pageY}else{XMouse=event.clientX+document.body.scrollLeft;YMouse=event.clientY+document.body.scrollTop}return true}function Replace(d,a,b){if(a==null||a==""){a="'|\""}if(b==null){b="\\'"}var c=new RegExp(a,"gi");return d.replace(c,b)}function getObj(b,a){if(document.getElementById){if(!a){return document.getElementById(b)}else{if(document.getElementById(b)!=null){this.obj=document.getElementById(b);this.style=document.getElementById(b).style}else{return null}}}else{if(document.all){if(!a){return document.all[b]}else{if(document.all[b]!=null){this.obj=document.all[b];this.style=document.all[b].style}else{return null}}}else{if(document.layers){if(!a){return document.layers[b]}else{if(document.layers[b]!=null){this.obj=document.layers[b];this.style=document.layers[b]}else{return null}}}}}return this}function ObjGet(NomObj){var ObjFin=null;if(document.getElementById){ObjFin=document.getElementById([NomObj]);if(ObjFin!=null){return ObjFin}}if(document.all){ObjFin=document.all[NomObj];if(ObjFin!=null){return ObjFin}}if(NomObj.indexOf(".")!=-1){ObjFin=eval("document."+NomObj);if(ObjFin!=null){return ObjFin}}var ObjFrm=eval("document.forms[0]");if(ObjFrm!=null){ObjFin=eval("document.forms[0]."+NomObj);if(ObjFin!=null){return ObjFin}else{return null}}else{return null}}function DivMov(e,f,c){var b=ObjGet(e);if(b){if(f==null||f==-1){f=XMouse+10;var a=b.offsetWidth;if((f+a)>document.body.clientWidth){f-=(a+20)}if(f<0){f=0}}if(c==null||c==-1){c=YMouse+10;var d=b.offsetHeight;if((c+d)>document.body.clientHeight){c-=(d+10)}if(c<0){c=0}}b.style.left=f+"px";b.style.top=c+"px"}}function GetCheckboxVal(d,a){var e="";for(var c=0;c<d.elements.length;c++){var b=d.elements[c];if(b.type=="checkbox"){if(b.name==a){if(b.checked==true){if(e==""){e=b.value}else{e+=","+b.value}}}}}return e}function GetRadioVal(b,c){for(var a=0;a<b.length;a++){if(c[a].checked){return c[a].value}}return null}function DivWrite(a,b){if(b==null){b=""}if(document.all){document.all[a].innerHTML=b}if(document.layers){document[a].document.open();document[a].document.write(b);document[a].document.close()}if(document.getElementById&&!document.all){ObjDiv=document.getElementById([a]);ObjRan=document.createRange();ObjRan.setStartBefore(ObjDiv);ObjDom=ObjRan.createContextualFragment(b);while(ObjDiv.hasChildNodes()){ObjDiv.removeChild(ObjDiv.lastChild)}ObjDiv.appendChild(ObjDom)}}function DoDate(b,a,d,c){if(!c){c=""}OpenW("/OPdotNet/commun/Assistant/AssistantDate.aspx?datecours="+escape(b)+"&formdest="+escape(a)+"&idlangue="+d+"&fonctionjs="+escape(c),"DateWindow",205,185,"resizable=no")}function DoDateJS(b,a,d,c){if(!c){c=""}OpenW("/OPdotNet/commun/Assistant/AssistantDateJS.aspx?datecours="+escape(b)+"&formdest="+escape(a)+"&idlangue="+d+"&fonctionjs="+escape(c),"DateWindow",275,190,"scrollbars=0,resizable=no")}function ModCol(a){OpenW("/commun/eplugs/assistant/color/color.asp?dest="+escape(a),"ColorWindow",260,300,"resizable=no")}function TabColMov(a,c,d){var e=ObjGet(a);if(e){for(var f=0;f<e.rows.length;f++){if(e.rows[f].children[c]&&e.rows[f].children[d]){var g=e.rows[f].children[c].innerHTML;e.rows[f].children[c].innerHTML=e.rows[f].children[d].innerHTML;e.rows[f].children[d].innerHTML=g;if(f==0){var b=e.rows[f].children[c].size;e.rows[f].children[c].size=e.rows[f].children[d].size;e.rows[f].children[c].size=b}}}}}function SuppList(c,b,a,e){var c=getObj(c);if(c){if(b==null){b=0}if(a==null){a=1}if(e==null){e=""}var f=0;for(var d=c.options.length-1;d>=0;d--){if(c.options[d].selected){if(f==0){if(a!=1||ConfirmBox("Vous allez supprimer tous les éléments sélectionnés !")){if((e=="")||(c.options[d].text.indexOf(e)==-1)){c.options[d]=null;if(b!=0){if(c.size>4){c.size--}else{c.size=2}}}f++}else{return}}else{if((e=="")||(c.options[d].text.indexOf(e)==-1)){c.options[d]=null;f++;if(b!=0){if(c.size>2){c.size--}else{c.size=2}}}}}}if(f==0){AlertBox("Vous devez choisir un élement à supprimer !")}}}function AddList(NomSel,NumVal,NomVal,MajSiz,Unique){var AddSel=ObjGet(NomSel);if(AddSel==null){if(NomSel.indexOf("document.")==-1){NomSel="document."+NomSel}AddSel=eval(NomSel)}if(AddSel){var NewVal=new Option(NomVal,NumVal);if(Unique!=null&&Unique!=0){for(var IndVal=0;IndVal<AddSel.options.length;IndVal++){if(AddSel.options[IndVal].value==NumVal){return false}}}AddSel.options[AddSel.options.length]=NewVal;if(MajSiz!=null&&MajSiz!=0){AddSel.size++}}}function SaveList(b){var a="";if(b){for(IndSel=0;IndSel<b.length;IndSel++){if(a!=""){a+=","}a+=b.options[IndSel].value}}return a}function ClearList(a){var b=getObj(a);if(b){while(b.length>0){b.options[0]=null}}}function downloadFile(h,a,c,d,f){if(c==null||typeof(c)=="undefined"){c=1}var b=h.replace(/\+/g,"@@plus@@");var e=a.replace(/\+/g,"@@plus@@");if(ie6){OpenW("/opdotnet/commun/assistant/downloadFile.aspx?strFilePath="+encodeURI(b)+"&strFileName="+encodeURI(e)+"&saveAs="+c,"Download","30","30")}else{var j=null;var g="/opdotnet/commun/assistant/downloadFile.aspx?strFilePath="+encodeURI(b)+"&strFileName="+encodeURI(e)+"&saveAs="+c;if(f!=null&&f!=""){j=document.getElementById(f)}if(j==null){j=self}if(j.location==null){j.src=g}else{j.location=g}}}function downloadFilePopup(a){window.open(a,"_blank","location=no,menubar=no,scrollbars=no,resize=no,resizable=no,status=no,toolbar=no,directories=no,width=20,height=20,top=0,left=0")}function Trim(c){if(typeof c!="string"){return c}var b=c;var a=b.substring(0,1);while(a==" "){b=b.substring(1,b.length);a=b.substring(0,1)}a=b.substring(b.length-1,b.length);while(a==" "){b=b.substring(0,b.length-1);a=b.substring(b.length-1,b.length)}while(b.indexOf("  ")!=-1){b=b.substring(0,b.indexOf("  "))+b.substring(b.indexOf("  ")+1,b.length)}return b}function hideOrNotMenu(Menu){if(getObj(Menu+"_chevron").src.indexOf("Up")>=0){getObj(Menu+"_chevron").src="/dataop/outils/GERD/images/chevronDown.gif";for(var i=0;i<document.forms(0).elements.length;i++){var Case=document.forms(0).elements[i];if((Case.type=="hidden")&&(Case.name.indexOf("collapse")>=0)){if(Case.name.indexOf(Menu)>=0){Case.value="1"}}}for(i=1;i<=3;i++){temp=eval("getObj(Menu+'_tdChevron"+i+"')");temp.className="Up"}getObj(Menu+"_grip").src="/dataop/outils/GERD/images/gripGray.gif";temp=eval("getObj(Menu +'_trInfo')");temp.className="Disab";temp=eval("getObj(Menu + '_topTable')");temp.className="clrTable"}else{getObj(Menu+"_chevron").src="/dataop/outils/GERD/images/chevronUp.gif";for(var i=0;i<document.forms(0).elements.length;i++){var Case=document.forms(0).elements[i];if((Case.type=="hidden")&&(Case.name.indexOf("collapse")>=0)){if(Case.name.indexOf(Menu)>=0){Case.value="0"}}}for(i=1;i<=3;i++){temp=eval("getObj(Menu+'_tdChevron"+i+"')");temp.className="Down"}getObj(Menu+"_grip").src="/dataop/outils/GERD/images/gripblue.gif";temp=eval("getObj(Menu +'_trInfo')");temp.className="Enab";temp=eval("getObj(Menu +'_topTable')");temp.className="setTable"}}function uploadFile(d,b,c,a){if(c==null){c=""}if(a==null){a=""}if(b==null){b=""}if(d!=""&&d!=null){OpenW("/opdotnet/Commun/Assistant/AssistantUpload.aspx?RepServeur="+d+"&MimeType="+c+"&FctDest="+b+"&FileDestName="+a,"AssistantFichier",350,200,"scrollbars=0,resize=no")}else{AlertBox("Le repertoire de destination ne peut pas être vide !")}}function SelectColor(oDest,selectedColor){if(selectedColor==null||selectedColor==""){selectedColor="#ffffff"}var color=window.showModalDialog("/OpDotNet/Commun/Assistant/ColorPicker/ColorPicker.htm",selectedColor,"dialogHeight:455px;dialogWidth:370px;center:Yes;help:No;scroll:No;resizable:No;status:No;");eval("oDest.value=color;");eval("oDest.bgColor=color;");eval("oDest.borderColor=color;");eval("oDest.style.background=color;");eval("oDest.style.border=color;")}function SelRessourceFPC(b){if(b==null){b=""}var a=OpenW("/OpDotNet/eplug/Fpc/Ressource/RessourceSelection.aspx?RetourJS="+b,"WinResSel",0,0,"")}function showParametrageSCO(a,b){if(!b){b=0}OpenW("/OpDotNet/ePlug/FPC/Commun/Page/SCOS/Parametrage.aspx?IdLien="+a+"&IdRes="+b,"SCOParam",700,650,"status=no,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=yes")}function setCookie(c,e,a,g,d,f){var b=c+"="+escape(e)+((a)?"; expires="+a.toGMTString():"")+((g)?"; path="+g:"")+((d)?"; domain="+d:"")+((f)?"; secure":"");document.cookie=b}function getCookie(c){var b=document.cookie;var e=c+"=";var d=b.indexOf("; "+e);if(d==-1){d=b.indexOf(e);if(d!=0){return null}}else{d+=2}var a=document.cookie.indexOf(";",d);if(a==-1){a=b.length}return unescape(b.substring(d+e.length,a))}function deleteCookie(a,c,b){if(getCookie(a)){document.cookie=a+"="+((c)?"; path="+c:"")+((b)?"; domain="+b:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}}function fixDate(b){var c=new Date(0);var a=c.getTime();if(a>0){b.setTime(b.getTime()-a)}}function Hashtable(){this.clear=hashtable_clear;this.containsKey=hashtable_containsKey;this.containsValue=hashtable_containsValue;this.get=hashtable_get;this.isEmpty=hashtable_isEmpty;this.keys=hashtable_keys;this.put=hashtable_put;this.remove=hashtable_remove;this.size=hashtable_size;this.toString=hashtable_toString;this.values=hashtable_values;this.hashtable=new Array()}function hashtable_clear(){this.hashtable=new Array()}function hashtable_containsKey(b){var c=false;for(var a in this.hashtable){if(a==b&&this.hashtable[a]!=null){c=true;break}}return c}function hashtable_containsValue(c){var b=false;if(c!=null){for(var a in this.hashtable){if(this.hashtable[a]==c){b=true;break}}}return b}function hashtable_get(a){return this.hashtable[a]}function hashtable_isEmpty(){return(parseInt(this.size())==0)?true:false}function hashtable_keys(){var b=new Array();for(var a in this.hashtable){if(this.hashtable[a]!=null){b.push(a)}}return b}function hashtable_put(a,b){if(a==null||b==null){throw"NullPointerException {"+a+"},{"+b+"}"}else{this.hashtable[a]=b}}function hashtable_remove(a){var b=this.hashtable[a];this.hashtable[a]=null;return b}function hashtable_size(){var b=0;for(var a in this.hashtable){if(this.hashtable[a]!=null){b++}}return b}function hashtable_toString(){var a="";for(var b in this.hashtable){if(this.hashtable[b]!=null){a+="{"+b+"},{"+this.hashtable[b]+"}\n"}}return a}function hashtable_values(){var a=new Array();for(var b in this.hashtable){if(this.hashtable[b]!=null){a.push(this.hashtable[b])}}return a}function GetFramePortail(){var a=window;if(a.top.opener){a=a.top.opener}a=(a.top.location)?a.top:a.parent;return a.content}function ObjetGrid(){this._checks=new Hashtable();this._checksEnabled=new Hashtable();this.GetCheckbox=ObjetGrid_GetCheckbox;this.AddCheckbox=ObjetGrid_AddCheckbox;this.GetAllIdObjet=ObjetGrid_GetAllIdObjet;this.GetCheckedIdsObjets=ObjetGrid_GetCheckedIdsObjets}function ObjetGrid_GetCheckbox(b){var a;if(b==null){throw"NullPointerException {"+b+"}"}else{if(this._checks.containsKey(b)){a=this._checks.get(b)}}return a}function ObjetGrid_AddCheckbox(a,b){if(a==null||b==null){throw"NullPointerException {"+a+"},{"+b+"}"}else{this._checks.put(b,a)}}function ObjetGrid_GetAllIdObjet(){var a=new Array();var c=this._checks.keys();for(var b=0;b<this._checks.size();b++){if(!this._checks.get(c[b]).disabled){a.push(c[b])}}return a}function ObjetGrid_GetCheckedIdsObjets(){var a=new Array();var c=this._checks.keys();for(var b=0;b<this._checks.size();b++){if(this._checks.get(c[b]).checked){a.push(c[b])}}return a}function ObjetMediation(b,a){this._controls=new Hashtable();this.GetControlChamp=ObjetMediation_GetControlChamp;this.AddControlChamp=ObjetMediation_AddControlChamp;this.Identifiant=b;this.IdTypeObjet=a}function ObjetMediation_GetControlChamp(a){return this._controls.get(a)}function ObjetMediation_AddControlChamp(a,b){if(a!=null&&b!=null){this._controls.put(a,b)}}function FPC_ouvrirModuleFiche(c,b,e,d){var a="";if(e&&e!=0){a="&IdApplication=141&TypeAcces=Portail&IdAppliSource="+e}if(d!=0&&d!=null){a+="&intIdAlias="+d}OpenW("/OPDotNet/ePlug/FPC/Offre/Utilisateur/pEltAiguillage.aspx?intIdElement="+c+"&ModeAff="+b+a,"wEltFiche",850,700,"")}function FPC_ouvrirModuleFicheNouveauPopup(c,b,e,d){var a="";if(e&&e!=0){a="&IdApplication=141&TypeAcces=Portail&IdAppliSource="+e}if(d!=0&&d!=null){a+="&intIdAlias="+d}a+="&verifDroits=true";OpenW("/OPDotNet/ePlug/FPC/Offre/Utilisateur/pEltAiguillage.aspx?intIdElement="+c+"&ModeAff="+b+a,"_blank",850,700,"")}function FPC_ouvrirCatalogueGeneration(b,c,d,a){if(d==null){d=""}if(a==null){a=false}OpenW("/OPDotNet/ePlug/FPC/Offre/Catalogue/pGenerer.aspx?CatId="+b+"&Mode="+c+"&Public="+d+"&WithAlias="+!a,"wCatGenerer",600,800,"")}function FPC_ouvrirProcessPlanif(b,a){if(a==null){a=""}OpenW("/OPDotNet/ePlug/FPC/Process/Planification/pPlanification.aspx?NumPro="+b+"&fonctionJSFin="+a,"wProPlanif",0,0,"")}function FPC_ouvrirSelModules(c,a,b){if(a!="multiple"){a="simple"}if(!b){b=""}OpenW("/OPDotNet/ePlug/FPC/Commun/Page/Liens/SelectLiens.aspx?TypeReferentielLien="+c+"&visibilityAlias=True&Insertion="+a+"&RetourJS="+b,"wSelModules",800,600,"")}function controlerFormatNombre(b,h,d,c,g,a){var e=false;b.value=b.value.replace(/ /gi,"");var j="^-?([0-9]{0,"+h+"}";if(d>0){j+="([.\\"+a+"][0-9]{1,"+d+"})?"}j+=")?$";if(b.value.search(j)!=-1){b.value=b.value.replace(a,".");var f=parseFloat(b.value);if(f>=c&&f<=g){e=true}b.value=b.value.replace(/\./,a)}return e}function formaterSur2Chiffres(b){var a="00";return a.substring(0,(a.length-b.toString().length))+b.toString()}function retournerFaux(){return false}function retournerVrai(){return true}function appuyerSurEntree(a){var b;if(a.keyCode==13){a.returnValue=false;a.cancel=true;b=true}else{b=false}return b}function FPC_ouvrirSelSimpleObjet(a,c,b){switch(a){case -3:OpenW("/OPDotNet/ePlug/FPC/Commun/Page/P123/SelEnQP123.aspx?idQcm="+b+"&RetourJS="+c,"AjoutCatalogue",640,480,"status=no,toolbar=no,scrollbars=yes,menubar=no,location=no,resizable=yes");break;case 2:SelInfo(c,null,null,"false","141");break;case 26:SelUser("","",null,null,c,null,null,null,"141",null,"NON");break;case 28:SelFctOrg(c,null,"NON",null,"NON","141",null,null,null,"MOD");break;default:alert("Le sélecteur simple d'objets de type "+a+" est introuvable !")}}function FPC_retourSelSimpleObjet(Type,AppelJS,p1,p2,p3){var Id;var Titre;switch(Type){case 2:Id=p2;Titre=p3;break;default:Id=p1;Titre=p2}eval(AppelJS+"('"+Id+"', '"+Titre.replace(/'/gi,"\\'")+"');")}function FPC_ecrireObjet(b,a,c){var e=c;var d;if(a>0){switch(b){case 2:d="DocVis("+a+", 141);";break;case 26:d="showUsrDossier("+a+", 141);";break;case 28:d="showOrgDossier("+a+", '', 141);";break;default:d=""}if(d!=""){e='<a href="#" onclick="'+d+' return false;">'+e+"</a>"}}return e}function FPC_ouvrirSelMultiObjet(a,b){switch(a){case 20:selVues(b,true,null,141,"","ACTIF");break;case 97:selVues(b,true,null,141,"","vuefpc");break;case 26:SelUser("",b,null,null,null,null,null,null,"141",null,"OUI");break;case 28:SelFctOrg(null,null,"NON",null,"OUI","141",null,null,null,"MOD",null,null,null,null,null,null,b);break;default:alert("Le sélecteur multiple d'objets de type "+a+" est introuvable !")}}var _leafElems=["IMG","HR","BR","INPUT"];var leafElems=[];for(var i=0;i<_leafElems.length;i++){leafElems[_leafElems[i]]=true}function getInnerHTML(b){if(typeof(b.outerHTML)!="undefined"){return b.innerHTML}else{var c="";for(var a=0;a<b.childNodes.length;a++){c+=getOuterHTML(b.childNodes.item(a))}return c}}function getOuterHTML(b){if(typeof(b.outerHTML)!="undefined"){return b.outerHTML}else{var c="";switch(b.nodeType){case 1:c+="<"+b.nodeName;for(var a=0;a<b.attributes.length;a++){if(b.attributes.item(a).nodeValue!=null){c+=" ";c+=b.attributes.item(a).nodeName;c+='="';c+=b.attributes.item(a).nodeValue;c+='"'}}if(b.childNodes.length==0&&leafElems[b.nodeName]){c+=">"}else{c+=">";c+=getInnerHTML(b);c+="</"+b.nodeName+">"}break;case 3:c+=b.nodeValue;break;case 4:c+="<![CDATA["+b.nodeValue+"]]>";break;case 5:c+="&"+b.nodeName+";";break;case 8:c+="<!--"+b.nodeValue+"-->";break}return c}}function setInnerHTML(b,d){if(typeof(b.innerHTML)!="undefined"){return b.innerHTML=d}else{var a=b.ownerDocument.createRange();a.selectNodeContents(b);a.deleteContents();var c=a.createContextualFragment(d);b.appendChild(c);return d}}function setOuterHTML(b,d){if(typeof(b.outerHTML)!="undefined"){return b.outerHTML=d}else{var a=b.ownerDocument.createRange();a.setStartBefore(b);var c=a.createContextualFragment(d);b.parentNode.replaceChild(c,b);return d}}function ouvrirSelSimpleObjet(c,g,e,b,a,f,d){if(c!=null){strBaseCtrl=g;if(e==null){e=""}if(g==null){g=""}if(d==null){d="Utilisateur"}switch(c){case 24:SelUser("","","","",a,"","","",e,d,"NON",f,b,null,c);break;case 25:SelUser("","","","",a,"","","",e,d,"NON",f,b,null,c);break;case 26:SelUser("","","","",a,"","","",e,d,"NON",f,b,null,"25");break;case 27:SelUser("","","","",a,"","","",e,d,"NON",f,b,null,"25");break;case 28:SelFctOrg(a,"","","","NON",e,d,null,null,null,null,b,null,null,null,f);break;default:alert("Le sélecteur simple d'objets de type "+c+" est introuvable !")}}}function ouvrirDossierObjet(c,b,d,a){if(b!=null&&c!=null){switch(b){case 24:showUsrDossier(c,d,null,null,null,a);break;case 25:showUsrDossier(c,d,null,null,null,a);break;case 26:showUsrDossier(c,d,null,null,null,a);break;case 27:showUsrDossier(c,d,null,null,null,a);break;case 28:showOrgDossier(c,null,d,null,null,a);break;case 38:OpenW("/OpDotNet/Eplug/Annuaire/Navigation/Dossier/Dossier.aspx?idObjet="+c+"&idTypeObjet="+b,"Dossier"+c,"","","status=no,resizable=yes");break;case 94:OpenW("./Rapports/VisuDocument.aspx?idObjet="+c+"&idTypeObjet=94","Dossier"+c,"","","status=no,resizable=yes");return false;default:OpenW("/opdotnet/eplug/infomediaire/FrontOffice/Consultation/pgVisualiser.aspx?idObjet="+c+"&idTypeObjet="+b,"Dossier"+c,"","","status=no,resizable=yes")}return false}}function MAJEntite(d,f,e){var c=document.getElementById(strBaseCtrl+"_Valeur");var a=document.getElementById(strBaseCtrl+"_IntIdTypeObjet");var b=document.getElementById(strBaseCtrl+"_TitreEntite");if(c!=undefined&&a!=undefined&&b!=undefined){c.value=f;a.value=d;b.innerHTML=e}else{alert("Une erreur est survenue durant la modification.")}};