var loginDialog;function loadInitAuthentification(){var a={url:"InitAuthentification.do",useCache:false,preventCache:true,cacheContent:false,sync:true,handler:fillAuthentification};dojo.io.bind(a)} function loadInitLoginDialog(){loginDialog=dojo.widget.byId("div_loginDialog");var a=document.getElementById("div_loginDialog");a.style.display="block";a.style.visibility="hidden";bindArgs={url:"InitSmallAuthentificationDialog.do",useCache:false,preventCache:true,cacheContent:false,sync:true,handler:fillLoginDialog,formNode:dojo.byId("form_authentification_dialog")};dojo.io.bind(bindArgs);loginDialog.show()} function loadLoginDialog(){var a={url:"SmallAuthentificationDialog.do",useCache:false,preventCache:true,cacheContent:false,sync:true,handler:fillLoginDialog,formNode:dojo.byId("form_authentification_dialog")};dojo.io.bind(a)}function loadAuthentification(a){a={url:"Authentification.do",useCache:false,preventCache:true,cacheContent:false,sync:true,handler:fillAuthentification,formNode:dojo.byId("form_authentification")};dojo.io.bind(a)} function loadSmallAuthentification(){bindArgs={url:"SmallAuthentification.do",useCache:false,preventCache:true,cacheContent:false,sync:true,handler:fillSmallAuthentification};dojo.io.bind(bindArgs)}function fillAuthentification(a,b){if(a=="error")alert("fillAuthentification : "+b);else if(b.trim()=="jump")document.location.href="Administration.do";else if(dojo.byId("div_authentification")!=null)dojo.byId("div_authentification").innerHTML=b} function fillSmallAuthentification(a,b){if(a=="error")alert("fillSmallAuthentification : "+b);else if(b.trim()=="jump")document.location.href="Administration.do";else{if(dojo.byId("div_authentificationOrCreation")!=null)b=" ";if(dojo.byId("div_smallAuthentification"))dojo.byId("div_smallAuthentification").innerHTML=b}} function fillLoginDialog(a,b,c){if(a=="error")alert("fillLoginDialog : "+b);else if(b.trim()=="jump")document.location.href="Administration.do";else{if(document.getElementById("div_loginDialog")!=null)document.getElementById("div_loginDialog").style.visibility="visible";if(dojo.byId("div_loginDialog")!=null)dojo.byId("div_loginDialog").innerHTML=b;a=document.getElementById("a_dojoLoginDialogContinue");loginDialog.setCloseControl(a)}} function authentification(){loadAuthentification();loadSmallAuthentification()}function initAuthentification(){loadInitAuthentification();loadSmallAuthentification()}dojo.addOnLoad(initAuthentification);function switchRecoverPassword(a,b){a=document.getElementById(a);if(a.style.display=="none"){a.style.display="inline";document.getElementById(b).style.display="none"}else{a.style.display="none";document.getElementById(b).style.display="block"}} function recoverPassword(){var a={url:"RecoverPassword.do",useCache:false,preventCache:true,cacheContent:false,sync:true,handler:recoveryResult,formNode:dojo.byId("form_recoverPassword")};dojo.io.bind(a)}function recoveryResult(a,b,c){if(a=="error")alert("Recuperation du mot de passe : "+b);else{if(dojo.byId("div_recoverPasswordForm"))dojo.byId("div_recoverPasswordForm").innerHTML=b;if(dojo.byId("div_recoverPasswordDojo"))dojo.byId("div_recoverPasswordDojo").innerHTML=b}} function validateAuthentification(a){if(window.event)key=a.keyCode;else if(a.which)key=a.which;key=="13"&&authentification();return false}function validateAuthentificationDialog(a){if(window.event)key=a.keyCode;else if(a.which)key=a.which;if(key=="13"){loadLoginDialog();initAuthentification()}return false}function validateRecoveryPassword(a){if(window.event)key=a.keyCode;else if(a.which)key=a.which;key=="13"&&recoverPassword();return false};