// Licensed Materials - Property of IBM // IBM Cognos Products: rs // (C) Copyright IBM Corp. 2003, 2022. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. function _ek3(_345, _h6h, _b6k, _u5e){_zpn._la6("_frh");_zpn._la6("_tf7");_zpn._la6("_v47");_zpn._la6("_jx2");_ek3.baseConstructor.call(this, _345, _h6h, _b6k, _u5e);this._zw8=false;this._9i7();this._8hn();};_olk._vjl(_ek3, _u47);_ek3.prototype._fdm=function(){this._hp6._fdm();this._igm();};_ek3.prototype._dzm=function(){this._hp6._dzm();};_ek3.prototype._9i7=function(){_ek3.superClass._9i7.call(this);this._6dd=0;this._p0i=null;this._yfj=null;this._k8a=false;this._s1n=(this._0hd&&this._lk7(this._0hd))?_tf7._f7j(this._0hd, _tf7._wk6, this._job):new Date();if(this._9sb.getAttribute("calendar")){this._6dd=( this._9sb.getAttribute( "calendar" )=="Imperial" )?1:0;}var _3yi=this._9sb.getAttribute("firstDate");if(_3yi&&this._lk7(_3yi)){this._p0i=_tf7._f7j(_3yi, _tf7._wk6, this._job);}var _pbk=this._9sb.getAttribute("lastDate");if(_pbk&&this._lk7(_pbk)){this._yfj=_tf7._f7j(_pbk, _tf7._wk6, this._job);}if(this._9sb.getAttribute("DateTime")){this._k8a=( this._9sb.getAttribute( "DateTime" )=="true" )?true:false;}if(this._yfj&&(this._s1n>this._yfj)){this._s1n=new Date(this._yfj.valueOf());}if(this._p0i&&(this._s1n=11.5)?"cchl/images/icon_datepicker_11_5.gif":"cchl/images/icon_datepicker.gif");_osd.onmouseout=_ek3._zn4;_osd.onmousedown=_ek3._ox3;if(_zpn._qsh["hal"]["enableAccessibility"]){_osd.tabIndex=0;_osd.setAttribute( "role", "button" );_osd.alt=_frh._c6j("IDS_CCHL_AC_DATE_PICKER");_osd.onkeydown=_ek3._4k5;}this._rdd=_osd;};_ek3.prototype._p43=function(){var _aom=this._9sb.ownerDocument;var _mbc=_aom.createElement("promptTextBox");_8qn._9rc(_mbc, this._9sb, "useStyleVersion");_mbc.setAttribute( "required", ( this._6fj?"true":"false" ) );_mbc.setAttribute("parameter", this._e6i);_mbc.setAttribute( "multiSelect", (!this._xue?"false":"true") );_mbc.setAttribute( "validation", "date" );_mbc.setAttribute( "formatting", "date" );_mbc.setAttribute( "hideAdornments", ( this._x8a?"true":"false" ) );_mbc.setAttribute( "multiLine", "false" );_mbc.setAttribute( "hideText", "false" );_mbc.setAttribute( "calendar", ( this._6dd==0?"Gregorian":"Imperial" ) );_mbc.setAttribute( "renderAdornmentsCell", ( this._t04?"true":"false" ) );if(this._9sb.getAttribute("firstDate")){_mbc.setAttribute( "firstDate", this._9sb.getAttribute( "firstDate" ) );}if(this._9sb.getAttribute("lastDate")){_mbc.setAttribute( "lastDate", this._9sb.getAttribute( "lastDate" ) );}if(this._9sb.getAttribute("specname")){_mbc.setAttribute("specname", "promptTextBox");}return _mbc;};_ek3.prototype._lk7=function(_uxm){return !!_uxm.match(/^\d\d\d\d-\d\d-\d\d$/gi);};_ek3._zn4=function(e){e.stopPropagation();var _517=this.parentNode.parentNode.parentNode.parentNode._gub;if(_517._zw8){_517._zw8=false;}};_ek3.prototype._vm=function(){this._1l4();};_ek3.prototype._me=function(){this._j63();};_ek3._ox3=function(e){if(_zpn._70d&&_zpn._70d._ui){_zpn._70d._ui(e);}e.stopPropagation();var _517=this.parentNode.parentNode.parentNode.parentNode._gub;_517._dbg();_517._4m5();};_ek3._4k5=function(e){if(e.keyCode===_4qn._x8j){e.stopPropagation();var _517=this.parentNode.parentNode.parentNode.parentNode._gub;_517._dbg();_517._4m5();}};_ek3.prototype._4m5=function(){this._zw8=true;var _qsa=this._9sb.cloneNode(true);_8fm._jgn("cchl/dialogs/_l4b", this._rdd, this, _qsa, this._s1n?_tf7._s41(this._s1n):null, this._dbd);};_ek3.prototype._g1g=function(){this._s1n=new Date(_l4b._vsc().valueOf());this._hp6._3kk(_tf7._6tc(this._s1n, this._6dd, this._job));this._zw8=false;};_ek3.prototype._zx=function(){if(_l4b._09b()){this._s1n=new Date(_l4b._vsc().valueOf());this._hp6._3kk(_tf7._6tc(this._s1n, this._6dd, this._job));if(!this._xue){this._5n2();}}};_ek3.prototype._vsc=function(){return this._s1n;};_ek3.prototype._fkl=function(){return this._hp6._yp9();};_ek3.prototype._y51=function(_ugc){if(_ugc._dyc()){if(this._6dd==1){this._s1n=_tf7._ljk(_ugc._yp9(), _tf7._13g("dateOrder", this._job), this._job);}else{this._s1n=_tf7._f7j(_ugc._yp9(), _tf7._13g("dateOrder", this._job), this._job);}this._s1n=(this._s1n===false)?null:this._s1n;}};_ek3.prototype._c97=function(){var _cti;if(!this._s1n){_cti=new _b4j(false, null, this._6dd, this._k8a);}else{_cti=new _b4j(false, _tf7._s41(this._s1n), this._6dd, this._k8a);}return _cti;};_ek3.prototype._hp3=function(){this._dbg();};_ek3.prototype._mqh=function(_mvl){this._hp6._mqh(_mvl);if(_zpn._qsh["hal"]["enableAccessibility"]){this._rdd.tabIndex=_mvl?0:-1;}};_ek3.prototype._o55=function(){this._s1n=new Date();if(this._yfj&&this._s1n>this._yfj){this._s1n=new Date(this._yfj.valueOf());}if(this._p0i&&this._s1n