var a;function WDTableauChamps(){this.m_tabChamps=[]}a=WDTableauChamps.prototype;a.nGetNbChamps=function(){return this.m_tabChamps.length};a.DeclareChamp=function(d){this.m_tabChamps[d.m_sAliasChamp]=d};a.oGetChamp=function(d){return this.m_tabChamps[d]};a.AppelMethode=function(d,b,c){for(var e in this.m_tabChamps){var f=this.m_tabChamps[e];f&&f!=c&&f[d].apply(f,b)}};a.AppelMethodeChamp=function AppelMethodeChamp$$1(b,c,e){(b=this.oGetChamp(b))&&b[c].apply(b,e)};
a.AppelFonctionChamp=function AppelFonctionChamp$$1(b,c,e){if(b=this.oGetChamp(b))return b[c].apply(b,e)};function WDChamp(d,b,c){if(d){this.m_sAliasChamp=d;if(b){this.m_sAliasZR=b;this.m_sAliasAttribut=c}this.m_tabPCodes=[];this.m_eEtat=this.ms_eEtatActif}}a=WDChamp.prototype;a.ms_tabChamps=new WDTableauChamps;a.ms_tabTablesZRs=new WDTableauChamps;a.ms_nEventNavBlur=10;a.ms_nEventNavChange=11;a.ms_nEventNavFocus=12;a.ms_nEventNavSelectLigne=20;a.ms_nEventNavModifSimple=21;
a.ms_nEventNavAffichageMois=28;a.ms_nEventNavSelectionJour=29;a.ms_nEventNavUploadSelection=30;a.ms_nEventNavUploadAvancement=31;a.m_pfVide=function(){return true};a.ms_eEtatActif=0;a.ms_eEtatLectureSeule=1;a.ms_eEtatGrise=4;a.ID_SEPARATEUR="_";a.Init=function(){WDChamp.prototype.ms_tabChamps.nGetNbChamps()==0&&this.__InitInitiale();this.bGestionZR()&&WDChamp.prototype.ms_tabTablesZRs.AppelMethodeChamp(this.m_sAliasZR,"DeclareChampFils",[this]);WDChamp.prototype.ms_tabChamps.DeclareChamp(this)};
a.__InitInitiale=function(){var d;d=bIE?function(){AppelMethode(WDChamp.prototype.ms_sOnResize,[event],undefined)}:function(b){AppelMethode(WDChamp.prototype.ms_sOnResize,[b],undefined)};HookOnXXX(window,"onresize","resize",d)};function oGetObjetChamp(d){return WDChamp.prototype.ms_tabChamps.oGetChamp(d)}function AppelMethode(d,b,c){WDChamp.prototype.ms_tabChamps.AppelMethode(d,b,c)}function AppelMethodeChamp(d,b,c){WDChamp.prototype.ms_tabChamps.AppelMethodeChamp(d,b,c)}
function AppelFonctionChamp(d,b,c){return WDChamp.prototype.ms_tabChamps.AppelFonctionChamp(d,b,c)}a=WDChamp.prototype;a.AppelMethodeAutres=function(d,b){AppelMethode(d,b,this)};a.DeclarePCode=function(d,b){this.m_tabPCodes[d]=b};a.RecuperePCode=function(d){if(d=this.m_tabPCodes[d])return d;return this.m_pfVide};a.nSetTimeout=function nSetTimeout(b,c){return this.__nSetTimeXXX(b,c,false,this.__sArgumentsVersTableauChaine(arguments,2))};
a.nSetInterval=function nSetInterval(b,c){return this.__nSetTimeXXX(b,c,true,this.__sArgumentsVersTableauChaine(arguments,2))};a.__sArgumentsVersTableauChaine=function __sArgumentsVersTableauChaine(b,c){var e=[],f=b.length;for(c=c;c<f;c++){var g=b[c];e.push((typeof g).toLowerCase()=="string"?'"'+g+'"':g+"")}return"["+e.join(",")+"]"};
a.__nSetTimeXXX=function __nSetTimeXXX(b,c,e,f){return e?setInterval('AppelMethodeChamp("'+this.m_sAliasChamp+'","'+b+'",'+f+");",c):setTimeout('AppelMethodeChamp("'+this.m_sAliasChamp+'","'+b+'",'+f+");",c)};a.nSetTimeoutUnique=function nSetTimeoutUnique(b,c){this.AnnuleTimeXXX(b,false);var e=this.__nSetTimeXXX("TimeoutUnique",c,false,'["'+b+'",'+this.__sArgumentsVersTableauChaine(arguments,2)+"]");return this[this.sNomVariableTimeXXX(b)]=e};
a.TimeoutUnique=function TimeoutUnique(b,c){this.SupprimeTimeout(b);this[b].apply(this,c)};a.AnnuleTimeXXX=function AnnuleTimeXXX(b,c){b=this.sNomVariableTimeXXX(b);var e=this[b];if(e!==undefined){c?clearInterval(e):clearTimeout(e);delete this[b]}};a.SupprimeTimeout=function SupprimeTimeout(b){b=this.sNomVariableTimeXXX(b);this[b]!==undefined&&delete this[b]};a.sNomVariableTimeXXX=function sNomVariableTimeXXX(b){return"m_nTimeXXX_"+b};a.nGetVariableTimeXXX=function nGetVariableTimeXXX(b){return this[this.sNomVariableTimeXXX(b)]};
a.SetEtat=function(d){this.m_eEtat=d};a.eGetEtat=function(){return this.m_eEtat};a.PreAffecteHTML=function PreAffecteHTML(b){};a.ms_sPreAffecteHTML="PreAffecteHTML";a.PostAffecteHTML=function PostAffecteHTML(b){};a.ms_sPostAffecteHTML="PostAffecteHTML";a.OnDisplay=function OnDisplay(b){};a.ms_sOnDisplay="OnDisplay";a.OnResize=function OnResize(b){};a.ms_sOnResize="OnResize";a.SetValeur=function SetValeur(b,c,e){return c};a.ms_sSetValeur="SetValeur";a.GetValeur=function GetValeur(b,c,e){return c};
a.ms_sGetValeur="GetValeur";a.DeduitParam=function DeduitParam(b){};a.ms_sDeduitParam="DeduitParam";a.Refresh=function Refresh(b,c,e){};a.ms_sRefresh="Refresh";a.MasqueBarre=function MasqueBarre(b){};a.ms_sMasqueBarre="MasqueBarre";a.OnLigneZRAffiche=function OnLigneZRAffiche(b,c){};a.ms_sOnLigneZRAffiche="OnLigneZRAffiche";a.OnLigneZRMasque=function OnLigneZRMasque(b,c,e){};a.ms_sOnLigneZRMasque="OnLigneZRMasque";a.XML_CHAMP_PROP_NUM_SOUSELEMENT=-2;a.XML_CHAMP_PROP_NUM_CONTENU=-1;
a.XML_CHAMP_PROP_NUM_VALEUR=1;a.XML_CHAMP_PROP_NUM_LIBELLE=3;a.XML_CHAMP_PROP_NUM_HAUTEUR=5;a.XML_CHAMP_PROP_NUM_LARGEUR=6;a.XML_CHAMP_PROP_NUM_COULEUR=10;a.XML_CHAMP_PROP_NUM_COULEURFOND=11;a.XML_CHAMP_PROP_NUM_ETAT=12;a.XML_CHAMP_PROP_NUM_OCCURRENCE=14;a.XML_CHAMP_PROP_NUM_VISIBLE=18;a.XML_CHAMP_PROP_NUM_VALEURAFFICHEE=21;a.XML_CHAMP_PROP_NUM_IMAGE=34;a.XML_CHAMP_PROP_NUM_URL=38;a.XML_CHAMP_PROP_NUM_BULLE=39;a.XML_CHAMP_PROP_NUM_X=41;a.XML_CHAMP_PROP_NUM_Y=42;
a.XML_CHAMP_PROP_NUM_CURSEURSOURIS=43;a.XML_CHAMP_PROP_NUM_POLICEGRAS=47;a.XML_CHAMP_PROP_NUM_POLICEITALIQUE=48;a.XML_CHAMP_PROP_NUM_POLICENOM=49;a.XML_CHAMP_PROP_NUM_POLICESOULIGNE=50;a.XML_CHAMP_PROP_NUM_POLICETAILLE=51;a.XML_CHAMP_PROP_NUM_OPACITE=52;a.XML_CHAMP_PROP_NUM_CADRAGEH=53;a.XML_CHAMP_PROP_NUM_CADRAGEV=54;a.XML_CHAMP_PROP_NUM_INDICATION=58;
a.GetProp=function GetProp(b,c,e,f){switch(b){case this.XML_CHAMP_PROP_NUM_SOUSELEMENT:return null;case this.XML_CHAMP_PROP_NUM_VALEUR:return this.GetValeur(c,e,f);default:return e}};a.ms_sGetProp="GetProp";a.SetProp=function SetProp(b,c,e,f){switch(b){case this.XML_CHAMP_PROP_NUM_VALEUR:return this.SetValeur(c,e,f);default:return e}};a.ms_sSetProp="SetProp";a.bGestionZR=function(){return this.m_sAliasZR?true:false};
a.oGetZRAjax=function(){return this.bGestionZR()?WDChamp.prototype.ms_tabTablesZRs.oGetChamp(this.m_sAliasZR):undefined};a.nGetZRValeur=function(){return parseInt(document.getElementsByName(this.m_sAliasZR)[0].value,10)};a.SetZRValeur=function(d,b){var c=this.oGetZRAjax();if(c)c.OnSelectLigne(b-c.m_nDebut-1,0,d);else document.getElementsByName(this.m_sAliasZR)[0].value=b};a.nGetZRDebut=function(){return parseInt(document.getElementsByName(this.m_sAliasZR+"_DEB")[0].value,10)};
a.nGetZROccurrence=function(){return parseInt(document.getElementsByName("_"+this.m_sAliasZR+"_OCC")[0].value,10)};a.sGetNomElement=function(d){return this.m_sAliasChamp+d};a.oGetElementById=function(d,b){return d.getElementById(this.sGetNomElement(b))};a.oGetElementByName=function(d,b){return d.getElementsByName(this.sGetNomElement(b))[0]};a.sGetSuffixeIDElementArg=function(d){var b="",c,e=d.length;for(c=0;c<e;c++)b+=this.ID_SEPARATEUR+d[c];return b};a.sGetSuffixeIDElement=function(){return this.sGetSuffixeIDElementArg(arguments)};
a.oGetIDElement=function(){return this.oGetElementById(document,this.sGetSuffixeIDElementArg(arguments))};a.sGetNomElementZR=function(d){return this.sGetNomElementZRCalc(this.bGestionZR(),d)};a.sGetNomElementZRCalc=function(d,b){return d?this.sGetNomElementZRIndice(this.nGetZRValeur(),b):this.sGetNomElement(b)};a.sGetNomElementZRIndice=function(d,b){return"_"+d+"_"+this.m_sAliasAttribut+b};a.oGetElementByIdZR=function(d,b){return this.oGetElementByIdZRCalc(this.bGestionZR(),d,b)};
a.oGetElementByNameZR=function(d,b){return this.oGetElementByNameZRCalc(this.bGestionZR(),d,b)};a.oGetElementByIdZRCalc=function(d,b,c){return b.getElementById(this.sGetNomElementZRCalc(d,c))};a.oGetElementByNameZRCalc=function(d,b,c){return b.getElementsByName(this.sGetNomElementZRCalc(d,c))[0]};a.oGetElementByIdZRIndice=function(d,b,c){return d.getElementById(this.sGetNomElementZRIndice(b,c))};a.oGetElementByNameZRIndice=function(d,b,c){return d.getElementsByName(this.sGetNomElementZRIndice(b,c))[0]};
a.oGetObjectEmbed=function oGetObjectEmbed(b){var c=document.getElementsByName(b);return c&&c.length>=1&&c[0]&&c[0].tagName.toLowerCase()=="object"&&bIE?c[0]:c&&c.length>1&&c[1]?c[1]:oGetId(b)};a.bConversionValeur=function bConversionValeur(b){switch((typeof b).toLowerCase()){case "boolean":return b;case "string":return b!="0";case "number":return b!="0";case "function":case "objet":case "undefined":default:return false}};
a.tabGetElements=function tabGetElements(b,c){var e=[];if(b){e=this._tabGetUnTypeElement(b,"BUTTON",e);e=this._tabGetUnTypeElement(b,"INPUT",e);e=this._tabGetUnTypeElement(b,"SELECT",e);e=this._tabGetUnTypeElement(b,"TEXTAREA",e);if(c)e=this._tabGetUnTypeElement(b,"A",e)}return e};a._tabGetUnTypeElement=function _tabGetUnTypeElement(b,c,e){b=b.getElementsByTagName(c);c=0;var f=b.length;for(c=0;c<f;c++)e.push(b[c]);return e};a.__nGetOffset=function(d){d=parseInt(d);return!isNaN(d)&&d>0?d:0};
