123 |
- // Copyright (C) 2008 Cognos ULC, an IBM Company. All Rights Reserved.
- // Cognos and the Cognos logo are trademarks of Cognos ULC (formerly Cognos Incorporated) in the United States and/or other countries. IBM and the IBM logo are trademarks of International Business Machines Corporation in the United States, or other countries, or both. Other company, product, or service names may be trademarks or service marks of others.
- var P_aT=0;var P_f=0;var P_p="'";var P_ai="";var P_ap="\\";var P_b6=":";var P_b=P_ap+P_ap;var P_A=".";var P_a9='="';var P_V="g";var P_cm="gi";var P_cb=">";var P_cO="<";var P_y="/";var P_br=" ";var P_aA='"';var P_c=""";var P_bg=P_cO+P_y;var P_c4="PRMT_IMG_ERROR_";var P_cY="T00:00:00.000";var P_da="T23:59:59.999";var P_S="dv";var P_cA="nullUse";var P_C="use";var P_aP="display";var P_an="@disabled";var P_aa="@displayValue";var P_cs="@nullUse";var P_E="@useValue";var P_m="../skins/corporate";var P_i="boolean";var P_c7="function";var P_cZ="object";var P_bJ="string";var P_cD="undefined";var P_ak="XML";var P_bc="clsDisabled";var P_cd="PRMT_INTERVAL_";var P_q="negative";var P_cX="days";var P_bj="hours";var P_az="minutes";var P_U="seconds";var P_cQ="millis";var P_c9="PRMT_LIST_BOX_SELECT_";var P_k="PRMT_LIST_BUTTON_INSERT_";var P_aY="PRMT_LIST_BUTTON_REMOVE_";var P_aU="PRMT_FB_";var P_bT="PRMT_LIST_LINK_DESELECT_";var P_cE="PRMT_LIST_LINK_SELECT_";var P_cM="NO_SUBMIT";var P_cI="F_";var P_dl="PRMT_RANGE_DEFAULT_";var P_K="PRMT_RANGE_INPUT_";var P_ax="T_";var P_bv="@forceBoundRange";var P_P="PRMT_SV_LINK_DESELECT_";var P_ct="PRMT_SV_LINK_SELECT_";var P_W="PRMT_SV_";var P_c5="PRMT_TB_";var P_cc="choices";var P_c2=new RegExp("^\\s*$");var P_a0=new RegExp("\\s*(-)?\\s*(\\d+\\s+)?\\s*(\\d+)?\\s*(:\\d+)?\\s*(:\\d+)?\\s*(\\.\\d+\\s*)?$");var P_aC=new RegExp("[^\\d]",P_V);var P_G=new RegExp(P_aA,P_V);var P_l=new RegExp("(-)?P(\\d+D)?T?(\\d+H)?(\\d+M)?(\\d+)?(\\.\\d+S)?");var P_cg=new RegExp("(T\\d\\d:\\d\\d:\\d\\d\\.\\d\\d\\d)?$");var K_ACTION_BACK="back";var K_ACTION_CANCEL="cancel";var K_ACTION_FINISH="finish";var K_ACTION_FORWARD="forward";var K_ACTION_NEXT="next";var P_aB="prompt";var K_ACTION_REPROMPT="reprompt";var P_bG="search";var P_aj="@choicesText";var P_dd="@insertText";var P_ab="@removeText";var P_L="@choicesSelectAllText";var P_bn="@choicesDeselectAllText";var P_d="@resultsSelectAllText";var P_w="@resultsDeselectAllText";var P_F="@deselectText";var P_D="@fromText";var P_aZ="@toText";var P_bM="@lowestValueText";var P_ac="@highestValueText";var P_j="@keywordsText";var P_bV="@searchInstructionsText";var P_x="@searchText";var P_cP="@optionsText";var P_b8="@resultsText";var P_aG="@daysText";var P_at="@hoursText";var P_ch="@minutesText";var P_cS="@secondsText";var P_bC="@millisecondsText";var P_aV=-1;var P_bZ=1;var P_H=-2;var P_bH=2;var P_bd=1;var P_u=-1;var P_cz="PRMT_TRACKING";var P_bw="PRMT_NAMES";var P_cH="PRMT_VALUES";var P_db=":";var P_R="PRMT_SELECTDATETIME";var P_aN=-1;var P_v=1;var P_ck=0x25;var P_c3=0x26;var P_z=0x27;var P_cT=0x28;var P_aW=0x20;var P_cK=0x0d;var P_dj=0x09;var P_bx="dijitInline dijitCheckBox dijitCheckBoxChecked";var P_e="dijitInline dijitRadio dijitRadioChecked";var P_bY="dijitInline dijitCheckBox";var P_b1="dijitInline dijitRadio";var P_cy="dijitInline dijitCheckBox dijitCheckBoxMixed";var P_cG="dijitTreeExpando dijitTreeExpandoClosed";var P_bl="dijitTreeExpando dijitTreeExpandoOpened";var P_cp="dijitTreeExpando dijitTreeExpandoLeaf";var P_X="dijitExpandoText";var P_cV="role";var P_aD="aria-selected";var P_bS="aria-checked";var P_ag="presentation";var P_bN="treeitem";var P_aO="tree";var P_cx="group";var P_dh="checkbox";var P_a7="aria-expanded";var P_M="button";var P_ad="PRMT_SF_CONTAINER";var P_aX="PRMT_SF_INPUT_";var P_aM=function(_u2){var _BU=function(){if(this._jf&&arguments[0]!='noinit'){return this._jf.apply(this,arguments);}else{return this;}};for(var v_oProperty in this){_BU[v_oProperty]=this[v_oProperty];}_BU.prototype=_u2;return _BU;};P_aM.prototype={_ff:function(_u2){var _Dm=new this('noinit');var _wF=function(_n0,_s3){if(!_n0.apply||!_s3.apply){return false;}return function(){this._eA=_n0;return _s3.apply(this,arguments);};};for(var v_oProperty in _u2){var _n0=_Dm[v_oProperty];var _s3=_u2[v_oProperty];if(_n0&&_n0!=_s3){_s3=_wF(_n0,_s3)||_s3;}_Dm[v_oProperty]=_s3;}return new P_aM(_Dm);}};Object._ff=function(_oJ,_t1){if(!_t1){_oJ=this;_t1=_oJ;}for(var v_oProperty in _t1){_oJ[v_oProperty]=_t1[v_oProperty];}return _oJ;};function $(){if(arguments.length==1){var element=arguments[0];if(typeof element=='string'){return document.getElementById(element);}return element;}else{var _HN=new Array();var i,l=arguments.length;for(i=0;i<l;i++){var element=arguments[i];if(typeof element=='string'){element=document.getElementById(element);}_HN.push(element);}return _HN;}};function $CE(_t4,_tL,_nX){return(new C_PromptElement(_t4,_tL,_nX));};var PRMTUtils={_hi:function(_ox,_mH){if(_ox){_mH=_mH._j5();var _GZ=_ox.className;if(!_GZ){_GZ=P_ai;}if(!_GZ.match(new RegExp("\\b"+_mH+"\\b"))){_GZ=(_GZ+P_br+_mH);_ox.className=_GZ._j5();}}return this;},_hj:function(_ox,_oy,_vI){if(_ox){if(_ox.addEventListener){_ox.addEventListener(_oy,_vI,false);}else{_ox.attachEvent('on'+_oy,_vI);}}},_fE:function(_ox,_ue){_ox.appendChild(document.createTextNode(P_ai+_ue));},_fO:function(_t4,_tL,_nX){var _uh=document.createElement(_t4);if(_tL){for(var p in _tL){_uh.setAttribute(p,_tL[p]);}}if(_nX){_nX.appendChild(_uh);}return _uh;},_gL:function(_pS){var _xh=_pS;_xh=_xh.replace(new RegExp(sEscapeRegularExpression(g_currencySymbol),P_V),P_ai);_xh=_xh.replace(new RegExp(sEscapeRegularExpression(g_groupingSeparator),P_V),P_ai);_xh=_xh.replace(new RegExp("\\s",P_V),P_ai);_xh=_xh.replace(new RegExp(sEscapeRegularExpression(g_decimalSeparator),P_V),P_A);_xh=_xh.replace(new RegExp(sEscapeRegularExpression(g_percentSymbol),P_V),P_ai);return(_xh);},f_isNumberOnly:function(_pS){var _Eq=new RegExp("^[\\s\\+\\-]*[0-9\\s,\\.]+$");_pS=this._gL(P_ai+_pS);return(_Eq.test(_pS)?true:false);},_h6:function(_ox,_mH){if(_ox){_mH=_mH._j5();var _GZ=_ox.className;if(!_GZ){_GZ=P_ai;}_GZ=_GZ.replace(new RegExp("\\s*\\b"+_mH+"\\b"),P_ai);_ox.className=_GZ._j5();}},_dD:function(_ox){if(_ox&&_ox.parentNode){_ox.parentNode.removeChild(_ox);}},F_PreventSubmit:function(_mG){var _nm=(_mG?_mG:(typeof event!=P_cD?event:null));if(_nm){if(_nm.keyCode==13){return this.F_StopEvent(_nm);}}},F_StopEvent:function(_nm){if(typeof _nm.stopPropagation==P_c7){_nm.stopPropagation();}if(typeof _nm.preventDefault==P_c7){_nm.preventDefault();}_nm.cancelBubble=true;return false;},_e6:function(_uv,_uH,_qu){var s=_uv+"\n"+_uH;if(typeof console!=P_cD){if(_qu){console.warn(s);}else{console.log(s);}}else if(P_aT){s='<div style="color:'+(_qu?"red":"blue")+P_aA+P_cb+s+"</div>";if(this._WIN_LOG_){this._WIN_LOG_.document.write(s);}else{var w=window.open(P_ai,"PRMTUtil_LOG"+(new Date()).getTime());w.document.write(s);w.document.close();this._WIN_LOG_=w;}}},_gs:function(_l5){var _Ad=[];if(!_l5||typeof _l5!=P_bJ){return _Ad;}var _KC=_l5.replace(/\s*;\s*$/g,P_ai);_KC=_KC.replace(/\s*;\s*/g,';');_KC=_KC.replace(/\s*:\s*/g,P_b6);var _y7=_KC.split(";");for(var _Go=0;_Go<_y7.length;_Go++){var _Jk=_y7[_Go].split(P_b6);if(_Jk.length>0&&_Jk[0]){_Ad.push(_Jk);}}return _Ad;},_fe:function(_qZ){return _qZ.replace(/-\D/g,function(_qZ){return _qZ.charAt(1).toUpperCase();});},_hH:function(_uv,_uH){this._e6(_uv,_uH,true);},F_OnChange:function(_nS,_uh){if(_uh.type=="checkbox"){var _o7=_uh.parentNode;if(_uh.checked){_o7.className=P_bx;}else{_o7.className=P_bY;}}else if(_uh.type=="radio"){var _FJ=_uh.parentNode.parentNode.parentNode._gl;if(_FJ&&_FJ._gp){var _FT=_FJ._gp();var _vZ=_FT.length;for(var i=0;i<_vZ;i++){var _Fu=_FT[i];var _o7=_Fu.parentNode;_o7.className=(_Fu.checked?P_e:P_b1);}}}if(window.ie){while(_uh&&!_uh._gl){_uh=_uh.parentNode;}if(_uh&&_uh._gl&&_uh._gl._f4){_uh._gl._f4();}return true;}},f_updateRadioButtons:function(_uh){if(_uh&&_uh.name){var _mH=_uh.name;var _H4=document.getElementsByName(_mH);var _vZ=_H4.length;for(var i=0;i<_vZ;i++){var _Fu=_H4[i];var _o7=_Fu.parentNode;_o7.className=(_Fu.checked?P_e:P_b1);}}},f_CheckboxOnFocus:function(_uh){_uh.parentNode.nextSibling.style.border="1px dotted";},f_CheckboxOnBlur:function(_uh){_uh.parentNode.nextSibling.style.border="0 none";},f_RangeRadioOnFocus:function(_uh){_uh.parentNode.style.border="1px dotted";},f_RangeRadioOnBlur:function(_uh){_uh.parentNode.style.border="0 none";},f_SearchOptionOnFocus:function(_uh){_uh.parentNode.parentNode.nextSibling.firstChild.style.border="1px dotted";},f_SearchOptionOnBlur:function(_uh){_uh.parentNode.parentNode.nextSibling.firstChild.style.border="0 none";},_lh:function(_o5){var _xe=false;if(typeof _o5=="object"&&"nodeType" in _o5&&_o5.nodeType===1&&_o5.cloneNode){_xe=true;}return _xe;},_kd:function(_uW,_uM){var _G1="alert_"+_uW;if(typeof _uM!=P_cD&&_uM!=null&&_uM.length&&_uM.length>0){_G1+="_"+_uM;}return _G1;},_ix:function(){return(/iPad|iPhone/.test(navigator.platform))||(/Linux/.test(navigator.platform)&&/Android/.test(navigator.userAgent));},_j0:function(){if(window.prmt_bHighContrast===false||window.prmt_bHighContrast===true){return window.prmt_bHighContrast;}var _IW=document.createElement("div");_IW.id=this._gD+"hc";_IW.style.border="1px solid";_IW.style.borderColor="red green";_IW.style.height="10px";_IW.style.top="-999px";_IW.style.position="absolute";document.body.appendChild(_IW);var _G4=null;if(window.ie&&!window.edge){_G4=_IW.currentStyle;}else{_G4=_IW.ownerDocument.defaultView.getComputedStyle(_IW,null);}window.prmt_bHighContrast=_G4.borderTopColor==_G4.borderRightColor;document.body.removeChild(_IW);return window.prmt_bHighContrast;},_jZ:function(_uh,_pX){if(_uh){if(_uh[P_bS]){_uh[P_bS]=_pX;}else{_uh.setAttribute(P_bS,_pX);}}},_ik:function(_uX,_mP,_uM){try{if(this._lh(_uX)){var _G1=this._kd(_mP,_uM);var _IZ=$(_G1);if(_IZ&&this._lh(_IZ)){this._dD(_IZ);}}}catch(err){}},_fB:function(_uX,_mP,_oz,_uH,_uM){try{var _G1=this._kd(_mP,_uM);var _IZ=$(_G1);if(_IZ&&this._lh(_IZ)){var _As=_IZ.firstChild;if(_As.getAttribute("alt")!=_uH){this._dD(_IZ);_IZ=P_cD;}}if(!(_IZ&&this._lh(_IZ))){var _G3=document.createElement("div");_G3.setAttribute("role","alert");if(_G1!=null){_G3.setAttribute("id",_G1);}var _ww=_uX.parentNode;if(_ww){_ww.appendChild(_G3);}}}catch(err){}},_kO:function(_uX,_mP,_oz,_oC,_uM){try{_uX.setAttribute("aria-invalid",true);this._fB(_uX,_mP,_oz,_oC,_uM);}catch(err){}},_g7:function(_uX,_mP,_uM){try{if(this._lh(_uX)){_uX.setAttribute("aria-invalid",false);this._ik(_uX,_mP,_uM);}}catch(err){}}};String.prototype._j5=function(){return(this.replace(/^(\s|\n)*|(\s|\n)*$/g,P_ai));};String.prototype._et=function(){return(this.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(P_G,"""));};Function.prototype.bind=function(_uD){var _z3=this;var _Lb=_uD;var _yU=[];for(var _m6=1;_m6<arguments.length;_m6++){_yU.push(arguments[_m6]);}return(function(e){if(e){_yU.push(e);}return _z3.apply(_Lb,_yU);});};if(!!window.MSInputMethodContext&&!!document.documentMode&&(document.documentMode==11)){window.ie=window.ie11=true;}else if(document.all&&!!window.atob){window.ie=window['ie10']=true;}else if(document.all&&!!document.addEventListener){window.ie=window['ie9']=true;}else if(document.all&&!!document.querySelector){window.ie=window['ie8']=true;}else if(document.all&&!!window.XMLHttpRequest){window.ie=window['ie7']=true;}else if(document.all&&!!document.compatMode){window.ie=window['ie6']=true;}else if(document.all){window.ie=window['ie5']=true;}else if(document.childNodes&&!document.all&&!navigator.taintEnabled){if(!!window.StyleMedia){window.ie=window.ie11=window.edge=true;}else window.khtml=true;}else if(document.getBoxObjectFor!=null)window.gecko=true;var P_bz={BIDI_TXTDIR_CONTEXTUAL:"auto",BIDI_TXTDIR_RTL:"rtl",BIDI_TXTDIR_LTR:"ltr",BIDI_CHAR_LRE:"\u202A",BIDI_CHAR_RLE:"\u202B",BIDI_CHAR_PDF:"\u202C",BIDI_CHAR_LRM:"\u200E",BIDI_CHAR_RLM:"\u200F",VK_SHIFT:0x10,VK_END:0x23,VK_HOME:0x24,VK_LEFT:0x25,VK_RIGHT:0x27,fixInputDirection:function(_rJ,_mu,_tk){if(_rJ!==null&&(_rJ.tagName=='INPUT'||_rJ.tagName=='TEXTAREA')){_rJ.style.direction=P_bz.getTextDirection(_rJ.value,_mu);}},enforceBidiDirection:function(_oQ,_mu){var _Cz=P_bz.getTextDirection(_oQ,_mu);var _Fb=_oQ;if(_Cz=="ltr"){_Fb=P_bz.BIDI_CHAR_LRE+_Fb+P_bz.BIDI_CHAR_PDF;}else if(_Cz=="rtl"){_Fb=P_bz.BIDI_CHAR_RLE+_Fb+P_bz.BIDI_CHAR_PDF;}return _Fb;},getTextDirection:function(_uG,_mu){var _Cz=_mu;if(_mu==P_bz.BIDI_TXTDIR_CONTEXTUAL){_Cz=((P_bz.isRTLString(_uG))?P_bz.BIDI_TXTDIR_RTL:P_bz.BIDI_TXTDIR_LTR);}return _Cz;},isRTLString:function(_oQ){var _xY=false;for(var i=0;i<_oQ.length;i++){if(P_bz.isRTLChar(_oQ.charCodeAt(i))){_xY=true;break}else if(P_bz.isLatinChar(_oQ.charCodeAt(i))){break;}}return _xY;},isRTLChar:function(c){var _xY=false;if((c>=0x05d0&&c<=0x05ff)||(c>=0x0600&&c<=0x065f)||(c>=0x066a&&c<=0x06ef)||(c>=0x06fa&&c<=0x07ff)||(c>=0xfb1d&&c<=0xfdff)||(c>=0xfe70&&c<=0xfefc)){_xY=true;}return _xY;},isLatinChar:function(c){return(((c>64&&c<91)||(c>96&&c<123))?true:false);},lookupDirection:function(_tf){var _KL=null;while((_KL!=P_bz.BIDI_TXTDIR_LTR)&&(_KL!=P_bz.BIDI_TXTDIR_RTL)&&_tf&&_tf.parentNode){_tf=_tf.parentNode;_KL=((_tf.style&&_tf.style.direction)?_tf.style.direction:_tf.dir);}return _KL;},containsRTLChar:function(_oQ){var _xY=false;for(var i=0;i<_oQ.length;i++){if(P_bz.isRTLChar(_oQ.charCodeAt(i))){_xY=true;break}}return _xY;},isCharBeforeRTLChar:function(_qB,i,_vE){var _xY=false;var _LJ;while(i>0&&i!=_vE){_LJ=_qB.charCodeAt(i-1);if(P_bz.isRTLChar(_LJ)){_xY=true;break;}else if(P_bz.isLatinChar(_LJ)){break;}i--;}return _xY;},parseSTT:function(_qc,_mv){var i,i1;var _DH;var _vE=-1;var _EJ=[];var _Lc=0;if(_mv=="FILEPATH"){_DH="/\\:.";for(i=0;i<_qc.length;i++){if((_DH.indexOf(_qc.charAt(i))>=0)&&P_bz.isCharBeforeRTLChar(_qc,i,_vE)){_vE=i;_EJ[_Lc]=i;_Lc++;}}}return _EJ;},insertMarkers:function(_qc,_mv){var _EJ=P_bz.parseSTT(_qc,_mv);var _LZ=_qc;shift=0;var n;var _Av=P_bz.BIDI_CHAR_LRM;for(var i=0;i<_EJ.length;i++){n=_EJ[i];if(n!=null){preStr=_LZ.substring(0,n+shift);postStr=_LZ.substring(n+shift,_LZ.length);_LZ=preStr+_Av+postStr;shift++;}}return _LZ;},onFileFocus:function(_tr,id,_mv){var _DT=document.getElementById(id);_DT.value=P_bz.insertMarkers(_tr.value,_mv);},onFileChange:function(_tr,id,_mv){var _DT=document.getElementById(id);_DT.value=P_bz.insertMarkers(_tr.value,_mv);_DT.focus();},onFakeKeyDown:function(event,id){event=(event)?event:((window.event)?window.event:"");var _HL=event.keyCode;if(event.altKey||event.ctrlKey||_HL==P_bz.VK_SHIFT){return true;}else if(!(_HL==P_bz.VK_HOME||_HL==P_bz.VK_END||_HL==P_bz.VK_LEFT||_HL==P_bz.VK_RIGHT)){P_bz.focusElement(id);return false;}else{return true;}},focusElement:function(id){var _tf=document.getElementById(id);_tf.focus();return false;},processCopy:function(_uk){var _z1="";try{if(window.navigator.appName=="Microsoft Internet Explorer"){var w=_uk.document.parentWindow;var e=w.event;var _Hl=_uk.document.selection.createRange();_z1=_Hl.text;}else{_z1=_uk.document.getSelection();}var _z7=P_bz.removeMarkers(_z1);if(window.clipboardData){window.clipboardData.setData("Text",_z7);e.returnValue=false;}}catch(e){var _uH="";if(e&&e.name){_uH+=e.name+"\n";}if(e&&e.message){_uH+=e.message;}if(_uH){alert(_uH);}}},removeMarkers:function(_qc){var _xY=_qc.replace(/\u200E/g,"");_xY=_xY.replace(/\u200F/g,"");_xY=_xY.replace(/\u202A/g,"");_xY=_xY.replace(/\u202B/g,"");return _xY.replace(/\u202C/g,"");},formatFilePath:function(_qc){var _xY=P_bz.insertMarkers(_qc,'FILEPATH');return P_bz.enforceBidiDirection(_xY,P_bz.BIDI_TXTDIR_LTR);}};function C_PromptElement(_sV,_rR,_ut){this._kw=_sV;this._je={};this._eC=[];if(_rR){Object._ff(this._je,_rR);}if(_ut){_ut._ep(this);}};C_PromptElement.prototype._jc=function(_ue){var _nn=null;_nn=sDecodeU003(P_ai+_ue);var _zj=new RegExp("(<|>)");if(_nn.match(_zj)){_nn=sHtmlEncode(_nn);}this._eC.push(_nn);};C_PromptElement.prototype._ja=function(){var s=P_cO+this._kw;for(var a in this._je){if(this._je[a]!==null){var _zQ=P_ai+this._je[a];s+=P_br+a+P_a9+_zQ.replace(P_G,P_c)+P_aA;}}if(this._eC.length>0){s+=P_cb;var _BE=[];for(var i=0;i<this._eC.length;i++){var c=this._eC[i];if(c&&(typeof c._ja==P_c7)){s+=c._ja();}else{s+=c;}}s+=P_bg+this._kw;}else if(this._kw!='img'){s+=P_y;}s+=P_cb;return s;};C_PromptElement.prototype._lo=function(_ox,_rB){var _AK=PRMTUtils._gs(_rB);for(var i=0;i<_AK.length;i++){var _wL=_AK[i];_ox.style[PRMTUtils._fe(_wL[0])]=_wL[1];}};C_PromptElement.prototype._iu=function(){var _ox=document.createElement(this._kw);if(window.ie){for(var a in this._je){if(this._je[a]!==null){switch(a){case "class":_ox.className=this._je[a];break;case "style":this._lo(_ox,this._je[a]);break;default:_ox.setAttribute(a,P_ai+this._je[a]);}}}}else{for(var a in this._je){_ox.setAttribute(a,P_ai+this._je[a]);}}if(this._eC.length>0){for(var i=0;i<this._eC.length;i++){var c=this._eC[i];if(c&&(typeof c._iu==P_c7)){_ox.appendChild(c._iu());}else{_ox.innerHTML+=(P_ai+c);}}}return _ox;};C_PromptElement.prototype._ep=function(oP){this._eC.push(oP);};C_PromptElement.prototype._jU=function(_mO){var _GZ=this._ln("class");_GZ=(_GZ?_GZ+P_br:P_ai)+_mO;this._fH("class",_GZ);};C_PromptElement.prototype._ln=function(_mH){return(this._je[_mH]);};C_PromptElement.prototype._fH=function(_mH,_pS){this._je[_mH]=_pS;};if(typeof cognos=="undefined"){cognos={};}cognos.Prompt=function(){this._iv=[];this._hE=[];};cognos.Prompt.prototype.F_Add=function(_tL,_q5){Object._ff(_tL,_q5);var _oB=this._iu(_tL);if(_oB){_oB._eS(this);this._iv.push(_oB);window[_oB._gE("p_")]=_oB;var cv=_oB._eE();if(cv){if(typeof cv.setHasPrompts=="function"){cv.setHasPrompts(true);}var _Dq=cv.preProcessControlArray;if(_Dq){_Dq.push(_oB);}}}return(_oB);};cognos.Prompt.prototype._iu=function(_tL){var _oB=null;if(_tL){var _zJ=this.isHTML5(_tL);if(_tL["@range"]){_oB=new cognos.Prompt.Control.Range(_tL,this);}else if(_tL["@parameterizedTree"]&&(_tL["@parameterizedTree"]==true)){_oB=new cognos.Prompt.Control.PickTree(_tL);}else{switch(_tL.n){case "textBox":_oB=new cognos.Prompt.Control.Text(_tL);break;case "selectFile":_oB=new cognos.Prompt.Control.SelectFile(_tL);break;case "selectValue":_oB=new cognos.Prompt.Control.SelectValue(_tL);break;case "selectInterval":_oB=new cognos.Prompt.Control.Interval(_tL,this);break;case "selectDate":_oB=((_zJ&&this.browserSupportsHTML5Input(_tL.n))?new cognos.Prompt.Control.SelectHTML5Date(_tL):new cognos.Prompt.Control.Date(_tL));break;case "selectTime":_oB=((_zJ&&this.browserSupportsHTML5Input(_tL.n))?new cognos.Prompt.Control.SelectHTML5Time(_tL):new cognos.Prompt.Control.Time(_tL));break;case "selectDateTime":_oB=((_zJ&&this.browserSupportsHTML5Input(_tL.n))?new cognos.Prompt.Control.SelectHTML5DateTime(_tL):new cognos.Prompt.Control.DateTime(_tL));break;case "selectWithTree":_oB=new cognos.Prompt.Control.Tree(_tL);break;case "selectWithSearch":_oB=new cognos.Prompt.Control.Search(_tL);break;}}}return(_oB);};cognos.Prompt.prototype.browserSupportsHTML5Input=function(_u4){var _GK=true;var _Fr=document.createElement("input");switch(_u4){case "selectDate":_Fr.setAttribute("type","date");_GK=_Fr.type!=="text";break;case "selectTime":_Fr.setAttribute("type","time");_GK=_Fr.type!=="text";break;case "selectDateTime":_Fr.setAttribute("type","date");_GK=_Fr.type!=="text";_Fr.setAttribute("type","time");_GK=(_Fr.type!=="text")&&_GK;break;}return _GK;};cognos.Prompt.prototype.isHTML5=function(_tL){var _xY=false;if((typeof G_PRMT_HTML5PromptControls)!=P_cD&&G_PRMT_HTML5PromptControls){_xY=true;}else{var _JB=new RegExp("^_html5","im");if(_tL["@name"]&&(_tL["@name"].match(_JB))){_xY=true;}}return _xY;};cognos.Prompt.prototype.getControlByName=function(_ts){return this.getPromptControl(_ts);};cognos.Prompt.prototype.getControls=function(){return this._iv;};cognos.Prompt.prototype.getParameterByName=function(_ts){if(_ts instanceof cognos.Prompt.Parameter){return _ts;}for(var _m6=0;_m6<this._hE.length;_m6++){if(this._hE[_m6].getName()==_ts){return(this._hE[_m6]);}}var _LM=new cognos.Prompt.Parameter(_ts);this._hE.push(_LM);return _LM;};cognos.Prompt.prototype.getParameters=function(){return this._hE;};cognos.Prompt.prototype.getPromptControl=function(_nz){var _DW=this._iv;var _pq=null;for(var _m6=0;_m6<_DW.length;_m6++){var _w9=_DW[_m6];var _Aw=_w9._gE();if(_Aw==_nz){_pq=_w9;break;}}if(_pq===null){for(_m6=0;_m6<_DW.length;_m6++){var _w9=_DW[_m6];var _Aw=_w9["@id"];if(_Aw==_nz){_pq=_w9;break;}}}if(_pq===null){for(_m6=0;_m6<_DW.length;_m6++){var _w9=_DW[_m6];var _Aw=_w9["@name"];if(_Aw==_nz){_pq=_w9;break;}}}return _pq;};cognos.Prompt.prototype.isValid=function(_qw){var _IB=true;for(var _m6=0;_IB&&_m6<this._hE.length;_m6++){_IB&=this._hE[_m6].isValid();}return _IB;};cognos.Prompt.prototype.registerControl=function(_n9,_nT){var _LM=this.getParameterByName(_n9);if(_LM){_LM._ee(_nT);}this._iv.push(_nT);};cognos.Prompt.prototype.toXML=function(){var _It=[];for(var _m6=0;_m6<this._hE.length;_m6++){var _ts=this._hE[_m6].getName();_It.push('<param name="');_It.push(_ts._et());_It.push('">');_It.push(this._hE[_m6].getXML());_It.push('</param>');}return(_It.join(P_ai));};var C_PromptManager=cognos.Prompt;cognos.Prompt.Control=new P_aM({});cognos.Prompt.Control.isElementInList=function(_tf,_mE){var _G7=_mE.split(P_db);var _GD=false;for(var i=0;i<_G7.length;i++){if(_G7[i]==_tf){_GD=true;break;}}return _GD;};cognos.Prompt.Control.prototype._jf=function(_tL){this[P_aj]=(this._type_=="cognos.Prompt.Control.Search"&&!this.isMulti()?PMT_UIM_CHOICE:PMT_UIM_CHOICES);this[P_dd]=PMT_UIM_INSERT;this[P_ab]=PMT_UIM_REMOVE;this[P_L]=PMT_UIM_SELECTALL;this[P_bn]=PMT_UIM_DESELECTALL;this[P_d]=PMT_UIM_SELECTALL;this[P_w]=PMT_UIM_DESELECTALL;this[P_D]=PMT_RNG_FROM;this[P_aZ]=PMT_RNG_TO;this[P_bM]=this[P_bM]?this[P_bM]:PMT_RNG_LOWEST_VALUE;this[P_ac]=this[P_ac]?this[P_ac]:PMT_RNG_HIGHEST_VALUE;this[P_j]=PMT_SSM_KEYWORDSLABEL;this[P_bV]=PMT_SSM_KEYWORDTIP;this[P_x]=PMT_SSM_SEARCH;this[P_cP]=PMT_SSM_OPTIONS;this[P_b8]=PMT_SSM_SEARCHRESULTS;this[P_F]=PMT_UIM_DESELECT;this[P_aG]=PMT_SIC_DAYS;this[P_at]=PMT_SIC_HOURS;this[P_ch]=PMT_SIC_MINUTES;this[P_cS]=PMT_SIC_SECONDS;this[P_bC]=PMT_SIC_MILLISECONDS;if(_tL){Object._ff(this,_tL);}this._hZ("@parameter");this._hZ("@name");this.m_oSubmit=null;this._kp="PRMT_";this._lw=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);this._fp=null;this._kg=null;this._eJ=null;this._iI=null;this._f9=false;this._iF=false;this._dn=this._lw+"/prompting/images/error_timed_small.gif";this._hY=this._lw+"/prompting/images/error_timed_small_rtl.gif";this._gO=this._lw+"/prompting/images/error_timed_small_off.gif";if(!this["@submitType"]){this["@submitType"]=P_ak;}this._l1=false;this._hU={'lowest':PMT_RNG_LOWEST_VALUE,'highest':PMT_RNG_HIGHEST_VALUE};};cognos.Prompt.Control.prototype.clearSubmit=function(){this.m_oSubmit.value=P_ai;};cognos.Prompt.Control.prototype.checkData=function(){if(this.m_oRangeControl){this.m_oRangeControl.checkData();}if(this._iI&&(typeof this._iI==P_c7)&&!this._f9){this._f9=true;this._l1=this._iI(this.getValues());this._f9=false;}var _Al=this._l1;if(_Al){this.checkPass();}else{this.checkFail();}if(this._fJ){this._fJ.checkData();}if(_Al&&(this._type_!="cognos.Prompt.Control.Search")&&(this._type_!="cognos.Prompt.Control.Time")){this.cacheControlValue(this._type_);}return _Al;};cognos.Prompt.Control.prototype.checkFail=function(){var _zc=this._f8();if(_zc){PRMTUtils._hi(_zc,"clsTextWidgetParseError");if(!(this._type_=="cognos.Prompt.Control.Date")){var _yE=(this.isEmpty()?PMT_UIM_MISSING_VALUE:PMT_UIM_INVALID_INPUT);var _pq=this._fp;var _B1=this._gE();var _LI=this._lw;window.setTimeout(function(){PRMTUtils._kO(_pq,_B1,_LI,_yE);},0);}}if(!this["@hideAdornments"]&&this._kg&&this._kg.getAttribute("src")!=this._dn&&this._kg.getAttribute("src")!=this._hY){var _uh=(this._hQ?this._hQ:$(this._gE(this._kp)));var _zy=cssParser(this["@style"],"direction",true);var _AG=((_zy=="ltr"||_zy=="rtl")?_zy:P_bz.lookupDirection(_uh));this._kg.setAttribute("src",(_AG=="rtl")?this._hY:this._dn);}this.notify(gFAIL,this);};cognos.Prompt.Control.prototype.checkPass=function(){var _zc=this._f8();if(_zc){PRMTUtils._h6(_zc,"clsTextWidgetParseError");if(!(this._type_=="cognos.Prompt.Control.Date")){PRMTUtils._g7(this._fp,this._gE());}}if(this._k0){PRMTUtils._h6(this._k0,this._jj?this._jj:"clsFeedbackWidgetParseError");}if(!this["@hideAdornments"]&&this._kg&&this._kg.getAttribute("src")!=this._gO){this._kg.setAttribute("src",this._gO);}this.notify(gPASS,this);};cognos.Prompt.Control.prototype.checkRequired=function(){if(this.isRequired()){if(this._eJ&&this._eJ._dB){if(this._eJ.F_IsEmpty()){PRMTUtils._hi(this._eJ._dB,this._jj?this._jj:"clsTextWidgetParseError");}else{PRMTUtils._h6(this._eJ._dB,this._jj);PRMTUtils._h6(this._eJ._dB,"clsTextWidgetParseError");}}}};cognos.Prompt.Control.prototype.setAriaRequired=function(_sW){if(this.isRequired()&&_sW){_sW.setAttribute("aria-required",true);}};cognos.Prompt.Control.prototype.getWebContentRoot=function(){var _CO="..";var _Ch=(this._eE?this._eE():null);if(_Ch&&_Ch.getWebContentRoot){_CO=_Ch.getWebContentRoot();}return _CO;};cognos.Prompt.Control.prototype._kJ=function(_pk){PRMTUtils._hH("PRMT_0006","f_compare() not implemented! ["+this._type_+"]");return 1;};cognos.Prompt.Control.prototype._d3=function(){var _uh=$(this._gE(this._kp));if(!_uh){PRMTUtils._hH("PRMT_0000","f_draw():: Can't find "+this._gE(this._kp));return;}if(PRMTUtils._j0()){_uh.className=_uh.className+" clsPrompt_a11y";}var _xJ=cssParser(this["@style"],"vertical-align",true);if(_xJ){_uh.style.verticalAlign=_xJ;}var _zy=cssParser(this["@style"],"direction",true);var _AG=((_zy=="ltr"||_zy=="rtl")?_zy:P_bz.lookupDirection(_uh));if(_AG=="rtl"){_uh.style.textAlign="right";}else{_uh.style.textAlign="left";}var _yM=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag,"style":(window.ie?"display:inline-table;vertical-align:top;":"")+cssParser(this["@style"],gsCSS_DEFAULT_STYLE)});if(cssParser(this["@style"],"width")&&this.n!="selectValue"){_yM._fH("width","100%");}if(this[P_an]){_yM._jU(P_bc);}var _Lm=$CE("tbody",{},_yM);var _pT=$CE("tr",{},_Lm);this._hx(_pT);var _Kk=cssParser(this["@style"],"float",true);if(_Kk){_uh.style.styleFloat=_Kk;_uh.style.cssFloat=_Kk;}var _Cu=this._h7()+_yM._ja();_uh.innerHTML=(_Cu);if(!this.m_oSubmit){this._gx();}if(this._fp&&this.disabled){this._fp._fH("disabled","disabled");}this._ly();};cognos.Prompt.Control.prototype._kT=function(_uh,_q4){var _Bz=$CE("td",{"vAlign":"top","width":"10px"},_uh);if(this["@hideAdornments"]){var _Ib=$CE("img",{"src":this._lw+"/prompting/images/spacer.gif","height":10,"width":10,"border":0},_Bz);if(!this._en){_Ib._fH("class","clsErrorRequired");}}else{var _Ai=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"width":10,"height":20,"role":P_ag},_Bz);var _zE=$CE("tbody",{},_Ai);if(this.isRequired()&&!_q4){var _A3=$CE("tr",{},_zE);var _Bf=$CE("td",{"vAlign":"top"},_A3);var _Dv=$CE("img",{"src":this._lw+"/prompting/images/icon_required.gif","class":"clsErrorRequired","vAlign":"top","height":10,"width":10,"border":0,"alt":""},_Bf);}var _DM=$CE("tr",{},_zE);var _yZ=$CE("td",{"vAlign":"top"},_DM);$CE("img",{"id":this._gE(P_c4),"src":this._lw+"/prompting/images/error_timed_small_off.gif","class":"clsErrorRequired","vAlign":"top","height":10,"width":10,"border":0,"alt":""},_yZ);}return _Bz;};cognos.Prompt.Control.prototype._kB=function(_uh){alert("cognos.Prompt.Control::f_drawInput");};cognos.Prompt.Control.prototype._hx=function(_pT){var _pq=null;if(this.isMulti()){var _BA=$CE("td",{"vAlign":"top","class":"clsControlLabel pc"},_pT);if(!this._dr()&&!this._fK){_BA._ep(" <br>");if(this["@showCondition"]){var _I6=$CE("select",{"style":"margin-bottom:5px;visibility:hidden;"},_BA);var _Fd=$CE("option",{"value":"null"},_I6);_Fd._jc("x");}}var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0},_BA);var _t6=$CE("tbody",{},_y3);var _rS=$CE("tr",{},_t6);if(!(this["@hideAdornments"]||this._jQ)){this._kT(_rS,true);}var _rK=$CE("td",{},_rS);if(cssParser(this["@style"],"width")){_BA._fH("width","100%");_y3._fH("width","100%");_rK._fH("width","100%");}_pq=this._kB(_rK);this.setAriaRequired();this._eJ=new C_Choices(this);var _zX=this._eE().multipleObserverArray;if(_zX){_zX.push(this._eJ);}this._eJ.F_Draw(_pT);}else{if(!(this["@hideAdornments"]||this._jQ)){this._kT(_pT);}_pq=this._kB($CE("td",{},_pT));}this._fp=_pq;return(_pq);};cognos.Prompt.Control.prototype._la=function(){PRMTUtils._hH("PRMT_0004","f_getPV() not implemented! ["+this._type_+"]");};cognos.Prompt.Control.prototype._hs=function(_sU){var _wL=this._hU[_sU];if(typeof _wL==P_cD){_wL=_sU;}return _wL;};cognos.Prompt.Control.prototype.getValid=function(){return(this._eJ?this._eJ._iz():this._l1);};cognos.Prompt.Control.prototype._d4=function(_t4){var _pq=this;var _zU=null;if(_pq.c&&_pq.c.length){for(var _m6=0;_m6<_pq.c.length;_m6++){if(_pq.c[_m6].n==_t4){_zU=_pq.c[_m6];if(!(_zU&&_zU.c&&_zU.c.length>0)){_zU=null;}break;}}}return _zU;};cognos.Prompt.Control.prototype.getSelectChoices=function(){return(this._d4("selectChoices"));};cognos.Prompt.Control.prototype.hasValue=function(){var _u3=this._la();return(_u3&&_u3.length>0);};cognos.Prompt.Control.prototype.isEmpty=function(){return!this.hasValue();};cognos.Prompt.Control.prototype.isExclusive=function(){var _I6=$(this._gE("oExcludeSelectedValues"));return(_I6&&_I6.options&&_I6.options[1]&&_I6.options[1].selected?true:false);};cognos.Prompt.Control.prototype.isMulti=function(){return(this["@multiSelect"]===true);};cognos.Prompt.Control.prototype._dr=function(){return(this["@range"]===true);};cognos.Prompt.Control.prototype.isRequired=function(){return(this["@required"]===true);};cognos.Prompt.Control.prototype.isValid=function(){this.checkData();return(this._l1===true);};cognos.Prompt.Control.prototype.notify=function(_nb,_tF){var _Ch=this._eE();if(_Ch&&typeof _Ch.notify==P_c7){_Ch.notify(_nb,_tF);}};cognos.Prompt.Control.prototype.preProcess=function(){if(!this.m_oSubmit){PRMTUtils._hH("PRMT_0005","preProcess():: No m_oSubmit defined. ["+this._type_+"]");return;}var _u3=(this._eJ?this._eJ._la():this._la());var _CV=null;if(_u3&&typeof _u3==P_cZ){_CV=cognos.Value.toXML(_u3);}else if(typeof _u3==P_bJ){_CV=_u3;}if(_CV===null){_CV=P_ai;}addSelectChoices(this.m_oSubmit,_CV);return(_CV);};cognos.Prompt.Control.prototype.removeSelectedChoices=function(){var _Hd=null;if(typeof this.m_oLstChoices==P_cZ){_Hd=this.m_oLstChoices.selectedIndex;}if(typeof _Hd!="number"){return;}if(_Hd!=-1){for(var _JT=this.m_oLstChoices.options.length-1;_JT>-1;_JT--){if(this.m_oLstChoices.options[_JT].selected){this.m_oLstChoices.options[_JT]=null;}}}else{var _AS="sPrompt_Select_Item_First";if(typeof PMT_UIM_sPrompt_Select_Item_First==P_bJ){_AS=PMT_UIM_sPrompt_Select_Item_First;}PRMTUtils._hH("PRMT_0001",_AS);}this.checkData();};cognos.Prompt.Control.prototype.setCVId=function(_ns){if(typeof _ns==P_bJ&&_ns!==P_ai&_ns!=P_cD){this._kN=_ns;}};cognos.Prompt.Control.prototype.setExclusive=function(_rh){var _I6=$(this._gE("oExcludeSelectedValues"));if(_I6&&_I6.options){var _m6=(_rh?1:0);if(_I6.options[_m6]){_I6.options[_m6].selected=true;}}};cognos.Prompt.Control.prototype._gx=function(){var _yf=this._iG();var _Bo=this.getParameterName();if(_yf){this.m_oSubmit=_yf.elements[_Bo];}if(this.m_oSubmit){this.m_oSubmit.value=P_ai;}else{if(document.readyState&&document.readyState!="complete"){setTimeout(this._gx.bind(this),100);return;}this.m_oSubmit=PRMTUtils._fO("input",{"name":_Bo,"type":"hidden","value":P_ai},_yf);}};cognos.Prompt.Control.prototype.setParameterValues=function(_mm){var _wM=this._eJ;if(_wM){_wM.F_SelectAll();_wM.F_Remove();for(var _m6=0;_m6<_mm.length;_m6++){_wM.F_AddPV(_mm[_m6]);}_wM.checkData();}else if(_mm.length){this._fA(_mm[0]);}};cognos.Prompt.Control.prototype._ly=function(){if(this._eJ){this._eJ.F_DrawCompleted();}var _wR=$(this._gE(P_c4));if(_wR){this._kg=_wR;}if(!this.m_oRangeControl){this._jd();}if(window.JsUnitException){this.checkData();}else{setTimeout(this.checkData.bind(this),20);}if(typeof SYSTEMPROPERTY_CREATE_CUSTOM_SCRIPTS_REFS!=P_cD&&SYSTEMPROPERTY_CREATE_CUSTOM_SCRIPTS_REFS&&typeof this._iP==P_c7){this._iP();}};cognos.Prompt.Control.prototype.addEvent=function(_mG,_qA){};cognos.Prompt.Control.prototype.addValues=function(_mg){var _rv=(this.isMulti()?_mg.length:1);for(var _m6=0;_m6<_rv;_m6++){this._fA(_mg[_m6]);if(this._eJ){this._eJ.F_Insert();}}this.checkData();};cognos.Prompt.Control.prototype.setValues=function(_mg){this.clearValues();this.addValues(_mg);};cognos.Prompt.Control.prototype.setValidator=function(_q8){this._iI=_q8;};cognos.Prompt.Control.prototype.catchDeleteKey=function(_ug){if(_ug==46&&typeof this.remove==P_c7){this.remove(this.m_oLstChoices);}};cognos.Prompt.Control.prototype.clearValues=function(){if(this._eJ){this._eJ.F_SelectAll();this._eJ.F_Remove();}};cognos.Prompt.Control.prototype._hu=function(_pf,_o5){if(this["@name"]){var _mH=_pf+this["@name"];window[_mH]=(_o5?_o5:this);return(window[_mH]);}return null;};cognos.Prompt.Control.prototype._iG=function(){var _Ft=document;var _DQ="formWarpRequest";var _wN=_Ft[_DQ+this._kM()];if(!_wN&&_Ft[_DQ]){_wN=_Ft[_DQ];_Ft[_DQ].submit=_dY;}return _wN;};cognos.Prompt.Control.prototype._fD=function(_pf,_uh){if(this["@name"]){var _mH=_pf+this["@name"];var _wN=this._iG();if(_wN){_wN[_mH]=(_uh?_uh:this._fp);}if(this._kW){_mH=_pf+this._kW+this["@name"];window[_mH]=(_uh?_uh:this._fp);if(_wN){_wN[_mH]=window[_mH];}}if(this["@parameter"]){_mH="p_"+this["@parameter"];if(!_wN[_mH]){_wN[_mH]=this.m_oSubmit;}}}};cognos.Prompt.Control.prototype._hZ=function(_ve){if(typeof this[_ve]==P_bJ){this[_ve]=sDecodeU003(this[_ve]);}};cognos.Prompt.Control.prototype._h7=function(){var _Bx="";var _Cf=this._kM();var _yf=$("formWarpRequest"+_Cf);if(_yf&&_yf.elements&&!_yf.elements[this.getParameterName()]){var _yi=$CE("input",{"type":"hidden","name":this.getParameterName()});_Bx=_yi._ja();}return _Bx;};cognos.Prompt.Control.prototype._eE=function(){var _wf=window;if(typeof this._jE==P_cZ){_wf=this._jE;}else{try{_wf=eval("oCV"+this._kM());if(typeof _wf==P_cZ){this._jE=_wf;}}catch(e){_wf=window;}}return _wf;};cognos.Prompt.Control.prototype._eS=function(_mq){this._gJ=_mq;};cognos.Prompt.Control.prototype._es=function(){return this._gJ;};cognos.Prompt.Control.prototype._gH=function(){var _Ch=this._eE();return(typeof _Ch==P_cZ&&_Ch.isBux?true:false);};cognos.Prompt.Control.prototype.getGateway=function(){var _Df=document.location.pathname;var _Ch=(this._eE?this._eE():null);if(_Ch&&_Ch.getGateway){_Df=_Ch.getGateway();}return _Df;};cognos.Prompt.Control.prototype._kM=function(){return this.CVId;};cognos.Prompt.Control.prototype._iL=function(){var _nO=P_ai;if(this._id_){_nO=this._id_;}else if(this.id){_nO=this.id;}else if(this["@parameter"]){_nO=this["@parameter"];}else if(this.name){_nO=this.name;}return _nO;};cognos.Prompt.Control.prototype._f8=function(){var _zc=this._fp;if(!(this._fJ&&this._fJ.n=="selectInterval")&&_zc&&_zc.parentNode){_zc=_zc.parentNode;}return _zc;};cognos.Prompt.Control.prototype._gE=function(_pf){return((_pf?_pf:P_ai)+this._iL());};cognos.Prompt.Control.prototype._kP=function(){if(!this.m_oRangeControl&&!this._en){this._d3();}};cognos.Prompt.Control.prototype._fA=function(){PRMTUtils._e6("PRMT_0003","f_setPV() is not implemented for this class. ["+this._type_+"]");};cognos.Prompt.Control.prototype._jd=function(){var _Ez=this.getSelectChoices();var _rH=null;if(_Ez){if(this._eJ){if(_Ez.c&&_Ez.c.length>0){this._eJ._jd(_Ez.c);}}else if(!this._en){this._fA(cognos.Value.getValue(_Ez));}}};cognos.Prompt.Control.prototype.getChildByName=function(_mH){var _zU=null;if(this.c){for(var _G8=0;_G8<this.c.length;_G8++){if(this.c[_G8].n==_mH){_zU=this.c[_G8];break;}}}return _zU;};cognos.Prompt.Control.prototype.getName=function(){return(typeof this["@name"]==P_cD?null:this["@name"]);};cognos.Prompt.Control.prototype.getParameter=function(){};cognos.Prompt.Control.prototype.getParameterName=function(){var _Bo="p_"+this["@parameter"];if(this.suppressExtraPromptNames){_Bo=_Bo.substring(1);}return _Bo;};cognos.Prompt.Control.prototype.getParameterValues=function(){return(this._eJ?this._eJ.getParameterValues():this._la());};cognos.Prompt.Control.prototype.getSelectOptions=function(){if(!this._gV){this._gV=this.getChildByName("selectOptions");if(this._gV&&this._gV.c){this._gV=this._gV.c;}}return(this._gV);};cognos.Prompt.Control.prototype.getValues=function(_ub){this._iF=true;var _ux=(this._eJ?this._eJ.getValues():this._la(true,_ub));if(!(_ux instanceof Array)){if(_ux){_ux=[_ux];}else{_ux=[];}}this._iF=false;return _ux;};cognos.Prompt.Control.prototype.getCascadeOnParameter=function(){var _xY=null;var _vR=this._es();if(this["@cascadeOn"]){var _Lp="p_"+this["@cascadeOn"];_xY=_vR.getParameterByName(_Lp);}return _xY;};cognos.Prompt.Control.prototype.getTracking=function(){var _De=P_ai;var _qy=this._eE();if(_qy&&typeof _qy.getTracking==P_c7){_De=_qy.getTracking();}else{var _pM=document.getElementById("formWarpRequest"+this._kM());if(!_pM){_pM=document.getElementById("formWarpRequest");}if(_pM){if(typeof _pM.m_tracking!=P_cD){_De=_pM.m_tracking.value;}else if(typeof _pM.tracking!=P_cD){_De=_pM.tracking.value;}else if(typeof tracking!=P_cD){_De=tracking;}}}return _De;};cognos.Prompt.Control.prototype.cacheControlValue=function(_qH){if(SYSTEMPROPERTY_TREE_CACHE_ENABLED){var _s8=this.getTracking();if(_s8.length==0)return;var _BH=this.getCachedDateTimePromptNames(_s8);if(_BH!=null){if(cognos.Prompt.Control.isElementInList(this.getName(),_BH)){if(_qH!="cognos.Prompt.Control.DateTime"){return;}}}if((typeof cognos.Prompt.Control.prototype.cacheControlValue.running!='undefined')&&cognos.Prompt.Control.prototype.cacheControlValue.running){return;}else{cognos.Prompt.Control.prototype.cacheControlValue.running=true;}if(this.cacheUseValue(_s8)){this.cachePromptName(_s8);}cognos.Prompt.Control.prototype.cacheControlValue.running=false;}};cognos.Prompt.Control.prototype.getUseValues=function(){var _r2="";var _ux=this.getValues();if(_ux){for(var j=0;j<_ux.length;j++){var _pk=_ux[j];_r2+=_pk["use"];}}return _r2};cognos.Prompt.Control.prototype.cacheDateTimeControlName=function(_s8){var _pa=this.generateUniqueDateTimeKey(_s8);this.cacheControlName(_s8,_pa);};cognos.Prompt.Control.prototype.cacheControlName=function(_s8,_pa){var _H8=window.sessionStorage.getItem(_pa);var _wq=true;if(_H8!=null){if(_H8.length!=0){_wq=!cognos.Prompt.Control.isElementInList(this.getName(),_H8);if(_wq){_H8+=P_db;}}if(_wq){_H8+=this.getName();}}else{_H8=this.getName();}if(_wq){this.saveToSessionStorage(_pa,_H8,_s8);}};cognos.Prompt.Control.prototype.cacheUseValue=function(_s8){var _yy=false;var _r2=this.getUseValues();if(_r2&&_r2.length>0){var _pa=this.generateUniqueValueKey(_s8);this.saveToSessionStorage(_pa,_r2,_s8);_yy=true;}return _yy;};cognos.Prompt.Control.prototype.cachePromptName=function(_s8){var _pa=this.generateUniquePromptKey(_s8);this.cacheControlName(_s8,_pa);};cognos.Prompt.Control.prototype.saveToSessionStorage=function(_pa,_nK,_qO){if(!_qO){_qO=this.getTracking();}var _H8="";_H8=window.sessionStorage.getItem(P_cz);if(!_H8){this.writeToSessionStorage(P_cz,_qO);}else{if(!cognos.Prompt.Control.isElementInList(_qO,_H8)){_H8+=P_db;_H8+=_qO;this.writeToSessionStorage(P_cz,_H8);}}this.writeToSessionStorage(_pa,_nK);};cognos.Prompt.Control.prototype.writeToSessionStorage=function(_rX,_sE,_tm){if((_rX==null)||(_sE==null))return;if((_rX=="")||(_sE==""))return;try{window.sessionStorage.setItem(_rX,_sE);}catch(e){if(!_tm){this.cleanCacheValues();this.saveToSessionStorage(_rX,_sE,true);}}};cognos.Prompt.Control.prototype.cleanCacheValues=function(){if(SYSTEMPROPERTY_TREE_CACHE_ENABLED){try{var _Ea=window.sessionStorage.getItem(P_cz);var _zN=_Ea.split(P_db);for(var i=0;i<_zN.length;i++){var _I1=_zN[i];var _Ji=P_bw+_I1;var _Md=window.sessionStorage.getItem(_Ji);var _Jj=_Md.split(P_db);for(var j=0;j<_Jj.length;j++){var _pU=_Jj[j];var _Lr=P_cH+_I1+_pU;window.sessionStorage.removeItem(_Lr);}window.sessionStorage.removeItem(_Ji);_Ji=P_R+_I1;window.sessionStorage.removeItem(_Ji);}window.sessionStorage.removeItem(P_cz);}catch(e){}}};cognos.Prompt.Control.prototype.getCachedDateTimePromptNames=function(_s8){var _pa=P_R+_s8;var _y9=window.sessionStorage.getItem(_pa);return _y9;};cognos.Prompt.Control.prototype.getCachedPromptNames=function(_s8){var _pa=P_bw+_s8;var _y9=window.sessionStorage.getItem(_pa);return _y9;};cognos.Prompt.Control.prototype.getCachedDisplayValues=function(_s8,_vp){var _pa=P_cH+_s8+_vp;var _zH=window.sessionStorage.getItem(_pa);return _zH;};cognos.Prompt.Control.prototype.generateUniqueDateTimeKey=function(_s8){return P_R+_s8;};cognos.Prompt.Control.prototype.generateUniqueValueKey=function(_s8){return P_cH+_s8+this.getName();};cognos.Prompt.Control.prototype.generateUniquePromptKey=function(_s8){return P_bw+_s8;};cognos.Prompt.Control.prototype.setProperty=function(_ts,_sO){};cognos.Prompt.Control.prototype.setStyle=function(_l5){};cognos.Prompt.Control.prototype.$=function(id){var _uh=$(id);if(!_uh){_uh=document.getElementById(id);}return _uh;};var P_a6=cognos.Prompt.Control;cognos.Prompt.Parameter=function(_ts){this._iv=[];this._f2=[];this._ir=_ts;};cognos.Prompt.Parameter.prototype.addValues=function(_mg){this._f2=this._f2.concat(_mg);};cognos.Prompt.Parameter.prototype.clearValues=function(){this._f2=[];};cognos.Prompt.Parameter.prototype._ee=function(_ru){this._iv.push(_ru);};cognos.Prompt.Parameter.prototype.getControls=function(){return this._iv;};cognos.Prompt.Parameter.prototype.getName=function(){return this._ir;};cognos.Prompt.Parameter.prototype.getValues=function(){var _ux=this._f2;var _HY=this.getControls();for(var _m6=0;_m6<_HY.length;_m6++){var _sJ=_HY[_m6];if(_sJ.isValid()){_ux=_ux.concat(_sJ.getValues());}}return _ux;};cognos.Prompt.Parameter.prototype.getXML=function(){var _It=["<selectChoices>"];var _ux=this.getValues();for(var _m6=0;_m6<_ux.length;_m6++){_It.push(cognos.Value.toXML(_ux[_m6]));}_It.push("</selectChoices>");return _It.join(P_ai);};cognos.Prompt.Parameter.prototype.isValid=function(){return(this.isRequired()&&(this.getValues().length==0)?false:true);};cognos.Prompt.Parameter.prototype.isRequired=function(){var _CS=false;for(var _m6=0;_m6<this._iv.length;_m6++){_CS=(_CS||this._iv[_m6].isRequired());}return _CS;};cognos.Value=function(_tL){if(_tL instanceof cognos.Value){return _tL;}if(typeof _tL=="string"){return _tL;}if(_tL&&_tL.length){var a=[];for(var i=0;i<_tL.length;i++){var _BD=new cognos.Value(_tL[i]);if(_BD instanceof cognos.Value){a.push(_BD);}}return a;}if(_tL&&_tL.n){if(_tL.n=="selectChoices"&&_tL.c&&_tL.c.length>0){this._jX(_tL.c[0]);}else{this._jX(_tL);}}else{Object._ff(this,_tL);}};cognos.Value.equals=function(v1,v2){var _y4=false;var _BM=cognos.Value.getValue(v1);if(_BM){var _BL=cognos.Value.getValue(v2);if(_BL){_y4=_BM._j2(_BL);}}return _y4;};cognos.Value.getValue=function(_tW){var _BD=null;if(_tW){if(_tW instanceof cognos.Value||typeof _tW=="string"){_BD=_tW;}else if(_tW&&_tW.length){_BD=[];for(var i=0;i<_tW.length;i++){var _w9=cognos.Value.getValue(_tW[i]);if(_w9){_BD.push(_w9);}}if(_BD.length==0){_BD=null;}else if(_BD.length==1){_BD=_BD[0];}}else{_BD=new cognos.Value(_tW);}}return _BD;};cognos.Value.prototype._jX=function(_nf){switch(_nf.n){case "selectBoundRange":case "selectUnboundedEndRange":case "selectUnboundedStartRange":if(_nf.c&&_nf.c.length>0){var _na=(_nf["@selected"]?true:false);for(var _G8=0;_G8<_nf.c.length;_G8++){var _zK=_nf.c[_G8];var _rH=cognos.Value.getValue(_zK);_rH["use"]=sDecodeU003(_zK["@useValue"]);_rH["display"]=sDecodeU003(_zK["@displayValue"]);this[_zK.n]=_rH;}}break;default:Object._ff(this,_nf);this["use"]=sDecodeU003(_nf["@useValue"]);this["display"]=sDecodeU003(_nf["@displayValue"]);break;}};cognos.Value.prototype._j2=function(_oB){return(_oB?(this._i1()==_oB._i1()):false);};cognos.Value.prototype._gZ=function(_sU,_np,_nq){var _FB=null;var _Hx=null;if(typeof _sU==P_bJ){if(_sU=="between"&&(_np===null||typeof _np==P_cD||_nq===null||typeof _nq==P_cD)){_np=_nq=null;}if(_np!==null&&typeof _np!==P_cD){var _EN=new RegExp("\\^1",P_V);var _Kt=this._hs(_sU);if(this.contentTextDir){_np=P_bz.enforceBidiDirection(_np,this.contentTextDir);_Hx=(P_bz.containsRTLChar(_Kt)?P_bz.BIDI_CHAR_RLM:P_bz.BIDI_CHAR_LRM);_np=_Hx+_np;}_FB=_Kt.replace(_EN,_np);}if(_nq!==null&&typeof _nq!==P_cD&&typeof _FB==P_bJ){var _EM=new RegExp("\\^2",P_V);if(this.contentTextDir){_nq=P_bz.enforceBidiDirection(_nq,this.contentTextDir);_nq=_Hx+_nq;}_FB=_FB.replace(_EM,_nq);}if(_FB&&_Hx){_FB=(_Hx==P_bz.BIDI_CHAR_LRM?P_bz.BIDI_CHAR_LRE:P_bz.BIDI_CHAR_RLE)+_FB+P_bz.BIDI_CHAR_PDF;}}return _FB;};cognos.Value.prototype.getDisplayValue=function(){return(this._k1());};cognos.Value.prototype._k1=function(_tU){var _m2=null;if(this.display||this.display==P_ai){_m2=this.display;}else{var _D6=this._gu();var _yO=this._lt();var _sU=null;var _np=null;var _nq=null;if(_D6){_np=_D6._k1(_tU);if(_yO){_sU=(_D6._j2(_yO)?"eq":"between");_nq=_yO._k1(_tU);}else{_sU="gt";}}else if(_yO){_sU="lt";_np=_yO._k1(_tU);}_m2=this._gZ(_sU,_np,_nq);}if(_m2===null&&!_tU){_m2=this._d7();}return _m2;};cognos.Value.prototype._hs=function(_sU){var _wL=_sU;switch(_sU){case 'eq':_wL=PMT_RNG_FILTER_EQUAL_STRING;break;break;case 'between':switch(this.promptType){case "cognos.Prompt.Control.Date":case "cognos.Prompt.Control.SelectHTML5Date":_wL=PMT_RNG_FILTER_BETWEEN_DATE;break;case "cognos.Prompt.Control.DateTime":case "cognos.Prompt.Control.SelectHTML5DateTime":_wL=PMT_RNG_FILTER_BETWEEN_DATETIME;break;case "cognos.Prompt.Control.Time":case "cognos.Prompt.Control.SelectHTML5Time":_wL=PMT_RNG_FILTER_BETWEEN_TIME;break;case "cognos.Prompt.Control.Interval":_wL=PMT_RNG_FILTER_BETWEEN_INTERVAL;break;default:_wL=PMT_RNG_FILTER_BETWEEN_STRING;break;};break;case 'lt':switch(this.promptType){case "cognos.Prompt.Control.Date":case "cognos.Prompt.Control.SelectHTML5Date":_wL=PMT_RNG_FILTER_LESS_THAN_EQUAL_TO_DATE;break;case "cognos.Prompt.Control.DateTime":case "cognos.Prompt.Control.SelectHTML5DateTime":_wL=PMT_RNG_FILTER_LESS_THAN_EQUAL_TO_DATETIME;break;case "cognos.Prompt.Control.Time":case "cognos.Prompt.Control.SelectHTML5Time":_wL=PMT_RNG_FILTER_LESS_THAN_EQUAL_TO_TIME;break;case "cognos.Prompt.Control.Interval":_wL=PMT_RNG_FILTER_LESS_THAN_EQUAL_TO_INTERVAL;break;default:_wL=PMT_RNG_FILTER_LESS_THAN_EQUAL_TO_STRING;break;};break;case 'gt':switch(this.promptType){case "cognos.Prompt.Control.Date":case "cognos.Prompt.Control.SelectHTML5Date":_wL=PMT_RNG_FILTER_GREATER_THAN_EQUAL_TO_DATE;break;case "cognos.Prompt.Control.DateTime":case "cognos.Prompt.Control.SelectHTML5DateTime":_wL=PMT_RNG_FILTER_GREATER_THAN_EQUAL_TO_DATETIME;break;case "cognos.Prompt.Control.Time":case "cognos.Prompt.Control.SelectHTML5Time":_wL=PMT_RNG_FILTER_GREATER_THAN_EQUAL_TO_TIME;break;case "cognos.Prompt.Control.Interval":_wL=PMT_RNG_FILTER_GREATER_THAN_EQUAL_TO_INTERVAL;break;default:_wL=PMT_RNG_FILTER_GREATER_THAN_EQUAL_TO_STRING;break;};break;};return _wL;};cognos.Value.prototype._i1=function(){var _CV=P_ai;if(this._dr()){var _D6=this._gu();var _yO=this._lt();if(_D6&&_yO){if(_D6._j2(_yO)){_CV=this._jT("selectOption");}else{_CV='<selectBoundRange selected="true">'+_D6._jT("start")+_yO._jT("end")+'</selectBoundRange>';}}else if(_D6){_CV='<selectUnboundedEndRange selected="true">'+_D6._jT("start")+'</selectUnboundedEndRange>';}else if(_yO){_CV='<selectUnboundedStartRange selected="true">'+_yO._jT("end")+'</selectUnboundedStartRange>';}}else{_CV=this._jT("selectOption");}return _CV;};cognos.Value.prototype._jT=function(_t4){var _CV=P_ai;var _m8=this._d7();var _m2=this._k1(true);if(this._kv()){_CV=' nullUse="1"';if(this.display){_CV+=' displayValue="'+_m2._et()+'"';}else{_CV+=' nullDisplay="1"';}}else{if((typeof _m8)!==P_cD){if(_m8||_m8==P_ai){_CV+=' useValue="'+_m8._et()+'"';}}if(_m2||_m2==P_ai){_CV+=' displayValue="'+_m2._et()+'"';}}if(_CV!==P_ai){_CV=P_cO+_t4+_CV+P_y+P_cb;}return _CV;};cognos.Value.prototype.getUseValue=function(){return(this._d7());};cognos.Value.prototype._d7=function(){var _m8=null;if(this['use']||this['use']==P_ai){_m8=(P_ai+this['use']);}else{var _D6=this._gu();var _yO=this._lt();if(_D6||_yO){if(_D6){_m8=_D6._d7();}if(!_D6||!_D6._j2(_yO)){_m8+=P_b6;if(_yO){_m8+=_yO._d7();}}}}if(_m8!==P_ai){this['use']=_m8;}return _m8;};cognos.Value.prototype._lt=function(){return cognos.Value.getValue(this['end']);};cognos.Value.prototype._gu=function(){return cognos.Value.getValue(this['start']);};cognos.Value.prototype._kv=function(){return(this['nil']===true);};cognos.Value.prototype._dr=function(){return(this['start']||this['end']?true:false);};cognos.Value.toJSON=function(_uk){var _FB=P_ai;var _zz=[];var _m6=0;if((typeof _uk).match(/boolean|string|number/)){if((typeof _uk).match(/string/)){return P_aA+jsEncodeStr(_uk)+P_aA;}return P_ai+_uk;}if(_uk instanceof Array){for(_m6=0;_m6<_uk.length;_m6++){_zz.push(cognos.Value.toJSON(_uk[_m6]));}return "["+_zz.join(", ")+"]";}var _A5=[];var _EQ=new RegExp("^(use|display|start|end|nil)$");for(_m6 in _uk){if((P_ai+_m6).match(_EQ)){_A5.push(_m6);}}_A5.sort();var _Jp=P_ai;if(_A5.length){for(_m6=0;_m6<_A5.length;_m6++){_Jp=cognos.Value.toJSON(_uk[_A5[_m6]]);if(_Jp){_zz.push(_A5[_m6]+": "+_Jp);}}_FB="{"+_zz.join(", ")+"}";}return _FB;};cognos.Value.toXML=function(v){var _BD=cognos.Value.getValue(v);var _CV=P_ai;if((typeof _BD)=="string"){_CV=_BD;}else if(_BD.length){var _It=[];for(var _KX=0;_KX<_BD.length;_KX++){var _w9=_BD[_KX];var _CM=cognos.Value.toXML(_w9);_It.push(_CM);}_CV=_It.join(P_ai);}else if(_BD.length!==0){_CV=_BD._i1();}return _CV;};var C_ParameterValue=cognos.Value;cognos.Report=new P_aM({});cognos.Report.prototype._jf=function(_oP){var _pq=this._lu("G_PM",_oP);this.prompt=(_pq?_pq:new cognos.Prompt());var _Ch=this._lu("oCV",_oP);this._jE=(_Ch?_Ch:window.gCognosViewer);if(this._jE){this._jE['CognosReport']=this;}};cognos.Report.prototype._lu=function(_pf,_oP){var _Ce=null;if(window[_pf+_oP]){_Ce=window[_pf+_oP];}else if(window[_pf+"_NS_"]){_Ce=window[_pf+"_NS_"];}else if(window[_pf+"RS"]){_Ce=window[_pf+"RS"];}else if(window[_pf+"_THIS_"]){_Ce=window[_pf+"_THIS_"];}else if(window[_pf]){_Ce=window[_pf];}return _Ce;};cognos.Report.prototype.addEvent=function(_tT){};cognos.Report.getReport=function(_s6){return(new cognos.Report(_s6));};cognos.Report.prototype.sendRequest=function(_tT){this._jE.promptAction(_tT);};cognos.Report.Action={};cognos.Report.Action.BACK="back";cognos.Report.Action.CANCEL="cancel";cognos.Report.Action.FINISH="finish";cognos.Report.Action.NEXT="next";cognos.Report.Action.REPROMPT="reprompt";cognos.Report.Action.NEXTPAGE="nextPage";cognos.Report.Action.PREVIOUSPAGE="previousPage";cognos.Prompt.Control.Range=cognos.Prompt.Control._ff({_jf:function(_tL,_ot){this._eA(_tL);this._fy=_tL;this._lp=_ot;this._jQ=true;this._d3();},checkData:function(){var _JX=this._eA;if(!this.isMulti()){if(this.isRequired()){if((typeof this[P_bv]!=P_cD)&&this[P_bv]===true){this._l1=this._kf.hasValue()&&this._j3.hasValue();}else{this._l1=this._kf.hasValue()||this._j3.hasValue();}var _Cw=this._kf;var _Fo=this._j3;if(_Cw._type_=="cognos.Prompt.Control.Text"){setTimeout(function(){if(_Cw._l1||(_Fo._l1&&_Cw.getValue()===""))_Cw.checkPass();else _Cw.checkFail();if(_Fo._l1||(_Cw._l1&&_Fo.getValue()===""))_Fo.checkPass();else _Fo.checkFail();},1);}}else{var _CQ=(this._ij&&this._ij.checked?this._kf.hasValue():true);var _KS=(this._dA&&this._dA.checked?this._j3.hasValue():true);this._l1=_CQ&&_KS;}}else{this._l1=this._eJ._iz();}this._eA=_JX;this._eA();return this._l1;},clearValues:function(){this._eA();this._kf.clearValues();this._j3.clearValues();},_ly:function(){var _JX=this._eA;var _Cw=this._kf;var _Fo=this._j3;if(this["n"]=="selectValue"){var _p7=$(this._gE(P_W));if(_p7){var _CJ=this._gE(P_cI);var _Gs=this._gE(P_ax);var _yg=$(_CJ);var _Em=$(_Gs);if(_yg){_p7.setAttribute("id",_Cw._gE(P_W));_Cw._f5(_yg,_p7);}if(_Em){var _Cl=_p7.cloneNode(true);_Cl.setAttribute("id",_Fo._gE(P_W));_Fo._f5(_Em,_Cl);}}}_Cw._ly();_Fo._ly();if(_Fo&&(_Fo._i0&&_Fo._i0._jR)||_Fo._jR){var _Da=(this["@showSeconds"]?"59":"00");var _BF=(this["@showMilliseconds"]?"999":"000");var _Km="23:59:"+_Da+"."+_BF;if(_Fo&&_Fo._i0&&_Fo._i0._jR){_Fo._i0._jR(_Km);}else if(_Fo&&_Fo._jR){_Fo._jR(_Km);}}if(!this[P_an]){var _LL=this._dM(P_cI);this._ij=_LL[0];this._j9=_LL[1];_LL=this._dM(P_ax);this._dA=_LL[0];this._fS=_LL[1];}this._eA=_JX;this._eA();}});cognos.Prompt.Control.Range.prototype.addValues=function(_ux){for(var _m6=0;_m6<_ux.length;_m6++){var _pk=_ux[_m6];if(_pk.start){if(this._ij){this._ij.checked=true;}this._kf.addValues([_pk.start]);}else{if(this._ij){this._ij.checked=false;this._j9.checked=true;}this._kf.clearValues();}if(_pk.end){if(this._dA){this._dA.checked=true;}this._j3.addValues([_pk.end]);}else{if(this._dA){this._dA.checked=false;this._fS.checked=true;}this._j3.clearValues();}if(this._eJ){this._eJ.F_Insert();var _Cw=this._kf;var _Fo=this._j3;setTimeout(function(){_Cw.clearValues();_Fo.clearValues();},0);}}PRMTUtils.f_updateRadioButtons(this._ij);PRMTUtils.f_updateRadioButtons(this._dA);};cognos.Prompt.Control.Range.prototype._eO=function(){this._hf.checked=true;this._gl.checkData();PRMTUtils.f_updateRadioButtons(this._hf);};cognos.Prompt.Control.Range.prototype._iP=function(){var _H4=document.getElementsByName(this._gE("pFrom_"));this._hu("fromValue",_H4);_H4=document.getElementsByName(this._gE("pTo_"));this._hu("toValue",_H4);};cognos.Prompt.Control.Range.prototype._kB=function(_uh){var _oS=Object._ff({},this._fy);_oS["@range"]=false;_oS["@multiSelect"]=false;_oS.m_oRangeControl=this;_oS._en=true;var _rI=Object._ff({},_oS);_oS._id_=this._gE(P_cI);_oS._kW="range_from";_rI._id_=this._gE(P_ax);_rI._kW="range_to";var _Cw=this._k5()._iu(_oS);var _Fo=this._k5()._iu(_rI);_Fo._fC=true;_Fo._hQ=_Cw._hQ=$(this._gE(this._kp));var _yV=_uh;_yV["vAlign"]="top";var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_yV);var _t6=$CE("tbody",{},_y3);this._ib(_Cw,_t6,this[P_D],_Cw[P_bM],"pFrom_");var _yw=$CE("tr",{},_t6);var _C8=$CE("td",{"height":10},_yw);$CE("img",{"src":this._lw+"/prompting/images/spacer.gif","width":1,"height":1,"border":0,"alt":""},_C8);this._ib(_Fo,_t6,this[P_aZ],_Cw[P_ac],"pTo_");this._kf=_Cw;this._j3=_Fo;return this;};cognos.Prompt.Control.Range.prototype._ib=function(_pq,_uh,_nn,_ue,_pf){var _Hv=(!this.isRequired()||this.isMulti());var _rS=$CE("tr",{},_uh);var _mP=this._gE(_pf);var _xE=null;if(!_Hv&&_pq&&_pq._iQ){_xE=_pq._iQ();}var _rK=$CE("td",{"class":"clsControlLabel pc","noWrap":"nowrap"},_rS);var _ED=this._gE(_pf+"label");var _Ej={"id":_ED};if(!_Hv&&_xE){_Ej["for"]=_xE;}var _Mc=$CE("label",_Ej,_rK);_Mc._jc(_nn);_rS=$CE("tr",{},_uh);_rK=$CE("td",{"vAlign":"top"},_rS);var _Je={"vAlign":"top","border":"0","cellPadding":0,"cellSpacing":0};if(_Hv){_Je["role"]="radiogroup";}else{_Je["role"]="group";}if(!_xE){_Je["aria-labelledby"]=_ED;}v_table=$CE("table",_Je,_rK);_rS=$CE("tr",{"id":_pq._gE(P_K)},v_table);var _L0=(PRMTUtils._j0()&&window.ie?"25px":"15:px");_rK=$CE("td",{"vAlign":"middle","width":_L0},_rS);var _mH=this._gE(_pf);var _Jq={"type":"radio","name":_mH,"id":_mP,"class":"dijitCheckBoxInput",style:"margin:0","onFocus":"PRMTUtils.f_RangeRadioOnFocus(this)","onBlur":"PRMTUtils.f_RangeRadioOnBlur(this)"};if(_Hv){var _Jd=$CE("div",{"class":P_b1},_rK);var _Cd=$CE("input",_Jq,_Jd);if(this[P_an]){_Cd._fH("disabled","true");}_pq["@title"]=_nn;}else{$CE("img",{"src":this._lw+"/prompting/images/spacer.gif","width":10,"height":1,"border":0,"alt":""},_rK);}if(this.isMulti()){_pq["@required"]=false;}if(_pq.n!="selectInterval"){_pq["@hideAdornments"]=true;}_rK=$CE("td",{"id":_pq._id_},_rS);if(cssParser(this["@style"],"width")){_rK._fH("width","100%");}var _J3=_pq._kB(_rK);_mP=this._gE(_pf+"2_");if(!this.isRequired()||this.isMulti()){_rS=$CE("tr",{"id":_pq._gE(P_dl)},v_table);_rK=$CE("td",{"vAlign":"middle","width":_L0},_rS);_Jq.id=_mP;_Jq.checked=true;var _Jd=$CE("div",{"class":P_e},_rK);var _Cd=$CE("input",_Jq,_Jd);if(this[P_an]){_Cd._fH("disabled","true");}var _Au={"vAlign":"middle","height":"20px","class":"clsReadOnlyText pe"};if(_pq.n=="selectInterval"){_Au["style"]="padding-left:12px;";}_rK=$CE("td",_Au,_rS);_Mc=$CE("label",{"for":_mP},_rK);_Mc._jc(_ue)}return _J3;};cognos.Prompt.Control.Range.prototype._k5=function(){return(this._lp);};cognos.Prompt.Control.Range.prototype._la=function(_su){var _Gb=null;var _zp=null;var _rH=null;if((!this._ij||this._ij.checked)&&this._kf.hasValue()){var _Cp=this._kf._iF;if(this._iF){this._kf._iF=true;}_Gb=this._kf._la();this._kf._iF=_Cp;}if((!this._dA||this._dA.checked)&&this._j3.hasValue()){var _Cp=this._j3._iF;if(this._iF){this._j3._iF=true;}_zp=this._j3._la();this._j3._iF=_Cp;}if(_Gb&&_zp){var _Lh=this._j3._kJ(this._kf);if(_Lh==-1){var _w9=_zp;_zp=_Gb;_Gb=_w9;if(this.n=="selectDate"&&this["@DateTime"]){_Gb["use"]=_Gb["use"].replace(P_cg,P_cY);_zp["use"]=_zp["use"].replace(P_cg,P_da);}}else if(_Lh==0&&!(this.n=="selectDate"&&this["@DateTime"])){_rH=this._kf.getValues()[0];_Gb=_zp=null;}}if(_Gb||_zp){_rH={};if(_Gb){_rH["start"]=(_Gb.length&&_Gb.length==1?_Gb[0]:_Gb);}if(_zp){_rH["end"]=(_zp.length&&_zp.length==1?_zp[0]:_zp);}}if(_rH&&_su!==true){_rH.promptType=this._kf._type_;}return _rH;};cognos.Prompt.Control.Range.prototype._hh=function(_mG){var _mG=(arguments&&arguments.length?arguments[arguments.length-1]:null);var _nm=(_mG?_mG:(typeof event!=P_cD?event:null));if(_nm){switch(_nm.which||_nm.keyCode){case 9:case 16:case 17:case 18:break;default:this._hf.checked=true;PRMTUtils.f_updateRadioButtons(this._hf);};}this._gl.checkData();};cognos.Prompt.Control.Range.prototype._fA=function(_rH){if(_rH.start||_rH.end){if(_rH.start){this._kf._fA(_rH.start);if(this._ij){this._ij.checked=true;}}if(_rH.end){this._j3._fA(_rH.end);if(this._dA){this._dA.checked=true;}}}else{this._kf._fA(_rH);if(this._ij&&(_rH.use||_rH.display)){this._ij.checked=true;}this._j3._fA(_rH);if(this._dA&&(_rH.use||_rH.display)){this._dA.checked=true;}}PRMTUtils.f_updateRadioButtons(this._ij);PRMTUtils.f_updateRadioButtons(this._dA);};cognos.Prompt.Control.Range.prototype._dM=function(_nO){var _xe=[null,null];var _Er=null;var _y6=this._gE(P_dl+_nO);var _rS=$(_y6);if(_rS){_rS._gl=this;_Er=_rS.firstChild.firstChild.firstChild;if(_Er&&(typeof _Er.type==P_bJ)&&_Er.type.match(/radio/i)){_rS._hf=_Er;_rS._gl=this;PRMTUtils._hj(_rS,"click",this._eO.bind(_rS));}else{_Er=null;}_xe[1]=_Er;}_y6=this._gE(P_K+_nO);_rS=$(_y6);if(_rS){_rS._gl=this;_Er=_rS.firstChild.firstChild.firstChild;if(_Er&&(typeof _Er.type==P_bJ)&&_Er.type.match(/radio/i)){_rS._hf=_Er;_rS._gl=this;PRMTUtils._hj(_rS,"click",this._eO.bind(_rS));PRMTUtils._hj(_rS,"keydown",this._hh.bind(_rS));}else{_Er=null;}_xe[0]=_Er;}return _xe;};cognos.Prompt.Control.Range.prototype.hasValue=function(){var _BG=false;if(this._ij&&this._dA){_BG=((this._ij.checked&&this._kf.hasValue())||(this._dA.checked&&this._j3.hasValue())?true:false);}else{_BG=(this._kf.hasValue()||this._j3.hasValue()?true:false);}return _BG;};cognos.Prompt.Control.Range.prototype.isEmpty=function(){var _KR=(this._kf.isEmpty()&&this._j3.isEmpty()?true:false);return _KR;};var P_aH=cognos.Prompt.Control.Range;function C_Choices(_pq){this._gl=_pq;this._h1=null;this._dw=['<option value="','','" display="','','" pvxml="','','" pvJSON="','','" style="white-space:pre"','','>','','</option>'];};C_Choices.prototype.addValues=function(_mg){for(var _m6=0;_m6<_mg.length;_m6++){this.F_AddPV(_mg[_m6]);}};C_Choices.prototype.checkData=function(){this._jL();var _Dd=this._k0;if(_Dd){var _GZ=(this._jj?this._jj:"clsFeedbackWidgetParseError");if(this._gl.isRequired()&&this.F_IsEmpty()){PRMTUtils._hi(_Dd,_GZ);PRMTUtils._kO(this._h1,this._gE(),this._gl._lw,PMT_UIM_MISSING_VALUE,P_cc);}else{PRMTUtils._h6(_Dd,_GZ);PRMTUtils._g7(this._h1,this._gE(),P_cc);}}this._gl.checkData();};C_Choices.prototype.checkInsertRemove=function(){this._el(this._hV,this._gc());var _qY=this._gl;this._el(this._fG,_qY.hasValue());return this._iz();};C_Choices.prototype._el=function(_vc,_rl){if(_vc){var _E9=(_vc.firstChild&&_vc.firstChild.tagName=="IMG"?_vc.firstChild:_vc.childNodes[1]);var _D5=(_vc.id.indexOf("INSERT")!=-1?true:false);var _GG=this._ht;if(_rl&&!this._gl[P_an]){_vc.disabled=false;_E9.className=((_D5&&_GG=="ltr")||(!_D5&&_GG=="rtl")?"clsInsertImg":"clsRemoveImg");}else{_vc.className="clsInsertRemoveButton";_vc.disabled=true;if(_E9){_E9.className=((_D5&&_GG=="ltr")||(!_D5&&_GG=="rtl")?"clsInsertImgDisabled":"clsRemoveImgDisabled");}}}};C_Choices.prototype._jL=function(){var _JQ=this._h1;if(_JQ&&!this["@listWidth"]){_JQ.style.overflow="auto";_JQ.style.width="auto";if(_JQ.offsetWidth<200){_JQ.style.width="200px";}if(window.ie){if(_JQ.parentNode&&_JQ.parentNode.style){_JQ.parentNode.style.width="200px";_JQ.parentNode.style.width="auto";}else{return;}}if(_JQ.offsetWidth<200){setTimeout(this._jL.bind(this),100);}}};C_Choices.prototype.F_IsEmpty=function(){if(this._h1&&this._h1.options&&this._h1.options.length>0){return false;}return true;};C_Choices.prototype.F_Draw=function(_uh){this._iB(_uh);this._ih($CE("td",{"vAlign":"top"},_uh));};C_Choices.prototype._gE=function(_pf){return(this._gl._gE(_pf));};C_Choices.prototype.F_DrawCompleted=function(){var _If=$(this._gE(P_k));if(_If){_If._dK=this;PRMTUtils._hj(_If,"click",this.F_Insert.bind(this));this._fG=_If;}var _Fq=$(this._gE(P_aY));if(_Fq){_Fq._dK=this;PRMTUtils._hj(_Fq,"click",this.F_Remove.bind(this));this._hV=_Fq;}var _JQ=$(this._gE(P_c9));if(_JQ){_JQ._gl=this._gl;PRMTUtils._hj(_JQ,"change",this.checkData.bind(this));this._h1=_JQ;}var _EH=$(this._gE(P_W));if(_EH){PRMTUtils._hj(_EH,"dblclick",this.F_Insert.bind(this));}var _Am=$(this._gE(P_c9));if(_Am){PRMTUtils._hj(_Am,"dblclick",this.F_Remove.bind(this));}var _GL=$(this._gE(P_cE));if(_GL){_GL._dK=this;PRMTUtils._hj(_GL,"click",this.F_SelectAll.bind(this));}var _GL=$(this._gE(P_bT));if(_GL){_GL._dK=this;PRMTUtils._hj(_GL,"click",this.F_DeselectAll.bind(this));}this._k0=$(this._gE(P_aU));this.checkData();if(typeof SYSTEMPROPERTY_CREATE_CUSTOM_SCRIPTS_REFS!=P_cD&&SYSTEMPROPERTY_CREATE_CUSTOM_SCRIPTS_REFS){this._iP();}};C_Choices.prototype._iB=function(_uh){var _GC=(this._gl["@showCondition"]?42:16);var _Bz=$CE("td",{"vAlign":"top","class":"clsButtonLeftRightPadding","style":"padding-top:"+_GC+"px"},_uh);var _zy=cssParser(this._gl["@style"],"direction",true);this._ht=((_zy=="rtl"||P_bz.lookupDirection($(this._gl._gE(this._gl._kp)))=="rtl")?"rtl":"ltr");var _y3=$CE("table",{"border":P_f,"cellPadding":2,"cellSpacing":0,"class":"clsInsertRemoveTable","role":P_ag},_Bz);var _t6=$CE("tbody",{},_y3);var _rS=$CE("tr",{},_t6);var _rK=$CE("td",{"width":"100%"},_rS);this._ie(_rK);_rS=$CE("tr",{},_t6);_rK=$CE("td",{"width":"100%"},_rS);this._kR(_rK);};C_Choices.prototype._ie=function(_uh){var _vc=$CE("button",{"id":this._gE(P_k),"type":"button","title":PMT_UIM_INSERTTIP,"class":"clsInsertRemoveButton"},_uh);var _Ls=$CE("span",{},_vc);_Ls._jc(this._gl[P_dd]);var _Cg=(this._ht=="ltr"?"clsInsertImg":"clsRemoveImg");if(this._gl[P_an]){_vc._fH("disabled","disabled");_Cg=(this._ht=="ltr"?"clsInsertImgDisabled":"clsRemoveImgDisabled");}var _Ib=$CE("img",{"src":this._gl._lw+"/prompting/images/blank.gif","alt":PMT_UIM_INSERTTIP,"class":_Cg,"border":0,"height":16,"width":16,"align":"top"},_vc);_vc._fH("onMouseOver","this.className = 'clsInsertRemoveButtonOver';");_vc._fH("onMouseOut","this.className = 'clsInsertRemoveButton';");return _vc;};C_Choices.prototype._kR=function(_uh){var _vc=$CE("button",{"id":this._gE(P_aY),"type":"button","title":PMT_UIM_REMOVETIP,"class":"clsInsertRemoveButton"},_uh);var _Cg=(this._ht=="ltr"?"clsRemoveImg":"clsInsertImg");if(this._gl[P_an]){_vc._fH("disabled","disabled");_Cg=(this._ht=="ltr"?"clsRemoveImgDisabled":"clsInsertImgDisabled");}var _Ib=$CE("img",{"src":this._gl._lw+"/prompting/images/blank.gif","alt":PMT_UIM_REMOVETIP,"class":_Cg,"border":0,"height":16,"width":16,"align":"top"},_vc);var _Ls=$CE("span",{},_vc);_Ls._jc(this._gl[P_ab]);_vc._fH("onMouseOver","this.className = 'clsInsertRemoveButtonOver';");_vc._fH("onMouseOut","this.className = 'clsInsertRemoveButton';");return _vc;};C_Choices.prototype._ih=function(_uh){var _zS=$CE("div",{"class":"clsControlLabel pc"},_uh);if(this._gl.isRequired()&&!this._gl["@hideAdornments"]){$CE("img",{"src":this._gl._lw+"/prompting/images/icon_required.gif","class":"clsErrorRequired","align":"top","height":10,"width":10,"border":0,"alt":""},_zS);}var _xX=this._gE(P_c9);if(this._gl["@showCondition"]){_zS._fH("style","padding:0px 0px 5px 0px;");var _Mc=$CE("label",{"for":_xX},_zS);_Mc._jc(PMT_UIM_CONDITION);_Mc._ep("<br/>");var _Gc=$CE("select",{"id":this._gE("oExcludeSelectedValues")},_zS);var _Fd=$CE("option",{"value":"false"},_Gc);_Fd._jc(PMT_UIM_SHOWONLY);_Fd=$CE("option",{"value":"true"},_Gc);_Fd._jc(PMT_UIM_DONOTSHOW);}else{var _Mc=$CE("label",{"for":_xX},_zS);_Mc._jc(this._gl[P_aj]);}var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_uh);var _t6=$CE("tbody",{},_y3);var _AI=$CE("tr",{},_t6);var _wj=$CE("td",{"vAlign":"top"},_AI);var _Gc=$CE("select",{"id":_xX,"size":(this["@listSize"]?this["@listSize"]:7),"multiple":"multiple","class":"clsListControl pv","role":"listbox","aria-multiselectable":"true"},_wj);if(this._gl.isRequired()){_Gc._fH("aria-required","true");}var _z5=cssParser(this._gl["@style"],'color,font,text');if(this["@listStyle"]){_z5=(_z5?_z5:P_ai)+this["@listStyle"];}if(this["@listWidth"]){_z5=(_z5?_z5+";":P_ai)+"width:"+this["@listWidth"];}if(_z5){_z5=cssParser(_z5,'background,color,font,text,height,width');_Gc._fH("style",_z5);}var _J0=$CE("tr",{},_t6);var _xg=$CE("td",{},_J0);var _Aq=$CE("div",{"id":this._gE(P_aU),"class":"clsFeedbackWidget","style":"min-width:200px; width:100%;"},_xg);var _Jn=$CE("img",{"class":"clsFeedbackSpacer","src":this._gl._lw+"/prompting/images/spacer.gif","alt":P_ai,"width":"100%","height":3},_Aq);var _vX=$CE("tr",{},_t6);var _zy=cssParser(this._gl["@style"],"direction",true);var _xu=((_zy=="ltr"||_zy=="rtl")?_zy:P_bz.lookupDirection($(this._gl._gE(this._gl._kp))));var _pw=((_xu=="rtl")?"left":"right");var _yP=$CE("td",{"align":_pw},_vX);if(this._gl[P_an]){_Gc._fH("disabled","disabled");var _IN={"class":"clsLink","style":"text-decoration:underline;color: #CCCCCC"};var _Ls=$CE("span",_IN,_yP);_Ls._jc((_pw=="right")?this._gl[P_L]:this._gl[P_bn]);_yP._jc(P_br);_Ls=$CE("span",_IN,_yP);_Ls._jc((_pw=="right")?this._gl[P_bn]:this._gl[P_L]);}else{var _HX=$CE("a",{"id":(_pw=="right")?this._gE(P_cE):this._gE(P_bT),"href":"javascript:;","onclick":"document.location.hash='';","class":"clsLink pl"},_yP);_HX._jc((_pw=="right")?this._gl[P_L]:this._gl[P_bn]);_yP._jc(P_br);var _HV=$CE("a",{"id":(_pw=="right")?this._gE(P_bT):this._gE(P_cE),"href":"javascript:;","onclick":"document.location.hash='';","class":"clsLink pl"},_yP);_HV._jc((_pw=="right")?this._gl[P_bn]:this._gl[P_L]);}};C_Choices.prototype.formatDefaultDateChoice=function(_ui,_mQ){var _zu=_ui.replace("T","-").split("-");if(_zu.length>=3){var _HK=new Date(_zu[0],_zu[1]-1,_zu[2]);return getFormatDate(_HK,_mQ);}return null;};C_Choices.prototype._eH=function(item,_pP){if(item&&item[P_C]&&!item[P_aP]){item[P_aa]=this.formatDefaultDateChoice(item[P_E],_pP);item[P_aP]=this.formatDefaultDateChoice(item[P_C],_pP);}};C_Choices.prototype._jd=function(_r5){if(_r5&&this._h1){var _BW={};var _xN=new Array(_r5.length);var _Dk=_r5.length;var _Gu=null;var _m8=null;for(var i=0;i<_Dk;i++){_Gu=_r5[i];_Gu=cognos.Value.getValue(_Gu);if(this._gl.n=="selectDate"){if(_Gu._dr()){this._eH(_Gu.start,this._gl._kf._km._iJ);this._eH(_Gu.end,this._gl._kf._km._iJ);}else{this._eH(_Gu,this._gl._km._iJ);}}_m8=this._ke(_Gu);if(!_BW[_m8]){_xN[i]=this._lV(_Gu);_BW[_m8]=1;}}var _AU=_xN.join('');if(window.ie){var _wJ=this._h1.outerHTML;var _Bp=_wJ.replace(/<\/select\s*>\s*$/i,P_ai)+_AU+'<'+'/'+'SELECT>';this._h1.outerHTML=_Bp;this._h1=$(this._gE(P_c9));this._h1._gl=this._gl;PRMTUtils._hj(this._h1,"change",this.checkData.bind(this));}else{this._h1.innerHTML+=_AU;}}this.checkData();};C_Choices.prototype._ke=function(_tV){var _Lq=_tV['use'];var _m8=_tV._d7();if(_tV['use']!=_Lq){if(typeof _Lq==P_cD){delete _tV['use'];}else{_tV['use']=_Lq;}}return _m8;};C_Choices.prototype.F_DeselectAll=function(){if(this._h1){this._h1.selectedIndex=-1;for(var i=0;i<this._h1.options.length;i++){this._h1.options[i].selected=false;}this._h1.focus();this._h1.blur();}this.checkInsertRemove();};C_Choices.prototype._gY=function(_rH){_rH=cognos.Value.getValue(_rH);return this._lV(_rH);};C_Choices.prototype._lV=function(_rH){var _Jp=cognos.Value.toJSON(_rH);var _m8=_rH._d7();if(G_IsBidiEnabled&&this._gl["@contentTextDirection"]){_rH.contentTextDir=this._gl["@contentTextDirection"];}var _m2=sHtmlEncode(_rH._k1());var _CV=cognos.Value.toXML(_rH);this._dw[1]=_m8;this._dw[3]=_m2;this._dw[5]=_CV._et();this._dw[7]=_Jp.replace(P_G,P_c);this._dw[9]=_rH["@selected"]?' selected':'';this._dw[11]=(G_IsBidiEnabled&&this._gl["@contentTextDirection"]?P_bz.enforceBidiDirection(_m2,this._gl["@contentTextDirection"]):_m2);_xY=this._dw.join('');return _xY;};C_Choices.prototype.getParameterValues=function(){var _u3=[];var _Fd=null;var _JQ=this._h1;if(_JQ.options&&_JQ.options.length>0){for(var _Hk=0;_Hk<_JQ.options.length;_Hk++){_Fd=_JQ.options[_Hk];var _Jp=_Fd.getAttribute("pvJSON");if(_Jp){var _BD=cognos.Value.getValue(eval("v="+_Jp));_u3.push(_BD);}}};return _u3;};C_Choices.prototype._la=function(){var _JQ=this._h1;var _u3=[];var _Fd=null;var _CV=P_ai;var _m8=P_ai;var _m2=P_ai;if(_JQ&&_JQ.options&&_JQ.options.length>0){for(var _Hk=0;_Hk<_JQ.options.length;_Hk++){_Fd=_JQ.options[_Hk];_u3.push(_Fd.getAttribute("pvXML"));}};return _u3;};C_Choices.prototype._iz=function(){return(!this._gl.isRequired()||(this._h1&&this._h1.options&&this._h1.options.length>0));};C_Choices.prototype._gc=function(){return(this._h1&&this._h1.selectedIndex>=0);};C_Choices.prototype.F_Contains=function(_rH){if(this._h1&&this._h1.options&&this._h1.options.length){var _CV=cognos.Value.toXML(_rH);for(var i=0;i<this._h1.options.length;i++){if(this._h1.options[i].getAttribute("pvXML")==_CV){return true;}}}return false;};C_Choices.prototype.F_AddPV=function(_rH){if(this.F_Contains(_rH)){return;}_rH=cognos.Value.getValue(_rH);var _Jp=cognos.Value.toJSON(_rH);var _m8=_rH._d7();var _m2=_rH._k1();var _CV=cognos.Value.toXML(_rH);var _Fd=PRMTUtils._fO("option",{"value":_m8,"display":_m2,"pvXML":_CV,"pvJSON":_Jp,"style":"white-space:pre"},this._h1);if(_rH["@selected"]){_Fd["selected"]="selected";}_Fd["pv"]=_rH;PRMTUtils._fE(_Fd,_m2);};C_Choices.prototype.F_Insert=function(){if(this._gl){var _rH=this._gl._la();if(this._h1&&_rH){if(!_rH.length){_rH=[_rH];}var _xN=new Array(_rH.length);for(var _m6=0;_m6<_rH.length;_m6++){if(!this.F_Contains(_rH[_m6])){_xN[_m6]=this._gY(_rH[_m6]);}}var _AU=_xN.join('');if(window.ie){var _wJ=this._h1.outerHTML;var _Bp=_wJ.replace(/<\/select\s*>\s*$/i,P_ai)+_AU+'<'+'/'+'SELECT>';this._h1.outerHTML=_Bp;this._h1=$(this._gE(P_c9));this._h1._gl=this._gl;PRMTUtils._hj(this._h1,"change",this.checkData.bind(this));}else{this._h1.innerHTML+=_AU;}}if(this._gl&&typeof this._gl._dv==P_c7){this._gl._dv();}}this.checkData();};C_Choices.prototype.F_Remove=function(){if(this._h1){for(var i=this._h1.options.length-1;i>=0;i--){if(this._h1.options[i].selected){PRMTUtils._dD(this._h1.options[i]);}}}this.checkData();};C_Choices.prototype.F_SelectAll=function(){if(this._h1){for(var i=0;i<this._h1.options.length;i++){this._h1.options[i].selected=true;}}this.checkInsertRemove();};C_Choices.prototype._iP=function(){var _pf=null;var _pq=this._gl;if(_pq){switch(_pq.n){case "selectInterval":_pf="multipleIntervalPicker";break;case "textBox":_pf="multipleText";break;case "selectDate":_pf="multipleDatePicker";break;case "selectDateTime":_pf="multipleDateTimePicker";break;case "selectTime":_pf="multipleTimePicker";break;}if(_pf){this._hu(_pf);}}};C_Choices.prototype._hu=function(_pf){var _pq=this._gl;if(_pq&&_pq["@name"]){var _mH=_pf+_pq["@name"];if(!window[_mH]){window[_mH]=this;}return(window[_mH]);}return null;};C_Choices.prototype.getValues=function(){var _ux=[];var _Jp=null;var _JQ=this._h1;if(_JQ!=null&&_JQ.options&&_JQ.options.length>0){for(var _Hk=0;_Hk<_JQ.options.length;_Hk++){_Jp=_JQ.options[_Hk].getAttribute("pvJSON");if(_Jp){_ux.push(eval("v="+_Jp));}}};return _ux;};cognos.Prompt.Control.SelectValue=cognos.Prompt.Control._ff({_jf:function(_tL){this._type_="cognos.Prompt.Control.SelectValue";this._eA(_tL);this._lB=null;this._lq=[];this._iO=null;if(!this.selectUI){this.selectUI=this["@selectValueUI"];}if(this.m_oRangeControl){this.selectUI="dropdown";}if(this.selectUI=="checkboxGroup"&&!this.isMulti()){this.selectUI="radioGroup";}else if(this.selectUI=="radioGroup"&&this.isMulti()){this.selectUI="checkboxGroup";}else if(this.selectUI=="dropdown"){this["@multiSelect"]=false;}this._kP();},checkData:function(){this._l1=true;var _Al=this._eA();if(!_Al||(this.isRequired()&&!this.hasValue())){this._l1=false;this.checkFail();}else{this._l1=true;this.checkPass();}return this._l1;},clearValues:function(){this._eA();this._dO();},singleValueSelect:function(event){var _KI=event.target.selectedIndex;var _Eo=this._gp();var _wc=_Eo[_KI];if(_wc.hasAttribute("role")&&_wc.getAttribute("role")==="option"){if(this._iO!==null){this._iO.setAttribute("aria-selected","false");}this._iO=_wc;_wc.setAttribute("aria-selected","true");}else{if(this._iO!==null){this._iO.setAttribute("aria-selected","false");this._iO=null;}}},multiValueSelect:function(event){var _Eo=this._gp();for(let i=0;i<_Eo.length;i++){_Eo[i].setAttribute("aria-selected",_Eo[i].selected);}},_ly:function(){var _p7=$(this._gE(P_W));var _CX=$(this._gE("PRMT_SV_CONTAINER_"));if(_p7){var _Lv=new C_PromptElement();var _rB=this["@style"];if(this["@listStyle"]){_rB=(_rB?_rB:P_ai)+this["@listStyle"];}_Lv._lo(_p7,cssParser(this["@style"],"color,font,text")+(this["@listStyle"]?this["@listStyle"]:P_ai));this._f5(_CX,_p7);_p7._gl=this;var _x8=cssParser(_rB,"width",true);if(_x8){if(this.m_oRangeControl&&this.m_oRangeControl.isMulti()){var p=_p7;p.style.width="100%";var _Bw=new RegExp("div","i");while(p&&!p.nodeName.match(_Bw)){p.setAttribute("width","100%");p=p.parentNode;}}else{_p7.style.width=_x8;}}var _v1=cssParser(_rB,"height",true);if(_v1&&this.selectUI!="dropdown"){_p7.style.height=_v1;_p7.style.maxHeight="none";}if(this.selectUI=="checkboxGroup"||this.selectUI=="radioGroup"){var _zR=$(this._gE("PRMT_LBL_"));if(_zR){var _ww=$(this._gE("PRMT_SV_CONTAINER_"));_ww.setAttribute("aria-labelledby",this._gE("PRMT_LBL_"));}var _yc=cssParser(_rB,"color,font,text");if(_yc){var _zU=_p7.firstChild;while(_zU){_Lv._lo(_zU,_yc);_zU=_zU.nextSibling;}}}else{var _zR=$(this._gE("PRMT_LBL_"));if(_zR&&!_zR.getAttribute("for")){_zR.setAttribute("for",this._gE("PRMT_SV_"));}if(this["@listSize"]){_p7.setAttribute("size",this["@listSize"]);_p7.selectedIndex=-1;}else if(this.selectUI=="listBox"){_p7.setAttribute("size","11");_p7.selectedIndex=-1;}else if(this.selectUI=="dropdown"&&!this.isMulti()&&typeof this["@columnName"]==P_cD){_p7.selectedIndex=(window.isAllowEmptyStringHeaderText&&!window.isAllowEmptyStringHeaderText())?0:-1;}if(!this.isMulti()){_p7.removeAttribute("multiple");_p7.setAttribute("aria-multiselectable",'false');PRMTUtils._hj(_p7,"change",this.singleValueSelect.bind(this));}else{_p7.setAttribute("aria-multiselectable",'true');PRMTUtils._hj(_p7,"change",this.multiValueSelect.bind(this));}if(this.isRequired()){_p7.setAttribute("aria-required",true);}}if(typeof SYSTEMPROPERTY_CHANGE_DROPDOWN_BACKGROUNDCOLOR_ALL!==P_cD&&SYSTEMPROPERTY_CHANGE_DROPDOWN_BACKGROUNDCOLOR_ALL===true){if(this.selectUI=="listBox"||this.selectUI=="dropdown"){var _Hu=cssParser(_rB,"background-color",true);if(_Hu){_p7.style.backgroundColor=_Hu;}}}if(this[P_an]){_p7.setAttribute("disabled","disabled");}PRMTUtils._hj(_p7,"change",this._f4.bind(this));if(this.selectUI=="listBox"&&PRMTUtils._ix()){PRMTUtils._hj(_p7,"blur",this._kb.bind(this));}this._fp=_p7;}var _GL=$(this._gE(P_ct));if(_GL){PRMTUtils._hj(_GL,"click",this._eR.bind(this));}_GL=$(this._gE(P_P));if(_GL){PRMTUtils._hj(_GL,"click",this._dO.bind(this));}this._eA();if(this.selectUI=="checkboxGroup"||this.selectUI=="radioGroup"){var _FT=this._gp();var _vZ=_FT.length;var _IK=false;for(var i=0;i<_vZ;i++){var _Fu=_FT[i];var _o7=_Fu.parentNode;if(_Fu.type=="checkbox"){_o7.className=(_Fu.checked?P_bx:P_bY);PRMTUtils._hj(_o7,"keydown",this._gB.bind(this));if(!_IK){_Fu.tabIndex=0;_IK=true;}else{_Fu.tabIndex=-1;}}else{_o7.className=(_Fu.checked?P_e:P_b1);}PRMTUtils._jZ(_Fu,_Fu.checked);var _CH=_o7.nextSibling;if(G_IsBidiEnabled&&_CH&&this["@contentTextDirection"]){_CH.innerHTML=P_bz.enforceBidiDirection(_CH.innerHTML,P_bz.getTextDirection(_CH.firstChild.nodeValue,this["@contentTextDirection"]));}if(this.isRequired()){_Fu.setAttribute("aria-required",true);}}}else{var _FT=this._gp();for(var i=0;i<_FT.length;i++){var _qC=_FT[i];if(G_IsBidiEnabled&&_qC&&this["@contentTextDirection"]){_qC.innerHTML=P_bz.enforceBidiDirection(_qC.innerHTML,P_bz.getTextDirection(_qC.firstChild.nodeValue,this["@contentTextDirection"]));}}}if(!this._gH()){setTimeout(this._d8.bind(this),20);}var _qy=this._eE();if(_qy&&typeof _qy.getCurrentPromptControlFocus==P_c7){if(this["@name"]==_qy.getCurrentPromptControlFocus()){var _p7=$(this._gE(P_W));_p7.focus();_qy.setCurrentPromptControlFocus(null);}}}});cognos.Prompt.Control.SelectValue.prototype._iQ=function(){return(this.m_oRangeControl?this._gE(P_W):null);};cognos.Prompt.Control.SelectValue.prototype._e0=function(_oU,_rP){for(var i=0;i<_rP.length;i++){_rP[i]._jC.push({"option":_oU,"score":this._dZ(_rP[i],_oU)});}};cognos.Prompt.Control.SelectValue.prototype._lz=function(_sH,_sU,_pk){if(typeof(_pk._jC)===P_cD){_pk._jC=[];}_sU=sDecodeU003(_sU);if(_sH[_sU]){_sH[_sU].push(_pk);}else{_sH[_sU]=[_pk];}};cognos.Prompt.Control.SelectValue.prototype._iy=function(_mJ){var i;var _IV=null;var _Iq=null;var _v6=null;var _Ij=0;for(var _m6=0;_m6<_mJ.c.length;_m6++){_Iq=_mJ.c[_m6]._jC;if(_Iq&&_Iq.length){_v6=[];_Ij=0;for(i=0;i<_Iq.length;i++){_IV=_Iq[i];if(_IV.score>_Ij){_v6=[];_Ij=_IV.score;}if(_IV.score===_Ij){_v6.push(_IV.option);}}for(i=0;i<_v6.length;i++){_v6[i].checked=true;_v6[i].selected=true;}}}};cognos.Prompt.Control.SelectValue.prototype._kJ=function(_pk){var _xd=1;if(SYSTEMPROPERTY_REORDER_DROPDOWN_VALUES_IN_RANGES===true&&_pk){var _yn=this._fp.selectedIndex;var _JZ=_pk._fp.selectedIndex;if(_JZ>_yn){_xd=-1;}else if(_JZ==_yn){_xd=0;}}return _xd;};cognos.Prompt.Control.SelectValue.prototype._iP=function(){var _pf="listBox";switch(this.selectUI){case "checkboxGroup":_pf="checkBoxList";break;case "radioGroup":_pf="radioList";break;}var _Kr=this._hu(_pf);if(_Kr){if(typeof _Kr.selectAll==P_cD){_Kr.selectAll=this._eR.bind(this);}if(typeof _Kr.checkData==P_cD){_Kr.checkData=this.checkData.bind(this);}}if(this.selectUI=="checkboxGroup"||this.selectUI=="radioGroup"){var _Ds=document.getElementsByName(this._gE("pOpt_"));if(_Ds.length>0){if(_Ds.length==1){_Ds=_Ds[0];}this._fD("_oLstChoices",_Ds);}}else{this._fD("_oLstChoices");}};cognos.Prompt.Control.SelectValue.prototype._dO=function(_na){this._eR(false);};cognos.Prompt.Control.SelectValue.prototype._ey=function(_o7){var _HX=$CE("a",{"id":this._gE(P_P),"href":"javascript:;","onclick":"document.location.hash='';","class":"clsLink pl"},_o7);_HX._jc(this[P_F]);};cognos.Prompt.Control.SelectValue.prototype._kB=function(_uh){var _J3=$(this._gE(P_W));if(_J3&&this._hb()){PRMTUtils._h6(_J3,"clsCheckBoxList");PRMTUtils._h6(_J3,"pv");PRMTUtils._hi(_J3,"clsCheckBoxHidingGroupingList");}var _tG=$CE("div",{"id":this._gE("PRMT_SV_CONTAINER_")},_uh);var _zy=cssParser(this["@style"],"direction",true);var _xu=((_zy=="ltr"||_zy=="rtl")?_zy:P_bz.lookupDirection($(this._gE(this._kp))));var _pw="text-align:"+((_xu=="rtl")?"left":"right");_tG._jc(P_ai);switch(this.selectUI){case "checkboxGroup":this._hg(_uh,_pw);break;case "radioGroup":if(!this.isRequired()){var _o7=$CE("div",{style:_pw},_uh);if(this[P_an]){var _Ls=$CE("span",{"class":"clsLink","style":"text-decoration:underline;color: #CCCCCC"},_o7);_Ls._jc(this[P_F]);}else{this._ey(_o7);}}break;case "listBox":if(this.isMulti()){this._hg(_uh,_pw);}else if(!this.isRequired()&&typeof this["@columnName"]==P_cD){var _o7=$CE("div",{style:_pw},_uh);this._ey(_o7);}break;}return _J3;};cognos.Prompt.Control.SelectValue.prototype._hx=function(_pT){if(!(this["@hideAdornments"]||this._jQ)){this._kT(_pT);}var _x8=cssParser(this["@style"],"width",true);_x8=((/\d%/).test(_x8)?"100%":P_ai);this._fp=this._kB($CE("td",{"width":_x8},_pT));this.setAriaRequired();};cognos.Prompt.Control.SelectValue.prototype._hg=function(_uh,_pw){var _rB=_pw;if(typeof SYSTEMPROPERTY_SELECTVALUE_LINKS_NOWRAP!==P_cD&&SYSTEMPROPERTY_SELECTVALUE_LINKS_NOWRAP===true){_rB=_pw+";white-space:nowrap;padding:5px 0px 0px 0px";}var _Ci=this.getSelectOptions();var _DV=(this._hb()?1:0);if((!_Ci||_Ci.length<=_DV)&&!this._en){_rB+=";display:none";}var _o7=$CE("div",{"style":_rB},_uh);if(this[P_an]){var _IN={"class":"clsLink","style":"text-decoration:underline;color: #CCCCCC"};var _Ls=$CE("span",_IN,_o7);_Ls._jc((_pw=="text-align:right")?this[P_d]:this[P_w]);_o7._jc(P_br);_Ls=$CE("span",_IN,_o7);_Ls._jc((_pw=="text-align:right")?this[P_w]:this[P_d]);}else{var _HX=$CE("a",{"id":(_pw=="text-align:right")?this._gE(P_ct):this._gE(P_P),"href":"javascript:;","onclick":"document.location.hash='';","class":"clsLink pl"},_o7);_HX._gl=this;_HX._jc((_pw=="text-align:right")?this[P_d]:this[P_w]);_o7._jc(P_br);var _HV=$CE("a",{"id":(_pw=="text-align:right")?this._gE(P_P):this._gE(P_ct),"href":"javascript:;","onclick":"document.location.hash='';","class":"clsLink pl"},_o7);_HV._jc((_pw=="text-align:right")?this[P_w]:this[P_d]);}};cognos.Prompt.Control.SelectValue.prototype._fY=function(_o5,_qF){var _pS=null;if(typeof(_o5[_qF])!==P_cD){_pS=_o5[_qF];if(typeof(_pS)!==P_bJ){_pS=_pS.toString();}_pS=sDecodeU003(_pS);}return(_pS);};cognos.Prompt.Control.SelectValue.prototype._gp=function(){var _xY=[];var _p7=this._fp;if(_p7){switch(this.selectUI){case "checkboxGroup":case "radioGroup":var _o7=_p7.firstChild;var _JU=_o7==null?null:_o7.firstChild;var _Fu=(_JU!=null&&_JU.firstChild&&_JU.firstChild.tagName=="INPUT"?_JU.firstChild:null);var _CG=_JU==null?null:_JU.nextSibling;while(_o7&&(_JU=_o7.firstChild)&&(_Fu)&&(_CG=_JU.nextSibling)){_Fu=_JU.firstChild;_xY.push(_Fu);_o7=_o7.nextSibling;}break;default:_xY=_p7.options;};}return _xY;};cognos.Prompt.Control.SelectValue.prototype._er=function(_qC){var _rH=null;var _m8=_qC.getAttribute(P_E);if(_m8===null){_m8=_qC.value;}if(!_m8&&_qC.attributes&&_qC.attributes['value']){_m8=_qC.attributes['value'].value;}var _m2=_qC.getAttribute(P_aa);if(_m2===null){_m2=_qC.getAttribute(P_S);}var _rH={"use":_m8,"display":_m2};if(_qC.getAttribute(P_cs)||_qC.getAttribute(P_cA)){_rH['nil']=true;}return _rH;};cognos.Prompt.Control.SelectValue.prototype._la=function(_su,_ub){var _p7=this._fp;var _u3=[];var _rH=null;if(_p7&&((this.selectUI=="checkboxGroup"||this.selectUI=="radioGroup")||(_p7.selectedIndex>=(_p7.getAttribute('hasLabel')?2:0))||_ub)){var _wn=0;var _CW;;switch(this.selectUI){case "checkboxGroup":case "radioGroup":_CW="checked";break;default:_CW="selected";_wn=_p7.selectedIndex;};var _EI=!this.isMulti();var _FT=this._gp();var _vZ=_FT.length;if(_ub){for(var i=0;i<_vZ;i++){_u3.push(this._er(_FT[i]));}}else{for(var i=_wn;i<_vZ;i++){if(_FT[i][_CW]){_u3.push(this._er(_FT[i]));if(_EI){break;}}}}}return _u3;};cognos.Prompt.Control.SelectValue.prototype._dZ=function(_ng,_qC){var _Kz=0;if(this._fY(_ng,P_E)===_qC.value){_Kz+=2;}if(this._fY(_ng,P_aa)===_qC.getAttribute(P_S)){_Kz+=1;}return _Kz;};cognos.Prompt.Control.SelectValue.prototype._fw=function(_mJ){var _m8,_m2,_ng;this._jD={};this._iD={};this._dR=false;for(var _m6=0;_m6<_mJ.c.length;_m6++){_ng=_mJ.c[_m6];_m8=this._fY(_ng,P_E);if(_m8!==null){this._lz(this._jD,_m8,_ng);}_m2=this._fY(_ng,P_aa);if(_m2!==null){this._lz(this._iD,_m2,_ng);}if(typeof(_ng[P_cs])!==P_cD){this._dR=true;}}};cognos.Prompt.Control.SelectValue.prototype._hb=function(){var _EX=false;var _Ci=this.getSelectOptions();if(_Ci&&_Ci.length==1&&this.selectUI=="checkboxGroup"&&!this["@alwaysShowGroupingBox"]){_EX=true;}return _EX;};cognos.Prompt.Control.SelectValue.prototype._f5=function(_tG,_p7){if(_tG&&_p7){while(_tG.hasChildNodes()){_tG.removeChild(_tG.firstChild);}if(_p7.parentNode){_tG.appendChild(_p7.parentNode.removeChild(_p7));}else{_tG.appendChild(_p7);}}return _tG;};cognos.Prompt.Control.SelectValue.prototype._gB=function(_mG){_mG=(arguments&&arguments.length?arguments[arguments.length-1]:null);var _nm=(_mG||event||null);var _xY=false;if(_nm){var _wy=this._ig(_mG);var _vL=0;if(_nm.type=="keydown"){var _rx=(_nm.keyCode?_nm.keyCode:_nm.which);if(_nm.altKey||_rx==9||_rx==13||_rx==P_aW){return true;}switch(_rx){case P_c3:_vL=P_aN;break;case P_cT:_vL=P_v;break;default:_xY=true;}}if(_vL!=0){var _rU=this._g9(_vL,_wy);if(_rU!=null&&_rU!=_wy){this._gW(_wy,_rU);}}PRMTUtils.F_StopEvent(_nm);}return _xY;};cognos.Prompt.Control.SelectValue.prototype._ig=function(_mG){var _qR=(_mG.target||_mG.srcElement||null);while(_qR&&!(_qR.tagName=="DIV"&&_qR.className=="clsCheckBoxRow")){_qR=_qR.parentNode;}return _qR;};cognos.Prompt.Control.SelectValue.prototype._g9=function(_vL,_vx){var _xY=null;var parentNode=_vx.parentNode;if(_vL==P_v){if(parentNode.lastChild==_vx){_xY=parentNode.firstChild;}else if(_vx.nextSibling&&_vx.nextSibling.className=="clsCheckBoxRow"){_xY=_vx.nextSibling;}}else if(_vL==P_aN){if(parentNode.firstChild==_vx){_xY=parentNode.lastChild;}else if(_vx.previousSibling&&_vx.previousSibling.className=="clsCheckBoxRow"){_xY=_vx.previousSibling;}}return _xY;};cognos.Prompt.Control.SelectValue.prototype._gW=function(_oL,_rU){if(_oL){_oL.tabIndex=-1;}var _Eu=(_rU&&_rU.firstChild?_rU.firstChild.firstChild:null);window.setTimeout(function(){if(_Eu){_Eu.focus();}},0);};cognos.Prompt.Control.SelectValue.prototype._kb=function(){var _FT=this._gp();if(_FT.length==1){_FT.selectedIndex=0;this._f4();}};cognos.Prompt.Control.SelectValue.prototype._f4=function(){this.checkData();if(this["@autoSubmit"]&&(!this.isRequired()||this.getValid())){var _qy=this._eE();var _w5=(this["@autoCascade"]||!canSubmitPrompt(this["@parameter"],_qy)?K_ACTION_REPROMPT:P_aB);if(_qy&&typeof _qy.submitPromptValues==P_c7&&typeof ViewerDispatcherEntry==P_c7){var _K4=new ViewerDispatcherEntry(_qy);_K4.addFormField("ui.action",K_ACTION_FORWARD);_K4.addFormField("_autosubmitParameter",this["@parameter"]);_K4.addFormField("_promptControl",_w5);_qy.setCurrentPromptControlFocus(this["@name"]);_qy.submitPromptValues(_K4);}else{SetPromptMethod(K_ACTION_FORWARD);if(document.forms[0]._autosubmitParameter){document.forms[0]._autosubmitParameter.value=this["@parameter"];}else if(document.forms[0]){var _ym=document.forms[0];genHiddenInputHTML(_ym.name,"_autosubmitParameter",this["@parameter"]);}SetPromptControl(_w5);}}};cognos.Prompt.Control.SelectValue.prototype._jB=function(_qC){var _rP;if(_rP=this._jD[_qC.value]){this._e0(_qC,_rP);}if(_rP=this._iD[_qC.getAttribute(P_S)]){this._e0(_qC,_rP);}if(this._dR&&_qC.getAttribute(P_cA)){_qC.checked=true;_qC.selected=true;}};cognos.Prompt.Control.SelectValue.prototype._eR=function(_na){_na=(_na!==false);var _p7=this._fp;if(_p7){var _CW=(this.selectUI=="checkboxGroup"||this.selectUI=="radioGroup"?"checked":"selected");var _FT=this._gp();var _vZ=_FT.length;var _Fu=null;var _o7=null;for(var i=0;i<_vZ;i++){_Fu=_FT[i];_FT[i][_CW]=_na;if(_CW=="checked"){_o7=_Fu.parentNode;if(_Fu.checked){_o7.className=(_Fu.type=="checkbox"?P_bx:P_e);}else{_o7.className=(_Fu.type=="checkbox"?P_bY:P_b1);}PRMTUtils._jZ(_Fu,_Fu.checked);}else if(_CW=="selected"){_FT[i].setAttribute("aria-selected",_na.toString());}}if(!_na){_FT.selectedIndex=-1;}this.checkData();}};cognos.Prompt.Control.SelectValue.prototype._fA=function(_rH){var _p7=this._fp;if(_p7){var _CW=(this.selectUI=="checkboxGroup"||this.selectUI=="radioGroup"?"checked":"selected");var _FT=this._gp();var _vZ=_FT.length;for(var i=0;i<_FT.length;i++){var _oU=_FT[i];if(_oU.value==_rH[P_C]){_oU[_CW]=true;if(_CW=="checked"){_o7=_oU.parentNode;_o7.className=(_oU.type=="checkbox"?P_bx:P_e);}break;}}}};cognos.Prompt.Control.SelectValue.prototype._jd=function(_mJ){if(!_mJ){_mJ=this.getSelectChoices();}var _rH=null;if(_mJ&&_mJ.c&&_mJ.c.length>0){this._fw(_mJ);var _p7=this._fp;if(_p7){var _FT=this._gp();if(_FT){var _vZ=_FT.length;for(var i=0;i<_vZ;i++){this._jB(_FT[i]);}}}this._iy(_mJ);this.checkData();if(!this._gH()){setTimeout(this._d8.bind(this),20);}}};cognos.Prompt.Control.SelectValue.prototype._d8=function(){if(document.readyState=="complete"){var _p7=this._fp;var _x8=cssParser(this["@style"],"width",true);if(!_x8){if(_p7&&_p7.style){_p7.style.width="auto";if(_p7.offsetWidth<200){_p7.style.width="200px";}}}var _xm=_p7.clientHeight;if(_xm){var _Fe=_p7.scrollHeight;if(_xm<_Fe){var _GF=_p7.offsetHeight;if(_Fe<_GF){_p7.style.height=_GF+_Fe-_xm+"px";}}}}else if(document.readyState){if(!this._gH()){setTimeout(this._d8.bind(this),100);}}else{var _x8=cssParser(this["@style"],"width",true);if(!_x8){var _p7=this._fp;if(_p7&&_p7.style){_p7.style.minWidth="200px";_p7.style.width="auto";}}}};var P_a1=cognos.Prompt.Control.SelectValue;cognos.Prompt.Control.Text=cognos.Prompt.Control._ff({_jf:function(_tL){this._type_="cognos.Prompt.Control.Text";this._eA(_tL);this._fs=new RegExp("[\\n\\f\\r\\t]");this._e3=false;if(this["@allowZero"]!==false){this["@allowZero"]=true;}if(!this["@dataType"]&&this["@numbersOnly"]){this["@dataType"]="number";}if(this["@showThousandSeparator"]&&this["@showThousandSeparator"]!==false){this["@showThousandSeparator"]=true;}this._jW=(this["@defaultValue"]?sDecodeU003(this["@defaultValue"]):P_ai);initParsingRegularExpressions();this._kP();},checkData:function(){var _JX=this._eA;this.checkRequired();if(this.isRequired()&&!this.isMulti()&&!(this.getValue())){this._l1=false;}else{var _Jo=this.m_oForm.value.split(this._fs);if(_Jo.length>1){var _Dt=true;for(var i=0;i<_Jo.length;i++){var _xV=sParseByDataType(_Jo[i],this["@dataType"]);if(_xV===false){_Dt=false;}}if(_Dt==false){this._l1=false;}else{this._l1=true;this._jW=this.m_oForm.value;if(this["@submitType"]!=P_ak&&this.m_oSubmit){this.m_oSubmit.value=this._jW;}}}else{var _nK=this.bParse(this.m_oForm.value,this["@dataType"]);if(_nK===false&&this.m_oForm.value!=P_ai){this._l1=false;}else{this._l1=true;if(this["@submitType"]!=P_ak&&this.m_oSubmit){this.m_oSubmit.value=this._jW;}}}}this._eA=_JX;this._eA();return this._l1;},clearValues:function(){this._eA();this._dv();},_ly:function(){v_InputId=this._gE(P_c5);var _J3=$(v_InputId);_J3._gl=this;var _zR=$(this._gE("PRMT_LBL_"));if(_zR&&!_zR.getAttribute("for")){_zR.setAttribute("for",v_InputId);}PRMTUtils._hj(_J3,"keyup",this._jm.bind(this));PRMTUtils._hj(_J3,"keypress",this._hk.bind(this));PRMTUtils._hj(_J3,"blur",this._lv.bind(this));PRMTUtils._hj(_J3,"contextmenu",this._eD.bind(this));this._fp=this.m_oForm=_J3;this._eA();this._iq();if(G_IsBidiEnabled&&this["@contentTextDirection"]&&!this["@hideText"]){this.m_oForm.style.direction=P_bz.getTextDirection(this.m_oForm.value,this["@contentTextDirection"]);}}});cognos.Prompt.Control.Text.prototype.bParse=function(_nK,_sA){var _oX=sParseByDataType(_nK,_sA,this["@allowZero"]);var _LB=true;if(_oX===false){this._e3=false;_LB=false;}else{_oX=_oX.toString();var z=_oX.search(P_cJ);this._e3=(z!=-1);this._jW=_oX;}return _LB;};cognos.Prompt.Control.Text.prototype.checkValueChange=function(){if(this.m_oForm.value!=this._jW){this._lv();}};cognos.Prompt.Control.Text.prototype._dv=function(){this._ip("m_oSubmit");this.m_oForm.value=P_ai;this._jW=P_ai;};cognos.Prompt.Control.Text.prototype._ip=function(_pW){if(!this[_pW]){this[_pW]={};}this[_pW]["value"]=P_ai;};cognos.Prompt.Control.Text.prototype._kJ=function(_pk){var _xd=1;if(SYSTEMPROPERTY_REORDER_TEXT_VALUES_IN_RANGES===true&&_pk){var _IY=null;var _yI=null;if(this["@dataType"]=="number"){_IY=parseFloat(this._jW);_yI=parseFloat(_pk._jW);}else{_IY=this._jW;_yI=_pk._jW;}if(_yI>_IY){_xd=-1;}else if(_yI==_IY){_xd=0;}}return _xd;};cognos.Prompt.Control.Text.prototype._iP=function(){this._fD("_textEditBox");};cognos.Prompt.Control.Text.prototype._kB=function(_uh){var _J3=null;var _qY={"style":cssParser(this["@style"],'color,font,text'),"class":"clsTextWidget pt"};if(this["@maxLength"]!==P_ai&&!isNaN(this["@maxLength"])){_qY.maxLength=this["@maxLength"];}if(this["@readOnly"]){_qY.readOnly=true;}if(cssParser(this["@style"],"width")){_qY.style+=";width:100%";}if(this["@size"]){_qY.size=this["@size"];}if(this[P_an]){_qY.disabled=true;}if(this["@title"]){_qY.title=this["@title"];}if(this.isRequired()){_qY["aria-required"]="true";}if(this["@hideText"]){_qY.type="password";_qY.autocomplete="off";_qY.value=this._jW;_J3=$CE("input",_qY);}else if(!this["@multiLine"]){var _L6=cssParser(this["@style"],"height",true);if(!(/\d%/).test(_L6)){_qY.style+=";height:"+_L6;}_qY.type="text";_qY.value=this._jW;_J3=$CE("input",_qY);}else{var _L6=cssParser(this["@style"],"height",true);if(!(/\d%/).test(_L6)){_qY.style+=";height:"+_L6;}_qY.rows=7;_qY.cols=20;_J3=$CE("textarea",_qY);_J3._jc(this._jW);}var _ns=this._gE(P_c5);_J3._fH("id",this._gE(P_c5));_uh._ep(_J3);if(this._jW){var _yu=convertSQLToLocale(this._jW,this["@dataType"]);var _of=_yu;if(this.bParse(_yu,this["@dataType"])==true){_of=this._jW;}_J3.value=getFormatByDataType(_of,this["@dataType"],this._e3,this._ki());}else{this._jW=P_ai;}return _J3;};cognos.Prompt.Control.Text.prototype._iQ=function(){return(this._gE(P_c5));};cognos.Prompt.Control.Text.prototype._lv=function(){if(typeof this._k9!=P_cD){clearInterval(this._k9);}this._iq();this.checkData();};cognos.Prompt.Control.Text.prototype._la=function(){var _rH=null;if(this.hasValue()){if(this["@multiLine"]&&this._eJ){var _ue=this.sGetValue();var _wX=window.isAllowEmptyStrings?window.isAllowEmptyStrings():true;var _Jo=_ue.split(this._fs);_rH=[];for(var i=0;i<_Jo.length;i++){if(_Jo[i].length==0&&_wX==false){continue;}var _J5=getFormatByDataType(_Jo[i],this["@dataType"],this._e3);_rH.push({"use":_Jo[i],"display":_J5});}}else{_rH={"use":this.sGetValue(),"display":this.sGetFormatValue()};}}return _rH;};cognos.Prompt.Control.Text.prototype._ki=function(){return(this["@showThousandSeparator"]?true:false);};cognos.Prompt.Control.Text.prototype._hk=function(_mG){var _mG=(arguments&&arguments.length?arguments[arguments.length-1]:null);var _nm=(_mG?_mG:(typeof event!=P_cD?event:null));if(_nm){var _rx=(_nm.keyCode)?_nm.keyCode:_nm.which;if(_rx=='8'){this.checkData();}else if(_rx=='13'&&!this["@multiLine"]){var _qy=this._eE();if(this._eJ){if(this._l1){this._eJ.F_Insert();}}else if(_qy&&(typeof _qy.canSubmitPrompt==P_c7)&&_qy.canSubmitPrompt()&&(typeof _qy.promptAction==P_c7)){_qy.promptAction(K_ACTION_NEXT);}return PRMTUtils.F_StopEvent(_nm);}}return true;};cognos.Prompt.Control.Text.prototype._jm=function(_mG){var _mG=(arguments&&arguments.length?arguments[arguments.length-1]:null);this.checkData();if(!this["@multiLine"]){PRMTUtils.F_PreventSubmit(_mG);}if(G_IsBidiEnabled&&this["@contentTextDirection"]&&!this["@hideText"]){P_bz.fixInputDirection(_mG.target?_mG.target:_mG.srcElement,this["@contentTextDirection"],'true');}};cognos.Prompt.Control.Text.prototype._iq=function(){if(this.bParse(this.m_oForm.value,this["@dataType"])!==false){var _J5=this.sGetFormatValue();if(_J5!==false){this.m_oForm.value=_J5;}}if(this["@multiLine"]){this.checkData();}};cognos.Prompt.Control.Text.prototype._fA=function(_rH){var _pS=_rH[P_C];if(this["@dataType"]=="percentage"){_pS=sParseOutCommon(_pS);_pS=sMultiplyBy100(_pS);}_pS=convertSQLToLocale(_pS,this["@dataType"]);this.m_oForm.value=_pS;this._iq();};cognos.Prompt.Control.Text.prototype._eD=function(_uO){if(typeof _uO!="number"){_uO=100;}this._jW=this.m_oForm.value;this._k9=setInterval(this.checkValueChange.bind(this),_uO);};cognos.Prompt.Control.Text.prototype.getDecimalSize=function(){var _Gj=this.sGetValue();var _FM=-1;if(_Gj!==false){_FM=_Gj.lastIndexOf(P_A);}if(_FM!=-1){_Gj=_Gj.substring(_FM+1);var _AM=_Gj.search(/\D/);if(_AM!=-1){_Gj=_Gj.substring(0,_AM);}return _Gj.length;}return 0;};cognos.Prompt.Control.Text.prototype.getValue=function(){return this.m_oForm.value;};cognos.Prompt.Control.Text.prototype.hasValue=function(){return(this._l1&&!this.isEmpty()?true:false);};cognos.Prompt.Control.Text.prototype.isEmpty=function(){return(this.m_oForm&&this.m_oForm.value&&this.m_oForm.value.length>0?false:true);};cognos.Prompt.Control.Text.prototype.isValid=function(){_xY=false;if(this.isRequired()&&this.isMulti()&&this._eJ){_xY=this._eJ._iz();}else{this.checkData();_xY=(this._l1===true);}return _xY;};cognos.Prompt.Control.Text.prototype.setCurrentFocus=function(_uk){this._kL=_uk;this._kL.select();};cognos.Prompt.Control.Text.prototype.setCurrentValue=function(){this.m_oForm.value=this._jW;};cognos.Prompt.Control.Text.prototype.sGetFormatValue=function(){if(!this._iF){this.checkData();}if(this._l1==true){return getFormatByDataType(this.sGetValue(),this["@dataType"],this._e3,this._ki());}else{return false;}};cognos.Prompt.Control.Text.prototype.sGetValue=function(){if(!this._iF){this.checkData();}if(this._l1==true){return(P_ai+this._jW);}return false;};var P_co=cognos.Prompt.Control.Text;cognos.Prompt.Control.Interval=cognos.Prompt.Control._ff({_jf:function(_tL,_ot){this[P_bM]=PMT_RNG_LOWEST_INTERVAL;this[P_ac]=PMT_RNG_HIGHEST_INTERVAL;this._type_="cognos.Prompt.Control.Interval";this._eA(_tL);this._lp=_ot;if(this["@allowNegative"]!==false){this["@allowNegative"]=true;}if(this["@showMilliseconds"]){this["@showSeconds"]=true;}var _L4=Object._ff({},_tL);_L4["n"]="textBox";_L4["@dataType"]="integer";_L4["@defaultValue"]=(this.isRequired()&&!this.isMulti()?"0":P_ai);_L4["@hideAdornments"]=true;_L4["@size"]=4;_L4._en=true;_L4._fJ=this;this._hX=this._lJ(_L4,"[D]");this._lR=this._lJ(_L4,"[H]");_L4["@maxLength"]="2";this._gk=this._lJ(_L4,"[M]");_L4["@maxLength"]="2";this._fo=(this["@showSeconds"]?this._lJ(_L4,"[S]"):null);_L4["@maxLength"]="3";this._f1=(this["@showMilliseconds"]?this._lJ(_L4,"[MS]"):null);this._jQ=true;this._fK=true;this._kP();},checkData:function(){var _JX=this._eA;var _IB=this._hX.getValid()&&this._lR.getValid()&&this._gk.getValid()&&(!this._fo||this._fo.getValid())&&(!this._f1||this._f1.getValid());this._l1=(_IB?true:false);this._eA=_JX;this._eA();return this._l1;},clearValues:function(){this._eA();this._dv();},_ly:function(){var _JX=this._eA;this._hX._ly();this._lR._ly();this._gk._ly();if(this._fo){this._fo._ly();}if(this._f1){this._f1._ly();}this._jG(this["@defaultValue"]);this._eA=_JX;this._eA();}});cognos.Prompt.Control.Interval.prototype._dv=function(){this._hX.m_oForm.value=P_ai;this._lR.m_oForm.value=P_ai;this._gk.m_oForm.value=P_ai;if(this._fo){this._fo.m_oForm.value=P_ai;}if(this._f1){this._f1.m_oForm.value=P_ai;}};cognos.Prompt.Control.Interval.prototype._kJ=function(_pk){var _xd=1;if(_pk){var _yn=this._k2()._jM();var _JZ=_pk._k2()._jM();if(_JZ>_yn){_xd=-1;}else if(_JZ==_yn){_xd=0;}}return _xd;};cognos.Prompt.Control.Interval.prototype._iP=function(){this._hu("intervalControl");};cognos.Prompt.Control.Interval.prototype._kB=function(_uh){var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_uh);var _t6=$CE("tbody",{},_y3);var _AN=$CE("tr",{},_t6);var _xc=$CE("tr",{},_t6);var _rK=$CE("td",{},_AN);if(this["@hideAdornments"]){_rK=$CE("td",{},_xc);$CE("img",{"src":this._lw+"/prompting/images/spacer.gif","vAlign":"top","height":10,"width":10,"border":0,"alt":""},_rK);}else{this._kT(_xc,this.isMulti());}this._kC(_AN,this[P_aG],P_c5+this._hX["_id_"],false);this._kC(_AN,this[P_at],P_c5+this._lR["_id_"]);this._kC(_AN,this[P_ch],P_c5+this._gk["_id_"]);if(this["@showSeconds"]||this["@showMilliseconds"]){this._kC(_AN,this[P_cS],P_c5+this._fo["_id_"]);}if(this["@showMilliseconds"]){this._kC(_AN,this[P_bC],P_c5+this._f1["_id_"]);}this._gr(_xc,this._hX,false);this._gr(_xc,this._lR);this._gr(_xc,this._gk);this._gr(_xc,this._fo);this._gr(_xc,this._f1);};cognos.Prompt.Control.Interval.prototype._gr=function(_rS,_sJ){if(_sJ){var _rK=$CE("td",{"style":"margin-right: 3px"},_rS);_sJ._kB(_rK);}};cognos.Prompt.Control.Interval.prototype._kC=function(_rS,_nn,_uL,_nt){var _rK=null;if(_nt!==false){_rK=$CE("td",{"width":3,"rowSpan":2},_rS);$CE("img",{"src":this._lw+"/prompting/images/spacer.gif","width":3,"height":1,"border":0,"alt":""},_rK);}_rK=$CE("td",{"class":"clsControlLabel pc"},_rS);var _Mc=$CE("label",{"for":_uL},_rK);_Mc._jc(_nn);};cognos.Prompt.Control.Interval.prototype._la=function(){var _rH=null;if(!this._iF){this.checkData();}var _GQ=this._k2();if(this.hasValue()){_rH={"use":_GQ._gT(),"display":_GQ._h2()};}return _rH;};cognos.Prompt.Control.Interval.prototype._k2=function(){return(new cognos.Prompt.Control.IntervalValue(this._hF(this._hX),this._hF(this._lR),this._hF(this._gk),this._hF(this._fo),this._hF(this._f1)));};cognos.Prompt.Control.Interval.prototype._hF=function(_qY){return(_qY&&_qY.getValue?_qY.getValue():null);};cognos.Prompt.Control.Interval.prototype._lJ=function(_tL,_n1){return(this._lp._iu(Object._ff(_tL,{"_id_":this["_id_"]+_n1})));};cognos.Prompt.Control.Interval.prototype._dW=function(_sJ,_pS){if(_sJ&&_sJ.m_oForm){_pS=(_pS===null&&this.isRequired()?"0":_pS);_sJ.m_oForm.value=(_pS===null?P_ai:_pS);_sJ.checkData();}};cognos.Prompt.Control.Interval.prototype._fA=function(_rH){var _pS=_rH["use"];if(_pS){this._jG(_pS);}};cognos.Prompt.Control.Interval.prototype._jG=function(_pS){if(!_pS){return;}var _pk=new cognos.Prompt.Control.IntervalValue(_pS);this._dW(this._hX,_pk[P_cX]*(_pk[P_q]?-1:1));this._dW(this._lR,_pk[P_bj]);this._dW(this._gk,_pk[P_az]);this._dW(this._fo,_pk[P_U]);this._dW(this._f1,_pk[P_cQ]);};cognos.Prompt.Control.Interval.prototype.isEmpty=function(){var _BG=this._hX.hasValue()||this._lR.hasValue()||this._gk.hasValue()||(this._fo&&this._fo.hasValue())||(this._f1&&this._f1.hasValue());return(_BG?false:true);};cognos.Prompt.Control.Interval.prototype.hasValue=function(){var _BG=!this.isEmpty();return(_BG&&this._l1?true:false);};cognos.Prompt.Control.IntervalValue=function(){this[P_q]=false;this[P_cX]=null;this[P_bj]=null;this[P_az]=null;this[P_U]=null;this[P_cQ]=null;if(arguments.length>0){if(typeof arguments[0]==P_bJ&&arguments.length==1){Object._ff(this,this._eq(arguments[0]));}else if(typeof arguments[0]==P_cZ&&arguments[0]!==null){Object._ff(this,arguments[0]);}else{this._hw.apply(this,arguments);}}var _A5=[P_cQ,P_U,P_az,P_bj,P_cX];var _B7=false;for(var _Iz=0;_Iz<_A5.length;_Iz++){if(this[_A5[_Iz]]!==null){_B7=true;}if(_B7&&this[_A5[_Iz]]===null){this[_A5[_Iz]]=0;}}this._g6(P_cQ,P_U,1000);this._g6(P_U,P_az,60);this._g6(P_az,P_bj,60);this._g6(P_bj,P_cX,24);return(this);};cognos.Prompt.Control.IntervalValue.prototype._j2=function(_sx){var _KR=false;if(!(_sx instanceof cognos.Prompt.Control.IntervalValue)){_sx=new cognos.Prompt.Control.IntervalValue(_sx);}_KR=(this[P_q]===_sx[P_q]&&this[P_cX]===_sx[P_cX]&&this[P_bj]===_sx[P_bj]&&this[P_az]===_sx[P_az]&&this[P_U]===_sx[P_U]&&this[P_cQ]===_sx[P_cQ]);return _KR;};cognos.Prompt.Control.IntervalValue.prototype._g6=function(_ph,_rV,_rv){var _Cj=this[_ph];var _Ei=this[_rV];if(_Cj===null){return;}if(_Cj<0||_Ei<0){this[P_q]=true;}_Cj=Math.abs(_Cj);_Ei=Math.abs(_Ei);if(_Cj>=_rv){var _xw=Math.floor(_Cj/_rv);_Ei+=_xw;_Cj=_Cj-(_xw*_rv);}this[_ph]=_Cj;this[_rV]=_Ei;};cognos.Prompt.Control.IntervalValue.prototype._jM=function(){var _xd=0;var _Is=1;if(this[P_cQ]!==null){_xd+=_Is*this[P_cQ];}_Is*=1000;if(this[P_U]!==null){_xd+=_Is*this[P_U];}_Is*=60;if(this[P_az]!==null){_xd+=_Is*this[P_az];}_Is*=60;if(this[P_bj]!==null){_xd+=_Is*this[P_bj];}_Is*=24;if(this[P_cX]!==null){_xd+=_Is*this[P_cX];}return(this._lH()?-1*_xd:_xd);};cognos.Prompt.Control.IntervalValue.prototype._h2=function(){var _pS=(this._lH()?g_minusSign:P_ai);var _o2=this._lj(P_cX,1);var _sq=this._lj(P_bj,1);var _mp=this._lj(P_az,2);var _vy=this._lj(P_U,2);var _p0=this._lj(P_cQ,3);if(_o2){_pS+=_o2;}if(_sq){if(_o2){_pS+=P_br;}_pS+=_sq;}if(_mp){_pS+=P_b6+_mp;}if(_vy){_pS+=P_b6+_vy;}if(_p0){_pS+=P_A+_p0;}return _pS;};cognos.Prompt.Control.IntervalValue.prototype._lj=function(_sU,_mW){var _pS=this[_sU];if(_pS!==null){_pS=P_ai+_pS;while(_pS.length<_mW){_pS="0"+_pS;}}return _pS;};cognos.Prompt.Control.IntervalValue.prototype._hF=function(_q9,_pb){if(_q9<0){this._fX=true;}var _q9=Math.abs(_q9);if(_pS&&typeof _pb==P_bJ){_pS=_pb.replace("*",_pS);}return(_pS);};cognos.Prompt.Control.IntervalValue.prototype._gT=function(){var _pS=P_ai;if(this[P_cX]!==null){_pS+=this[P_cX]+"D";}if(this[P_bj]!==null||this[P_az]!==null||this[P_U]!==null||this[P_cQ]!==null){_pS+="T";if(this[P_bj]!==null){_pS+=this[P_bj]+"H";}if(this[P_az]!==null){_pS+=this[P_az]+"M";}if(this[P_U]!==null){_pS+=this[P_U];}if(this[P_cQ]!==null){_pS+=P_A+this._lj(P_cQ,3)+"S";}}if(_pS!==P_ai){_pS="P"+_pS;if(this[P_q]){_pS=g_minusSign+_pS;}}return _pS;};cognos.Prompt.Control.IntervalValue.prototype._hw=function(_o2,_sq,_mp,_vy,_p0){var _GE=[];var _FR={};var _pS=null;for(var i=0;i<5;i++){_pS=(arguments[i]===null||typeof arguments[i]==P_cD?null:P_ai+arguments[i]);if(typeof _pS==P_bJ&&_pS.match(P_c2)){_pS="0";}_GE.push(_pS);}for(var i=0;i<_GE.length;i++){_GE[i]=(_GE[i]!==null?parseInt(_GE[i],10):null);}_FR[P_cX]=_GE[0];_FR[P_bj]=_GE[1];_FR[P_az]=_GE[2];_FR[P_U]=_GE[3];_FR[P_cQ]=_GE[4];Object._ff(this,_FR);return(_FR);};cognos.Prompt.Control.IntervalValue.prototype._lH=function(){return(this[P_q]===true);};cognos.Prompt.Control.IntervalValue.prototype._eq=function(_pS){var _FR={};var _Fi=null;if(_Fi=_pS.match(P_l)){_FR[P_q]=(_Fi[1]?true:false);_FR[P_cX]=this._gL(_Fi[2]);_FR[P_bj]=this._gL(_Fi[3]);_FR[P_az]=this._gL(_Fi[4]);_FR[P_U]=this._gL(_Fi[5]);_FR[P_cQ]=this._gL(_Fi[6]);}else if(_Fi=_pS.match(P_a0)){_FR[P_q]=(_Fi[1]?true:false);_FR[P_cX]=this._gL(_Fi[2]);_FR[P_bj]=this._gL(_Fi[3]);_FR[P_az]=this._gL(_Fi[4]);_FR[P_U]=this._gL(_Fi[5]);_FR[P_cQ]=this._gL(_Fi[6]);}return _FR;};cognos.Prompt.Control.IntervalValue.prototype._gL=function(_pS){return(_pS?parseInt(_pS.replace(P_aC,P_ai),10):null);};cognos.Prompt.Control.IntervalValue.prototype._jo=function(_vP){this[P_q]=(_vP!==false);};var P_bs=cognos.Prompt.Control.Interval;var P_bF=cognos.Prompt.Control.IntervalValue;cognos.Prompt.Control.Date=cognos.Prompt.Control._ff({_jf:function(_tL){this[P_bM]=PMT_RNG_EARLIEST_DATE;this[P_ac]=PMT_RNG_LATEST_DATE;this._type_="cognos.Prompt.Control.Date";this._eA(_tL);if(this["@selectDateUI"]){this["@selectUI"]=this["@selectDateUI"];}if(!this["@startOfWeek"]){this["@startOfWeek"]="1";}this["@startOfWeek"]=parseInt(this["@startOfWeek"],10);this.m_bDisabled=false;this._kP();},checkData:function(){var _JX=this._eA;this._l1=this._km._l1;this._eA=_JX;this._eA();return this._l1;},clearValues:function(){this._eA();this._gz((""+new Date()));},_ly:function(){var _JX=this._eA;var _G9=$(this._gE("chkAnyValue"));if(_G9){PRMTUtils._hj(_G9,"click",this._fR.bind(this));}var _D1=0;switch(this["@startOfWeek"]){case "Monday":_A9=1;break;case "Tuesday":_A9=2;break;case "Wednesday":_A9=3;break;case "Thursday":_A9=4;break;case "Friday":_A9=5;break;case "Saturday":_A9=6;break;}var _sJ=new CDatePicker(null,$(this._gE("_Date")),$(this._gE(this["@selectUI"]=="editBox"?"txtDate":"_Date")),$(this._gE("dialogDatePicker")),this._gE(),this["@defaultDate"],(this["@selectUI"]=="editBox"?0:1),(this["@calendar"]=="Imperial"?1:0),this["@inputOrder"],_D1,(this["@DateTime"]?0:1),this["@firstDate"],this["@lastDate"],this.isRequired(),null,null,this["CVId"]);var _FW=this._eE().datePickerObserverArray;if(_FW){_FW.push(_sJ);}var _Gk=_sJ.m_oDatePickerDialog;var _uh=$(this._gE("txtDate"));if(_uh){PRMTUtils._hj(_uh,"keyup",_sJ.checkDate.bind(_sJ,_uh));PRMTUtils._hj(_uh,"keypress",_sJ.keyPress.bind(_sJ,_uh));PRMTUtils._hj(_uh,"focus",_sJ.gotFocus.bind(_sJ));PRMTUtils._hj(_uh,"blur",_sJ.lostFocus.bind(_sJ));var _zR=$(this._gE("PRMT_LBL_"));if(_zR&&!_zR.getAttribute("for")){_zR.setAttribute("for",_uh.id);}}_uh=$(this._gE("myYear"));if(_uh){PRMTUtils._hj(_uh,"keyup",_Gk.checkYear.bind(_Gk,_uh));PRMTUtils._hj(_uh,"keypress",this._d0.bind(_Gk));PRMTUtils._hj(_uh,"blur",_Gk.lostFocus.bind(_Gk));}PRMTUtils._hj($(this._gE("btnYearDown")),"click",_Gk.yearDown.bind(_Gk));PRMTUtils._hj($(this._gE("btnYearUp")),"click",_Gk.yearUp.bind(_Gk));PRMTUtils._hj($(this._gE("btnYearDown")),"keypress",_Gk.yearDown.bind(_Gk));PRMTUtils._hj($(this._gE("btnYearUp")),"keypress",_Gk.yearUp.bind(_Gk));if(window.ie){PRMTUtils._hj($(this._gE("btnYearDown")),"dblclick",_Gk.yearDown.bind(_Gk));PRMTUtils._hj($(this._gE("btnYearUp")),"dblclick",_Gk.yearUp.bind(_Gk));}for(var _Fc=0;_Fc<12;_Fc++){PRMTUtils._hj($(this._gE()+"m"+_Fc),"mousedown",_Gk.newMonth.bind(_Gk,_Fc));PRMTUtils._hj($(this._gE()+"m"+_Fc),"keypress",_Gk.newMonth.bind(_Gk,_Fc));}for(var _sp=0;_sp<6;_sp++){for(_qh=0;_qh<7;_qh++){_uh=$(this._gE()+"r"+_sp+"c"+_qh);if(_uh){PRMTUtils._hj(_uh,"mousedown",_Gk.newDay.bind(_Gk,_uh));}}}_uh=$(this._gE("imgPicker"));if(_uh){PRMTUtils._hj(_uh,"click",_sJ.toggleDialogDatePicker.bind(_sJ,_uh));PRMTUtils._hj(_uh,"keypress",_sJ.toggleDialogDatePicker.bind(_sJ,_uh));}_sJ._fU=this;this._km=_sJ;this._eA=_JX;this._eA();this.checkData();if(this[P_an]){this._g8(false);}}});cognos.Prompt.Control.Date.prototype._iQ=function(){return(this["@selectUI"]=="editBox"?this._gE("txtDate"):null);};cognos.Prompt.Control.Date.prototype._kJ=function(_pk){var _xd=1;if(_pk){var _Lt=this._km.m_oForm.value.split("T");_Lt=dParseDate(_Lt[0],"YMD");var _w3=_pk._km.m_oForm.value.split("T");_w3=dParseDate(_w3[0],"YMD");var _yn=_Lt.getTime();var _JZ=_w3.getTime();if(_JZ>_yn){_xd=-1;}else if(_JZ==_yn){_xd=0;}}return _xd;};cognos.Prompt.Control.Date.prototype._iP=function(){this._hu("pickerControl",this._km);this._fD("txtDate",$(this._gE("txtDate")));};cognos.Prompt.Control.Date.prototype._fr=function(_uh,_sp,_qh){var _rK=$CE("td",{"id":this._gE()+"r"+_sp+"c"+_qh,"nowrap":"nowrap","class":"clsSelectDateDays pd"},_uh);_rK._jc(P_ai);};cognos.Prompt.Control.Date.prototype._gi=function(_uh){var _y3=$CE("table",{"border":P_f,"cellSpacing":0,"width":"100%","align":"center","role":P_ag},_uh);var _t6=$CE("tbody",{},_y3);var _qh=0;var _rS=$CE("tr",{},_t6);for(_qh=0;_qh<7;_qh++){this._gt(_rS,_qh);}for(var _sp=0;_sp<6;_sp++){var _rS=$CE("tr",{},_t6);for(_qh=0;_qh<7;_qh++){this._fr(_rS,_sp,_qh);}}};cognos.Prompt.Control.Date.prototype._kz=function(_uh){var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_uh);var _t6=$CE("tbody",{},_y3);var _rS=$CE("tr",{},_t6);var _rK=$CE("td",{},_rS);var _JI=$CE("input",{"type":"text","class":"clsSelectDateEditBox pt","aria-required":(this.isRequired()?"true":"false"),"id":this._gE("txtDate"),"value":P_ai},_rK);_rK=$CE("td",{},_rS);var _Ib=$CE("img",{"id":this._gE("imgPicker"),"src":this._lw+"/prompting/images/icon_datepicker.gif","height":20,"width":25,"class":"clsToolbarButton","onmouseover":"buttonOver(this)","onmouseout":"buttonOut(this)","onmousedown":"buttonOver(this)","vAlign":"top","style":"padding:0px;height:20px;","alt":"","title":"","tabindex":"0","role":P_ag},_rK);};cognos.Prompt.Control.Date.prototype._kB=function(_uh){$CE("input",{"type":"hidden","id":this._gE("_Date"),"value":this["@defaultDate"]},_uh);var _y3=null;var _t6=null;var _rS=null;var _rK=null;if(this["@selectDateUI"]!="editBox"&&!this.isRequired()&&!this["@suppressDisabled"]&&!(this._en||this["@multiSelect"])){_y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_uh);_t6=$CE("tbody",{},_y3);_rS=$CE("tr",{},_t6);_rK=$CE("td",{"vAlign":"top"},_rS);var _FN=(this.isEmptyReprompt()||(this[P_an]===true));var _Gd={"type":"checkbox","value":"anyValue","id":this._gE("chkAnyValue"),"name":this._gE("chkAnyValue")};if(!_FN){_Gd.checked=true;}$CE("input",_Gd,_rK);this.m_bDisabled=_FN;_uh=$CE("td",{"vAlign":"top"},_rS);}var _Gv="clsSelectDateCalendar";if(this["@selectUI"]=="editBox"){_Gv="clsSelectDateCalendarDialog";this._kz(_uh);}var _DO={"id":this._gE("dialogDatePicker"),"style":(this["@selectUI"]=="editBox"?"display:none":P_ai)};var _Ch=this._eE();if(_Ch&&_Ch.getId){_DO["namespaceId"]=_Ch.getId();}var _Fm=$CE("div",_DO,_uh);_y3=$CE("table",{"id":this._gE("dialogDatePickerTable"),"border":P_f,"cellPadding":0,"cellSpacing":0,"class":_Gv},_Fm);_t6=$CE("tbody",{},_y3);_rS=$CE("tr",{},_t6);_rK=$CE("td",{"vAlign":"top"},_rS);this._eI(_rK);this._h0(_rK);this._gi(_rK);var _E5={"id":this._gE("pickerControl")+"iframe","style":"position:absolute;display:none;height:0px;width:0px;","src":this._lw+"/prompting/images/spacer.gif","title":"blank"};if(_Ch&&_Ch.getId){_E5["namespaceId"]=_Ch.getId();}var _AX=$CE("iframe",_E5,_uh);_AX._jc(P_ai);};cognos.Prompt.Control.Date.prototype.isEmptyReprompt=function(){var _xY=false;if((typeof this.c)!=P_cD){var _wP=this.c;if(_wP.length&&_wP[0].n&&_wP[0].n=="selectChoices"){var _yN=cognos.Value.getValue(this.c);if(_yN.n&&_yN.n=="selectChoices")_xY=true;}}return _xY;};cognos.Prompt.Control.Date.prototype._hP=function(_uh,_m6){var _rK=$CE("td",{"id":this._gE()+"m"+_m6,"nowrap":"nowrap","class":"clsSelectDateMonths pm"},_uh);_rK._jc(sGetMonth(_m6));};cognos.Prompt.Control.Date.prototype._h0=function(_uh){var _y3=$CE("table",{"border":P_f,"cellPadding":2,"cellSpacing":0,"width":"100%","align":"center","role":P_ag},_uh);var _t6=$CE("tbody",{},_y3);var _m6;for(var _wZ=0;_wZ<2;_wZ++){var _rS=$CE("tr",{},_t6);for(_m6=0;_m6<6;_m6++){this._hP(_rS,(_wZ*6)+_m6);}}};cognos.Prompt.Control.Date.prototype._gt=function(_uh,_m6){var _rK=$CE("td",{"id":this._gE()+"d"+_m6,"nowrap":"nowrap","class":"clsSelectDateDaysOfWeek pw"},_uh);_rK._jc(sGetDay((_m6+this["@startOfWeek"]-1)%7));};cognos.Prompt.Control.Date.prototype._eI=function(_uh){var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"class":"clsSelectDateDialogTopTable","align":"center","width":"100%","role":P_ag},_uh);var _t6=$CE("tbody",{},_y3);var _rS=$CE("tr",{"class":"clsSelectDateYears"},_t6);var _rK=$CE("td",{},_rS);var _zy=cssParser(this["@style"],"direction",true);var _xu=((_zy=="ltr"||_zy=="rtl")?_zy:P_bz.lookupDirection($(this._gE(this._kp))));if(!_xu){_xu="ltr";}var _Ib=$CE("img",{"id":this._gE("btnYearDown"),"class":(_xu=="ltr"?"clsBtnYearDown":"clsBtnYearUp"),"src":this._lw+"/prompting/images/icon_year_down.gif","vAlign":"top","tabindex":"0","width":"15","class":"clsToolbarButton","onmouseover":"buttonOver(this)","onmouseout":"buttonOut(this)","onmousedown":"buttonOver(this)","title":"","alt":"","role":P_ag},_rK);_rK=$CE("td",{"width":"100%","align":"center"},_rS);var _JI=$CE("input",{"id":this._gE("myYear"),"class":"clsSelectDateYearEditBox pcl","aria-label":PMT_DTP_DATE_YEAR_ENTRY_FIELD,"aria-required":(this.isRequired()?"true":"false"),"size":"8","onkeydown":"return (event.keyCode!=13);","type":"text"},_rK);_rK=$CE("td",{},_rS);_Ib=$CE("img",{"id":this._gE("btnYearUp"),"class":(_xu=="ltr"?"clsBtnYearUp":"clsBtnYearDown"),"src":this._lw+"/prompting/images/icon_year_up.gif","vAlign":"top","tabindex":"0","width":"15","align":"right","class":"clsToolbarButton","onmouseover":"buttonOver(this)","onmouseout":"buttonOut(this)","onmousedown":"buttonOver(this)","title":"","alt":"","role":P_ag},_rK);};cognos.Prompt.Control.Date.prototype._la=function(){var _sJ=this._km;var _m8=_sJ.sGetValue();if(this._fC&&this["@DateTime"]){_m8=_m8.replace(P_cg,P_da);}if(_sJ.handleNotify&&(!this._iF)){_sJ.handleNotify();}return(this.m_bDisabled||!_m8?null:{"use":_m8,"display":_sJ.sGetFormatValue()});};cognos.Prompt.Control.Date.prototype._gz=function(_qf){this._km.setValue(_qf);};cognos.Prompt.Control.Date.prototype._d0=function(e){this.keyPress(e.keyCode);var _JO=this.m_oParentControl;_JO.checkDate(_JO.m_oEditBox);};cognos.Prompt.Control.Date.prototype._g8=function(_rl){var _sJ=this._km;if(_rl){_sJ.enable();PRMTUtils._h6($(this._gE("dialogDatePickerTable")),P_bc);}else{_sJ.disable();PRMTUtils._hi($(this._gE("dialogDatePickerTable")),P_bc);}};cognos.Prompt.Control.Date.prototype._fA=function(_rH){var _pS=_rH["use"];if(_pS){var _ux=_pS.split(new RegExp("[T\\s]"));if(_ux.length>2){for(var _m6=1;_m6<_ux.length-1;_m6++){_ux[0]+=P_br+(_ux[_m6])._j5();}_ux[0]=_ux[0]._j5();_ux[1]=_ux[_ux.length-1];}if(_ux.length>=1){this._gz(_ux[0]);}}};cognos.Prompt.Control.Date.prototype._fR=function(){var _rl=this.m_bDisabled;this._g8(_rl);this.m_bDisabled=!_rl;};cognos.Prompt.Control.Date.prototype.hasValue=function(){return(this._l1);};var P_bB=cognos.Prompt.Control.Date;cognos.Prompt.Control.Time=cognos.Prompt.Control._ff({_jf:function(_tL){this[P_bM]=PMT_RNG_EARLIEST_TIME;this[P_ac]=PMT_RNG_LATEST_TIME;this._type_="cognos.Prompt.Control.Time";this._eA(_tL);if(this["@selectTimeUI"]){this["@selectUI"]=this["@selectTimeUI"];}if(!this["@selectUI"]){this["@selectUI"]="clock";}if(typeof this["@display"]==P_bJ){this["@display"]=parseInt(this["@display"],10);}if(typeof this["@display"]!="number"||isNaN(this["@display"])){this["@display"]=(this["@showMilliseconds"]?0:(this["@showSeconds"]?1:2));}if(typeof this["@type"]==P_bJ){this["@type"]=parseInt(this["@type"],10);}if(typeof this["@type"]!="number"||isNaN(this["@type"])){if(typeof g_24HourClock!=P_cD&&g_24HourClock.toString().toLowerCase()=="true"){this["@type"]=2;}else{this["@type"]=(typeof g_AMPMLocation!=P_cD&&g_AMPMLocation=='left'?1:0);}}if(this["@clockMode"]=="static"){this["@clockMode"]=0;}else if(this["@clockMode"]=="live"){this["@clockMode"]=1;}else if(typeof this["@clockMode"]==P_bJ){this["@clockMode"]=parseInt(this["@clockMode"],10);}if(typeof this["@clockMode"]!="number"||isNaN(this["@clockMode"])){this["@clockMode"]=0;}this._jQ=true;this._kP();},checkData:function(){var _JX=this._eA;this._l1=(this._km._l1);this._eA=_JX;this._eA();return this._l1;},clearValues:function(){this._eA();this._jR("00:00:00.000");},_ly:function(){var _JX=this._eA;var _Jw=$(this._gE("clock"));if(_Jw){this._fb=new CClock(_Jw,null,this._gE("clockDisplay"),this["@clockMode"],this["@showSeconds"]);}if(!this["@timeZone"]){this["@timeZone"]="GMT";}if(!this["@hourFormat"]){this["@hourFormat"]="hh";}if(!this["@minuteFormat"]){this["@minuteFormat"]="mm";}if(!this["@secondFormat"]){this["@secondFormat"]="ss";}var _sJ=new CTimePicker(null,$(this._gE("_Time")),$(this._gE("hours")),$(this._gE("minutes")),$(this._gE("seconds")),$(this._gE("milliseconds")),$(this._gE("AMPM")),null,$(this._gE("clock")),$(this._gE("editBox")),this._gE(),this["@type"],this["@display"],(this["@selectUI"]!="editBox"),this["@timeZone"],this["@hourFormat"],this["@minuteFormat"],this["@secondFormat"],this["@clockMode"],this._fb,this["@defaultValue"],this["@required"],null,this["CVId"],this._iL(),this);_sJ._fU=this;var _rK=$(this._gE("btnTimeUp"));if(_rK){PRMTUtils._hj(_rK,"click",_sJ.timeUp.bind(_sJ));if(window.ie){PRMTUtils._hj(_rK,"dblclick",_sJ.timeUp.bind(_sJ));}}_rK=$(this._gE("btnTimeDown"));if(_rK){PRMTUtils._hj(_rK,"click",_sJ.timeDown.bind(_sJ));if(window.ie){PRMTUtils._hj(_rK,"dblclick",_sJ.timeDown.bind(_sJ));}}var _Fu=$(this._gE("chkAnyValue"));if(_Fu){PRMTUtils._hj(_Fu,"click",this._fR.bind(this));}this._km=_sJ;this._fm(_sJ.m_oHours?_sJ.m_oHours.id:this._gE("hours"),_sJ.bCheckHour);this._fm(_sJ.m_oMinutes?_sJ.m_oMinutes.id:this._gE("minutes"),_sJ.bCheckMinute);this._fm(_sJ.m_oSeconds?_sJ.m_oSeconds.id:this._gE("seconds"),_sJ.bCheckSecond);this._fm(_sJ._lm?_sJ._lm.id:this._gE("milliseconds"),_sJ.bCheckMillisecond);this._fm(_sJ._fl?_sJ._fl.id:this._gE("AMPM"),_sJ.bCheckAMPM);var _zR=$(this._gE("PRMT_LBL_"));if(_zR&&!_zR.getAttribute("for")){_zR.setAttribute("for",this._gE("hours"));}this._eA=_JX;this._eA();}});cognos.Prompt.Control.Time.prototype._kJ=function(_pk){var _xd=1;if(_pk){var _Lt=dParseTime(this._km.sGetValue());var _w3=dParseTime(_pk._km.sGetValue());var _yn=_Lt.getTime();var _JZ=_w3.getTime();if(_JZ>_yn){_xd=-1;}else if(_JZ==_yn){_xd=0;}}return _xd;};cognos.Prompt.Control.Time.prototype._iP=function(){this._hu("timePicker",this._km);if(this["@selectUI"]=="clock"){this._hu("clockDisplay",this._fb);}};cognos.Prompt.Control.Time.prototype._eM=function(_uh,_nO,_pS,_vh,_qs,_qD){if(_vh){$CE("span",{"class":"clsColon pcl"},_uh)._jc(_vh);}var _IP=$CE("input",{"id":this._gE(_nO),"name":this._gE(_nO),"class":"clsSelectTimeControl","style":"border:none;","value":_pS,"size":(_qs?_qs:2),"maxLength":(_qs?_qs:2)},$CE("span",{},_uh));if(_qD!=null){_IP._fH("aria-label",_qD);}if(this.isRequired()){_IP._fH("aria-required","true");}};cognos.Prompt.Control.Time.prototype._kB=function(_uh){var _J3=null;var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_uh);var _t6=$CE("tbody",{},_y3);var _rS=$CE("tr",{},_t6);var _rK=null;var _JI=null;if(this["@required"]==false&&!this["@suppressDisabled"]&&!this._en){_rK=$CE("td",{"vAlign":"top"},_rS);_JI=$CE("input",{"type":"checkbox","value":"anyValue","id":this._gE("chkAnyValue"),"checked":"checked"},_rK);}_rK=$CE("td",{"vAlign":"top"},_rS);_y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"class":"clsSelectTime","role":P_ag},_rK);_t6=$CE("tbody",{},_y3);var _o7=null;if(this["@selectUI"]=="clock"){_rS=$CE("tr",{"class":"clsClockPosition"},_t6);_rK=$CE("td",{"height":"100%","colSpan":3},_rS);_o7=$CE("div",{"class":"clsClockBlock","align":"center"},_rK);_o7=$CE("div",{"id":this._gE("clock"),"class":"clsClock"},_o7);_o7._jc(P_ai);}_rS=$CE("tr",{},_t6);if(this["@required"]&&!this.isMulti()&&!this["@hideAdornments"]){this._kT(_rS);}_rK=$CE("td",{"id":this._gE("timeEditBox"),"noWrap":"noWrap"},_rS);var _GZ="clsSelectTimeEditBox"+(this["@display"]===0&&(this["@type"]===0||this["@type"]==1)?"Extend":P_ai);var _zy=cssParser(this["@style"],"direction",true);var _CK=(this._hQ?this._hQ:$(this._gE(this._kp)));var _xu=((_zy=="ltr"||_zy=="rtl")?_zy:P_bz.lookupDirection(_CK));_rB="direction:ltr";if(_xu=="rtl"){_rB+=";text-align:right";_GZ+="RTL";}_o7=$CE("div",{"id":this._gE("editBox"),"class":_GZ,"style":_rB},_rK);if(this["@type"]==1){this._eM(_o7,"AMPM","PM",null,null,PMT_DTP_TIME_AMPM_ENTRY_FIELD);}this._eM(_o7,"hours",12,null,null,PMT_DTP_TIME_HOURS_ENTRY_FIELD);this._eM(_o7,"minutes",10,P_b6,null,PMT_DTP_TIME_MINUTES_ENTRY_FIELD);if(this["@display"]==1||this["@display"]===0){this._eM(_o7,"seconds",59,P_b6,null,PMT_DTP_TIME_SECONDS_ENTRY_FIELD);}if(this["@display"]===0){this._eM(_o7,"milliseconds","000",P_A,3,PMT_DTP_TIME_MILLISECONDS_ENTRY_FIELD);}if(this["@type"]===0){this._eM(_o7,"AMPM","PM",null,null,PMT_DTP_TIME_AMPM_ENTRY_FIELD);}_rK=$CE("td",{},_rS);_y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_rK);_t6=$CE("tbody",{},_y3);_rS=$CE("tr",{},_t6);_rK=$CE("td",{"id":this._gE("btnTimeUp"),"width":15,"align":"right","class":"clsToolbarButton","onmouseover":"buttonOver(this)","onmouseout":"buttonOut(this)","onmousedown":"buttonOver(this)","aria-label":PMT_DTP_TIME_BUTTON_INCREMENT,"role":P_M},_rS);var _Ib=$CE("div",{"class":"clsBtnTimeUp","border":0,"align":"top","alt":""},_rK);_rS=$CE("tr",{},_t6);_rK=$CE("td",{"id":this._gE("btnTimeDown"),"width":15,"align":"right","class":"clsToolbarButton","onmouseover":"buttonOver(this)","onmouseout":"buttonOut(this)","onmousedown":"buttonOver(this)","aria-label":PMT_DTP_TIME_BUTTON_DECREMENT,"role":P_M},_rS);var _Ib=$CE("div",{"class":"clsBtnTimeDown","border":0,"align":"top","alt":""},_rK);$CE("input",{"type":"hidden","id":this._gE("_Time"),"value":"00:00:00.000"},_uh);return _J3;};cognos.Prompt.Control.Time.prototype._la=function(){var _Fu=$(this._gE("chkAnyValue"));var _ws=(_Fu&&!_Fu.checked?false:true);return(_ws?{"use":this._km.sGetSQLTime(),"display":this._km.sGetFormatTime()}:null);};cognos.Prompt.Control.Time.prototype._hk=function(event){var _E1=event;if(arguments.length!=0){_E1=arguments[arguments.length-1];}this._km.keyPress(_E1,this);this._hN();};cognos.Prompt.Control.Time.prototype._ef=function(){this._km.setCurrentFocus(this);};cognos.Prompt.Control.Time.prototype._g8=function(_rl){if(_rl){this._km.enable();}else{this._km.disable();}};cognos.Prompt.Control.Time.prototype._fm=function(_nO,_vz){var _uh=$(_nO);if(_uh){_uh._km=this._km;if(_vz){_uh._hN=_vz.bind(this._km);}PRMTUtils._hj(_uh,"keyup",this._hk.bind(_uh));PRMTUtils._hj(_uh,"blur",this._km.refreshTime.bind(this._km));PRMTUtils._hj(_uh,"focus",this._ef.bind(_uh));}};cognos.Prompt.Control.Time.prototype._fA=function(_rH){var _pS=_rH["use"];if(_pS){var _wT=this._km;var _ux=_pS.split(new RegExp("[T\\s]"));if(_ux.length>=0){this._jR(_ux[_ux.length-1]);}}};cognos.Prompt.Control.Time.prototype._jR=function(_rT){this._km.setValue(_rT);};cognos.Prompt.Control.Time.prototype._fR=function(){var _Fu=$(this._gE("chkAnyValue"));if(_Fu){this._km.toggleDisable(_Fu.checked);}};cognos.Prompt.Control.Time.prototype.hasValue=function(){return(this._l1);};var P_a8=cognos.Prompt.Control.Time;cognos.Prompt.Control.DateTime=cognos.Prompt.Control._ff({_jf:function(_tL){this[P_bM]=PMT_RNG_EARLIEST_DATE;this[P_ac]=PMT_RNG_LATEST_DATE;this._type_="cognos.Prompt.Control.DateTime";this._eA(_tL);if(this["@selectDateTimeUI"]){this["@selectUI"]=this["@selectDateTimeUI"];}var _v5=Object._ff({},_tL);if(this["@selectUI"]=="editBox"){_v5["@selectUI"]="editBox";}_v5["@required"]=true;_v5["@hideAdornments"]=true;_v5._en=true;_v5._fJ=this;this._gn=new cognos.Prompt.Control.Date(_v5);this._i0=new cognos.Prompt.Control.Time(_v5);this._jQ=true;this.m_bDisabled=false;this._kP();if(SYSTEMPROPERTY_TREE_CACHE_ENABLED){this.cacheDateTimeControlName(this.getTracking());}},checkData:function(){var _JX=this._eA;this._l1=(this._gn._l1&&this._i0._l1);this._eA=_JX;this._eA();return this._l1;},clearValues:function(){this._eA();this._gn.clearValues();this._i0.clearValues();},_ly:function(){var _JX=this._eA;var _G9=$(this._gE("chkAnyValue"));if(_G9){PRMTUtils._hj(_G9,"click",this._fR.bind(this));}this._gn._ly();this._i0._ly();this._eA=_JX;this._eA();if(this[P_an]){this._gn._g8(false);this._i0._g8(false);}}});cognos.Prompt.Control.DateTime.prototype._kJ=function(_pk){var _xd=1;if(_pk){_xd=this._gn._kJ(_pk._gn);if(_xd===0){_xd=this._i0._kJ(_pk._i0);}}return _xd;};cognos.Prompt.Control.DateTime.prototype._iP=function(){var _Dw=this._hu("selectDateTime",this._km);if(_Dw){if(!_Dw._eN){_Dw._eN=(this._gn&&this._gn._km?this._gn._km:null);}if(!_Dw._i9){_Dw._i9=(this._i0&&this._i0._km?this._i0._km:null);}}};cognos.Prompt.Control.DateTime.prototype._kB=function(_uh){var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"class":"clsPromptComponent","style":cssParser(this["@style"],"visibility")},_uh);var _t6=$CE("tbody",{},_y3);var _rS=$CE("tr",{},_t6);var _rK=null;if(!this.isRequired()&&!this["@suppressDisabled"]&&!(this._en||this["@multiSelect"])){var _FN=(this[P_an]===true);_rK=$CE("td",{"vAlign":"top"},_rS);$CE("input",{"type":"checkbox","value":"anyValue","id":this._gE("chkAnyValue"),"name":this._gE("chkAnyValue"),"checked":(_FN?P_ai:"checked")},_rK);this.m_bDisabled=_FN;}_rK=$CE("td",{"vAlign":"top"},_rS);_y3=$CE("table",{"border":P_f,"cellPadding":5,"cellSpacing":0,"class":"clsBoundingBox pdt","role":P_ag},_rK);if(this._en){_y3._fH("style","margin-left:0px");}_t6=$CE("tbody",{},_y3);_rS=$CE("tr",{},_t6);_rK=$CE("td",{"id":this._gE("selectDate"),"vAlign":"top"},_rS);this._gn._kB(_rK);if(this["@selectUI"]=="editBox"){_rS=$CE("tr",{},_t6);}_rK=$CE("td",{"id":this._gE("selectDate"),"vAlign":"top"},_rS);this._i0._kB(_rK);};cognos.Prompt.Control.DateTime.prototype._h2=function(){var _Ex=this._gn._km;var _wT=this._i0._km;return(getFormatDate(_Ex.m_dDate,_Ex._iJ,_Ex._h5)+P_br+_wT.sGetFormatTime());};cognos.Prompt.Control.DateTime.prototype._la=function(){return(this.m_bDisabled?null:{"use":this._gT(),"display":this._h2()});};cognos.Prompt.Control.DateTime.prototype._gT=function(){return(this._gn._km.sGetValue()+"T"+this._i0._km.sGetSQLTime());};cognos.Prompt.Control.DateTime.prototype._fA=function(_rH){var _pS=_rH["use"];if(_pS){var _Ex=this._gn._km;var _wT=this._i0._km;var _ux=_pS.split(new RegExp("[T\\s]"));if(_ux.length>2){for(var _m6=1;_m6<_ux.length-1;_m6++){_ux[0]+=P_br+(_ux[_m6])._j5();}_ux[0]=_ux[0]._j5();_ux[1]=_ux[_ux.length-1];}if(_ux.length>=1){_Ex.setValue(_ux[0]);if(_ux.length>=2){_wT.setValue(_ux[1]);}}}};cognos.Prompt.Control.DateTime.prototype._fR=function(){if(!this.isRequired()){var _rl=this.m_bDisabled;this._gn._g8(_rl);this._i0._g8(_rl);this.m_bDisabled=!_rl;}this.checkData();};cognos.Prompt.Control.DateTime.prototype.hasValue=function(){return(this._l1);};C_DateTime=cognos.Prompt.Control.DateTime;cognos.Prompt.Control.Tree=cognos.Prompt.Control._ff({_jf:function(_tL){this._type_="cognos.Prompt.Control.Tree";this._eA(_tL);this._kP();},checkData:function(){var _Mb=this._iY();if(!_Mb){this._l1=(this["@required"]?false:true);}else{this._la();if(((!this.isRequired()||_Mb.getRootNode().hasSelectedChildren())&&_Mb.checkDefaultValid())||_Mb.getPreviousSelections()!==null){this._l1=true;}else{this._l1=false;}}this._eA();return this._l1;},clearValues:function(){this._eA();this._iY().deSelectAll();},_ly:function(){var _Mb=null;this._fp=$(this._gE("treePane"));if(this.isRequired()){this.setAriaRequired();}var _DP=(navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?true:false);if(!_DP){_Mb=window[this._gE("CTree_")]=new CInnerTree($(this._gE("PRMT_TREE_CONTAINER_")),$(this._gE("_TreeSubmit")),this.isRequired(),this.isMulti(),this._gE("CTree_"),null,null,this._kM(),this["@style"],this["@contentTextDirection"],this.getName(),this);}else{_Mb=window[this._gE("CTree_")]=new CInnerTreeIOS($(this._gE("PRMT_TREE_CONTAINER_")),$(this._gE("_TreeSubmit")),this.isRequired(),this.isMulti(),this._gE("CTree_"),null,null,this._kM(),this["@style"],this["@contentTextDirection"],this.getName(),this);}var _Bk=this._eE().repromptObserverArray;if(_Bk){_Bk.push(_Mb);}var _Kx=_Mb.getRootNode();_Mb.setWrapper(this);_Mb.setMustChangeDefaultValue(this["@mustChangeDefault"]);_Mb.setHideAdornments(this["@hideAdornments"]);_Mb.setHideOuterTable(true);_Mb.setPromptingTree(this["@parameter"]);if(this["@rowsPerPage"]){_Mb.setMaxValueCount(parseInt(this["@rowsPerPage"],10));}if(this["@showPreviousValues"]){_Mb.setShowPreviousValues(this["@showPreviousValues"]);}var _x8=cssParser(this["@style"],"width",true);if(_x8){_Mb.setContainerWidth(_x8);}var _v1=cssParser(this["@style"],"height",true);if(_v1){_Mb.setContainerHeight(_v1);}if(this[P_an]){_Mb.setDisabled(true);}if(typeof _sN==P_cD){_sN=new CTreeNodeType(TREE_FOLDER,true,this._lw+"/prompting/images/genericTreeNode.gif",this._lw+"/prompting/images/genericTreeNode.gif");}var _nH=null;var _Ez=this.getSelectChoices();if(_Ez&&_Ez.c&&_Ez.c.length>0){for(var _m6=0;_m6<_Ez.c.length;_m6++){_nH=_Ez.c[_m6];_Mb.addToPrevSelArray(_nH[P_E],_nH[P_aa]);}}var _Ey={};var _w8=this._d4("selectChoicesAncestry");if(_w8&&_w8.c&&_w8.c.length){for(var _Ju=0;_Ju<_w8.c.length;_Ju++){_Ey[sDecodeU003(_w8.c[_Ju][P_E])]=true;}}_Mb._gb=_Ey;var _Ci=this.getSelectOptions();if(_Ci){for(var _m6=0;_m6<_Ci.length;_m6++){_nH=_Ci[_m6];if(_nH.n=="selectTreeOption"){this._dP(_Kx,_nH);}}}_nH=this.getChildByName("selectOptions");if(_nH){var _BQ=parseInt(_nH["@skipValueCount"],10);if(!isNaN(_BQ)&&_BQ>=0){_Kx.setSkipValueCount(_BQ);}var _En=parseInt(_nH["@maximumValueCount"],10);if(!isNaN(_En)&&_En>=0){_Mb.setMaxValueCount(_En);}if(_nH["@moreData"]){_Kx.setMoreData(true);var _Cb=_Mb.getName()+_Kx.getTreeRef();setTimeout(_Mb.drawMoreData.bind(_Mb,_Kx,_Cb),250);}}else{this["@canExpand"]=false;}_Mb.setNodesCanHaveChildren(this["@canExpand"]!==false);if(!this["@multiSelect"]){_Mb.setRecursiveSelect(false);}_Mb.drawAll();_Mb.updateSelections(_Mb.getRootNode());PRMTUtils._hj($(this._gE("C_TREE_aSelAll")),"click",_Mb.selectAll.bind(_Mb));PRMTUtils._hj($(this._gE("C_TREE_aSelNone")),"click",_Mb.deSelectAll.bind(_Mb));if(_Mb.getSelectionMode()!=P_b9&&(_Mb.getSelectTreeUI()!=CHECKBOX_TREE||_Mb.getSelectionMode()!=DISCONTIGUOUS_TREE_SELECTION)){var _wO=$(this._gE("C_TREE_aSelAll"));if(_wO){_wO.style.display=P_ai;}}var _zR=$(this._gE("PRMT_LBL_"));if(_zR){var _ww=$(this._gE("CTree_"));_ww.setAttribute("aria-labelledby",this._gE("PRMT_LBL_"));}this._hG=_Mb;this._eA();}});cognos.Prompt.Control.Tree.prototype.addValues=function(_ux){var _pk;var _Mb=this._iY();if(this.isMulti()){for(var _m6=0;_m6<_ux.length;_m6++){_pk=_ux[_m6];_Mb.addToPrevSelArray(_pk[P_C],_pk[P_aP])}}else{this.clearValues();if(_ux.length){_Mb.addToPrevSelArray(_ux[0][P_C],_ux[0][P_aP])}}};cognos.Prompt.Control.Tree.prototype._dP=function(_pH,_nH){if(_nH){var _JM=new CInnerTreeNode(_pH,_sN,false,_nH[P_aa],_nH[P_E],false);if(_nH.c&&_nH.c.length){for(var _m6=0;_m6<_nH.c.length;_m6++){this._dP(_JM,_nH.c[_m6]);}}}};cognos.Prompt.Control.Tree.prototype._iP=function(){this._hu("tree",this._iY());};cognos.Prompt.Control.Tree.prototype._kB=function(_uh){$CE("input",{"type":"hidden","id":this._gE("_TreeSubmit"),"value":this["@defaultDate"]},_uh);var _CY=(PRMTUtils._j0()?"clsPromptComponent clsPrompt_a11y":"clsPromptComponent");var _tG=$CE("div",{"id":this._gE("PRMT_TREE_CONTAINER_"),"class":_CY},_uh);_tG._jc(P_ai);return _tG;};cognos.Prompt.Control.Tree.prototype._hx=function(_pT){var _ww=null;var _x8=cssParser(this["@style"],"width",true);_x8=((/\d%/).test(_x8)?"100%":P_ai);var _Ip=cssParser(this["@style"],"width");if(this.isMulti()){var _BA=$CE("td",{"width":_x8},_pT);var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_BA);var _t6=$CE("tbody",{},_y3);var _rS=$CE("tr",{},_t6);if(!(this["@hideAdornments"]||this._jQ)){this._kT(_rS);}var _rK=$CE("td",{},_rS);if(_Ip){_BA._fH("width","100%");_y3._fH("width","100%");_rK._fH("width","100%");}_ww=_rK;_rS=$CE("tr",{},_t6);var _zy=cssParser(this["@style"],"direction",true);var _xu=((_zy=="ltr"||_zy=="rtl")?_zy:P_bz.lookupDirection($(this._gE(this._kp))));var _pw=((_xu=="rtl")?"left":"right");_rK=$CE("td",{"colSpan":"2","align":_pw},_rS);if(this[P_an]){this.drawDisableSelectLink(_rK,_pw);}else{this.drawSelectLink(_rK,_pw);}}else{if(!(this["@hideAdornments"]||this._jQ)){this._kT(_pT);}_ww=$CE("td",{},_pT);}if(!this["@hideOuterTable"]){_ww=$CE("div",{"id":this._gE("treePane"),"class":"clsTreePane pa"},_ww);}var _rB="";if(_Ip){_rB+=_Ip;}var _KG=cssParser(this["@style"],"height");if(_KG){_rB+=_KG;}if(_rB){_ww._fH("style","vertical-align:top;overflow:auto;padding:0px;"+_rB);}return(this._fp=this._kB(_ww));};cognos.Prompt.Control.Tree.prototype._la=function(){var _Mb=this._iY();var _DS=_Mb.getRootNode().getChildren();if(_DS.length>0){for(var j=0;j<_DS.length;j++){_Mb.processTree(_DS[j]);}}var _u3=[];this._kk(_u3,_Mb.getRootNode(),_Mb.nodesCanHaveChildren());var _v7=_Mb.getPreviousSelections();if(_v7!=null){var _y8={};for(var _KX=0;_KX<_u3.length;_KX++){_y8[_u3[_KX][P_C]]=_u3[_KX][P_aP];}for(var i=0;i<_v7.length;i++){var _m8=null;var _m2=null;if(typeof _v7[i]==P_bJ){_m8=_v7[i];_m2=_v7[i];}else if(typeof _v7[i]==P_cZ){_m8=_v7[i][1];_m2=_v7[i][0];}if(_m8!==null&&(_m2===null||typeof _m2==P_cD||!_y8[_m8])){var _rH={"use":_m8};if(_m2!==null&&typeof _m2!=P_cD){_rH[P_aP]=_m2;}_u3.push(_rH);}}}if(_u3.length==0){_u3=null;}else if(_u3.length==1){_u3=_u3[0];if(typeof _u3[P_C]==P_cD||_u3[P_C]===null){_u3=null;}}return _u3;};cognos.Prompt.Control.Tree.prototype._kk=function(_u3,_me,_pA){if(_me.isSelected()){_u3.push({"use":_me.getValue(),"display":_me.getName()});this._iY().removeFromPrevSelArray(_me.getValue());}if((_pA||_me==_me._j8)&&_me.hasSelectedChildren()){var _DS=_me.getChildren();if(_DS.length>0){for(var j=0;j<_DS.length;j++){this._kk(_u3,_DS[j],_pA);}}}};cognos.Prompt.Control.Tree.prototype._iY=function(){return(this._hG);};cognos.Prompt.Control.Tree.prototype._jd=function(){};cognos.Prompt.Control.Tree.prototype.hasInputValue=function(){var _EY=this._la();return(_EY&&_EY!=null&&_EY.length&&_EY.length>0?true:false);};cognos.Prompt.Control.Tree.prototype.drawDisableSelectLink=function(_rK,_pw){if(_pw=="right"){var _Ls=$CE("span",{"id":this._gE("C_TREE_aSelAll"),"class":"clsLink pl","style":"margin-right:5px;display:none;text-decoration:underline;color: #CCCCCC"},_rK);_Ls._jc(this[P_d]);_Ls=$CE("span",{"id":this._gE("C_TREE_aSelNone"),"class":"clsLink pl","style":"text-decoration:underline;color: #CCCCCC"},_rK);_Ls._jc(this[P_w]);}else{var _Ls=$CE("span",{"id":this._gE("C_TREE_aSelNone"),"class":"clsLink pl","style":"text-decoration:underline;color: #CCCCCC"},_rK);_Ls._jc(this[P_w]);_Ls=$CE("span",{"id":this._gE("C_TREE_aSelAll"),"class":"clsLink pl","style":"margin-left:5px;display:none;text-decoration:underline;color: #CCCCCC"},_rK);_Ls._jc(this[P_d]);}};cognos.Prompt.Control.Tree.prototype.drawSelectLink=function(_rK,_pw){if(_pw=="right"){var _wO=$CE("a",{"id":this._gE("C_TREE_aSelAll"),"class":"clsLink pl","href":"javascript:;","onclick":"document.location.hash='';","style":"margin-right:5px;display:none;"},_rK);_wO._jc(PMT_UIM_SELECTALL);_wO=$CE("a",{"id":this._gE("C_TREE_aSelNone"),"class":"clsLink pl","href":"javascript:;","onclick":"document.location.hash='';"},_rK);_wO._jc(this[P_w]);}else{_wO=$CE("a",{"id":this._gE("C_TREE_aSelNone"),"class":"clsLink pl","href":"javascript:;","onclick":"document.location.hash='';"},_rK);_wO._jc(this[P_w]);var _wO=$CE("a",{"id":this._gE("C_TREE_aSelAll"),"class":"clsLink pl","href":"javascript:;","onclick":"document.location.hash='';","style":"margin-left:5px;display:none;"},_rK);_wO._jc(PMT_UIM_SELECTALL);}};cognos.Prompt.Control.PickTree=cognos.Prompt.Control._ff({_jf:function(_tL){this._type_="cognos.Prompt.Control.PickTree";this._eA(_tL);var _v5=Object._ff({},_tL);_v5["@required"]=true;_v5["@hideAdornments"]=true;_v5._en=true;_v5._fJ=this;_v5._id_=this._gE();this._jl=_v5;this._kP();this._fZ='spacer.gif';},checkData:function(){this._l1=this._hG._l1;this._eA();return this._l1;},clearValues:function(){this._eA();this._dv();},_ly:function(){this._hG._ly();var _EL=$(this._gE("PRMT_PT_HIERARCHIES_"));this._iH=_EL;PRMTUtils._hj(_EL,"change",this._iK.bind(this));}});cognos.Prompt.Control.PickTree.prototype._la=function(){var _Mb=this._hG;var _u3=[];if(_Mb){_u3=_Mb._la();}return _u3;};cognos.Prompt.Control.PickTree.prototype._hx=function(_uh){var _qT=$CE("td",{},_uh);var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_qT);if(this[P_an]){_y3._fH("disabled","disabled");}var _t6=$CE("tbody",{},_y3);var _rS=$CE("tr",{},_t6);var _rK=$CE("td",{"vAlign":"top","class":"clsControlLabel pc"},_rS);if(this.isRequired()&&!this["@hideAdornments"]){var _Dv=$CE("img",{"src":this._lw+"/prompting/images/icon_required.gif","class":"clsErrorRequired","vAlign":"top","height":10,"width":10,"border":0,"alt":""},_rK);}var _BT=$CE("td",{},_rS);this._g1(_BT);_rS=$CE("tr",{},_t6);_rK=$CE("td",{"vAlign":"top","class":"clsControlLabel pc"},_rS);$CE("img",{"src":this._lw+"/prompting/images/spacer.gif","width":10,"height":1,"border":0,"alt":""},_rK);this._fp=this._k7(_rS);return(this._fp);};cognos.Prompt.Control.PickTree.prototype._g1=function(_uh){var _tG=$CE("div",{"id":this._gE("PRMT_PT_HIERARCHIES_BOX_")},_uh);var _EL=$CE("select",{"id":this._gE("PRMT_PT_HIERARCHIES_"),"class":"clsSelectControl pv"},_tG);var _zo=this["@columnName"]&&this["@columnName"].length>0?this["@columnName"]:this["@parameter"];var _wg=this._d4("selectHierarchyChoice");var _FP=((_wg&&_wg.c&&_wg.c.length>0)?_wg.c[0]:null);var _F6=this._d4("selectHierarchies");var _Bh;_Bh=$CE("option",{},_EL);_Bh._jc(G_IsBidiEnabled&&this["@contentTextDirection"]?P_bz.enforceBidiDirection(_zo,this["@contentTextDirection"]):_zo);_Bh=$CE("option",{},_EL);_Bh._jc("--------------------------------------------");if(_F6&&_F6.c&&_F6.c.length>0){for(var i=0;i<_F6.c.length;i++){var _oU=_F6.c[i];var _Gw={"value":_oU[P_E],"dv":_oU[P_aa]};if(_FP&&_oU&&_oU[P_E]==_FP[P_E]){_Gw["selected"]="true"}_Bh=$CE("option",_Gw,_EL);_Bh._jc((G_IsBidiEnabled&&this["@contentTextDirection"]?P_bz.enforceBidiDirection(_oU[P_aa],this["@contentTextDirection"]):_oU[P_aa]));}}return _tG;};cognos.Prompt.Control.PickTree.prototype._k7=function(_uh){var _tG=$CE("div",{"id":this._gE("PRMT_PT_TREE_BOX_")},_uh);var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_tG);var _t6=$CE("tbody",{},_y3);var _rS=$CE("tr",{},_t6);this._it();var _Mb=new cognos.Prompt.Control.Tree(this._jl);_Mb._hx(_rS);this._hG=_Mb;};cognos.Prompt.Control.PickTree.prototype._it=function(){var _AJ=this._jl;if(_AJ.c&&_AJ.c.length){for(var i=0,j=0;i<_AJ.c.length;i++){if(_AJ.c[i].n=="selectHierarchies"||_AJ.c[i].n=="selectHierarchyChoice"){_AJ.c.splice(i,1);i--;}}}};cognos.Prompt.Control.PickTree.prototype._lP=function(){var _xY=null;var _EL=this._iH;if(_EL.options&&_EL.options.length>0){var _EC=_EL.options[_EL.selectedIndex];if(_EC){_xY=_EC.getAttribute('value');if(_xY===null){_xY=_EC.value;}if(!_xY&&_EC.attributes&&_EC.attributes['value']){_xY=_EC.attributes['value'].value;}}}return _xY;};cognos.Prompt.Control.PickTree.prototype._iN=function(){var _xl=['<selectHierarchy',' useValue="',P_ai,'" displayValue="',P_ai,'" />'];var _xY="<selectHierarchies>";var _EL=this._iH;if(_EL.options&&_EL.options.length>0){var _oU=null;var _zx=_EL.options;for(var i=2;i<_zx.length;i++){_oU=_zx[i];_xl[2]=_oU.getAttribute('value');if(!_xl[2]&&_oU.attributes&&_oU.attributes['value']){_xl[2]=_oU.attributes['value'].value;}_xl[4]=_oU.getAttribute(P_S);_xY+=_xl.join(P_ai);}}_xY+="</selectHierarchies>";return _xY;};cognos.Prompt.Control.PickTree.prototype._iK=function(){var _Fa=this["@parameter"];var _F0=false;if(!_Fa||(_Fa.trim&&_Fa.trim().length<1)){_Fa=(this["@name"]?this["@name"]:"");_F0=true;}var _mH="_swt_"+_Fa+"_hierarchy";var _pS=this._lP();this._hG.clearValues();if(_pS){var _qy=this._eE();var _FF=K_ACTION_REPROMPT;var _G2="_swt_"+_Fa+"_hierarchies";if(_qy&&typeof _qy.submitPromptValues==P_c7&&typeof ViewerDispatcherEntry==P_c7){var _K4=new ViewerDispatcherEntry(_qy);_K4.addFormField("ui.action",K_ACTION_FORWARD);_K4.addFormField(_mH,_pS);_K4.addFormField(_G2,this._iN());if(_F0){_K4.addFormField("_promptIdBasedNames",true);}_K4.addFormField("_promptControl",K_ACTION_REPROMPT);_qy.submitPromptValues(_K4);}else{SetPromptMethod(K_ACTION_FORWARD);if(document.forms[0]){var _ym=document.forms[0];genHiddenInputHTML(_ym.name,_mH,_pS);genHiddenInputHTML(_ym.name,_G2,this._iN());if(_F0){genHiddenInputHTML(_ym.name,"_promptIdBasedNames",true);}}SetPromptControl(K_ACTION_REPROMPT);}}};cognos.Prompt.Control.Search=cognos.Prompt.Control._ff({_jf:function(_tL){this._type_="cognos.Prompt.Control.Search";this._eA(_tL);this._lW="\n";this._kP();},checkData:function(){this._eA();var _u3=(this._eJ?this._eJ._la():this._la());var _AE=(_u3&&_u3.length>0);if(this.isRequired()&&!_AE){this._l1=false;this.checkFail();}else{this._l1=true;this.checkPass();}if(this._l1){this.cacheControlValue(this._type_);}return this._l1;},clearValues:function(){this._eA();this._gF();},_ly:function(){var _JX=this._eA;var _wk=this._kU;if(_wk){_wk._ly();}this._eA=_JX;this._eA();var _mP=this._gE("swsInput");var _Cd=this.$(_mP);if(typeof Search_DisableEnterKeyAutoSubmit!=P_cD&&Search_DisableEnterKeyAutoSubmit!==true){PRMTUtils._hj(_Cd,"keydown",this._dL.bind(this));}if(G_IsBidiEnabled&&this["@contentTextDirection"]){PRMTUtils._hj(_Cd,"keyup",this._hm.bind(this));}var _L3=this.$(this._gE("imgAdvancedArrow"));if(_L3){var _rK=_L3.parentNode;if(this[P_an]){_rK.setAttribute("disabled","disabled");}else{var _CX=this.$(this._gE("idAdvancedOptions"));PRMTUtils._hj(_L3.parentNode,"click",this._dV.bind(this));}}var _DB=this.$(this._gE("searchButton"));PRMTUtils._hj(_DB,"click",this._g4.bind(this));this._eX();if(G_IsBidiEnabled&&this["@contentTextDirection"]){_Cd.style.direction=P_bz.getTextDirection(_Cd.value,this["@contentTextDirection"]);}var _zR=this.$(this._gE("PRMT_LBL_"));if(_zR&&!_zR.getAttribute("for")){_zR.setAttribute("for",_mP);}this.processAriaRequired();var _qy=this._eE();if(_qy&&typeof _qy.getCurrentPromptControlFocus==P_c7){if(this["@name"]==_qy.getCurrentPromptControlFocus()){var _Cd=this.$(_mP);_Cd.focus();_qy.setCurrentPromptControlFocus(null);}if(this["@name"]+"_searchButtonfocus"==_qy.getCurrentPromptControlFocus()){_DB.focus();_qy.setCurrentPromptControlFocus(null);}}}});cognos.Prompt.Control.Search.prototype.processAriaRequired=function(){if(!this.isMulti()){if(this._kU.isRequired()){this._kU.setAriaRequired();}}};cognos.Prompt.Control.Search.prototype.addValues=function(_mg){if(this._eJ){this._eJ.addValues(_mg);}else{var _rv=(this.isMulti()?_mg.length:1);this.cachedResults=this.buildCachedResults();for(var _m6=0;_m6<_rv;_m6++){var _pk=_mg[_m6];this._iM(_pk[P_C],_pk[P_aP],true);}delete this.cachedResults;this.cachedResults=null;if(G_IsBidiEnabled&&this["@contentTextDirection"]){this._kU._ly();}}};cognos.Prompt.Control.Search.prototype.buildCachedResults=function(){var _Ki={};var _FT=this._kU._fp.options;for(var i=0;i<_FT.length;i++){var _Fd=_FT[i];_Ki[_Fd.value+this._lW+_Fd.getAttribute("dv")]=_Fd;}return _Ki;};cognos.Prompt.Control.Search.prototype._iM=function(_m8,_m2,_na){var _Fd=(this.cachedResults?this.cachedResults[_m8+this._lW+_m2]:this._lA(_m8,_m2));if(!_Fd){_Fd=new Option(_m2,_m8);_Fd.setAttribute("dv",_m2);var _GJ=this._kU._fp.options;_GJ[_GJ.length]=_Fd;if(this.cachedResults){this.cachedResults[_m8+this._lW+_m2]=_Fd;}}if(_na){_Fd.selected=true;}};cognos.Prompt.Control.Search.prototype._gF=function(){var _wk=this._kU;if(_wk){_wk=_wk._fp;while(_wk.hasChildNodes()){_wk.removeChild(_wk.firstChild);}}};cognos.Prompt.Control.Search.prototype._iP=function(){this._hu("search");};cognos.Prompt.Control.Search.prototype._kB=function(_uh){var _pf=P_ai;var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_uh);var _t6=$CE("tbody",{},_y3);var _rS=$CE("tr",{},_t6);var _mP=this._gE("swsInput");var _rK=$CE("td",{"class":"clsControlLabel pc"},_rS);var _xa=$CE("label",{"for":_mP},_rK);_xa._jc(this[P_j]);_rS=$CE("tr",{},_t6);_rK=$CE("td",{"class":"clsDialogIntroduction pi"},_rS);var _y5=this._gE("swsInputDesc");_rK=$CE("div",{"id":_y5},_rK);_rK._jc(this[P_bV]);_rS=$CE("tr",{},_t6);_rK=$CE("td",{},_rS);var _Gm=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_rK);var _wK=$CE("tbody",{},_Gm);_rS=$CE("tr",{},_wK);_rK=$CE("td",{},_rS);var _JI=$CE("input",{"id":_mP,"type":"text","name":_pf+"_searchValue","class":"clsSwsEditBox","aria-describedby":_y5,"aria-required":(this.isRequired()?"true":"false"),"onkeydown":"return (event.keyCode!=13);","value":(typeof this["@searchValue"]!=P_cD?this["@searchValue"]:P_ai)},_rK);this._lo(_JI,"swsEditBox");_rK=$CE("td",{nowrap:"nowrap"},_rS);var _vc=$CE("button",{"type":"button","name":this._gE("searchButton"),"id":this._gE("searchButton"),"class":"clsPromptButton","onMouseOver":"this.className = 'clsPromptButtonOver';","onMouseOut":"this.className = 'clsPromptButton';"},_rK);this._lo(_vc,"swsSearchButton");if(this[P_an]){_JI._fH("disabled","disabled");_vc._fH("disabled","disabled");}_vc._jc(this[P_x]);var _Ib=$CE("img",{"src":this._lw+"/prompting/images/prompt_search.gif","name":this._gE("imgBusy"),"id":this._gE("imgBusy"),"alt":P_ai,"border":"0","height":"16","width":"15","align":"top"},_vc);_rS=$CE("tr",{},_t6);_rK=$CE("td",{"vAlign":"top","class":"clsOptions pe","style":"padding:3px;"},_rS);var _Fk=$CE("fieldset",{"style":"border:0; margin-top:3px; margin-left:0px; padding:0px"},_rK);var _zV=this._gE("idAdvancedOptions");var _EU=this._gE("idSearchOptionsLegend");var _Cc=$CE("legend",{"id":_EU,"aria-controls":_zV,"role":"button","aria-expanded":false},_Fk);var _K2=$CE("span",{"style":"padding:0px; margin: 0px;"},_Cc);var _wO=$CE("a",{"class":"clsLink pl","href":"javascript:;","onclick":"document.location.hash='';"},_K2);_wO._jc(this[P_cP]);var _zy=cssParser(this["@style"],"direction",true);var _AG=((_zy=="ltr"||_zy=="rtl")?_zy:P_bz.lookupDirection(this.$(this._gE(this._kp))));_Ib=$CE("img",{"id":this._gE("imgAdvancedArrow"),"class":"clsSearchOptionsExpand","src":this._lw+"/prompting/images/blank.gif","border":"0","alt":P_ai,"align":"top","style":(_AG=="rtl"?"margin-right: 5px":"margin-left: 5px")},_K2);var _o7=$CE("div",{"class":"clsSwsOptions pe"},_Fk);this._jt=(this["@showOptions"]===true);var _Lu=$CE("table",{"id":_zV,"border":P_f,"style":(this._jt?P_ai:"display:none"),"role":P_ag},_o7);var _GV=$CE("tbody",{},_Lu);var _Bn=this.getChildByName("swsOptions");var _pC=(_Bn&&_Bn["@style"]?_Bn["@style"]:P_ai);this._gy(_GV,"swsStartAny",PMT_SSM_STARTANY,_pC,(!this["@matchAnywhere"]&&!this["@matchAll"]));this._gy(_GV,"swsStartAll",PMT_SSM_STARTALL,_pC,(!this["@matchAnywhere"]&&this["@matchAll"]));this._gy(_GV,"swsMatchAny",PMT_SSM_CONTAINANY,_pC,(this["@matchAnywhere"]&&!this["@matchAll"]));this._gy(_GV,"swsMatchAll",PMT_SSM_CONTAINALL,_pC,(this["@matchAnywhere"]&&this["@matchAll"]));this._gy(_GV,"swsCaseInsensitive",PMT_SSM_CASEINSENSITIVE,"padding-top:10px;"+_pC,this["@caseInsensitiveIsDefault"],true);if(this["@noResultsFound"]){$CE("div",{"style":"margin: 5px;white-space:nowrap;","tabindex":"0"},_uh)._jc(PMT_SSM_NORESULTSFOUND);}};cognos.Prompt.Control.Search.prototype._kK=function(_uh,_qT){var _I6=$CE("select",{"id":this._gE(P_W),"size":3,"aria-required":(this.isRequired()?"true":"false"),"multiple":"multiple"},_qT);var _Et={};_Et._type_=null;_Et.n="selectValue";_Et["@selectValueUI"]="listBox";_Et["@required"]=(this.isRequired()&&!this.isMulti());_Et["@multiSelect"]=this["@multiSelect"];_Et[P_an]=this[P_an];_Et["@style"]=cssParser(this["@style"],"color,font,text,direction");_Et["@contentTextDirection"]=this["@contentTextDirection"];if(this.isMulti()){_Et["@listSize"]=9;}_Et._id_=this._gE();_Et._en=true;_Et._fJ=this;_Et[P_d]=this[P_d];_Et[P_w]=this[P_w];_Et[P_F]=this[P_F];var _Dl=new cognos.Prompt.Control.SelectValue(_Et);var _z5=this._jO("swsResultsListbox");if(_z5){_Dl["@listStyle"]=_z5;}if(typeof SYSTEMPROPERTY_CSEARCH_AUTO_RESIZE_RESULT_LIST==P_cD||!SYSTEMPROPERTY_CSEARCH_AUTO_RESIZE_RESULT_LIST){_Dl["@style"]+=";width:200px;";}var _A0=_Dl._kB(_uh);this._kU=_Dl;};cognos.Prompt.Control.Search.prototype._hx=function(_pT){var _qT=$CE("td",{},_pT);var _pq=this._kB(_qT);var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_qT);if(this[P_an]){_y3._fH("disabled","disabled");}var _t6=$CE("tbody",{},_y3);var _rS=$CE("tr",{},_t6);var _CD=this._gE(P_W);if(this.isMulti()){var _BA=$CE("td",{},_rS);var _LR=$CE("div",{"vAlign":"top","class":"clsControlLabel pc"},_BA);var _KB=$CE("label",{"for":_CD},_LR);_KB._jc(this[P_b8]);var _DN=this._jO("swsResultsHeader");if(_DN){_LR._fH("style",_DN);}this._kK(_BA,_qT);if(cssParser(this["@style"],"width")){_BA._fH("width","100%");_y3._fH("width","100%");_rK._fH("width","100%");}var _mJ=new C_Choices(this);_mJ["@listSize"]=9;var _zX=this._eE().multipleObserverArray;if(_zX){_zX.push(_mJ);}if(typeof SYSTEMPROPERTY_CSEARCH_AUTO_RESIZE_RESULT_LIST==P_cD||!SYSTEMPROPERTY_CSEARCH_AUTO_RESIZE_RESULT_LIST){_mJ["@listWidth"]="200px";}var _z5=this._jO("swsChoicesListbox");if(_z5){_mJ["@listStyle"]=_z5;}_mJ.F_Draw(_rS);this._eJ=_mJ;}else{var _BA=$CE("td",{"vAlign":"top","class":"clsControlLabel pc"},_rS);if(this.isRequired()&&!this["@hideAdornments"]){var _Dv=$CE("img",{"src":this._lw+"/prompting/images/icon_required.gif","class":"clsErrorRequired","vAlign":"top","height":10,"width":10,"border":0},_BA);}var _KB=$CE("label",{"for":_CD},_BA);_KB._jc(this[P_aj]);_rS=$CE("tr",{},_t6);_BA=$CE("td",{},_rS);this._kK(_BA,_qT);}this._fp=_pq;return(_pq);};cognos.Prompt.Control.Search.prototype._gy=function(_t6,_no,_ue,_pC,_uU,_nG){var _rS=$CE("tr",{},_t6);var _rK=$CE("td",{"class":"clsSwsOptions pe","style":_pC,"vAlign":"top"},_rS);var _Aw=this._gE(_no);var _Dh=(_nG?P_bY:P_b1);if(_uU){_Dh=(_nG?P_bx:P_e);}var _Ec=$CE("div",{"class":_Dh},_rK);var _DU={"type":(_nG?"checkbox":"radio"),"name":(_nG?"swsCaseInsensitive":this._gE("swsOption")),"id":_Aw,"class":"dijitCheckBoxInput"};if(!_nG){_DU.onclick="return PRMTUtils.f_updateRadioButtons(this);";_DU.onkeypress="return PRMTUtils.f_updateRadioButtons(this);";}else{_DU.onclick="return PRMTUtils.F_OnChange(event, this);";_DU.onkeypress="return PRMTUtils.F_OnChange(event, this);";}_DU.onFocus="PRMTUtils.f_SearchOptionOnFocus(this)";_DU.onBlur="PRMTUtils.f_SearchOptionOnBlur(this)";var _JI=$CE("input",_DU,_Ec);if(this[P_an]){_JI._fH("disabled","true");}if(_uU){_JI._fH("checked","checked");}var _rK=$CE("td",{"class":"clsSwsOptions pe","style":_pC,"nowrap":"nowrap"},_rS);var _CH=$CE("label",{"for":_Aw},_rK);_CH._jc(_ue);};cognos.Prompt.Control.Search.prototype._dL=function(){var _zr=(arguments&&arguments.length?arguments[arguments.length-1]:null);if(_zr&&_zr.keyCode==13){var _qy=this._eE();if(_qy&&_qy.setCurrentPromptControlFocus&&typeof _qy.setCurrentPromptControlFocus==P_c7){_qy.setCurrentPromptControlFocus(this["@name"]);}this._g4();}};cognos.Prompt.Control.Search.prototype._hm=function(_mG){P_bz.fixInputDirection(_mG.target?_mG.target:_mG.srcElement,this["@contentTextDirection"],'true');};cognos.Prompt.Control.Search.prototype._lA=function(_m8,_m2){var _FT=this._kU._fp.options;for(var i=0;i<_FT.length;i++){var _Fd=_FT[i];if(_m8==_Fd.value&&_m2==_Fd.getAttribute("dv")){return _Fd;}}return null;};cognos.Prompt.Control.Search.prototype._la=function(){var _wk=this._kU;var _u3=[];if(_wk){_u3=_wk._la();}return _u3;};cognos.Prompt.Control.Search.prototype._ji=function(){var _Hp={};var _J3=this.$(this._gE("swsInput"));if(_J3){var _pS=_J3.value;var _mH=(this["@name"]?this["@name"]:"");if(_pS){_Hp["_sws_"+_mH+"_searchValue"]=_pS;_Hp["_sws_"+_mH+"_showOptions"]=this._jt;_Hp["_sws_"+_mH+"_submit"]=true;}else{_Hp["_sws_"+_mH+"_searchValue"]="";_Hp["_sws_"+_mH+"_submit"]=true;}var _DC=this.$(this._gE("swsCaseInsensitive"));var _JN=this.$(this._gE("swsStartAll"));var _FQ=this.$(this._gE("swsMatchAny"));var _DJ=this.$(this._gE("swsMatchAll"));_Hp["_sws_"+_mH+"_matchAnywhere"]=(_FQ&&_FQ.checked)||(_DJ&&_DJ.checked);_Hp["_sws_"+_mH+"_matchAll"]=(_JN&&_JN.checked)||(_DJ&&_DJ.checked);_Hp["_sws_"+_mH+"_caseInsensitive"]=(_DC&&_DC.checked);_Hp["_sws_"+this["@parameter"]]=this._lC();}return _Hp;};cognos.Prompt.Control.Search.prototype._lC=function(){var _xl=['<selectOption',' useValue="',P_ai,'" displayValue="',P_ai,'" />'];var _xY="<selectOptions>";if(this._kU){var _Ci=this._d4("selectOptions");if(_Ci&&_Ci.c&&_Ci.c.length){for(var i=0;i<_Ci.c.length;i++){_xl[2]=sDecodeU003(_Ci.c[i]["@useValue"]);_xl[4]=sDecodeU003(_Ci.c[i]["@displayValue"]);_xY+=_xl.join(P_ai);}}}_xY+="</selectOptions>";return _xY;};cognos.Prompt.Control.Search.prototype._jO=function(_tz){var _rB=null;var _Bn=this.getChildByName(_tz);if(_Bn&&_Bn["@style"]){_rB=_Bn["@style"];}return _rB;};cognos.Prompt.Control.Search.prototype._g4=function(){var _zr=(arguments&&arguments.length?arguments[arguments.length-1]:null);if(_zr&&_zr.type=="click"){var _qy=this._eE();if(_qy&&_qy.setCurrentPromptControlFocus&&typeof _qy.setCurrentPromptControlFocus==P_c7){_qy.setCurrentPromptControlFocus(this["@name"]+"_searchButtonfocus");}}var _Ib=this.$(this._gE("imgBusy"));if(_Ib){_Ib.setAttribute("src",this._lw+"/prompting/images/prompt_search_ani.gif");}this._gF();if(this["@multiSelect"]==false){this._dy=false;}if(this["@searchFunction"]){eval(this["@searchFunction"]+"();");}else{var _Hp=[];var _LF=this._eE().preProcessControlArray;if(_LF){var _Kw=_LF.length;for(var k=0;k<_Kw;k++){if(_LF[k]._ji){var _LL=_LF[k]._ji();for(var opt in _LL){_Hp[opt]=_LL[opt];}}}}_Hp["_searchParameter"]=this["@parameter"];_Hp["_promptIdBasedNames"]=true;_Hp["_promptControl"]=P_bG;var _qy=this._eE();if(_qy&&typeof _qy.submitPromptValues==P_c7&&typeof ViewerDispatcherEntry==P_c7){var _K4=new ViewerDispatcherEntry(_qy);_K4.addFormField("ui.action",K_ACTION_FORWARD);for(var _Fd in _Hp){_K4.addFormField(_Fd,_Hp[_Fd]);}_qy.submitPromptValues(_K4);}else{var _ym=document.forms[0];if(_ym){for(var _Fd in _Hp){genHiddenInputHTML(_ym.name,_Fd,_Hp[_Fd]);}}SetPromptMethod(K_ACTION_FORWARD);SetPromptControl(P_bG);}}};cognos.Prompt.Control.Search.prototype._eX=function(){if(!this._kU){return;}var _Ci=this._d4("selectOptions");if(_Ci&&_Ci.c&&_Ci.c.length){this.cachedResults=this.buildCachedResults();for(var i=0;i<_Ci.c.length;i++){var _m8=sDecodeU003(_Ci.c[i]["@useValue"]);var _m2=sDecodeU003(_Ci.c[i]["@displayValue"]);this._iM(_m8,_m2,_Ci.c[i]["@selected"]);}delete this.cachedResults;this.cachedResults=null;if(G_IsBidiEnabled&&this["@contentTextDirection"]){this._kU._ly();}}_Ci=this._d4("selectChoices");if(!this.isMulti()&&_Ci&&_Ci.c&&_Ci.c.length){this.cachedResults=this.buildCachedResults();for(var i=0;i<_Ci.c.length;i++){var _m8=sDecodeU003(_Ci.c[i]["@useValue"]);var _m2=sDecodeU003(_Ci.c[i]["@displayValue"]);this._iM(_m8,_m2,true);}delete this.cachedResults;this.cachedResults=null;if(G_IsBidiEnabled&&this["@contentTextDirection"]){this._kU._ly();}}};cognos.Prompt.Control.Search.prototype._fA=function(_rH){if(this._eJ){this._eJ._fA(_rH);}this._kU._fA(_rH);};cognos.Prompt.Control.Search.prototype._lo=function(_uh,_tz){var _rB=this._jO(_tz);if(_rB){_uh._fH("style",_rB);}};cognos.Prompt.Control.Search.prototype._dV=function(){var _CX=this.$(this._gE("idAdvancedOptions"));var _L3=this.$(this._gE("imgAdvancedArrow"));if(_CX){var _KZ=this.$(this._gE("idSearchOptionsLegend"));if(_CX.style.display!="none"){_CX.style.display="none";_L3.className="clsSearchOptionsExpand";this._jt=false;_KZ.setAttribute("aria-expanded",false);}else{_CX.style.display=P_ai;_L3.className="clsSearchOptionsCollapse";this._jt=true;_KZ.setAttribute("aria-expanded",true);}}};var P_bW=cognos.Prompt.Control.Search;cognos.Prompt.Control.SelectFile=cognos.Prompt.Control._ff({_jf:function(_tL){this._type_="cognos.Prompt.Control.SelectFile";this._eA(_tL);this._kP();this._fZ='spacer.gif';},checkData:function(){var _JX=this._eA;this._l1=false;var _zZ=null;if(this.getValue()&&this._ks&&this._ks.length>0){_zZ=this.decodeHTML(this._ks).match(/^.*<pdSpec>[^<]*<dataSet[^>]+>[^<]*<name>([^>]+)</);if(_zZ!==null&&_zZ.length>0){this._l1=true;}else{}}this._eA=_JX;this._eA();return this._l1;},clearValues:function(){this._eA();this._dv();},_ly:function(){var _Jg=$(this._gE("PRMT_SF_CONTAINER_"));var _Fl=new PRMTFormIframe(_Jg,this._gE("iframe_"),this.getWebContentRoot()+'/prompting/selectfileBlank.html');if(_Fl!==null){var _He=_Fl.doc;if(_He){PRMTUtils._hj(_Fl,"load",this._eW.bind(this));}}}});cognos.Prompt.Control.SelectFile.prototype._eW=function(){var _ni=this._gE("iframe_");var _Jz=(window.ie?window[_ni].document:document.getElementById(_ni).contentDocument);if(_Jz){var _xI=P_bz.lookupDirection($(this._gE(this._kp)));if(_xI){_Jz.body.dir=_xI;}var _Gi=_Jz.getElementById('outerdivSF');var _Lk=document.documentElement.getAttribute("lang");_Jz.documentElement.setAttribute("lang",_Lk);var _DG=_Jz.createElement("link");_DG.setAttribute("rel","stylesheet");_DG.setAttribute("type","text/css");var _wi=_Jz.getElementsByTagName("head")[0];_DG.setAttribute("href",this._gd());_wi.appendChild(_DG);_DG=_DG.cloneNode(true);_DG.setAttribute("href",this._lw+'/prompting/promptCommon.css');_wi.appendChild(_DG);if(this._gH()){var _F3=this._fj();if(_F3){_DG=_DG.cloneNode(true);_DG.setAttribute("href",_F3);_wi.appendChild(_DG);_Jz.body.className="icdUI";}}if(_Gi){_Gi.innerHTML=this._lM();this._fp=_Jz.getElementById(this._gE(P_aX));if(this._fp){PRMTUtils._hj(this._fp,"change",this._lX.bind(this));}}}};cognos.Prompt.Control.SelectFile.prototype._gd=function(){var _xY=this.getWebContentRoot()+'/schemas/GlobalReportStyles_10.css';var _IH=document.getElementsByTagName("link");var _Ht=null;var _Gy=new RegExp(/GlobalReportStyles/);for(i=0;i<_IH.length;i++){_Ht=_IH[i];if(_Ht.type=="text/css"&&_Ht.href.match(_Gy)){_xY=_Ht.href;}}return _xY;};cognos.Prompt.Control.SelectFile.prototype._fj=function(){var _xY=null;var _IH=document.getElementsByTagName("link");var _Ht=null;var _yB=new RegExp(/rv\/bux\.css/);for(i=0;i<_IH.length;i++){_Ht=_IH[i];if(_Ht.type=="text/css"&&_Ht.href.match(_yB)){_xY=_Ht.href;}}return _xY;};cognos.Prompt.Control.SelectFile.prototype._la=function(){return this.getValue();};cognos.Prompt.Control.SelectFile.prototype._kB=function(_uh){var _tG=$CE("div",{"id":this._gE("PRMT_SF_CONTAINER_"),"class":"clsPromptComponent"},_uh);_tG._jc(P_ai);return _tG;};cognos.Prompt.Control.SelectFile.prototype._kT=function(_uh,_q4){var _Bz=$CE("td",{"vAlign":"top","width":"1px"},_uh);var _Ib=$CE("img",{"src":this._lw+"/prompting/images/spacer.gif","height":1,"width":1,"border":0,"alt":""},_Bz);if(this.isRequired()&&!_q4){this._fZ='icon_required.gif';}return _Bz;};cognos.Prompt.Control.SelectFile.prototype._lM=function(){var _JH=this._gE(P_aX);var _Bc=getWebContentURI();var _xt=(this.isRequired()&&(!(this["@hideAdornments"]||this._jQ))?'icon_required.gif':'spacer.gif');var _DE='<img class="clsErrorRequired" height="10" border="0" width="10" valign="top" alt="" src="'+_Bc+'/prompting/reportskin/prompting/images/'+_xt+'" />';var _CA=P_bz.lookupDirection($(this._gE(this._kp)));var _xY=' <div> '+' <form action="" enctype="multipart/form-data" method="post"> '+' <p class="clsDialogIntroduction">'+PMT_SF_INTROTEXT+'</p>'+' <p class="clsDialogIntroduction">'+PMT_SF_TIP+'<span class="clsControlLabel" >'+(G_IsBidiEnabled?P_bz.formatFilePath(this["@defaultPath"]):this["@defaultPath"])+'</span></p>'+' <table cellspacing="0" cellpadding="0" border="0"><tbody><tr>'+' <td class="clsControlLabel" valign="top">'+_DE+' <label for="'+_JH+'">'+PMT_SF_LABEL+'</label> '+'</td></tr></tbody></table>'+' <input id="'+_JH+'" type="file" style="'+(G_IsBidiEnabled?'position:absolute':'width:580px')+'" name="pdsContent" size="80" accept="*.csv;*.xml;*.xls"';if(this["@defaultPath"]&&this["@defaultPath"].length>0){_xY+=' defaultValue="'+this["@defaultPath"]+'" ';}if(G_IsBidiEnabled){_xY+='onchange="PRMT_BidiUtils.onFileChange(this, \'fake'+_JH+'\', \'FILEPATH\')" onkeydown="return PRMT_BidiUtils.focusElement(\'fake'+_JH+'\');"';_xY+='onfocus="PRMT_BidiUtils.onFileFocus(this, \'fake'+_JH+'\', \'FILEPATH\')" onmousedown="return PRMT_BidiUtils.focusElement(\'fake'+_JH+'\');"';}_xY+='> ';if(G_IsBidiEnabled){_xY+='<input id="fake'+_JH+'" type="text" dir="ltr" style="position:relative;z-index:2;background-color:#C0C0C0" name="fakePdsContent" size="80"';_xY+='onkeydown="return PRMT_BidiUtils.onFakeKeyDown(event, \''+_JH+'\');" oncopy="PRMT_BidiUtils.processCopy(this);" ';_xY+='onpaste="return false;" oncut="return false;"';_xY+='> ';}_xY+='<input type="hidden" name="inSpec" id="inSpec"/> '+' </form> '+' </div> ';return _xY;};function PRMTFormIframe(_ow,_ni,_uj){var _nP=document.createElement('iframe');_nP.setAttribute("id",_ni);_nP.src=_uj;_nP.width="720px";_nP.height="150";_nP.scrolling="no";_nP.setAttribute("title","blank");_nP.setAttribute("frameBorder","0");_nP.setAttribute("noresize","noresize");_ow.appendChild(_nP);if(_nP.contentDocument){_nP.doc=_nP.contentDocument;}else if(_nP.contentWindow){_nP.doc=_nP.contentWindow.document;}else if(_nP.document){_nP.doc=_nP.document;}return _nP;};cognos.Prompt.Control.SelectFile.prototype._lX=function(){var _w1=this._fp;var _Cx=_w1.value;var _zh=_Cx.split(".");var _zD=_zh[_zh.length-1].toLowerCase();var _JR="";if(_zD=="xml"){_JR="XML";}else if(_zD=="csv"){_JR="CSV";}else if(_zD=="xls"){_JR="Excel2003";}else if(_zD=="xlsx"){_JR="Excel2003";}var _LE=_w1.form;var _AP='<input>';_AP+="<baseModelSearchPath>"+sXmlEncode(this["@baseModelSearchPath"])+"</baseModelSearchPath>";_AP+='<dataSet type="'+_JR+'">';_AP+="<name>"+sXmlEncode(this["@parameter"])+"</name>";_AP+="<sourcePath>"+sXmlEncode(_Cx)+"</sourcePath>";_LE.inSpec.value=_AP+"</dataSet></input>";this._i5="";_LE.action=this.getGateway()+'/metadataUIService?pid=pdm_process&c=processPersonalData';var _vn=this._gm();this._ej=_vn;_LE.setAttribute('target',_vn);_LE.submit();};cognos.Prompt.Control.SelectFile.prototype._gm=function(){var _vn='IFrame'+Math.floor(Math.random()*11111);var _BC=document.createElement('DIV');_BC.innerHTML='<iframe style="display:none" src="about:blank" content="text/xml" id="'+_vn+'" name="'+_vn+'"></iframe>';document.body.appendChild(_BC);var _AH=document.getElementById(_vn);PRMTUtils._hj(_AH,"load",this._eb.bind(this));return _vn;};cognos.Prompt.Control.SelectFile.prototype._eb=function(_vn){_vn=this._ej;var _ye=document.getElementById(_vn);var _He=window.frames[_vn].document;if(_ye.contentDocument){_He=_ye.contentDocument;}else if(_ye.contentWindow){_He=_ye.contentWindow.document;}if(_He.location.href=="about:blank"){return;}this._f3(_He);};cognos.Prompt.Control.SelectFile.prototype.decodeHTML=function(_th){var _AF=function(_th){var _Gn=document.createElement("textarea");_Gn.innerHTML=_th;return _Gn.value;};try{return _AF(_th);}catch(e){try{return _AF(_th.replace(/</g,"<").replace(/>/g,">"));}catch(e){return _th;}}};cognos.Prompt.Control.SelectFile.prototype._f3=function(_vb){var _IX=null;var _Kv=null;if(_vb.implementation&&_vb.implementation.createDocument){try{var _A8=new XMLSerializer();if(window.XML){_IX=XML(_A8.serializeToString(_vb));_Kv=_IX.toXMLString();}else{_Kv=_A8.serializeToString(_vb);}}catch(e){var _zI=_vb.body.textContent;var n1=_zI.indexOf("Mandatory parameter \"");var n2=_zI.indexOf("\" has not been specified");if(n1>=0&&n2>=0&&n2>n1){alert(_zI.substring(n1+21,n2));}else{alert("Error 1! "+_zI);}return;}}else if("ActiveXObject" in window){if(null!=_vb.XMLDocument){_IX=_vb.XMLDocument;_Kv=_IX.xml;}else{var _Ek=_vb.body.innerText;if(_Ek.match(/^.*\r?\n?.*<pdSpec>\r?\n?.*<dataSet/)){_Kv=_Ek;}else{var n1=_Ek.indexOf("Mandatory parameter \"");var n2=_Ek.indexOf("\" has not been specified");if(n1>=0&&n2>=0&&n2>n1){alert(_Ek.substring(n1+21,n2));}else{alert("Error 2! "+_Ek);}return;}}}this._ks=_Kv.replace(/.*<output>/g,"").replace(/<\/output>/g,"");this.checkData();};cognos.Prompt.Control.SelectFile.prototype.getValue=function(){return this._fp.value;};cognos.Prompt.Control.SelectHTML5Date=cognos.Prompt.Control._ff({_jf:function(_tL){this[P_bM]=PMT_RNG_EARLIEST_DATE;this[P_ac]=PMT_RNG_LATEST_DATE;this._type_="cognos.Prompt.Control.SelectHTML5Date";this._eA(_tL);this.m_bDisabled=false;this._kP();},checkData:function(){var _JX=this._eA;if((this.isRequired()||!(this.m_bDisabled))&&!(this._hR._i8(this._fp.value))){this._l1=false;}else{this._l1=true;}this._eA=_JX;this._eA();return this._l1;},clearValues:function(){this._eA();this._dv();},_ly:function(){var _JX=this._eA;this._ld=$(this._gE("_Date"));var _D1=0;switch(this["@startOfWeek"]){case "Monday":_A9=1;break;case "Tuesday":_A9=2;break;case "Wednesday":_A9=3;break;case "Thursday":_A9=4;break;case "Friday":_A9=5;break;case "Saturday":_A9=6;break;}var _Hi=new PRMT_DateHelper($(this._gE("_Date")),$(this._gE("txtDate")),this._gE(),this["@defaultDate"],(this["@calendar"]=="Imperial"?1:0),this["@inputOrder"],_D1,(this["@DateTime"]?0:1),this["@firstDate"],this["@lastDate"],this.isRequired());this._hR=_Hi;var _J3=$(this._gE("txtDate"));_J3._gl=this;this._fp=_J3;this.m_oForm=$(this._gE("_Date"));this._l1=false;var _Ku=_Hi.getCurrentDate();this._j4(_Ku);PRMTUtils._hj(_J3,"blur",this.checkData.bind(this));this.checkData();this._eA=_JX;this._eA();}});cognos.Prompt.Control.SelectHTML5Date.prototype._kB=function(_uh){$CE("input",{"type":"hidden","id":this._gE("_Date"),"value":this["@defaultDate"]},_uh);var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_uh);var _t6=$CE("tbody",{},_y3);var _rS=$CE("tr",{},_t6);var _rK=$CE("td",{},_rS);var _qY={"type":"date","class":"clsHTML5Input","id":this._gE("txtDate"),"value":P_ai};if(this["@title"]){_qY.title=this["@title"];}if(this.isRequired()){_qY["aria-required"]="true";}if(this["@firstDate"]){_qY["min"]=this["@firstDate"];}if(this["@lastDate"]){_qY["max"]=this["@lastDate"];}var _J3=$CE("input",_qY,_rK);return _J3;};cognos.Prompt.Control.SelectHTML5Date.prototype._dv=function(){this._fp.value="";};cognos.Prompt.Control.SelectHTML5Date.prototype._gz=function(_qf){this._j4(dParseDate(_qf,"YMD"));};cognos.Prompt.Control.SelectHTML5Date.prototype._j4=function(_qf){var _J3=this._fp;_J3.value=this._hR._hD(_qf);};cognos.Prompt.Control.SelectHTML5Date.prototype.getCalendarType=function(){return this._hR._if;};cognos.Prompt.Control.SelectHTML5Date.prototype.getInputOrder=function(){return this._hR._h5;};cognos.Prompt.Control.SelectHTML5Date.prototype._fL=function(){var _xY=dParseDate(this._fp.value,"YMD");return _xY;};cognos.Prompt.Control.SelectHTML5Date.prototype._gT=function(){return this._fp.value;};cognos.Prompt.Control.SelectHTML5Date.prototype._h2=function(){return this._hR._il(this._fL());};cognos.Prompt.Control.SelectHTML5Date.prototype._la=function(){var _rH=null;this._hR._i8(this._fp.value);var _Ex=this._fL();var _m8=this._hR._iR(_Ex);if(this._fC&&this["@DateTime"]){_m8=_m8.replace(P_cg,P_da);}return(this.m_bDisabled||!_m8?null:{"use":_m8,"display":this._hR._il(_Ex)});};cognos.Prompt.Control.SelectHTML5Date.prototype._fA=function(_rH){var _pS=_rH["use"];if(_pS){var _ux=_pS.split(new RegExp("[T\\s]"));if(_ux.length>2){for(var _m6=1;_m6<_ux.length-1;_m6++){_ux[0]+=P_br+(_ux[_m6])._j5();}_ux[0]=_ux[0]._j5();_ux[1]=_ux[_ux.length-1];}if(_ux.length>=1){this._j4(dParseDate(_ux[0],"YMD"));}}};cognos.Prompt.Control.SelectHTML5Date.prototype._kJ=function(_pk){var _xd=1;if(_pk){var _Lt=this._fL();var _w3=_pk._fL();var _yn=_Lt.getTime();var _JZ=_w3.getTime();if(_JZ>_yn){_xd=-1;}else if(_JZ==_yn){_xd=0;}}return _xd;};cognos.Prompt.Control.SelectHTML5Date.prototype._iq=function(){this.checkData();};cognos.Prompt.Control.SelectHTML5Date.prototype._g8=function(_rl){this.m_bDisabled=!_rl;if(_rl){this._fp.removeAttribute("disabled");}else{this._fp.setAttribute("disabled",true);}};cognos.Prompt.Control.SelectHTML5Date.prototype._fR=function(){var _rl=this.m_bDisabled;this._g8(_rl);this.m_bDisabled=!_rl;};cognos.Prompt.Control.SelectHTML5Date.prototype.isEmptyReprompt=function(){var _xY=false;if((typeof this.c)!=P_cD){var _wP=this.c;if(_wP.length&&_wP[0].n&&_wP[0].n=="selectChoices"){var _yN=cognos.Value.getValue(this.c);if(_yN.n&&_yN.n=="selectChoices")_xY=true;}}return _xY;};cognos.Prompt.Control.SelectHTML5Date.prototype.hasValue=function(){return(this._l1);};cognos.Prompt.Control.SelectHTML5Time=cognos.Prompt.Control._ff({_jf:function(_tL){this[P_bM]=PMT_RNG_EARLIEST_TIME;this[P_ac]=PMT_RNG_LATEST_TIME;this._type_="cognos.Prompt.Control.SelectHTML5Time";this._eA(_tL);if(typeof this["@display"]==P_bJ){this["@display"]=parseInt(this["@display"],10);}if(typeof this["@display"]!="number"||isNaN(this["@display"])){this["@display"]=(this["@showMilliseconds"]?0:(this["@showSeconds"]?1:2));}if(typeof this["@type"]==P_bJ){this["@type"]=parseInt(this["@type"],10);}if(typeof this["@type"]!="number"||isNaN(this["@type"])){if(typeof g_24HourClock!=P_cD&&g_24HourClock.toString().toLowerCase()=="true"){this["@type"]=2;}else{this["@type"]=(typeof g_AMPMLocation!=P_cD&&g_AMPMLocation=='left'?1:0);}}if(this["@clockMode"]=="static"){this["@clockMode"]=0;}else if(this["@clockMode"]=="live"){this["@clockMode"]=1;}else if(typeof this["@clockMode"]==P_bJ){this["@clockMode"]=parseInt(this["@clockMode"],10);}if(typeof this["@clockMode"]!="number"||isNaN(this["@clockMode"])){this["@clockMode"]=0;}this._jQ=true;this.m_bDisabled=false;this._l1=false;this._kP();},checkData:function(){var _JX=this._eA;var _pS=this._fp.value;if((this.isRequired()||!(this.m_bDisabled))&&!(this._jy.bCheckTime(_pS,this._kS))){this._l1=false;}else{this._l1=true;}this._eA=_JX;this._eA();return this._l1;},clearValues:function(){this._eA();this._dv();},_ly:function(){var _JX=this._eA;if(!this["@timeZone"]){this["@timeZone"]="GMT";}if(!this["@hourFormat"]){this["@hourFormat"]="hh";}if(!this["@minuteFormat"]){this["@minuteFormat"]="mm";}if(!this["@secondFormat"]){this["@secondFormat"]="ss";}this._jy=new PRMT_TimeHelper(this.isRequired());this.m_oForm=$(this._gE("_Time"));this._fp=$(this._gE("selectMobileTime_"));this._dF=this["@clockMode"];if(this._dF==1){this.funcInt=setInterval(this._hv.bind(this),1000);}this._kS=this["@display"];this._gM();if(this["@defaultValue"]){this._jR(this["@defaultValue"]);}else{this._jR("00:00:00.000");}this._j6();this._eA=_JX;this._eA();}});cognos.Prompt.Control.SelectHTML5Time.prototype._kB=function(_uh){var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"role":P_ag},_uh);var _t6=$CE("tbody",{},_y3);var _rS=$CE("tr",{},_t6);if(this["@required"]&&!this.isMulti()&&!this["@hideAdornments"]){this._kT(_rS);}var _rK=$CE("td",{"id":this._gE("timeEditBox"),"noWrap":"noWrap"},_rS);var _GZ="clsHTML5Input";var _zy=cssParser(this["@style"],"direction",true);var _CK=(this._hQ?this._hQ:$(this._gE(this._kp)));var _xu=((_zy=="ltr"||_zy=="rtl")?_zy:P_bz.lookupDirection(_CK));_rB="direction:ltr";if(_xu=="rtl"){_rB+=";text-align:right";_GZ+="RTL";}var _sJ=null;var _Kl=60.0;if(this["@display"]==1){_Kl=1.0;}else if(this["@display"]===0){_Kl=0.001;}$CE("input",{"id":this._gE("selectMobileTime_"),"type":"time","step":_Kl,"class":_GZ,"style":_rB},_rK);$CE("input",{"type":"hidden","id":this._gE("_Time"),"value":"00:00:00.000"},_uh);_sJ=$(this._gE("selectMobileTime_"));return _sJ;};cognos.Prompt.Control.SelectHTML5Time.prototype._dv=function(){this._f6=null;this.m_oForm.value=P_ai;this._fp.value=P_ai;};cognos.Prompt.Control.SelectHTML5Time.prototype._jR=function(_tv){this._f6=this._jy.dParseTime(_tv);this.m_oForm.value=this._jy.getTimeFormatForSubmit(this._f6);this._fp.value=this._jy.getTimeFormatForInput(this._f6,this._kS);};cognos.Prompt.Control.SelectHTML5Time.prototype._la=function(){var _BG=this.hasValue();return((_BG)?{"use":this.m_oForm.value,"display":this._jy.getTimeFormatForDisplay(this._f6,this._kS)}:null);};cognos.Prompt.Control.SelectHTML5Time.prototype.getTimeFormatForDisplay=function(){return this._jy.getTimeFormatForDisplay(this._f6,this._kS);};cognos.Prompt.Control.SelectHTML5Time.prototype.getTimeInputValue=function(){return this.m_oForm.value;};cognos.Prompt.Control.SelectHTML5Time.prototype._fA=function(_rH){var _pS=_rH["use"];if(_pS){var _ux=_pS.split(new RegExp("[T\\s]"));if(_ux.length>=0){this._jR(_ux[_ux.length-1]);}}};cognos.Prompt.Control.SelectHTML5Time.prototype._kJ=function(_pk){var _xd=1;if(_pk){var _Lt=this._jy.dParseTime(this.m_oForm.value);var _w3=_pk._jy.dParseTime(_pk.m_oForm.value);var _yn=_Lt.getTime();var _JZ=_w3.getTime();if(_JZ>_yn){_xd=-1;}else if(_JZ==_yn){_xd=0;}}return _xd;};cognos.Prompt.Control.SelectHTML5Time.prototype._gM=function(){PRMTUtils._hj(this._fp,"blur",this._lc.bind(this));if(PRMTUtils._ix()){PRMTUtils._hj(this._fp,"focus",this._ii.bind(this));}else{PRMTUtils._hj(this._fp,"change",this._ii.bind(this));PRMTUtils._hj(this._fp,"input",this._ii.bind(this));}};cognos.Prompt.Control.SelectHTML5Time.prototype._lc=function(){this._jR(this._fp.value);this._j6();};cognos.Prompt.Control.SelectHTML5Time.prototype.hasValue=function(){return!(this.m_oForm.value==P_ai);};cognos.Prompt.Control.SelectHTML5Time.prototype._hv=function(){this._f6=new Date();this.m_oForm.value=this._jy.getTimeFormatForSubmit(this._f6);this._fp.value=this._jy.getTimeFormatForInput(this._f6,this._kS);};cognos.Prompt.Control.SelectHTML5Time.prototype._ii=function(){if(this._dF==1){if(this._kS>1){this._f6.setSeconds(0);}if(this._kS>0){this._f6.setMilliseconds(0);}this._dF=0;clearInterval(this.funcInt);}};cognos.Prompt.Control.SelectHTML5Time.prototype._j6=function(){this.checkData();if(this._l1){this.m_oForm.value=this._jy.getTimeFormatForSubmit(this._f6);this._fp.value=this._jy.getTimeFormatForInput(this._f6,this._kS);}else{this._dv();}};cognos.Prompt.Control.SelectHTML5Time.prototype._g8=function(_rl){this.m_bDisabled=!_rl;if(_rl){this._fp.removeAttribute("disabled");}else{this._fp.setAttribute("disabled",true);}};cognos.Prompt.Control.SelectHTML5DateTime=cognos.Prompt.Control._ff({_jf:function(_tL){this[P_bM]=PMT_RNG_EARLIEST_DATE;this[P_ac]=PMT_RNG_LATEST_DATE;this._type_="cognos.Prompt.Control.SelectHTML5DateTime";this._eA(_tL);var _v5=Object._ff({},_tL);_v5["@required"]=true;_v5["@hideAdornments"]=true;_v5._en=true;this._gn=new cognos.Prompt.Control.SelectHTML5Date(_v5);this._i0=new cognos.Prompt.Control.SelectHTML5Time(_v5);this._gn._fJ=this;this._i0._fJ=this;this._jQ=true;this.m_bDisabled=false;this._kP();if(SYSTEMPROPERTY_TREE_CACHE_ENABLED){this.cacheDateTimeControlName(this.getTracking());}},checkData:function(){var _JX=this._eA;if((this.isRequired()||!(this.m_bDisabled))&&!(this._gn._l1&&this._i0._l1)){this._l1=false;}else{this._l1=true;}this._eA=_JX;this._eA();return this._l1;},clearValues:function(){this._eA();this._gn.clearValues();this._i0.clearValues();},_ly:function(){var _JX=this._eA;var _G9=$(this._gE("chkAnyValue"));if(_G9){PRMTUtils._hj(_G9,"click",this._fR.bind(this));}this._gn._ly();this._i0._ly();this._eA=_JX;this._eA();if(this[P_an]){this._gn._g8(false);this._i0._g8(false);}}});cognos.Prompt.Control.SelectHTML5DateTime.prototype._kJ=function(_pk){var _xd=1;if(_pk){_xd=this._gn._kJ(_pk._gn);if(_xd===0){_xd=this._i0._kJ(_pk._i0);}}return _xd;};cognos.Prompt.Control.SelectHTML5DateTime.prototype._kB=function(_uh){var _y3=$CE("table",{"border":P_f,"cellPadding":0,"cellSpacing":0,"class":"clsPromptComponent","style":cssParser(this["@style"],"visibility")},_uh);var _t6=$CE("tbody",{},_y3);var _rS=$CE("tr",{},_t6);var _rK=null;if(!this.isRequired()&&!this["@suppressDisabled"]&&!(this._en||this["@multiSelect"])){var _FN=(this[P_an]===true);_rK=$CE("td",{"vAlign":"top"},_rS);$CE("input",{"type":"checkbox","value":"anyValue","id":this._gE("chkAnyValue"),"name":this._gE("chkAnyValue"),"checked":(_FN?P_ai:"checked")},_rK);this.m_bDisabled=_FN;}_rK=$CE("td",{"vAlign":"top"},_rS);_y3=$CE("table",{"border":P_f,"cellPadding":5,"cellSpacing":0,"class":"clsBoundingBox pdt"},_rK);if(this._en){_y3._fH("style","margin-left:0px");}_t6=$CE("tbody",{},_y3);_rS=$CE("tr",{},_t6);_rK=$CE("td",{"id":this._gE("selectDate"),"vAlign":"top"},_rS);this._gn._kB(_rK);_rS=$CE("tr",{},_t6);_rK=$CE("td",{"id":this._gE("selectDate"),"vAlign":"top"},_rS);this._i0._kB(_rK);};cognos.Prompt.Control.SelectHTML5DateTime.prototype._h2=function(){return(this._gn._h2()+P_br+this._i0.getTimeFormatForDisplay());};cognos.Prompt.Control.SelectHTML5DateTime.prototype._la=function(){return(this.m_bDisabled?null:{"use":this._gT(),"display":this._h2()});};cognos.Prompt.Control.SelectHTML5DateTime.prototype._gT=function(){return(this._gn._gT()+"T"+this._i0.getTimeInputValue());};cognos.Prompt.Control.SelectHTML5DateTime.prototype._fA=function(_rH){var _pS=_rH["use"];if(_pS){var _ux=_pS.split(new RegExp("[T\\s]"));if(_ux.length>2){for(var _m6=1;_m6<_ux.length-1;_m6++){_ux[0]+=P_br+(_ux[_m6])._j5();}_ux[0]=_ux[0]._j5();_ux[1]=_ux[_ux.length-1];}if(_ux.length>=1){this._gn._gz(_ux[0]);if(_ux.length>=2){this._i0._jR(_ux[1]);}}}};cognos.Prompt.Control.SelectHTML5DateTime.prototype._fR=function(){if(!this.isRequired()){var _rl=this.m_bDisabled;this._gn._g8(_rl);this._i0._g8(_rl);this.m_bDisabled=!_rl;}this.checkData();};cognos.Prompt.Control.SelectHTML5DateTime.prototype.hasValue=function(){return(this._l1);};var P_aT=0;var P_f=0;var P_p="'";var P_ai="";var P_ap="\\";var P_b6=":";var P_b=P_ap+P_ap;var P_A=".";var P_a9='="';var P_V="g";var P_cm="gi";var P_cb=">";var P_cO="<";var P_y="/";var P_br=" ";var P_aA='"';var P_c=""";var P_bg=P_cO+P_y;var P_c4="PRMT_IMG_ERROR_";var P_cY="T00:00:00.000";var P_da="T23:59:59.999";var P_S="dv";var P_cA="nullUse";var P_C="use";var P_aP="display";var P_an="@disabled";var P_aa="@displayValue";var P_cs="@nullUse";var P_E="@useValue";var P_m="../skins/corporate";var P_i="boolean";var P_c7="function";var P_cZ="object";var P_bJ="string";var P_cD="undefined";var P_ak="XML";var P_bc="clsDisabled";var P_cd="PRMT_INTERVAL_";var P_q="negative";var P_cX="days";var P_bj="hours";var P_az="minutes";var P_U="seconds";var P_cQ="millis";var P_c9="PRMT_LIST_BOX_SELECT_";var P_k="PRMT_LIST_BUTTON_INSERT_";var P_aY="PRMT_LIST_BUTTON_REMOVE_";var P_aU="PRMT_FB_";var P_bT="PRMT_LIST_LINK_DESELECT_";var P_cE="PRMT_LIST_LINK_SELECT_";var P_cM="NO_SUBMIT";var P_cI="F_";var P_dl="PRMT_RANGE_DEFAULT_";var P_K="PRMT_RANGE_INPUT_";var P_ax="T_";var P_bv="@forceBoundRange";var P_P="PRMT_SV_LINK_DESELECT_";var P_ct="PRMT_SV_LINK_SELECT_";var P_W="PRMT_SV_";var P_c5="PRMT_TB_";var P_cc="choices";var P_c2=new RegExp("^\\s*$");var P_a0=new RegExp("\\s*(-)?\\s*(\\d+\\s+)?\\s*(\\d+)?\\s*(:\\d+)?\\s*(:\\d+)?\\s*(\\.\\d+\\s*)?$");var P_aC=new RegExp("[^\\d]",P_V);var P_G=new RegExp(P_aA,P_V);var P_l=new RegExp("(-)?P(\\d+D)?T?(\\d+H)?(\\d+M)?(\\d+)?(\\.\\d+S)?");var P_cg=new RegExp("(T\\d\\d:\\d\\d:\\d\\d\\.\\d\\d\\d)?$");var K_ACTION_BACK="back";var K_ACTION_CANCEL="cancel";var K_ACTION_FINISH="finish";var K_ACTION_FORWARD="forward";var K_ACTION_NEXT="next";var P_aB="prompt";var K_ACTION_REPROMPT="reprompt";var P_bG="search";var P_aj="@choicesText";var P_dd="@insertText";var P_ab="@removeText";var P_L="@choicesSelectAllText";var P_bn="@choicesDeselectAllText";var P_d="@resultsSelectAllText";var P_w="@resultsDeselectAllText";var P_F="@deselectText";var P_D="@fromText";var P_aZ="@toText";var P_bM="@lowestValueText";var P_ac="@highestValueText";var P_j="@keywordsText";var P_bV="@searchInstructionsText";var P_x="@searchText";var P_cP="@optionsText";var P_b8="@resultsText";var P_aG="@daysText";var P_at="@hoursText";var P_ch="@minutesText";var P_cS="@secondsText";var P_bC="@millisecondsText";var P_aV=-1;var P_bZ=1;var P_H=-2;var P_bH=2;var P_bd=1;var P_u=-1;var P_aN=-1;var P_v=1;var P_ck=0x25;var P_c3=0x26;var P_z=0x27;var P_cT=0x28;var P_aW=0x20;var P_cK=0x0d;var P_dj=0x09;var P_bx="dijitInline dijitCheckBox dijitCheckBoxChecked";var P_e="dijitInline dijitRadio dijitRadioChecked";var P_bY="dijitInline dijitCheckBox";var P_b1="dijitInline dijitRadio";var P_cy="dijitInline dijitCheckBox dijitCheckBoxMixed";var P_cG="dijitTreeExpando dijitTreeExpandoClosed";var P_bl="dijitTreeExpando dijitTreeExpandoOpened";var P_I="dijitTreeExpando dijitTreeExpandoNone";var P_X="dijitExpandoText";var P_cV="role";var P_aD="aria-selected";var P_bS="aria-checked";var P_ag="presentation";var P_bN="treeitem";var P_aO="tree";var P_cx="group";var P_dh="checkbox";var P_a7="aria-expanded";var P_M="button";var P_ad="PRMT_SF_CONTAINER";var P_aX="PRMT_SF_INPUT_";var gsCSS_DEFAULT_STYLE="align,background,border,clear,direction,display,float,height,margin,overflow,padding,vertical-align,visibility,width";function SetPromptMethod(_vs){var _ym=document.forms[0];if(_ym["ui.action"]){_ym["ui.action"].value=_vs;}if(_ym.method){_ym.method.value=_vs;}};function GetPromptMethod(){var _vs;var _ym=document.forms[0];if(_ym){if(_ym.method){_vs=_ym.method.value;}if(_ym["ui.action"]){_vs=_ym["ui.action"].value;}}return _vs;};function SetPromptContinue(_vs){var _ym=document.forms[0];if(_ym["run.prompt"]){_ym["run.prompt"].value=_vs;}if(_ym.prompt){_ym.prompt.value=_vs;}};function SetPromptControl(_vs){if(_dY(_vs)||_jq()){return false;}_k8(true);var _z0=true;var _Ew=getPreProcessControlArray();if(_Ew){preProcessForm(_Ew);if(needPromptValidation(_vs)){_z0=canSubmitPrompt();}}if(_z0===true){var _ym=document.forms[0];genHiddenInputHTML(_ym.name,"_promptControl",_vs);if(_vs==K_ACTION_REPROMPT){SetPromptMethod(K_ACTION_FORWARD);}_ym.submit();return true;}return false;};function canSubmitPrompt(_tt,_sK){var _CR=true;var _Ew=getPreProcessControlArray(_sK);if(_Ew){var _Kw=_Ew.length;var k=0;for(k=0;k<_Kw;k++){var _Ck=eval(_Ew[k]);if(_tt&&_Ck["@cascadeOn"]&&_Ck["@cascadeOn"]==_tt){_CR=true;break;}else if(_Ck.isValid()===false){_CR=false;}}}if(_CR===false){if(!_tt){var _JA="sPrompt_Required_Values_missing";if(typeof PMT_UIM_PROMPT_CONFIRMATION_VALUE_MISSING==P_bJ){_JA=PMT_UIM_PROMPT_CONFIRMATION_VALUE_MISSING;}alert(_JA);}return false;}return true;};function needPromptValidation(_o3){if(_o3==P_bG||_o3==K_ACTION_REPROMPT||_o3==K_ACTION_CANCEL||_o3==K_ACTION_BACK||GetPromptMethod()==K_ACTION_BACK){return false;}return true;};function preProcessForm(ar){if(ar){var _Kw=ar.length;var k=0;for(k=0;k<_Kw;k++){eval(ar[k]).preProcess();}}};function debugPreprocess(ar){var _Dp="Array length: "+ar.length+"\n";_Dp+="Arrays: "+ar.toString()+"\n";var j=0;if(ar){for(j=0;j<ar.length;j++){_Dp+="Array "+j+P_b6+ar[j]+P_b6+eval(ar[j])._hJ.value+"\n";}alert(_Dp);}};function catchAutoSubmit(o,_qW){if(o._lk===true){SetPromptMethod(K_ACTION_FORWARD);SetPromptControl(_qW);}else{o._lk=true;}};function sDecodeU003(_of){if(typeof _of!=P_bJ){return _of;}var _zB=new RegExp(P_b+"U003C",P_V);var _zA=new RegExp(P_b+"U003E",P_V);return(_of.replace(_zA,P_cb).replace(_zB,P_cO));};function sQuotEncode(_of){return(_of.replace(P_G,P_c));};function sXmlEncode(_sQ){var _Ih=sHtmlEncode(_sQ);if((_Ih=='0')||((_sQ!==null)&&(_sQ!==false))){_Ih=sQuotEncode(_Ih);var _Be=new RegExp(P_p,P_V);_Ih=_Ih.replace(_Be,"'");_Ih=_Ih.replace(/\n/g," ");_Ih=_Ih.replace(/\r/g," ");}else if(!_sQ){_Ih=P_ai;}return _Ih;};function sHtmlEncode(_sQ){var _Ih=P_ai+_sQ;if((_Ih=='0')||((_sQ!==null)&&(_sQ!==false))){_Ih=_Ih.replace(/&/g,"&");_Ih=_Ih.replace(/</g,"<");_Ih=_Ih.replace(/>/g,">");}else if(!_sQ){_Ih=P_ai;}return _Ih;};function sReplaceToken(_qi,_ty,_n2){var _xL=P_ai;var _K7=0;var _B5=_qi.indexOf(_ty);while(_B5>-1){_xL+=_qi.substring(_K7,_B5);_xL+=_n2;_K7=_B5+_ty.length;_B5=_qi.indexOf(_ty,_K7);}_xL+=_qi.substring(_K7,_qi.length);return _xL;};function stripSingleQuote(s){var _xL=s;var _GH=/[']$/;_xL=_xL.replace(_GH,P_ai);var _Ky=/^[']/;_xL=_xL.replace(_Ky,P_ai);return _xL;};function sEscapeRegularExpression(_qe){_qe=_qe.replace(/\./g,P_ap+P_A);_qe=_qe.replace(/\$/g,P_ap+"$");_qe=_qe.replace(/\(/g,P_ap+"(");_qe=_qe.replace(/\)/g,P_ap+")");_qe=_qe.replace(/\+/g,P_ap+"+");return _qe;};function buttonOver(_uk){_uk.className="clsToolbarButton_hover";};function buttonOut(_uk){_uk.className="clsToolbarButton";};function buttonDown(_uk){_uk.className="clsToolbarButton_active";};function iOffsetFromBodyX(_uk){var _JG=_uk;var _wm=0;do{if(_wm+_JG.offsetLeft>=0){_wm+=_JG.offsetLeft;}_JG=_JG.offsetParent;}while(_JG!==null);return _wm;};function iOffsetFromBodyY(_uk){var _JG=_uk;var _wl=0;do{_wl+=_JG.offsetTop;_JG=_JG.offsetParent;}while((_JG!==null)&&(_JG.id!='RVContent'));return _wl;};function notify(_nb,_tF){if((typeof rangeNotify!=P_cD)&&(rangeNotify)){rangeNotify();}if((typeof promptButtonNotify!=P_cD)&&(promptButtonNotify)){promptButtonNotify();}if((typeof multipleObserverNotify!=P_cD)&&(multipleObserverNotify)){multipleObserverNotify();}for(var _HI=0;_HI<gaNotifyTargets.length;_HI++){var _wD=gaNotifyTargets[_HI];if(typeof _wD!=P_cD&&typeof _wD.notify==P_c7){_wD.notify(_nb,_tF);}}};function multipleObserverNotify(){if((typeof multipleObserverArray!=P_cD)&&(multipleObserverArray)){var _Kw=multipleObserverArray.length;var k=0;for(k=0;k<_Kw;k++){var _Ck=multipleObserverArray[k];if(typeof _Ck==P_bJ){_Ck=eval(_Ck);}_Ck.checkInsertRemove();}}};function repromptObserverNotify(_qy){var _Es=((typeof aRepromptObservers!=P_cD)?aRepromptObservers:_go('repromptObserverArray',_qy));var _wJ=this.document.activeElement.outerHTML;var _wQ=_wJ.match(/layoutname="\w+"/);if(_wQ!==null){var _Ir=_wQ[0];var _Jb=/".*"/;var _DK=_Jb.exec(_Ir);_qy.setCurrentPromptControlFocus(_DK[0]);}else{_qy.setCurrentPromptControlFocus(null);}if(_Es){var _Kw=_Es.length;var k=0;for(k=0;k<_Kw;k++){var _pq=_Es[k];if(typeof _pq==P_bJ){_pq=eval(_pq);}if(_pq&&_pq.handleNotify){_pq.handleNotify();}}}};function datePickerObserverNotify(_qL){var _Es=((typeof _qL!=P_cD)?_qL:_go('datePickerObserverArray'));if(_Es){var _Kw=_Es.length;var k=0;for(k=0;k<_Kw;k++){var _pq=_Es[k];if(typeof _pq==P_bJ){_pq=eval(_pq);}if(_pq&&_pq.handleNotify){_pq.handleNotify();}}}};function hidePickers(){if((typeof g_pickerObservers!=P_cD)&&(g_pickerObservers)){var _Kw=g_pickerObservers.length;for(var k=0;k<_Kw;k++){var _Ck=eval(g_pickerObservers[k]);if(typeof _Ck!=P_cD){_Ck.hide();}}}};function execute(){SetPromptMethod(K_ACTION_FORWARD);var _ze=P_aB;var _HG=GetSubmitSetting();if(_HG!==null){_ze=_HG;}SetPromptControl(_ze);return true;};function SetSubmitSetting(s){var _ym=document.forms[0];if(_ym._promptControl){_ym._promptControl.value=s;}};function GetSubmitSetting(){var _ym=document.forms[0];if(_ym._promptControl){return _ym._promptControl.value;}return null;};function browserIsNS7(){var _GX=((!window.ie)&&(document.getElementById))?true:false;return _GX;};function preventSubmitEvent(_mG){var _nm=(_mG?_mG:(typeof event!=P_cD?event:null));if(_nm){if(_nm.keyCode==13){if(typeof _nm.stopPropagation==P_c7){_nm.stopPropagation();}if(typeof _nm.preventDefault==P_c7){_nm.preventDefault();}_nm.cancelBubble=true;return false;}}};function cancelBub(_mG){_mG=(_mG)?_mG:((event)?event:null);if(typeof _mG.cancelBubble!=P_cD){_mG.cancelBubble=true;}if(typeof _mG.stopPropagation!=P_cD){_mG.stopPropagation();}};function bNumbersOnly(s){var _LS=new RegExp('[^0-9]',P_V);if(s){var z=s.search(_LS);if(z==-1){return true;}}return false;};var g_pickerObservers=[];var gaNotifyTargets=[];var gaSelectControls=[];var goSelectControlsTimer=null;var gFAIL=0;var gPASS=1;var P_bX=2;function genInsertButtonHTML(_tq,_mf,_ts){if(!verifyPromptId(_tq)){return;}var _yx="<button type='button' title='"+PMT_UIM_INSERTTIP+"' id='"+_ts+"' name='"+_ts+"' onclick='"+_mf+"; return false;' class='clsInsertRemoveButton' onmouseover=\"this.className='clsInsertRemoveButtonOver'\" onmouseout=\"this.className='clsInsertRemoveButton'\">"+PMT_UIM_INSERT+" <img src='"+getPromptSkin()+"/prompting/images/insert.gif' alt='"+PMT_UIM_INSERTTIP+"' border='0' height='16' width='16' align='top' /></button>";renderPromptControlHTML("getInsertButton"+_tq,_yx);};function genRemoveButtonHTML(_tq,_mf,_ts){if(!verifyPromptId(_tq)){return;}var _yx="<button type='button' title='"+PMT_UIM_REMOVETIP+"' id='"+_ts+"' name='"+_ts+"' onclick='"+_mf+"; return false;' class='clsInsertRemoveButton' onmouseover=\"this.className='clsInsertRemoveButtonOver'\" onmouseout=\"this.className='clsInsertRemoveButton'\"><img src='"+getPromptSkin()+"/prompting/images/remove.gif' alt='"+PMT_UIM_REMOVETIP+"' border='0' height='16' width='16' align='top' /> "+PMT_UIM_REMOVE+"</button>";renderPromptControlHTML("getRemoveButton"+_tq,_yx);};function getPromptSkin(){if(typeof p_sSkinFolder==P_bJ&&p_sSkinFolder){return p_sSkinFolder;}return(getWebContentURI()+"/skins/corporate");};function getWebContentURI(){var _Jy="..";if(typeof p_sWebContentURI==P_bJ&&p_sWebContentURI){_Jy=p_sWebContentURI;}else{var _Hy=document.getElementsByTagName("base");if(_Hy){_Jy+="/..";}}return _Jy;};function StringArray(){this.stringArray=[];this.append=StringArray_append;this.toString=StringArray_toString;this.reset=StringArray_reset;};function StringArray_append(_oq){this.stringArray[this.stringArray.length]=_oq;};function StringArray_toString(){return this.stringArray.join(P_ai);};function StringArray_reset(){this.stringArray=[];};function jsEncodeStr(_qc){if(typeof _qc==P_cD||!_qc){return P_ai;}if(typeof _qc!=P_bJ){return _qc;}var _vY=new RegExp(P_b,P_V);return _qc.replace(_vY,P_b).replace(P_G,P_ap+P_aA);};function jsDecodeStr(_qc){if(typeof _qc==P_cD||!_qc){return P_ai;}if(typeof _qc!=P_bJ){return _qc;}var _y1=new RegExp(P_b+P_p,P_V);var _xO=new RegExp(P_b+P_aA,P_V);var _Im=new RegExp(P_b+P_b,P_V);var _LP=new RegExp(P_b+P_cO,P_V);var _Fh=new RegExp(P_b+P_cb,P_V);return _qc.replace(_y1,P_p).replace(_xO,P_aA).replace(_Fh,P_cb).replace(_LP,P_cO).replace(_Im,P_ap);};function verifyPromptId(_tq){if(_tq.indexOf(P_ap+"U003C")>-1||_tq.indexOf(P_ap+"U003E")>-1){return false;}return true;};function alterDoubleQuote(_qc){if(typeof _qc==P_cD||!_qc){return P_ai;}var _wC=new RegExp(P_b+P_aA,P_V);return _qc.replace(_wC,'~quote~').replace(P_G,'~quote~');};function addHiddenInputHTML(_uA,_uZ,_nK){var _vH=genHiddenInputHTML(_uA,_uZ,_nK);if(_vH){document.write(_vH);}};function genHiddenInputHTML(_uA,_uZ,_nK){var _vH=P_ai;var _zW=null;var _pM=document.forms[_uA];if(_pM){_zW=_pM.elements[_uZ];if(!_zW&&(!document.readyState||document.readyState=="complete")){_zW=document.createElement("input");_zW.type="hidden";_zW.id=_uZ;_zW.name=_uZ;_zW.value=_nK;_pM.appendChild(_zW);}}if(_zW){_zW.value=(_nK===null?P_ai:_nK);}else{_vH='<input type="hidden" name="'+alterDoubleQuote(_uZ)+'" value="'+(_nK===null?P_ai:_nK)+'"/>';}return _vH;};function addSelectChoices(_rp,_r2){var _xZ=_rp.value;if(typeof _xZ!=P_bJ||!_xZ){_xZ="<selectChoices></selectChoices>";}if(typeof _r2==P_bJ&&_xZ.indexOf(_r2)==-1){_xZ=_xZ.replace(/^\s*<selectChoices>\s*/i,P_ai).replace(/\s*<\/selectChoices>\s*$/i,P_ai);_r2=_r2.replace(/^\s*<selectChoices>\s*/i,P_ai).replace(/\s*<\/selectChoices>\s*$/i,P_ai);_xZ="<selectChoices>"+_xZ+_r2+"</selectChoices>";}_rp.value=_xZ;};function registerForNotications(_oD){if(typeof _oD!=P_cD){gaNotifyTargets[gaNotifyTargets.length]=_oD;}};function CPromptControl(){this._kN=P_ai;};CPromptControl.prototype.checkPass=function(){if(this._k0){this._k0.className="clsFeedbackWidget";}this.notify(gPASS,this);};CPromptControl.prototype.checkFail=function(){if(this._k0){this._k0.className=(typeof this._jj==P_bJ?this._jj:"clsFeedbackWidgetParseError");}this.notify(gFAIL,this);};CPromptControl.prototype.getCV=function(){var _wf=window;if(typeof this._jE==P_cZ){_wf=this._jE;}else{try{_wf=eval("oCV"+this.getCVId());if(typeof _wf==P_cZ){this._jE=_wf;}}catch(e){_wf=window;}}return _wf;};CPromptControl.prototype.getCVId=function(){return this._kN;};CPromptControl.prototype.getObserverArray=function(_mH){var _wO=null;var _qy=this.getCV();if(typeof _qy!=P_cD){_wO=_qy[_mH];}return _wO;};CPromptControl.prototype.getValid=function(){return this._l1;};CPromptControl.prototype.notify=function(_nb,_tF){var _qy=this.getCV();if(_qy&&typeof _qy.notify==P_c7){_qy.notify(_nb,_tF);}};CPromptControl.prototype._gH=function(){var _Ch=this.getCV();return(typeof _Ch==P_cZ&&_Ch.isBux?true:false);};CPromptControl.prototype.isRequired=function(){return(this._jx===true);};CPromptControl.prototype.isValid=function(){if(typeof this.checkData==P_c7){this.checkData();}return(this._l1===true);};CPromptControl.prototype.catchDeleteKey=function(_ug){if(_ug==46&&typeof this.remove==P_c7){this.remove(this.m_oLstChoices);}};CPromptControl.prototype.removeSelectedChoices=function(){var _Hd=null;if(typeof this.m_oLstChoices==P_cZ){_Hd=this.m_oLstChoices.selectedIndex;}if(typeof _Hd!="number"){return;}if(_Hd!=-1){for(var _JT=this.m_oLstChoices.options.length-1;_JT>-1;_JT--){if(this.m_oLstChoices.options[_JT].selected){this.m_oLstChoices.options[_JT]=null;}}}else{var _AS="sPrompt_Select_Item_First";if(typeof PMT_UIM_sPrompt_Select_Item_First==P_bJ){_AS=PMT_UIM_sPrompt_Select_Item_First;}alert(_AS);}this.checkData();};CPromptControl.prototype.addOptions=function(_mw){var _qk,_nJ,_HE;if(_mw instanceof Array){for(var _xk=0;_xk<_mw.length;_xk++){var _Kj=_mw[_xk];if(_Kj&&_Kj.length){_qk=(_Kj.length>0?_Kj[0]:P_ai);_nJ=(_Kj.length>1?_Kj[1]:P_ai);_HE=(_Kj.length>2?_Kj[2]:false);sParent=(_Kj.length>3?_Kj[3]:null);this.addNoUpdate(_qk,_nJ,_HE,sParent);}}this.update();}};CPromptControl.prototype.setCVId=function(_ns){if(typeof _ns==P_bJ&&_ns!==P_ai&_ns!=P_cD){this._kN=_ns;}var cv=this.getCV();if(cv&&typeof cv.setHasPrompts=="function"){cv.setHasPrompts(true);}};function renderPromptControlHTML(_n7,_vH){var _A7=document.getElementById(_n7);if(_A7!==null){_A7.innerHTML=_vH;}};function executePromptControlJS(_oF){eval(_oF);};function generatePromptProperties(_n8,_oj){var _KJ=P_ai;var _mU=_n8;if(_oj){_mU={};for(var idxProp in _n8){_mU[idxProp]=_n8[idxProp];}for(var idxPropToAdd in _oj){_mU[idxPropToAdd]=_oj[idxPropToAdd];}}for(var idxProp in _mU){if(_KJ){_KJ+=",";}_KJ+=idxProp+P_b6;switch(typeof _mU[idxProp]){case P_bJ:var _Gz=new RegExp(P_b,P_V);var _Be=new RegExp(P_p,P_V);var _Ax=new RegExp(P_cO+P_y,P_V);_KJ+=P_p+_mU[idxProp].replace(_Gz,P_b).replace(_Be,P_ap+P_p).replace(_Ax,"<'+'/'+'")+P_p;break;case P_cZ:if(_mU[idxProp]instanceof Array){var _LQ=P_ai;for(var idxArray in _mU[idxProp]){if(_LQ){_LQ+=",";}_LQ+=_mU[idxProp][idxArray];}_KJ+="["+_LQ+"]";}else if(_mU[idxProp]===null){_KJ+='null';}else{_KJ+=generatePromptProperties(_mU[idxProp]);}break;case P_cD:_KJ+='null';break;default:_KJ+=_mU[idxProp];}}return "{"+_KJ+"}";};function getCVInstance(_mU){var _Kb=P_ai;var _mB=getCVId(_mU);if(typeof _mB==P_bJ&&eval("typeof oCV"+_mB)!=P_cD){_Kb="oCV"+_mB+P_A;}return _Kb;};function CPromptControl_updateSelectWidth(_tZ){if(typeof gaSelectControls==P_cD){gaSelectControls=new Array();}if(_tZ&&!_tZ.id&&_tZ.name){_tZ.id=_tZ.name;}if(_tZ&&!gaSelectControls[_tZ.id]){_tZ._kV=_tZ.style.width;gaSelectControls[_tZ.id]=_tZ;}if(document.readyState=="complete"){for(var _ns in gaSelectControls){var _Io=gaSelectControls[_ns];if(_Io&&_Io._h3){_Io=_Io._h3;}if(_Io&&_Io.style){if(!CPromptControl_hasExplicitWidth(_Io)){_Io.style.width="auto";if(_Io.offsetWidth<200){_Io.style.width="200px";}}}}}else if(document.readyState){if(typeof goSelectControlsTimer!=P_cD&&goSelectControlsTimer){clearTimeout(goSelectControlsTimer);}goSelectControlsTimer=setTimeout(CPromptControl_updateSelectWidth,100);}else{if(!CPromptControl_hasExplicitWidth(_tZ)){_tZ.style.minWidth="200px";}}};function CPromptControl_hasExplicitWidth(_sc){var _DD=null;if(_sc){_DD=_sc._kV;if(typeof _DD==P_cD){_DD=_sc.style.width;}}return(_DD&&_DD.match(/\d/g));};function getCVId(_mU){var _Kb=P_ai;if(typeof _mU==P_cZ&&typeof _mU.CVId==P_bJ&&_mU.CVId!==P_ai){_Kb=_mU.CVId;}return _Kb;};function getPreProcessControlArray(_sK){var _Ew=null;if(typeof preProcessControlArray!=P_cD){_Ew=preProcessControlArray;}else if(typeof _sK!=P_cD){_Ew=_sK.preProcessControlArray;}else if(typeof window.gCognosViewer!=P_cD){_Ew=window.gCognosViewer.preProcessControlArray;}return _Ew;};function _go(_mH,_qy){var _wO=null;if(typeof _qy!=P_cD){_wO=_qy[_mH];}else if(typeof window[_mH]!=P_cD){_wO=window[_mH];}else if(window.gCognosViewer&&typeof window.gCognosViewer[_mH]!=P_cD){_wO=window.gCognosViewer[_mH];}return _wO;};function cssParser(_l5,_rY,_qj){if(!_l5||typeof _l5!=P_bJ||!_rY||typeof _rY!=P_bJ){return P_ai;}var _KC=_l5.replace(/\s*;\s*$/g,P_ai);_KC=_KC.replace(/\s*;\s*/g,';');_KC=_KC.replace(/\s*:\s*/g,P_b6);var _y7=_KC.split(";");var _I2=_rY.split(",");var _xB=P_ai;for(var _z6=0;_z6<_I2.length;_z6++){for(var _Go=0;_Go<_y7.length;_Go++){var _BK=_y7[_Go].split(P_b6);var _LO=new RegExp("^"+_I2[_z6]+"(-.*)?$");if(_BK[0].match(_LO)&&_BK[1]!=P_ai){if(!_qj){_xB+=_BK[0]+P_b6;}_xB+=_BK[1];if(!_qj){_xB+=";";}}}}return _xB;};function _jq(){var _vP=false;if(typeof window!=P_cD){if(typeof window.gCognosViewer!=P_cD&&typeof window.gCognosViewer.gbPromptRequestSubmitted!=P_cD){_vP=window.gCognosViewer.gbPromptRequestSubmitted;}else if(typeof window.gbPromptRequestSubmitted!=P_cD){_vP=window.gbPromptRequestSubmitted;}else{_vP=window.gbPromptRequestSubmitted=false;}}else if(typeof gbPromptRequestSubmitted!=P_cD){_vP=gbPromptRequestSubmitted;}return _vP;};function _k8(_vP){if(typeof window!=P_cD){if(typeof window.gCognosViewer!=P_cD&&typeof window.gCognosViewer.gbPromptRequestSubmitted!=P_cD){window.gCognosViewer.gbPromptRequestSubmitted=_vP;}else{window.gbPromptRequestSubmitted=_vP;}}else if(typeof gbPromptRequestSubmitted!=P_cD){gbPromptRequestSubmitted=_vP;}};function _dY(_o3,_to){if(needPromptValidation(_o3)){canSubmitPrompt();}if(typeof window!=P_cD&&typeof window.gCognosViewer!=P_cD&&typeof window.gCognosViewer.promptAction==P_c7){window.gCognosViewer.promptAction(_o3,_to);return true;}return false;};function _hM(){if(typeof SYSTEMPROPERTY_CREATE_CUSTOM_SCRIPTS_REFS!="undefined"&&SYSTEMPROPERTY_CREATE_CUSTOM_SCRIPTS_REFS===false){return;}if(!window.gCognosViewer){setTimeout(_hM,100);}else{var _Ft=document;var _DQ="formWarpRequest";var _ns=(window.gCognosViewer&&window.gCognosViewer.getId?window.gCognosViewer.getId():"");if(_Ft[_DQ+_ns]&&!_Ft[_DQ]){_Ft[_DQ]=_Ft[_DQ+_ns];if(typeof SYSTEMPROPERTY_CUSTOM_SCRIPTS_OVERRIDE_FORM_SUBMIT!="undefined"&&SYSTEMPROPERTY_CUSTOM_SCRIPTS_OVERRIDE_FORM_SUBMIT){_Ft[_DQ].submit=_dY;}}}};if(typeof SYSTEMPROPERTY_CREATE_CUSTOM_SCRIPTS_REFS=="undefined"||SYSTEMPROPERTY_CREATE_CUSTOM_SCRIPTS_REFS){_hM();};function CDispatcher(_tg){if(typeof _tg=="undefined"){this.m_oQueueManager=new CQueueManager();}else{this.m_oQueueManager=new CQueueManager(_tg);}};CDispatcher.prototype.createRequest=function(_nu,_qz,_tS,_uI){return new CRequest(_nu,_qz,_tS,_uI);};CDispatcher.prototype.dispatchRequest=function(CRequest){return this.m_oQueueManager.addRequestToQueue(CRequest);};CDispatcher.prototype.getRequestStatus=function(CRequest){return CRequest.getStatus();};CDispatcher.prototype.cancelRequest=function(CRequest){var _KW=this.m_oQueueManager.removeRequestFromQueue(CRequest.getId(),false);if(_KW>=1){return 1;}return _KW;};CDispatcher.prototype.setErrorHandlerFunction=function(_op){this.m_oQueueManager.setErrorHandlerFunction(_op);};function CRequest(_nu,_qz,_tS,_uI){this._jw=_nu;this._eL=_qz;this._ft=_tS;this._eu=generateUniqueId();this._ju=0;this._eG=null;this._lQ="HTML";this._dX=(typeof _uI!="undefined"?_uI:null);};CRequest.prototype.getId=function(){return this._eu;};CRequest.prototype.setResponseType=function(_t7){this._lQ=_t7;};CRequest.prototype.getResponseType=function(){return this._lQ;};CRequest.prototype.setStatus=function(_rn){try{this._ju=_rn;}catch(e){return false;}return true;};CRequest.prototype.getStatus=function(){return this._ju;};CRequest.prototype.getSC=function(){return this._eG;};CRequest.prototype.setSC=function(_on){try{this._eG=_on;}catch(e){return false;}return true;};CRequest.prototype.getGateway=function(){return this._jw;};CRequest.prototype.getRequestParams=function(){return this._eL;};CRequest.prototype.getCallbackFunction=function(){return this._ft;};CRequest.prototype.getExtraHeaders=function(){return this._dX;};var XMLHttpRequests;if(typeof XMLHttpRequests=="undefined"){XMLHttpRequests=new Array();};function CQueueManager(_tg){this._jn=new Array();this._d5=new Array();if(typeof _tg!="undefined"){this.iMaxNumSCs=_tg;}else{this.iMaxNumSCs=2;}for(var i=0;i<this.iMaxNumSCs;i++){var _Ie=XMLHttpRequests.length;var _z8=new CServerCommunicator(this,_Ie);XMLHttpRequests[_Ie]=new Array(null,_z8);this._d5[this._d5.length]=_z8;}this.errorHandlerFunction=null;};CQueueManager.prototype.setErrorHandlerFunction=function(_op){this.errorHandlerFunction=_op;};CQueueManager.prototype.addRequestToQueue=function(CRequest){var _FU=-1;try{CRequest.setStatus(1);this._jn[this._jn.length]=CRequest;_FU=0;var _Hs=this.sendNextRequest();if(_Hs==true){return 1;}else{CRequest.setStatus(-1);return _FU;}}catch(e){CRequest.setStatus(-1);if(typeof this.errorHandlerFunction=="function"){this.errorHandlerFunction("addRequestToQueue",e);}return _FU;}};CQueueManager.prototype.removeRequestFromQueue=function(_mh,_vA,_ok){try{var _GY=-1;for(var i=0;i<this._jn.length;i++){if(this._jn[i]!=null&&this._jn[i].getId()==_mh){_GY=i;break;}}if(_vA==true){var _tS=this._jn[_GY].getCallbackFunction();if(_tS&&typeof _tS.processResponse=="function"){_tS.processResponse(_ok);}else if(typeof _tS=="function"){try{_tS(_ok);}catch(e){if(typeof this.errorHandlerFunction=="function"){this.errorHandlerFunction("removeRequestFromQueue_1",e);}return-1;}}else if(typeof _tS=="string"){try{eval(_tS);}catch(e){if(typeof this.errorHandlerFunction=="function"){this.errorHandlerFunction("removeRequestFromQueue_1",e);}return-1;}}this._jn[_GY].setStatus(3);delete(this._jn[_GY]);return 1;}else{if(this._jn[_GY].getStatus()==2){try{this._d5[this._jn[_GY].getSC()].cancelRequest();}catch(e){if(typeof this.errorHandlerFunction=="function"){this.errorHandlerFunction("removeRequestFromQueue_2",e);}return 0;}}this._jn[_GY].setStatus(-2);delete(this._jn[i]);}var _Hs=this.sendNextRequest();if(_Hs==false){return 3;}return 2;}catch(e){if(typeof this.errorHandlerFunction=="function"){this.errorHandlerFunction("removeRequestFromQueue_3",e);}return-1;}};CQueueManager.prototype.sendNextRequest=function(){try{var _vQ=-1;var i=0;for(i=0;i<this._d5.length;i++){if(this._d5[i].getBusy()<=0){_vQ=i;break;}}if(_vQ>-1){var _K0=-1;for(i=0;i<this._jn.length;i++){if(this._jn[i]!=null&&this._jn[i].getStatus()==1){this._jn[i].setStatus(2);_K0=i;break;}}if(_K0>-1){this._jn[_K0].setSC(_vQ);this._d5[_vQ].sendRequest(this._jn[_K0]);}else{var _yp=false;for(i=0;i<this._jn.length;i++){if(this._jn[i]!=null&&(this._jn[i].getStatus()==1||this._jn[i].getStatus()==2)){_yp=true;break;}}if(_yp==false){this._jn=new Array();}}}}catch(e){if(typeof this.errorHandlerFunction=="function"){this.errorHandlerFunction("sendNextRequest",e);}return false;}return true;};function CServerCommunicator(CQueueManager,_vC){this._lZ=-1;this.m_oQueueManager=CQueueManager;this.m_oRequest=null;this._e9=_vC;};CServerCommunicator.prototype.sendRequest=function(_rt){this.setBusy(1);this.m_oRequest=_rt;var _EZ=this.getHttpRequestObj();_EZ.onreadystatechange=XMLHttpRequestReadyStateChanged;_EZ.open("POST",_rt.getGateway(),true);_EZ.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var _HW=_rt.getExtraHeaders();if(_HW){var _Kw=_HW.length;var _Hm=null;for(var i=0;i<_Kw;i++){_Hm=_HW[i];if(_Hm.length==2&&_Hm[0]&&_Hm[0].length&&_Hm[1]&&_Hm[1].length){_EZ.setRequestHeader(_Hm[0],_Hm[1]);}}}_EZ.send(_rt.getRequestParams());XMLHttpRequests[this._e9][0]=_EZ;};CServerCommunicator.prototype.getHttpRequestObj=function(){var _EZ=null;if("ActiveXObject" in window){_EZ=new ActiveXObject("Msxml2.XMLHTTP");}else{_EZ=new XMLHttpRequest();}return _EZ;};CServerCommunicator.prototype.getStatus=function(){return XMLHttpRequests[this._e9][0].status;};CServerCommunicator.prototype.getBusy=function(){return this._lZ;};CServerCommunicator.prototype.setBusy=function(_r4){try{this._lZ=_r4;}catch(e){return false;}return true;};CServerCommunicator.prototype.cancelRequest=function(){return XMLHttpRequests[this._e9][0].abort();};function XMLHttpRequestReadyStateChanged(){for(var i=0;i<XMLHttpRequests.length;i++){if(XMLHttpRequests[i]&&XMLHttpRequests[i][0]&&XMLHttpRequests[i][0].readyState==4){try{XMLHttpRequests[i][1].setBusy(0);var _t7=XMLHttpRequests[i][1].m_oRequest.getResponseType();var _C0=-1;if(_t7=="HTML"){_C0=XMLHttpRequests[i][1].m_oQueueManager.removeRequestFromQueue(XMLHttpRequests[i][1].m_oRequest.getId(),true,XMLHttpRequests[i][0].responseText);}else if(_t7=="XML"){_C0=XMLHttpRequests[i][1].m_oQueueManager.removeRequestFromQueue(XMLHttpRequests[i][1].m_oRequest.getId(),true,XMLHttpRequests[i][0].responseXML);}else if(_t7=="XMLHTML"){_C0=XMLHttpRequests[i][1].m_oQueueManager.removeRequestFromQueue(XMLHttpRequests[i][1].m_oRequest.getId(),true,new Array(XMLHttpRequests[i][0].responseXML,XMLHttpRequests[i][0].responseText));}else if(_t7=="HTTP"){_C0=XMLHttpRequests[i][1].m_oQueueManager.removeRequestFromQueue(XMLHttpRequests[i][1].m_oRequest.getId(),true,XMLHttpRequests[i][0]);}XMLHttpRequests[i][0]=null;if(_C0>=1){XMLHttpRequests[i][1].m_oQueueManager.sendNextRequest();}else{return false;}}catch(e){return false;}return true;}}return false;};function generateUniqueId(){return(Date.parse((new Date()).toString())/1000000)+Math.random();};function CRange(_rp,_qP,_oS,_n3,_mK,_rI,_rD,_sA,_nF,_qW,_oM,_mB){this.setCVId(_mB);this.m_oSubmit=_rp;this._l0=_mK;this._j3=_rI;this._lE=_rD;this._j7=_qP;this._kf=_oS;this._i4=_n3;this._gP=_sA;this._jx=_nF;this._l1=false;this._dx=_qW;if(_oM){this._g0=_oM;}else{this._g0=null;}this.initControls();};CRange.prototype=new CPromptControl();function CRange_toGotFocus(){if(this._l0){this._l0.checked=true;this.rangeNotify();}};function CRange_fromGotFocus(){if(this._j7){this._j7.checked=true;this.rangeNotify();}};function CRange_initControls(){if(this._g0){if((this._g0==RANGE_BOUND_VALUE)||(this._g0==RANGE_EQUAL_VALUE)){this.toGotFocus();this.fromGotFocus();}else if(this._g0==RANGE_START_VALUE){this.fromGotFocus();}else if(this._g0==RANGE_END_VALUE){this.toGotFocus();}}else{if(this.toGetValue()!=P_ai){this.toGotFocus();}if(this.fromGetValue()!=P_ai){this.fromGotFocus();}}};function CRange_toGetValue(){var _nK=P_ai;if(this.isRangeReversed()){_nK=new String(this._kf.sGetValue());}else{_nK=this._j3.sGetValue();}if(this.getDataType()=='date'&&typeof this._j3==P_cZ&&this._j3._if===0){_nK=_nK.replace(/T\d\d:\d\d:\d\d\.\d\d\d\s*$/,"T23:59:59.999");}return _nK;};function CRange_fromGetValue(){var _nK=P_ai;if(this.isRangeReversed()){_nK=this._j3.sGetValue();}else{_nK=new String(this._kf.sGetValue());}if(this.getDataType()=='date'&&typeof this._j3==P_cZ&&this._j3._if===0){_nK=_nK.replace(/T\d\d:\d\d:\d\d\.\d\d\d\s*$/,"T00:00:00.000");}return _nK;};function CRange_toGetFormatValue(){if(this.isRangeReversed()){return this._kf.sGetFormatValue();}else{return this._j3.sGetFormatValue();}};function CRange_fromGetFormatValue(){if(this.isRangeReversed()){return this._j3.sGetFormatValue();}else{return this._kf.sGetFormatValue();}};function CRange_sGetFormatValue(){var s=P_ai;var _IE=(this.fromGetValue().toString()=='false')?P_ai:this.fromGetValue();var _Cv=(this.toGetValue().toString()=='false')?P_ai:this.toGetValue();var _Cr=this.fromGetFormatValue();var _x0=this.toGetFormatValue();var _FC='equal to ^1';var _Co='greater than or equal to ^1';var _Bl='less than or equal to ^1';var _B2='between ^1 and ^2';if(typeof PMT_RNG_FILTER_LESS_THAN_EQUAL_TO_STRING==P_bJ){_Bl=PMT_RNG_FILTER_LESS_THAN_EQUAL_TO_STRING;}if(typeof PMT_RNG_FILTER_EQUAL_STRING==P_bJ){_FC=PMT_RNG_FILTER_EQUAL_STRING;}if(typeof PMT_RNG_FILTER_BETWEEN_STRING==P_bJ){_B2=PMT_RNG_FILTER_BETWEEN_STRING;}if(typeof PMT_RNG_FILTER_GREATER_THAN_EQUAL_TO_STRING==P_bJ){_Co=PMT_RNG_FILTER_GREATER_THAN_EQUAL_TO_STRING;}switch(this.getFilterType(_IE,_Cv)){case 0:s=sReplaceToken(_FC,"^1",_Cr);break;case 1:s=sReplaceToken(_Co,"^1",_Cr);break;case 2:s=sReplaceToken(_Bl,"^1",_x0);break;case 3:s=sReplaceToken(_B2,"^1",_Cr);s=sReplaceToken(s,"^2",_x0);break;default:return false;}return s;};function CRange_sGetValue(){var s=P_ai;var _IE=(this.fromGetValue().toString()=='false')?P_ai:this.fromGetValue();var _Cv=(this.toGetValue().toString()=='false')?P_ai:this.toGetValue();var _v3=P_ai;if(this._gP==null){_v3="'";}switch(this.getFilterType(_IE,_Cv)){case 0:s=_v3+encodeURIComponent(_IE)+_v3;break;case 1:s=_v3+encodeURIComponent(_IE)+_v3+P_b6;break;case 2:s=P_b6+_v3+encodeURIComponent(_Cv)+_v3;break;case 3:s=_v3+encodeURIComponent(_IE)+_v3+" : "+_v3+encodeURIComponent(_Cv)+_v3;break;default:return false;}return s;};function CRange_getFilterType(_tM,_s2){var _Kf=null;var _xM=false;var _IE=_tM;var _BV=false;var _Cv=_s2;if(this._jx==true){if(_IE!=P_ai){_xM=true;}if(_Cv!=P_ai){_BV=true;}}else{if((this._j7.checked==true)&&(_IE!=P_ai)){_xM=true;}if((this._l0.checked==true)&&(_Cv!=P_ai)){_BV=true;}}if((_xM==true)&&(_BV==false)){_Kf=P_de;return _Kf;}else if((_xM==false)&&(_BV==true)){_Kf=P_cF;return _Kf;}else if((_xM==true)&&(_BV==true)){if(_IE==_Cv){_Kf=P_bi;}else{_Kf=P_ar;}return _Kf;}return false;};function CRange_getDataType(){return this._gP;};function CRange_preProcess(){if(this._dx==P_ak){var _Lf=P_ai;var _IE=this.fromGetValue();var _Cr=this.fromGetFormatValue();var _Cv=this.toGetValue();var _x0=this.toGetFormatValue();switch(this.getFilterType(_IE,_Cv)){case 0:_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(_Cr)+'"';_Lf+=' useValue="'+sXmlEncode(_IE)+'"';_Lf+=' selected="true" />';break;case 1:_Lf+='<selectUnboundedEndRange selected="true">';_Lf+='<start displayValue="'+sXmlEncode(_Cr)+'" useValue="'+sXmlEncode(_IE)+'"/>';_Lf+='</selectUnboundedEndRange>';break;case 2:_Lf+='<selectUnboundedStartRange selected="true">';_Lf+='<end displayValue="'+sXmlEncode(_x0)+'" useValue="'+sXmlEncode(_Cv)+'"/>';_Lf+='</selectUnboundedStartRange>';break;case 3:_Lf+='<selectBoundRange selected="true">';_Lf+='<start displayValue="'+sXmlEncode(_Cr)+'" useValue="'+sXmlEncode(_IE)+'"/>';_Lf+='<end displayValue="'+sXmlEncode(_x0)+'" useValue="'+sXmlEncode(_Cv)+'"/>';_Lf+='</selectBoundRange>';break;default:break;}addSelectChoices(this.m_oSubmit,_Lf);}else{this.m_oSubmit.value=this.sGetValue();}};function CRange_checkData(){var _nF=this.isRequired();var _CQ=true;var _KS=true;if((this._j7)&&(this._l0)){if(this._j7.checked==true){_CQ=this._kf.isValid();}if(this._l0.checked==true){_KS=this._j3.isValid();}}else{_CQ=this._kf.isValid();_KS=this._j3.isValid();}if((_nF==true)&&((_CQ=false)||(_KS==false))){this._l1=false;this.notify(gFAIL,this);return false;}this._l1=true;this.notify(gPASS,this);return true;};function CRange_update(){var _nF=this.isRequired();var _CQ=this._kf.getValid();var _KS=this._j3.getValid();if((_nF==true)&&((_CQ=false)||(_KS==false))){this._l1=false;return false;}this._l1=true;return true;};function CRange_hasValue(){if((this._j7)&&(this._l0)){if((this._j7.checked==true)&&(this._kf.hasValue())||(this._l0.checked==true)&&(this._j3.hasValue())){return true;}else{return false;}}else{if((this._kf.hasValue())&&(this._j3.hasValue())){return true;}else{return false;}}};function CRange_rangeNotify(){this.notify(P_bX,this);};function CRange_fromCheckRadioState(_mG){_mG=(_mG)?_mG:((event)?event:null);if(_mG){var _rx=(_mG.keyCode)?_mG.keyCode:_mG.which;if((_rx!='0')&&(_rx!='9')&&(_rx!='16')){this.fromGotFocus();}}};function CRange_fromKeyPress(_r3){if(typeof event!=P_cD){if((_r3=='8')){this.fromCheckRadioState(event);}}return true;};function CRange_toCheckRadioState(_mG){_mG=(_mG)?_mG:((event)?event:null);if(_mG){var _rx=(_mG.keyCode)?_mG.keyCode:_mG.which;if((_rx!='0')&&(_rx!='9')&&(_rx!='16')){this.toGotFocus();}}};function CRange_toKeyPress(_r3){if(typeof event!=P_cD){if((_r3=='8')){this.toCheckRadioState(event);}}return true;};function CRange_isRangeReversed(_nw,to){if(typeof _nw==P_cD){_nw=this._kf.sGetValue();}if(typeof to==P_cD){to=this._j3.sGetValue();}if(_nw==null||_nw==P_ai||to==null||to==P_ai||(this._l0&&this._l0.checked==false)||(this._j7&&this._j7.checked==false)){return false;}var _JL;var _J1;if(this.getDataType()=='number'||this.getDataType()=='currency'||this.getDataType()=='integer'||this.getDataType()=='natural'||this.getDataType()=='whole'||this.getDataType()=='percentage'){_JL=(+sParseByDataType(_nw,this.getDataType(),true));_J1=(+sParseByDataType(to,this.getDataType(),true));}else if(this.getDataType()=='interval'){if(_nw=="000 00:00:00.000"||to=="000 00:00:00.000"){return false;}_JL=parseInt(_nw.substring(0,_nw.indexOf(P_br)),10);_J1=parseInt(to.substring(0,to.indexOf(P_br)),10);if(_JL>_J1){return true;}_JL=parseInt(_nw.substring((_nw.indexOf(P_br)+1),_nw.indexOf(P_b6)),10);_J1=parseInt(to.substring((to.indexOf(P_br)+1),to.indexOf(P_b6)),10);if(_JL>_J1){return true;}_JL=parseInt(_nw.substring((_nw.indexOf(P_b6)+1),_nw.lastIndexOf(P_b6)),10);_J1=parseInt(to.substring((to.indexOf(P_b6)+1),to.lastIndexOf(P_b6)),10);if(_JL>_J1){return true;}_JL=parseInt(_nw.substring((_nw.lastIndexOf(P_b6)+1),_nw.indexOf(P_A)),10);_J1=parseInt(to.substring((to.lastIndexOf(P_b6)+1),to.indexOf(P_A)),10);if(_JL>_J1){return true;}_JL=parseInt(_nw.substr((_nw.indexOf(P_A)+1)),10);_J1=parseInt(to.substr((to.indexOf(P_A)+1)),10);if(_JL>_J1){return true;}return false;}else{if((bNumbersOnly(_nw)==true)&&(bNumbersOnly(to)==true)){_JL=parseFloat(_nw);_J1=parseFloat(to);}else{_JL=_nw;_J1=to;}}return(_JL>_J1);};CRange.prototype.toGotFocus=CRange_toGotFocus;CRange.prototype.fromGotFocus=CRange_fromGotFocus;CRange.prototype.toGetValue=CRange_toGetValue;CRange.prototype.fromGetValue=CRange_fromGetValue;CRange.prototype.toGetFormatValue=CRange_toGetFormatValue;CRange.prototype.fromGetFormatValue=CRange_fromGetFormatValue;CRange.prototype.sGetFormatValue=CRange_sGetFormatValue;CRange.prototype.sGetValue=CRange_sGetValue;CRange.prototype.getFilterType=CRange_getFilterType;CRange.prototype.getDataType=CRange_getDataType;CRange.prototype.preProcess=CRange_preProcess;CRange.prototype.checkData=CRange_checkData;CRange.prototype.update=CRange_update;CRange.prototype.initControls=CRange_initControls;CRange.prototype.hasValue=CRange_hasValue;CRange.prototype.rangeNotify=CRange_rangeNotify;CRange.prototype.fromCheckRadioState=CRange_fromCheckRadioState;CRange.prototype.fromKeyPress=CRange_fromKeyPress;CRange.prototype.toCheckRadioState=CRange_toCheckRadioState;CRange.prototype.toKeyPress=CRange_toKeyPress;CRange.prototype.isRangeReversed=CRange_isRangeReversed;var P_bi=0;var P_de=1;var P_cF=2;var P_ar=3;var RANGE_UNKNOWN_VALUE=0;var RANGE_START_VALUE=1;var RANGE_END_VALUE=2;var RANGE_BOUND_VALUE=3;var RANGE_EQUAL_VALUE=4;var RANGE_NO_VALUE=5;function rangeNotify(){if(typeof checkRanges!=P_cD){checkRanges();}};function checkRanges(){if(typeof rangeObserverArray!=P_cD){var _Kw=rangeObserverArray.length;var k=0;for(k=0;k<_Kw;k++){var _Ck=eval(rangeObserverArray[k]);_Ck.update();}}};function CMultipleRange(_qK,_os,_rp,_nF,_qW,_tY,_s7,_qv,_qg,_tQ,_mB){this.setCVId(_mB);this.m_oRangeControl=_qK;this.m_oLstChoices=_os;this.m_oSubmit=_rp;this._jx=_nF;this._l1=false;this._dx=_qW;this._k0=_tY;this._jj="clsFeedbackWidgetParseErrorArrowLeft";this._dJ=_s7;this.m_sRef=_qv;this._f7=new Array();if(_qg){this._iT=_qg;}if(_tQ){this._fn=_tQ;}this.checkData();if(this._dJ){this._hq=false;this._iU=0;this._hA=window.setInterval('multipleRange'+this.m_sRef+'.testResize()',250);}this.checkInsertRemove();};CMultipleRange.prototype=new CPromptControl();function CMultipleRange_selectAll(){for(var i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=true;}this.checkInsertRemove();};function CMultipleRange_deSelectAll(){for(var i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=false;}this.checkInsertRemove();};function CMultipleRange_insert(){var _v8=decodeURIComponent(this.m_oRangeControl.sGetValue());var _xR=this.m_oRangeControl.sGetFormatValue();if((_v8)&&(_xR)){this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_xR,_v8,false,false);this.resizeList();this.resizeList();}else{if(document.getElementById){animateValueMissing("tdRangeFrom"+this.m_sRef,"tdRangeTo"+this.m_sRef);}}this.checkData();this.checkInsertRemove();};function CMultipleRange_remove(){this.removeSelectedChoices();this.resizeList();this.checkInsertRemove();};function CMultipleRange_preProcess(){if(this._dx==P_ak){var _Lf=P_ai;if(this._f7.length>0){for(var j=0;j<this._f7.length;j++){switch(this._f7[j].getType()){case 0:_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(this._f7[j].getStartDisplayValue())+'"';_Lf+=' useValue="'+sXmlEncode(this._f7[j].getStartUseValue())+'"';if(this._f7[j].selected==true){_Lf+=' selected="true" />';}else{_Lf+=' selected="false" />';}break;case 1:_Lf+='<selectUnboundedEndRange';if(this._f7[j].selected==true){_Lf+=' selected="true" >';}else{_Lf+=' selected="false" >';}_Lf+='<start displayValue="'+sXmlEncode(this._f7[j].getStartDisplayValue())+'" useValue="'+sXmlEncode(this._f7[j].getStartUseValue())+'"/>';_Lf+='</selectUnboundedEndRange>';break;case 2:_Lf+='<selectUnboundedStartRange';if(this._f7[j].selected==true){_Lf+=' selected="true" >';}else{_Lf+=' selected="false" >';}_Lf+='<end displayValue="'+sXmlEncode(this._f7[j].getEndDisplayValue())+'" useValue="'+sXmlEncode(this._f7[j].getEndUseValue())+'"/>';_Lf+='</selectUnboundedStartRange>';break;case 3:_Lf+='<selectBoundRange';if(this._f7[j].selected==true){_Lf+=' selected="true" >';}else{_Lf+=' selected="false" >';}_Lf+='<start displayValue="'+sXmlEncode(this._f7[j].getStartDisplayValue())+'" useValue="'+sXmlEncode(this._f7[j].getStartUseValue())+'"/>';_Lf+='<end displayValue="'+sXmlEncode(this._f7[j].getEndDisplayValue())+'" useValue="'+sXmlEncode(this._f7[j].getEndUseValue())+'"/>';_Lf+='</selectBoundRange>';break;default:break;}}}addSelectChoices(this.m_oSubmit,_Lf);}else{var i=0;for(i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=true;}}};function CMultipleRange_checkData(){if((this._jx==true)&&(this.m_oLstChoices.options.length===0)){this._l1=false;this.checkFail();return false;}else{this._l1=true;this.checkPass();return true;}};function CMultipleRange_testResize(){if(this._hq==false){if(this._dJ.width!=0||this._iU<100){this._hq=true;this.resizeList();}else{this._iU++;}}else{window.clearInterval(this._hA);}};function CMultipleRange_resizeList(){if(this._dJ){if(this.m_oLstChoices.style.tableLayout!='fixed'){this.m_oLstChoices.style.width='auto';}if(this._dJ.width<200){this.m_oLstChoices.style.width='200px';}}};function CMultipleRange_catchDeleteKey(_ug){if(_ug==46){this.removeChoiceList();}};function CMultipleRange_checkInsertRemove(){if(this._iT){if(this._jx==true){if((this.m_oRangeControl.getValid()==true)&&this.m_oRangeControl.hasValue()){this._iT.disabled=false;}else{this._iT.disabled=true;this._iT.className="clsInsertRemoveButton";}}else{if((this.m_oRangeControl.getValid()==true)&&this.m_oRangeControl.hasValue()){this._iT.disabled=false;}else{this._iT.disabled=true;this._iT.className="clsInsertRemoveButton";}}}if(this._fn){if(this.m_oLstChoices.selectedIndex==-1){this._fn.disabled=true;this._fn.className="clsInsertRemoveButton";}else{this._fn.disabled=false;}}};function CMultipleRange_addSuperRangeLiteral(_uS,_t0,_pJ,_nW,_sA){var _HM=new CSuperRangeLiteral(_uS,_t0,_pJ,_nW,_sA);this._f7=this._f7.concat(_HM);var _FD=document.createElement("option");_FD.text=_HM.getLabel();_FD.value=_HM.getLiteral();if(window.ie){this.m_oLstChoices.add(_FD);}else{this.m_oLstChoices.add(_FD,null);}};function CMultipleRange_insertSuperRangeLiteral(){var _uS=null;var _t0=null;var _pJ=null;var _nW=null;var _sA=null;var _qK=this.m_oRangeControl;if(_qK.isRequired()||(_qK._j7.checked==true)){var _xr=_qK.fromGetValue();if((_xr!=P_ai)||(_xr!=null)||(_xr!=false)){_uS=_xr;}var _vW=_qK.fromGetFormatValue();if((_vW!=P_ai)||(_vW!=null)||(_vW!=false)){_t0=_vW;}}if(_qK.isRequired()||(_qK._l0.checked==true)){var _GM=_qK.toGetValue();if((_GM!=P_ai)||(_GM!=null)||(_GM!=false)){_pJ=_GM;}var _AA=_qK.toGetFormatValue();if((_AA!=P_ai)||(_AA!=null)||(_AA!=false)){_nW=_AA;}}if(_qK.isRangeReversed(_uS,_pJ)){var _Le=_uS;_uS=_pJ;_pJ=_Le;var _Jv=_t0;_t0=_nW;_nW=_Jv;}this.addSuperRangeLiteral(_uS,_t0,_pJ,_nW,_sA);};function CMultipleRange_removeSuperRangeLiteral(_pu){var _ya=this._f7.slice(0,_pu);var _zY=this._f7.slice(_pu+1);this._f7=_ya.concat(_zY);};function CMultipleRange_initChoiceList(){this.m_oLstChoices.options.length=0;for(var j=0;j<this._f7.length;j++){var _v8=this._f7[j].getLiteral();var _xR=this._f7[j].getLabel();if((_v8)&&(_xR)){this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_xR,_v8,false,false);}}this.checkData();this.resizeList();this.checkInsertRemove();};function CMultipleRange_insertChoiceList(){this.insertSuperRangeLiteral();this.checkData();this.resizeList();this.checkInsertRemove();};function CMultipleRange_removeChoiceList(){var sl=this.m_oLstChoices.selectedIndex;if(sl!=-1){for(var i=this.m_oLstChoices.options.length-1;i>-1;i--){if(this.m_oLstChoices.options[i].selected==true){this.m_oLstChoices.options[i]=null;this.removeSuperRangeLiteral(i);}}}else{var _AS="sPrompt_Select_Item_First";if(typeof PMT_UIM_sPrompt_Select_Item_First==P_bJ){_AS=PMT_UIM_sPrompt_Select_Item_First;}alert(_AS);}this.checkData();this.resizeList();this.checkInsertRemove();};CMultipleRange.prototype.selectAll=CMultipleRange_selectAll;CMultipleRange.prototype.deSelectAll=CMultipleRange_deSelectAll;CMultipleRange.prototype.insert=CMultipleRange_insert;CMultipleRange.prototype.remove=CMultipleRange_remove;CMultipleRange.prototype.preProcess=CMultipleRange_preProcess;CMultipleRange.prototype.checkData=CMultipleRange_checkData;CMultipleRange.prototype.resizeList=CMultipleRange_resizeList;CMultipleRange.prototype.catchDeleteKey=CMultipleRange_catchDeleteKey;CMultipleRange.prototype.checkInsertRemove=CMultipleRange_checkInsertRemove;CMultipleRange.prototype.testResize=CMultipleRange_testResize;CMultipleRange.prototype.addSuperRangeLiteral=CMultipleRange_addSuperRangeLiteral;CMultipleRange.prototype.insertSuperRangeLiteral=CMultipleRange_insertSuperRangeLiteral;CMultipleRange.prototype.removeSuperRangeLiteral=CMultipleRange_removeSuperRangeLiteral;CMultipleRange.prototype.initChoiceList=CMultipleRange_initChoiceList;CMultipleRange.prototype.insertChoiceList=CMultipleRange_insertChoiceList;CMultipleRange.prototype.removeChoiceList=CMultipleRange_removeChoiceList;function CRangeLiteral(_rE,_qS){this._d9=_rE;this._i3=_qS;this._jK=this.parseFilterType(_rE);this._hz=this.getFirstValue();this._k6=this.getSecondValue();};function CRangeLiteral_parseFilterType(s){var _Ge=s.indexOf(P_b6);var _pP=null;if(_Ge===0){_pP=P_cF;this.setFirstValue(false);this.setSecondValue(decodeURIComponent(stripSingleQuote(s.substring(1,s.length))));}else if(_Ge==(s.length-1)){_pP=P_de;this.setFirstValue(decodeURIComponent(stripSingleQuote(s.substring(0,s.length-1))));this.setSecondValue(false);}else if(_Ge==-1){_pP=P_bi;this.setFirstValue(decodeURIComponent(stripSingleQuote(s)));this.setSecondValue(decodeURIComponent(stripSingleQuote(s)));}else{var _A2=/\s:\s/g;var _Ae=s.split(_A2);if(_Ae.length==2){_pP=P_ar;this.setFirstValue(decodeURIComponent(stripSingleQuote(_Ae[0])));this.setSecondValue(decodeURIComponent(stripSingleQuote(_Ae[1])));}else{_pP=P_bi;this.setFirstValue(decodeURIComponent(stripSingleQuote(s)));this.setSecondValue(decodeURIComponent(stripSingleQuote(s)));}}return _pP;};function CRangeLiteral_getFormatValue(){var s=P_ai;var _IE=this.getFirstValue();var _Cv=this.getSecondValue();var _FC='equal to ^1';var _Co='greater than or equal to ^1';var _Bl='less than or equal to ^1';var _B2='between ^1 and ^2';if(typeof PMT_RNG_FILTER_LESS_THAN_EQUAL_TO_STRING==P_bJ){_Bl=PMT_RNG_FILTER_LESS_THAN_EQUAL_TO_STRING;}if(typeof PMT_RNG_FILTER_EQUAL_STRING==P_bJ){_FC=PMT_RNG_FILTER_EQUAL_STRING;}if(typeof PMT_RNG_FILTER_BETWEEN_STRING==P_bJ){_B2=PMT_RNG_FILTER_BETWEEN_STRING;}if(typeof PMT_RNG_FILTER_GREATER_THAN_EQUAL_TO_STRING==P_bJ){_Co=PMT_RNG_FILTER_GREATER_THAN_EQUAL_TO_STRING;}switch(this.getFilterType()){case 0:s=sReplaceToken(_FC,"^1",_IE);break;case 1:s=sReplaceToken(_Co,"^1",_IE);break;case 2:s=sReplaceToken(_Bl,"^1",_Cv);break;case 3:s=sReplaceToken(_B2,"^1",_IE);s=sReplaceToken(s,"^2",_Cv);break;default:return false;}return s;};function CRangeLiteral_setLabel(s){this._i3=s;};function CRangeLiteral_getLabel(){return this._i3;};function CRangeLiteral_setFilterType(s){this._jK=s;};function CRangeLiteral_getFilterType(){return this._jK;};function CRangeLiteral_getFirstValue(){return this._hz;};function CRangeLiteral_getSecondValue(){return this._k6;};function CRangeLiteral_setFirstValue(s){this._hz=s;};function CRangeLiteral_setSecondValue(s){this._k6=s;};CRangeLiteral.prototype.getFirstValue=CRangeLiteral_getFirstValue;CRangeLiteral.prototype.getSecondValue=CRangeLiteral_getSecondValue;CRangeLiteral.prototype.setFirstValue=CRangeLiteral_setFirstValue;CRangeLiteral.prototype.setSecondValue=CRangeLiteral_setSecondValue;CRangeLiteral.prototype.getLabel=CRangeLiteral_getLabel;CRangeLiteral.prototype.setLabel=CRangeLiteral_setLabel;CRangeLiteral.prototype.parseFilterType=CRangeLiteral_parseFilterType;CRangeLiteral.prototype.setFilterType=CRangeLiteral_setFilterType;CRangeLiteral.prototype.getFilterType=CRangeLiteral_getFilterType;CRangeLiteral.prototype.getFormatValue=CRangeLiteral_getFormatValue;var P_b7=null;var P_b3=null;function animateValueMissing(s1,s2){var _Kn=document.getElementById(s1);var _Ko=document.getElementById(s2);P_b7=_Kn;P_b3=_Ko;if((P_b7)&&(P_b7)){animate();}};function animate(){P_J=0;P_n=setInterval(animateEffect,P_cU);};var P_h=5;var P_J=1;var P_cU=100;var P_n=null;function animateEffect(){if(P_J==P_h){P_b7.style.filter="glow(color=#990000, strength=0, enabled=false)";P_b3.style.filter="glow(color=#990000, strength=0, enabled=false)";clearInterval(P_n);return;}P_b7.style.filter="glow(color=#FF6600, strength="+P_J+", enabled=true)";P_b3.style.filter="glow(color=#FF6600, strength="+P_J+", enabled=true)";P_J++;};function CSuperRangeLiteral(_uS,_t0,_pJ,_nW,_sA){this._eV=_uS;this._d2=_t0;this._eK=_pJ;this._do=_nW;this._gP=_sA;this._iJ=this.getType();};function CSuperRangeLiteral_getStartUseValue(){return this._eV;};function CSuperRangeLiteral_setStartUseValue(_uS){this._eV=_uS;};function CSuperRangeLiteral_getStartDisplayValue(){return this._d2;};function CSuperRangeLiteral_setStartDisplayValue(_t0){this._d2=_t0;};function CSuperRangeLiteral_getEndUseValue(){return this._eK;};function CSuperRangeLiteral_setEndUseValue(_pJ){this._eK=_pJ;};function CSuperRangeLiteral_getEndDisplayValue(){return this._do;};function CSuperRangeLiteral_setEndDisplayValue(_nW){this._do=_nW;};function CSuperRangeLiteral_getType(){var _IE=(this.getStartUseValue()!=null)?this.getStartUseValue().toString():null;var _Cv=(this.getEndUseValue()!=null)?this.getEndUseValue().toString():null;var _GI=false;if((_IE)&&(!_Cv)){_GI=P_de;}else if((!_IE)&&(_Cv)){_GI=P_cF;}else if((_IE)&&(_Cv)){if(_IE==_Cv){_GI=P_bi;}else{_GI=P_ar;}}return _GI;};function CSuperRangeLiteral_getLabel(){var s=P_ai;var _IE=this.getStartDisplayValue();var _Cv=this.getEndDisplayValue();var _FC='equal to ^1';var _Co='greater than or equal to ^1';var _Bl='less than or equal to ^1';var _B2='between ^1 and ^2';if(typeof PMT_RNG_FILTER_LESS_THAN_EQUAL_TO_STRING==P_bJ){_Bl=PMT_RNG_FILTER_LESS_THAN_EQUAL_TO_STRING;}if(typeof PMT_RNG_FILTER_EQUAL_STRING==P_bJ){_FC=PMT_RNG_FILTER_EQUAL_STRING;}if(typeof PMT_RNG_FILTER_BETWEEN_STRING==P_bJ){_B2=PMT_RNG_FILTER_BETWEEN_STRING;}if(typeof PMT_RNG_FILTER_GREATER_THAN_EQUAL_TO_STRING==P_bJ){_Co=PMT_RNG_FILTER_GREATER_THAN_EQUAL_TO_STRING;}switch(this.getType()){case 0:s=sReplaceToken(_FC,"^1",_IE);break;case 1:s=sReplaceToken(_Co,"^1",_IE);break;case 2:s=sReplaceToken(_Bl,"^1",_Cv);break;case 3:s=sReplaceToken(_B2,"^1",_IE);s=sReplaceToken(s,"^2",_Cv);break;default:return false;}return s;};function CSuperRangeLiteral_getLiteral(){var _IE=this.getStartUseValue();var _Cv=this.getEndUseValue();var _rE=P_ai;if(_IE){_rE+=_IE;}_rE+=P_b6;if(_Cv){_rE+=_Cv;}return _rE;};CSuperRangeLiteral.prototype.getStartUseValue=CSuperRangeLiteral_getStartUseValue;CSuperRangeLiteral.prototype.setStartUseValue=CSuperRangeLiteral_setStartUseValue;CSuperRangeLiteral.prototype.getStartDisplayValue=CSuperRangeLiteral_getStartDisplayValue;CSuperRangeLiteral.prototype.setStartDisplayValue=CSuperRangeLiteral_setStartDisplayValue;CSuperRangeLiteral.prototype.getEndUseValue=CSuperRangeLiteral_getEndUseValue;CSuperRangeLiteral.prototype.setEndUseValue=CSuperRangeLiteral_setEndUseValue;CSuperRangeLiteral.prototype.getEndDisplayValue=CSuperRangeLiteral_getEndDisplayValue;CSuperRangeLiteral.prototype.setEndDisplayValue=CSuperRangeLiteral_setEndDisplayValue;CSuperRangeLiteral.prototype.getType=CSuperRangeLiteral_getType;CSuperRangeLiteral.prototype.getLabel=CSuperRangeLiteral_getLabel;CSuperRangeLiteral.prototype.getLiteral=CSuperRangeLiteral_getLiteral;function CText(_vD,_pp,_tJ,_sA,_pe,_nF,_qW,_oE,_qM,_uC,_vO,_qv,_tE,_mB){this.setCVId(_mB);this.m_oSubmit=_vD;this.m_oForm=_pp;this.m_sRef=_qv;if(_vO){this._em=_vO;}else{this._em=_pp;}this._gP=_sA;this._e3=false;this._eU=true;if(_uC==false){this._eU=false;}this._jx=_nF;this._l1=false;this._dx=_qW;this._lO=false;_pe=sDecodeU003(_pe);this._jW=_pe;if(_oE==true){this._lO=true;}this._e5=true;if(_qM==false){this._e5=false;}this._lw=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);this._ho=_tJ;if(this._ho!=null){this._kF=new Image();this._kF.src=this._lw+"/prompting/images/error_timed_small_off.gif";this._kx=new Image();this._kx.src=this._lw+"/prompting/images/error_timed_small.gif";}initParsingRegularExpressions();if(_pe){var _yu=convertSQLToLocale(_pe,this._gP);if(this.bParse(_yu,this._gP)==true){this.draw(this._jW);}else{this.draw(_yu);}}else{this._jW=P_ai;}this.setReadOnly(_tE);this.checkData();};CText.prototype=new CPromptControl();function CText_setCurrentValue(){this.m_oForm.value=this._jW;};function CText_bParse(_nK,_sA){var _oX=sParseByDataType(_nK,_sA,this._eU);if(_oX==false&&typeof(_oX)=="boolean"){this._e3=false;return false;}else{_oX=_oX.toString();var z=_oX.search(P_cJ);if(z!=-1){this._e3=true;}else{this._e3=false;}this._jW=_oX;return true;}};function sParseByDataType(_nK,_sA,_uC){var _oX=P_ai;switch(_sA){case 'number':_oX=sParseNumber(_nK);break;case 'currency':_oX=sParseCurrency(_nK);break;case 'integer':_oX=sParseInteger(_nK);break;case 'natural':_oX=sParseNaturalNumber(_nK);break;case 'whole':_oX=sParseWholeNumber(_nK);break;case 'percentage':_oX=sParsePercentNumber(_nK);break;default:return _nK;}if(_oX==false&&typeof(_oX)=="boolean"){return(false);}if(!_uC&&bIsZero(_oX)){return(false);}return(_oX);};function CText_setCurrentFocus(_uk){this._kL=_uk;this._kL.select();};function CText_lostFocus(){if(this.bParse(this.m_oForm.value,this._gP)!=false){if(this.sGetFormatValue()!=false){this.m_oForm.value=this.sGetFormatValue();}}if(this._lO){this.checkData();}};function CText_draw(_nK){this.m_oForm.value=getFormatByDataType(_nK,this._gP,this._e3,this._e5);};function CText_keyPress(_mG){_mG=(_mG)?_mG:((event)?event:null);if(_mG){var _rx=(_mG.keyCode)?_mG.keyCode:_mG.which;if(_rx=='8'){this.checkData();}else if(_rx=='13'&&this._dx!=P_cM){var _qy=this.getCV();if(!this._lO&&_qy&&(typeof _qy.canSubmitPrompt==P_c7)&&_qy.canSubmitPrompt()){this.getCV().promptAction(K_ACTION_NEXT);}}}return true;};function CText_startCheckDataInterval(_vK){this._jW=this.m_oForm.value;var _Iu=this.m_sRef+".checkValueChange()";this._k9=setInterval(_Iu,_vK);};function CText_endCheckDataInterval(){if(typeof this._k9!=P_cD){clearInterval(this._k9);}this.checkData();};function CText_checkValueChange(){if(this.m_oForm.value!=this._jW){this.endCheckDataInterval();}};function CText_checkPass(){if((this._ho!=null)&&(this._ho.src!=this._kF.src)){this._ho.src=this._kF.src;}if(this._em.className){this._em.className=P_ai;}this.notify(gPASS,this);};function CText_checkFail(){if(this._ho!=null){this._ho.src=this._kx.src+'?'+Math.random();}this._em.className="clsTextWidgetParseError";this.notify(gFAIL,this);};function CText_checkData(){if((this._jx==true)&&(this.m_oForm.value==P_ai)){this._l1=false;this.checkFail();return false;}else{var _zs=/[\n\f\r]+/;var _Jh=this.m_oForm.value.replace(/[\n\f\r\s]+$/,'').split(_zs);if(_Jh.length>1){var _Dt=true;for(var i=0;i<_Jh.length;i++){var _xV=sParseByDataType(_Jh[i],this._gP);if(_xV==false){_Dt=false;}}if(_Dt==false){this._l1=false;this.checkFail();return false;}else{this._l1=true;this.checkPass();this._jW=this.m_oForm.value;if(this._dx!=P_ak){this.m_oSubmit.value=this._jW;}return true;}}else{var _nK=this.bParse(this.m_oForm.value,this._gP);if((_nK==false)&&((this.m_oForm.value!=P_ai))){this._l1=false;this.checkFail();return false;}else{this._l1=true;this.checkPass();if(this._dx!=P_ak){this.m_oSubmit.value=this._jW;}return true;}}}};function CText_preProcess(){if(this._dx==P_ak){var _Lf=P_ai;if(this.m_oForm.value!=P_ai){_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(this.sGetFormatValue())+'"';_Lf+=' useValue="'+sXmlEncode(this.sGetValue())+'"';_Lf+=' selected="true" />';}addSelectChoices(this.m_oSubmit,_Lf);}else{this.m_oSubmit.value=this._jW;}};function CText_sGetValue(){this.checkData();if(this._l1==true){return new String(this._jW);}else{return false;}};function CText_sGetFormatValue(){this.checkData();if(this._l1==true){return getFormatByDataType(this.sGetValue(),this._gP,this._e3,this._e5);}else{return false;}};function CText_clear(){this.m_oSubmit.value=P_ai;this.m_oForm.value=P_ai;this._jW=P_ai;};function CText_getDecimalSize(){var _Gj=this.sGetValue();var _FM=-1;if(_Gj!==false){_FM=_Gj.lastIndexOf(P_A);}if(_FM!=-1){_Gj=_Gj.substring(_FM+1);var _AM=_Gj.search(/\D/);if(_AM!=-1){_Gj=_Gj.substring(0,_AM);}return _Gj.length;}return 0;};function CText_hasValue(){if(this.m_oForm.value==P_ai){return false;}return true;};function CText_setReadOnly(_s9){if(typeof _s9=="boolean"){this.m_oForm.readOnly=_s9;}};CText.prototype.setCurrentValue=CText_setCurrentValue;CText.prototype.bParse=CText_bParse;CText.prototype.setCurrentFocus=CText_setCurrentFocus;CText.prototype.lostFocus=CText_lostFocus;CText.prototype.keyPress=CText_keyPress;CText.prototype.checkData=CText_checkData;CText.prototype.checkPass=CText_checkPass;CText.prototype.checkFail=CText_checkFail;CText.prototype.preProcess=CText_preProcess;CText.prototype.sGetValue=CText_sGetValue;CText.prototype.sGetFormatValue=CText_sGetFormatValue;CText.prototype.draw=CText_draw;CText.prototype.clear=CText_clear;CText.prototype.getDecimalSize=CText_getDecimalSize;CText.prototype.hasValue=CText_hasValue;CText.prototype.startCheckDataInterval=CText_startCheckDataInterval;CText.prototype.endCheckDataInterval=CText_endCheckDataInterval;CText.prototype.checkValueChange=CText_checkValueChange;CText.prototype.setReadOnly=CText_setReadOnly;function sParseNumber(_r7){var _oX=_r7;var _Ik=_oX.search(P_aQ);_oX=sParseOutCommon(_r7);var _L7=/e/g;_oX=_oX.replace(_L7,g_exponentialSymbol);var _LX=_oX.search(P_as);if(_LX!=-1){_oX=sParseNumberExponentCommon(_oX);}else{_oX=sParseNumberCommon(_oX);}if(_oX!=false&&_Ik!=-1){_oX=sDivideBy100(_oX);}if(_oX!=false){_oX=_oX.replace(/\.$/,P_ai);}return(_oX);};function sFormatNumber(_sL,_up,_qM){var _oX=_sL.toString();var bIsNegative=false;var _I5=false;var _JJ=false;var _D3=false;var _Fs=P_ai;var _BB=P_ai;var _Bs=P_ai;var _tB=false;if(_up==true){_tB=true;}var x=_oX.search(P_as);if(x!=-1){_I5=true;var _x6=_oX.split(P_as);if(_x6.length==2){_oX=_x6[0];_Fs=_x6[1];var xp=_Fs.search(/-/);if(xp!=-1){_JJ=true;_Fs=_Fs.replace('-',P_ai);}}else{return false;}}var y=_oX.search(/-/);if(y!=-1){bIsNegative=true;_oX=_oX.replace('-',P_ai);}var w=_oX.search(/\./);if(w!=-1){_D3=true;var _KF=_oX.split(P_A);if(_KF.length==2){_oX=_KF[0];_Bs=_KF[1];}else{return false;}}if(_qM){var _Bj=_oX;_BB=sAddGroupingSeparators(_Bj);}else{_BB=_oX;}var _yW=P_ai;if(bIsNegative==true){_yW+=g_minusSign;}if(_tB==true){_yW+=g_currencySymbol;}_yW+=_BB;if(_D3==true){_yW+=g_decimalSeparator;_yW+=_Bs;}if(_I5==true){_yW+=g_exponentialSymbol;if(_JJ==true){_yW+=g_minusSign;}_yW+=_Fs;}_oX=_yW;return _oX;};function sAddGroupingSeparators(s){var _Bj=s;if(_Bj.length>g_groupingSize){var _Do=_Bj.length%g_groupingSize;var _Hc=_Bj.substring(0,_Bj.length%g_groupingSize);var _Ga=_Bj.substring(_Do,_Bj.length);var _CN=new Array();for(var _zd=0;_zd<_Ga.length;_zd+=g_groupingSize){_CN[_CN.length]=_Ga.substring(_zd,_zd+g_groupingSize);}if((_CN)&&(_CN.length>0)){if(_Hc){_Bj=_Hc+g_groupingSeparator;}else{_Bj=P_ai;}for(var _LH=0;_LH<_CN.length-1;_LH++){_Bj+=_CN[_LH]+g_groupingSeparator;}_Bj+=_CN[_CN.length-1];}}return _Bj;};function sParseInteger(s){var _oX=s.replace(P_cq,P_ai);var _Ld=false;if(bIsNegative(_oX)==true){_oX=_oX.replace(P_aF,P_ai);_oX=_oX.replace(P_a,P_ai);_oX=_oX.replace(P_a5,P_ai);_oX=_oX.replace(/[\(\)]/g,P_ai);_Ld=true;}else{_oX=_oX.replace(P_Q,P_ai);_oX=_oX.replace(P_ae,P_ai);_oX=_oX.replace(P_ci,P_ai);}if(bNumbersOnly(_oX)==true){if(_Ld==true){_oX="-"+_oX;}return _oX;}return false;};function sParseNaturalNumber(s){var _oX=s.replace(P_cq,P_ai);_oX=_oX.replace(P_Q,P_ai);_oX=_oX.replace(P_ae,P_ai);_oX=_oX.replace(P_ci,P_ai);if(bNumbersOnly(_oX)==true){return _oX;}return false;};function sParseWholeNumber(s){var _oX=sParseNaturalNumber(s).toString();if((_oX=='false')||(_oX=='0')){return false;}return _oX;};function bIsNegative(s){var _oX=sStripWhitespace(s);if((_oX.search(P_aF)!=-1)||((_oX.search(P_a5)!=-1)&&(_oX.search(P_a)!=-1))||(_oX.match(P_a3)!=null)){return true;}return false;};function sFormatInteger(s){var _oX=s.toString();if(_oX=='false'){return false;}if(_oX==P_ai){return _oX;}_oX=_oX.replace(P_cq,P_ai);var _Ld=false;var P_aF=new RegExp('-',P_V);var z=_oX.search(P_aF);if(z!=-1){_Ld=true;_oX=_oX.replace(P_aF,P_ai);}if(_Ld==true){_oX=g_negativePrefix+_oX;_oX=_oX+g_negativeSuffix;}else{_oX=g_positivePrefix+_oX;_oX=_oX+g_positiveSuffix;}return _oX;};function sParseCurrency(s){var bIsNegative=false;var _I7=new RegExp(sEscapeRegularExpression(g_currencyMinusSign),P_V);var _xq=new RegExp(sEscapeRegularExpression('^'+g_currencyNegativePrefix));var _CZ=new RegExp(sEscapeRegularExpression(g_currencyNegativeSuffix),P_V);var _Jf=new RegExp(sEscapeRegularExpression('^'+g_currencyPositivePrefix));var _yH=new RegExp(sEscapeRegularExpression(g_currencyPositiveSuffix),P_V);var _H7=new RegExp(sEscapeRegularExpression(g_currencyGroupingSeparator,P_V));var _Hj=new RegExp(sEscapeRegularExpression(g_monetaryDecimalSeparator));var _oX=sStripWhitespace(s);if((_oX.search(_I7)!=-1)||((_oX.search(_xq)!=-1)&&(_oX.search(_CZ)!=-1))||(_oX.match(P_a3)!=null)){bIsNegative=true;}_oX=_oX.replace(P_cJ,P_ai);_oX=_oX.replace(_I7,P_ai);_oX=_oX.replace(_xq,P_ai);_oX=_oX.replace(_CZ,P_ai);_oX=_oX.replace(_Jf,P_ai);_oX=_oX.replace(_yH,P_ai);_oX=_oX.replace(/[\(\)]/g,P_ai);_oX=_oX.replace(_H7,P_ai);var _FA=_oX.split(_Hj);var m=0;for(m=0;m<_FA.length;m++){if(bNumbersOnly(_FA[m])==false){return false;}}var _Cm=P_ai;if(bIsNegative==true){_Cm+="-";}if((_FA.length==1)&&(_oX.indexOf(g_monetaryDecimalSeparator)===0)){_Cm+="0."+_FA[0];}else{_Cm+=_FA[0];if(_FA.length>1){_Cm+=P_A;_Cm+=_FA[1];}}return _Cm;};function sFormatCurrency(s,_qM){var _oX=s.toString();if(_oX=='false'){return false;}if(_oX==P_ai){return _oX;}var _Ld=false;var P_aF=new RegExp('-',P_V);var z=_oX.search(P_aF);if(z!=-1){_Ld=true;_oX=_oX.replace(P_aF,P_ai);}var _Jm=_oX.split(P_A);var _Li=P_ai;if(_qM==true){_Jm[0]=sAddGroupingSeparators(_Jm[0]);}if(_Jm.length>1){_Li=_Jm[0]+g_currencyDecimalSeparator+_Jm[1];}else{_Li=_Jm[0];}if(_Ld==true){_Li=g_currencyNegativePrefix+_Li;_Li=_Li+g_currencyNegativeSuffix;}else{_Li=g_currencyPositivePrefix+_Li;_Li=_Li+g_currencyPositiveSuffix;}return _Li;};function sParsePercentNumber(_r7){var _oX=sParseOutCommon(_r7);_oX=sParseNumberCommon(_oX);if(_oX!=false){_oX=sDivideBy100(_oX);}return(_oX);};function sParseOutCommon(_r7){var _oX=_r7;_oX=_oX.replace(P_cJ,P_ai);_oX=_oX.replace(P_cq,P_ai);_oX=sStripWhitespace(_oX);_oX=_oX.replace(P_bp,P_A);var _Ik=_oX.search(P_aQ);if(_Ik!=-1){_oX=_oX.replace(P_aQ,P_ai);}return(_oX);};function sParseNumberExponentCommon(_oX){var _wS=_oX.split(g_exponentialSymbol);if(_wS.length==2){var _DY=_wS[0];var _w7=false;if((_DY.search(P_aF)!=-1)||(_DY.search(P_a)!=-1)){_w7=true;_DY=_DY.replace(P_aF,P_ai);_DY=_DY.replace(P_a,P_ai);}if(_DY.length===0){return(false);}var _Dg=_DY.split(P_A);if(_Dg.length<3){for(var _yh=0;_yh<_Dg.length;_yh++){if(bNumbersOnly(_Dg[_yh])==false){return(false);}}}var _Gg=_wS[1];if(_Gg.length===0){return(false);}_Gg=_Gg.replace(P_ci,P_ai);var _B6=false;if((_Gg.search(P_aF)!=-1)||(_Gg.search(P_a)!=-1)){_B6=true;_Gg=_Gg.replace(P_aF,P_ai);_Gg=_Gg.replace(P_a,P_ai);}var _G5=bNumbersOnly(_Gg);if(!_G5){return(false);}var _J9=P_ai;if(_w7){_J9+='-';}_J9+=_DY;_J9+='E';if(_B6){_J9+='-';}_J9+=_Gg;_oX=_J9;}else{return(false);}return(_oX);};function sParseNumberCommon(_oX){if(_oX.match(P_bb)){return(false);}var bIsNegative=false;if((_oX.match(P_a3)!=null)||(_oX.search(P_aF)!=-1)||(_oX.search(P_a)!=-1)){bIsNegative=true;_oX=_oX.replace(P_aF,P_ai);_oX=_oX.replace(P_a,P_ai);_oX=_oX.replace(/[\(\)]/g,P_ai);if(_oX.length==0){return(false);}}var _AR=false;if(_oX.indexOf(P_A)===0){_AR=true;}var _xU=_oX.split(P_A);var _DY=P_ai;var _Ee=P_ai;var _Cn=P_ai;if(_xU.length==2){_DY=_xU[0];_Ee=_xU[1];if(!bNumbersOnly(_DY)||!bNumbersOnly(_Ee)){return(false);}if(bIsNegative){_Cn+='-';}if(_AR){_Cn+='0.';}else{_Cn+=_DY;_Cn+=P_A;}_Cn+=_Ee;_oX=_Cn;}else if(_xU.length==1){_DY=_xU[0];if(!bNumbersOnly(_DY)){return(false);}if(bIsNegative){_Cn+='-';}if(_AR){_Cn+='0.';}_Cn+=_DY;_oX=_Cn;}else{return(false);}return(_oX);};function sFormatPercentNumber(_sL){var _oX=_sL.toString();_oX=sMultiplyBy100(_oX);if(g_decimalSeparator!=P_A){rResetDecimalSeparator=new RegExp(sEscapeRegularExpression(P_A),P_V);_oX=_oX.replace(rResetDecimalSeparator,g_decimalSeparator);}var x=_oX.search(P_aQ);if(x==-1&&_oX.length>0){_oX+=g_percentSymbol;}if(_oX=="NaN%"){_oX=P_ai;}return(_oX);};function sStripWhitespace(s){var _CF=/[\s]/g;s=s.replace(_CF,P_ai);return s;};function initParsingRegularExpressions(){P_cJ=new RegExp(sEscapeRegularExpression(g_currencySymbol),P_V);P_cq=new RegExp(sEscapeRegularExpression(g_groupingSeparator),P_V);P_bp=new RegExp(sEscapeRegularExpression(g_decimalSeparator),P_V);P_aF=new RegExp(sEscapeRegularExpression(g_minusSign),P_V);P_ci=new RegExp(sEscapeRegularExpression(g_plusSign),P_V);P_a=new RegExp(sEscapeRegularExpression(g_negativePrefix),P_V);P_a5=new RegExp(sEscapeRegularExpression(g_negativeSuffix),P_V);P_Q=new RegExp(sEscapeRegularExpression(g_positivePrefix),P_V);P_ae=new RegExp(sEscapeRegularExpression(g_positiveSuffix),P_V);P_aQ=new RegExp(sEscapeRegularExpression(g_percentSymbol),P_V);P_as=new RegExp(sEscapeRegularExpression(g_exponentialSymbol),P_cm);};function getFormatByDataType(_nK,_sA,_tB,_qM){var _Kb=P_ai;switch(_sA){case 'number':_Kb=sFormatNumber(_nK,_tB,_qM);break;case 'currency':_Kb=sFormatCurrency(_nK,_qM);break;case 'integer':case 'natural':case 'whole':_Kb=sFormatInteger(_nK);break;case 'percentage':_Kb=sFormatPercentNumber(_nK);break;default:_Kb=_nK;break;}return _Kb;};function convertSQLToLocale(_pe,_sA){var _oX=_pe;if(_oX){if((_sA=='number')||(_sA=='currency')||(_sA=='integer')||(_sA=='percentage')){_oX=_oX.replace(/\./g,g_decimalSeparator);_oX=_oX.replace(P_cq,P_ai);var z=_oX.search("-");var e=_oX.search("E");if(z!=-1&&e==-1){_oX=g_negativePrefix+_oX+g_negativeSuffix;}}}return _oX;};function sDivideBy100(_r7){var bIsNegative=false;if(_r7=="0"||_r7==P_ai){return(_r7);}if((_r7.match(P_a3)!=null)||(_r7.search(P_aF)!=-1)||(_r7.search(P_a)!=-1)){bIsNegative=true;_r7=_r7.replace(P_aF,P_ai);_r7=_r7.replace(P_a);_r7=_r7.replace(/[\(\)]/g,P_ai);if(_r7.length===0){return(false);}}var _zG=_r7.indexOf(P_A);var _Hn;if(_zG==-1){_Hn=sMoveDecimalLeftByTwo(_r7);}else{var _xU=_r7.split(P_A);if(_xU.length>2){return(false);}else{var _E3=_xU[0];var _xT=_xU[1];_E3=sMoveDecimalLeftByTwo(_E3);_Hn=_E3+_xT;}}if(bIsNegative){_Hn="-"+_Hn;}return(_Hn);};function sMoveDecimalLeftByTwo(_r7){var _BX=_r7.length;var _Hn;if(_BX>2){_Hn=_r7.substr(0,_BX-2);_Hn+=P_A;_Hn+=_r7.substr(_BX-2);}else if(_BX==2){_Hn="0."+_r7;}else{_Hn="0.0"+_r7;}return(_Hn);};function sMultiplyBy100(_r7){if(_r7=="0"||_r7==P_ai){return(_r7);}var _zG=_r7.indexOf(P_A);var _Hn;var bIsNegative=false;if((_r7.match(P_a3)!=null)||(_r7.search(P_aF)!=-1)||(_r7.search(P_a)!=-1)){bIsNegative=true;_r7=_r7.replace(P_aF,P_ai);_r7=_r7.replace(P_a);_r7=_r7.replace(/[\(\)]/g,P_ai);if(_r7.length===0){return(false);}}if(_zG==-1){_Hn=_r7+"00";}else{var _xU=_r7.split(P_A);if(_xU.length>2){return(false);}else{var _E3=_xU[0];var _xT=_xU[1];if(_xT.length==2){_Hn=_E3+_xT;}else if(_xT.length>2){_Hn=_E3+_xT.substr(0,2);_Hn+=P_A+_xT.substr(2);}else{_Hn=_E3+_xT+"0";}}}var _z2=0;for(var i=0;i<_Hn.length;i++){if(_Hn.charAt(i)=="0"){_z2++;}else{break;}}_Hn=_Hn.substr(_z2);if(_Hn.length===0){_Hn="0";}if(_Hn.charAt(0)==P_A&&_Hn.length>1){_Hn="0"+_Hn;}if(bIsNegative){_Hn="-"+_Hn;}return(_Hn);};function bIsZero(_r7){if(_r7==P_ai){return(false);}var _yA=parseFloat(_r7);if(_yA==NaN){return(false);}else if(_yA===0){return(true);}return(false);};var g_decimalSeparator=P_A;var g_groupingSeparator=",";var g_groupingSize=3;var g_secondaryGroupingSize=0;var g_maximumIntegerDigits=309;var g_minimumIntegerDigits=1;var g_maximumFractionDigits=3;var g_minimumFractionDigits=0;var g_positivePrefix=P_ai;var g_positiveSuffix=P_ai;var g_negativePrefix="-";var g_negativeSuffix=P_ai;var g_minusSign="-";var g_plusSign="+";var g_zeroDigit="0";var g_listSeparator=",";var g_negativeLocation="left";var g_positiveLocation="none";var g_currencySymbol="$";var g_monetaryDecimalSeparator=P_A;var g_currencyLocation="left";var g_currencyDecimalSeparator=P_A;var g_currencyGroupingSeparator=",";var g_currencyGroupingSize=3;var g_currencySecondaryGroupingSize=0;var g_currencyPositivePrefix="$";var g_currencyPositiveSuffix=P_ai;var g_currencyNegativePrefix="-$";var g_currencyNegativeSuffix=P_ai;var g_currencyMinusSign="-";var g_currencyPlusSign="+";var g_currencyZeroDigit="0";var g_currencyNegativeLocation="left";var g_currencyPositiveLocation="none";var g_percentSymbol="%";var g_percentLocation="right";var g_percentageDecimalSeparator=P_A;var g_percentageGroupingSeparator=",";var g_percentageGroupingSize=3;var g_percentageSecondaryGroupingSize=0;var g_percentagePositivePrefix=P_ai;var g_percentagePositiveSuffix="%";var g_percentageNegativePrefix="-";var g_percentageNegativeSuffix="%";var g_percentageMinusSign="-";var g_percentagePlusSign="+";var g_percentageZeroDigit="0";var g_percentageNegativeLocation="both";var g_percentagePositiveLocation="right";var g_exponentialSymbol="E";var g_scientificDecimalSeparator=P_A;var g_scientificGroupingSeparator=",";var g_scientificGroupingSize=0;var g_scientificSecondaryGroupingSize=0;var g_scientificPositivePrefix=P_ai;var g_scientificPositiveSuffix=P_ai;var g_scientificNegativePrefix="-";var g_scientificNegativeSuffix=P_ai;var g_scientificMinusSign="-";var g_scientificPlusSign="+";var g_scientificZeroDigit="0";var g_scientificNegativeLocation="left";var g_scientificPositiveLocation="none";var P_cJ=new RegExp(sEscapeRegularExpression(g_currencySymbol),P_V);var P_cq=new RegExp(sEscapeRegularExpression(g_groupingSeparator),P_V);var P_bp=new RegExp(sEscapeRegularExpression(g_decimalSeparator),P_V);var P_aF=new RegExp(sEscapeRegularExpression(g_minusSign),P_V);var P_bb=new RegExp(/\d+-/);var P_ci=new RegExp(sEscapeRegularExpression(g_plusSign),P_V);var P_a=new RegExp(sEscapeRegularExpression(g_negativePrefix),P_V);var P_a5=new RegExp(sEscapeRegularExpression(g_negativeSuffix),P_V);var P_Q=new RegExp(sEscapeRegularExpression(g_positivePrefix),P_V);var P_ae=new RegExp(sEscapeRegularExpression(g_positiveSuffix),P_V);var P_aQ=new RegExp(sEscapeRegularExpression(g_percentSymbol),P_V);var P_as=new RegExp(sEscapeRegularExpression(g_exponentialSymbol),P_cm);var P_a3=new RegExp(/^\([^)]*\)$/);var P_cL=new Array();function CMultipleTextPicker(_m1,_os,_rp,_nF,_qW,_tY,_s7,_qg,_tQ,_mB){this.setCVId(_mB);P_cL[P_cL.length]=this;this._lI=_m1;this.m_oLstChoices=_os;this.m_oSubmit=_rp;this._jx=_nF;this._l1=false;this._dx=_qW;this._k0=_tY;if(_qg){this._iT=_qg;}if(_tQ){this._fn=_tQ;}this.checkData();if(_s7){this._dJ=_s7;this.m_oLstChoices.style.width='auto';setTimeout("resizeCMultipleTextPickerINSTANCES()",1);}this.checkInsertRemove();};CMultipleTextPicker.prototype=new CPromptControl();function CMultipleTextPicker_selectAll(){for(var i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=true;}this.checkInsertRemove();};function CMultipleTextPicker_deSelectAll(){for(var i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=false;}this.checkInsertRemove();};function CMultipleTextPicker_insert(){var _nV=this._lI.sGetValue();var _qk=this._lI.sGetFormatValue();if(_nV){var _zs=/[\n\f\r]+/;var _Jh=_nV.replace(/[\n\f\r\s]+$/,'').split(_zs);if(_Jh.length>1){for(var i=0;i<_Jh.length;i++){var _Bt=getFormatByDataType(_Jh[i],this._lI._gP,this._lI._e3);this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_Bt,_Jh[i],false,false);}}else{this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nV,false,false);}this._lI.clear();}this.checkData();setTimeout("resizeCMultipleTextPickerINSTANCES()",1);this.checkInsertRemove();};function CMultipleTextPicker_remove(){this.removeSelectedChoices();setTimeout("resizeCMultipleTextPickerINSTANCES()",1);this.checkInsertRemove();};CMultipleTextPicker.prototype=new CPromptControl();function CMultipleTextPicker_preProcess(){var i=0;if(this._dx==P_ak){var _Lf=P_ai;if(this.m_oLstChoices.options.length>0){for(i=0;i<this.m_oLstChoices.options.length;i++){_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(this.m_oLstChoices.options[i].text)+'"';_Lf+=' useValue="'+sXmlEncode(this.m_oLstChoices.options[i].value)+'"';if(this.m_oLstChoices.options[i].selected==true){_Lf+=' selected="true" />';}else{_Lf+=' selected="false" />';}}}addSelectChoices(this.m_oSubmit,_Lf);}else{for(i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=true;}}};function CMultipleTextPicker_checkData(){if((this._jx==true)&&(this.m_oLstChoices.options.length===0)){this._l1=false;this.checkFail();return false;}else{this._l1=true;this.checkPass();return true;}};function CMultipleTextPicker_resizeList(){if(this._k0){if(this.m_oLstChoices.style.tableLayout!='fixed'){this.m_oLstChoices.style.width='auto';}if(this.m_oLstChoices.offsetWidth<200){this.m_oLstChoices.style.width='200px';}this._k0.style.width=this.m_oLstChoices.offsetWidth+'px';}};function CMultipleTextPicker_checkInsertRemove(){if(this._iT){if((this._lI.getValid()==true)&&this._lI.hasValue()){this._iT.disabled=false;}else{this._iT.disabled=true;this._iT.className="clsInsertRemoveButton";}}if(this._fn){if(this.m_oLstChoices.selectedIndex==-1){this._fn.disabled=true;this._fn.className="clsInsertRemoveButton";}else{this._fn.disabled=false;}}};function CMultipleTextPicker_add(_qk,_nV){this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nV,false,false);this.checkData();setTimeout("resizeCMultipleTextPickerINSTANCES()",1);this.checkInsertRemove();};function CMultipleTextPicker_addNoUpdate(_qk,_nV,_rF){_qk=sDecodeU003(_qk);_nV=sDecodeU003(_nV);if(_rF==true){this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nV,true,true);}else{this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nV,false,false);}};function CMultipleTextPicker_update(){this.checkData();setTimeout("resizeCMultipleTextPickerINSTANCES()",1);this.checkInsertRemove();};CMultipleTextPicker.prototype.selectAll=CMultipleTextPicker_selectAll;CMultipleTextPicker.prototype.deSelectAll=CMultipleTextPicker_deSelectAll;CMultipleTextPicker.prototype.insert=CMultipleTextPicker_insert;CMultipleTextPicker.prototype.remove=CMultipleTextPicker_remove;CMultipleTextPicker.prototype.preProcess=CMultipleTextPicker_preProcess;CMultipleTextPicker.prototype.checkData=CMultipleTextPicker_checkData;CMultipleTextPicker.prototype.resizeList=CMultipleTextPicker_resizeList;CMultipleTextPicker.prototype.checkInsertRemove=CMultipleTextPicker_checkInsertRemove;CMultipleTextPicker.prototype.add=CMultipleTextPicker_add;CMultipleTextPicker.prototype.addNoUpdate=CMultipleTextPicker_addNoUpdate;CMultipleTextPicker.prototype.update=CMultipleTextPicker_update;function resizeCMultipleTextPickerINSTANCES(){if(typeof P_cL==P_cZ&&P_cL.length){for(var i=0;i<P_cL.length;i++){P_cL[i].resizeList();}}};function CSelectValueSelectList(_pM,_rp,_tJ,_nF,_qW,_tY,_s7,_oR,_si,_qv,_qw,_mB){this.setCVId(_mB);this.m_oForm=_pM;this.m_oSubmit=_rp;this._jx=_nF;this._l1=false;this._dx=_qW;this.m_sRef=_qv;this._eg=_qw;this._h3=document.getElementById("selectList"+_qv);this._gA=(_si==K_ACTION_REPROMPT?K_ACTION_REPROMPT:P_aB);this._lk=false;if(_oR){this.m_bDisabled=true;}else{this.m_bDisabled=false;}this._k0=_tY;this._lw=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);this._js=_tJ;if(this._js!=null){this._kF=new Image();this._kF.src=this._lw+"/prompting/images/error_timed_small_off.gif";this._kx=new Image();this._kx.src=this._lw+"/prompting/images/error_timed_small.gif";}this.checkData(_pM);if(_pM.style&&_pM.style.width!=P_ai){_s7=null;}this.oOptionsHTML=new StringArray();};CSelectValueSelectList.prototype=new CPromptControl();function CSelectValueSelectList_addNoUpdate(_qk,_nV,_rF){var _w6=sDecodeU003(_qk);var _B4=sDecodeU003(_nV);var _rc=(_rF==true);if(window.ie){this.oOptionsHTML.append('<option value="'+sQuotEncode(_B4)+'"'+(_rc?' selected="selected"':P_ai)+' displayValue="'+sQuotEncode(_w6)+'">'+sHtmlEncode(_w6).replace(/\s/g,' ')+'</option>');}else{var o=new Option(_w6,_B4,_rc,_rc);o.style.whiteSpace="pre";this._h3.options[this._h3.options.length]=o;}};function CSelectValueSelectList_update(){if(window.ie){var _ns=this._h3.id;var _H2=(this.m_oForm==this._h3);var _wJ=this._h3.outerHTML;this._h3.outerHTML=_wJ.replace(/<\/select.*/i,P_ai)+this.oOptionsHTML.toString()+'<'+'/'+'SELECT>';this._h3=document.getElementById(_ns);if(_H2){this.m_oForm=this._h3;}this.oOptionsHTML.reset();}this.checkData();CPromptControl_updateSelectWidth(document.getElementById("selectList"+this.m_sRef));};function CSelectValueSelectList_selectAll(){if(this.m_bDisabled!=true){var i=0;for(i=0;i<this.m_oForm.options.length;i++){this.m_oForm.options[i].selected=true;}this.checkData();}};function CSelectValueSelectList_deSelectAll(){if(this.m_bDisabled!=true){var i=0;for(i=0;i<this.m_oForm.options.length;i++){this.m_oForm.options[i].selected=false;}this.checkData();}};function CSelectValueSelectList_checkPass(){if((this._js!=null)&&(this._js.src!=this._kF.src)){this._js.src=this._kF.src;}if(this._k0){this._k0.className="clsFeedbackWidget";}this.notify(gPASS,this);};function CSelectValueSelectList_checkFail(){if(this._js!=null){this._js.src=this._kx.src+'?'+Math.random();}if(this._k0){this._k0.className="clsFeedbackWidgetParseErrorArrowLeft";}this.notify(gFAIL,this);};function CSelectValueSelectList_checkData(){var _K9=false;var i=0;for(i=0;i<this.m_oForm.options.length;i++){if((this.m_oForm.options[i].selected==true)&&(this.m_oForm.options[i].value!=P_ai)){_K9=true;}}if((this._jx==true)&&(_K9==false)){this._l1=false;this.checkFail();return false;}else{this._l1=true;this.checkPass();return true;}};function CSelectValueSelectList_preProcess(){if(this._dx==P_ak){var _Lf="";if(this.m_oForm.options.length>0){for(var i=0;i<this.m_oForm.options.length;i++){if((this.m_oForm.options[i].selected==true)&&(this.m_oForm.options[i].value!=P_ai)){var _qk=this.m_oForm.options[i].displayValue;if(!_qk){_qk=this.m_oForm.options[i].text;}_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(_qk)+'"';_Lf+=' useValue="'+sXmlEncode(this.m_oForm.options[i].value)+'"';_Lf+=' selected="true" />';}}}else{_Lf="<selectChoices></selectChoices>";}addSelectChoices(this.m_oSubmit,_Lf);}};function CSelectValueSelectList_autoSubmit(){this.checkData();if(!this._jx||this._l1){var _qy=this.getCV();if(_qy&&typeof _qy.submitPromptValues==P_c7&&typeof ViewerDispatcherEntry==P_c7){var _K4=new ViewerDispatcherEntry(_qy);_K4.addFormField("ui.action",K_ACTION_FORWARD);_K4.addFormField("_autosubmitParameter",this._eg);_K4.addFormField("_promptControl",this._gA);_qy.submitPromptValues(_K4);}else{SetPromptMethod(K_ACTION_FORWARD);if(document.forms[0]._autosubmitParameter){document.forms[0]._autosubmitParameter.value=this._eg;}SetPromptControl(this._gA);}}};function CSelectValueSelectList_sGetValue(){this.checkData();if((this._l1==true)&&(this.m_oForm.options.length>0)&&(this.m_oForm.options.selectedIndex!=-1)){return this.m_oForm.options[this.m_oForm.options.selectedIndex].value;}return false;};function CSelectValueSelectList_sGetFormatValue(){this.checkData();if((this._l1==true)&&(this.m_oForm.options.length>0)&&(this.m_oForm.options.selectedIndex!=-1)){return this.m_oForm.options[this.m_oForm.options.selectedIndex].text;}return false;};function CSelectValueSelectList_hasValue(){if(this.m_oForm.value==P_ai){return false;}return true;};function CSelectValueSelectList_selectByUseValue(_nJ){for(var j=0;j<this.m_oForm.options.length;j++){if(this.m_oForm.options[j].value==_nJ){this.m_oForm.options[j].selected=true;this.checkData(this.m_oForm);return;}}};CSelectValueSelectList.prototype.addNoUpdate=CSelectValueSelectList_addNoUpdate;CSelectValueSelectList.prototype.update=CSelectValueSelectList_update;CSelectValueSelectList.prototype.selectAll=CSelectValueSelectList_selectAll;CSelectValueSelectList.prototype.deSelectAll=CSelectValueSelectList_deSelectAll;CSelectValueSelectList.prototype.preProcess=CSelectValueSelectList_preProcess;CSelectValueSelectList.prototype.checkData=CSelectValueSelectList_checkData;CSelectValueSelectList.prototype.checkPass=CSelectValueSelectList_checkPass;CSelectValueSelectList.prototype.checkFail=CSelectValueSelectList_checkFail;CSelectValueSelectList.prototype.autoSubmit=CSelectValueSelectList_autoSubmit;CSelectValueSelectList.prototype.sGetValue=CSelectValueSelectList_sGetValue;CSelectValueSelectList.prototype.sGetFormatValue=CSelectValueSelectList_sGetFormatValue;CSelectValueSelectList.prototype.hasValue=CSelectValueSelectList_hasValue;CSelectValueSelectList.prototype.selectByUseValue=CSelectValueSelectList_selectByUseValue;var P_cR={};var P_ca=null;function CSelectValueInputList(_uA,_tX,_rp,_tJ,_nF,_qW,_tY,_rb,_mY,_oR,_si,_qv,_oA,_qH,_ts,_qw,_mB){this.setCVId(_mB);this.m_sRef=_qv;this._eg=_qw;this._im=_uA;this._dH=_tX;this.m_oSubmit=_rp;this._ir=_ts;this._h3=document.getElementById("selectList"+_qv);this._jx=_nF;this._iC=_oA;this._jF=_qH;this._l1=false;this._dx=_qW;this.m_iItemCount=_rb;this.m_iSelectedCount=_mY;if(_oR){this.m_bDisabled=true;}else{this.m_bDisabled=false;}this._gA=(_si==K_ACTION_REPROMPT?K_ACTION_REPROMPT:P_aB);this._k0=_tY;this._lw=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);this._js=_tJ;if(this._js!=null){this._kF=new Image();this._kF.src=this._lw+"/prompting/images/error_timed_small_off.gif";this._kx=new Image();this._kx.src=this._lw+"/prompting/images/error_timed_small.gif";}this.listHTML=new StringArray();this.checkData();};CSelectValueInputList.prototype=new CPromptControl();function CSelectValueInputList_addNoUpdate(_of,_nK,_rc,_pl){var _l5=P_ai;if(this._h3!=null){if(window.ie){_l5=this._h3.style.cssText;}else{_l5=this._h3.getAttribute("style");}var _I4=["display","visibility","zIndex","position","clip","float","top","bottom","left","right","height","width","(margin|padding)(-left)*(-right)*(-top)*(-bottom)*","border(-left|-right|-top|-bottom)*(-style|-width|-color|-spacing|-collapse)*","(pos|pixel)(Top)*(Bottom)*(Left)*(Right)*(Height)*(Width)*"];for(var i=0;i<_I4.length;++i){var re=new RegExp("(^|;)+\\s*"+_I4[i]+"\\s*:[^;]*",P_cm);_l5=_l5.replace(re,P_ai);}_l5=_l5.replace(/^\s*(;\s*)+/gi,P_ai);}_of=sDecodeU003(_of);if(this._dx==P_ak){this.listHTML.append("<input type='hidden' name='"+this._dH+"Text"+this.m_iItemCount+"' value=\""+sQuotEncode(_of)+"\"/>");}this.listHTML.append('<div class="clsCheckBox"'+(_l5!=P_ai?' style="'+_l5+'"':P_ai)+'><nobr>');_nK=sDecodeU003(_nK);this.listHTML.append("<label><input name='"+this._dH+"' type='"+this._jF+"' value=\""+sQuotEncode(_nK)+"\" align='middle' style='vertical-align:middle' ");this.listHTML.append("onClick='"+this._ir+".updateSelected(this.checked);"+this._ir+".checkData();");if(this._iC){this.listHTML.append(this._ir+".autoSubmit();");}this.listHTML.append("' ");if(this.m_bDisabled){this.listHTML.append("disabled='disabled' ");}if(_rc){this.listHTML.append("checked='checked'");this.m_iSelectedCount++;}this.listHTML.append(">");this.listHTML.append(sQuotEncode(sHtmlEncode(_of)).replace(/\s/g," ")+"</input></label>");if(typeof _pl==P_bJ){this.listHTML.append("<span class='clsParentDetail'> ");var _za=new RegExp("\\^1",P_V);this.listHTML.append(PMT_UIM_PARENTDETAILS.replace(_za,_pl));this.listHTML.append("</span>");}this.listHTML.append("</nobr></div>");this.m_iItemCount++;};function CSelectValueInputList_update(){this._h3.innerHTML=this.listHTML.toString();this.m_oForm=eval("document.forms['"+this._im+"'].elements['"+this._dH+"'];");var _Ln=document.getElementById("selectListBottomRow"+this.m_sRef);if(_Ln!=null){if(this.m_iItemCount==1){_Ln.style.display="none";}else{_Ln.removeAttribute("style");}}var _xx=document.getElementById("selectList"+this.m_sRef);if(_xx!=null){if(this.m_iItemCount==1){_xx.className=P_ai;}else{_xx.className=_xx.getAttribute("oldclass");}}this.checkData();CPromptControl_updateSelectWidth(document.getElementById("selectList"+this.m_sRef));CSelectValueInputList_updateHeight(document.getElementById("selectList"+this.m_sRef));};function CSelectValueInputList_updateHeight(_tZ){if(typeof P_cR==P_cD){P_cR={};}if(_tZ&&!_tZ.id&&_tZ.name){_tZ.id=_tZ.name;}if(_tZ&&!P_cR[_tZ.id]){_tZ._h8=_tZ.style.height;P_cR[_tZ.id]=_tZ;}if(document.readyState=="complete"){for(var _ns in P_cR){var _Io=P_cR[_ns];if(_Io&&typeof _Io.style&&!CSelectValueInputList_hasExplicitHeight(_Io)){_Io.style.height="auto";if(_Io.offsetHeight>165){_Io.style.height="165px";}}}}else if(document.readyState){if(P_ca){clearTimeout(P_ca);}P_ca=setTimeout(CSelectValueInputList_updateHeight,100);}else{if(!CSelectValueInputList_hasExplicitHeight(_tZ)){_tZ.style.height="auto";_tZ.style.maxHeight="165px";}}};function CSelectValueInputList_hasExplicitHeight(_sc){var _D4=null;if(_sc){_D4=_sc._h8;if(typeof _D4==P_cD){_D4=_sc.style.height;}}return(_D4&&_D4.match(/\d/g));};function CSelectValueInputList_selectAll(){if(this.m_bDisabled!=true){if(typeof this.m_oForm!=P_cD){var i=0;for(i=0;i<this.m_oForm.length;i++){this.m_oForm[i].checked=true;}this.m_iSelectedCount=this.m_iItemCount;this.checkData();}}};function CSelectValueInputList_deSelectAll(){if(this.m_bDisabled!=true){if(typeof this.m_oForm!=P_cD){var i=0;for(i=0;i<this.m_oForm.length;i++){this.m_oForm[i].checked=false;}this.m_iSelectedCount=0;this.checkData();}}};function CSelectValueInputList_checkPass(){if((this._js!=null)&&(this._js.src!=this._kF.src)){this._js.src=this._kF.src;}if(this._k0){this._k0.className="clsFeedbackWidget";}this.notify(gPASS,this);};function CSelectValueInputList_checkFail(){if(this._js!=null){this._js.src=this._kx.src+'?'+Math.random();}if(this._k0){this._k0.className="clsFeedbackWidgetParseErrorArrowLeft";}this.notify(gFAIL,this);};function CSelectValueInputList_updateSelected(_rc){if(_rc==true){this.m_iSelectedCount+=1;if(this.m_iSelectedCount>this.m_iItemCount){this.m_iSelectedCount=this.m_iItemCount;}}else{this.m_iSelectedCount-=1;if(this.m_iSelectedCount<0){this.m_iSelectedCount=0;}}};function CSelectValueInputList_checkData(){if(this._jx&&this.m_iSelectedCount===0){this._l1=false;this.checkFail();return false;}else{this._l1=true;this.checkPass();return true;}};function CSelectValueInputList_preProcess(){if(this._dx==P_ak){var _Lf=P_ai;if(this.m_oForm){var _Ac=P_ai;var _Gf=null;var _KT=P_ai;if(this.m_oForm.length>0){for(var i=0;i<this.m_oForm.length;i++){if(this.m_oForm[i].checked){_Ac="document."+this.m_oForm[i].form.name+P_A+this.m_oForm[i].name+"Text"+i;_Gf=eval(_Ac);if(_Gf!=null){_KT=_Gf.value;_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(_KT)+'"';_Lf+=' useValue="'+sXmlEncode(this.m_oForm[i].value)+'"';_Lf+=' selected="true" />';}if(this._jF=="radio"){this.m_oSubmit.value=P_ai;break;}}}}else if(this.m_oForm.checked){_Ac="document."+this.m_oForm.form.name+P_A+this.m_oForm.name+"Text0";_Gf=eval(_Ac);_KT=_Gf.value;_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(_KT)+'"';_Lf+=' useValue="'+sXmlEncode(this.m_oForm.value)+'"';_Lf+=' selected="true" />';}}addSelectChoices(this.m_oSubmit,_Lf);}};function CSelectValueInputList_autoSubmit(){this.checkData();if(!this._jx||this._l1){var _qy=this.getCV();if(_qy&&typeof _qy.submitPromptValues==P_c7&&typeof ViewerDispatcherEntry==P_c7){var _K4=new ViewerDispatcherEntry(_qy);_K4.addFormField("ui.action",K_ACTION_FORWARD);_K4.addFormField("_autosubmitParameter",this._eg);_K4.addFormField("_promptControl",this._gA);_qy.submitPromptValues(_K4);}else{SetPromptMethod(K_ACTION_FORWARD);if(document.forms[0]._autosubmitParameter){document.forms[0]._autosubmitParameter.value=this._eg;}SetPromptControl(this._gA);}}};function CSelectValueInputList_showParentDetails(_oI){var _JK=null;var c="clsParentDetail";for(var i=0;i<document.styleSheets.length;i++){var ss=document.styleSheets[i];var _zF=(ss.cssRules?ss.cssRules:ss.rules);for(var j=0;j<_zF.length;j++){var cr=_zF[j];var _w0=new RegExp('\\b'+c+'\\b',P_V);if(cr.selectorText&&cr.selectorText.match(_w0)){_JK=cr;}}}if(_JK!=null){_JK.style['display']=(_oI?'inline':'none');}var _Ht=document.getElementById('showParentLink'+this.m_sRef);if(_Ht){_Ht.href="javascript:"+this._ir+".showParentDetails("+(_oI?"false":"true")+")";var _I8=_Ht;while(_I8.firstChild!=null){_I8=_I8.firstChild;}_I8.nodeValue=(_oI?PMT_UIM_HIDEPARENTDETAILS:PMT_UIM_SHOWPARENTDETAILS);}CPromptControl_updateSelectWidth(document.getElementById("selectList"+this.m_sRef));};CSelectValueInputList.prototype.addNoUpdate=CSelectValueInputList_addNoUpdate;CSelectValueInputList.prototype.update=CSelectValueInputList_update;CSelectValueInputList.prototype.selectAll=CSelectValueInputList_selectAll;CSelectValueInputList.prototype.deSelectAll=CSelectValueInputList_deSelectAll;CSelectValueInputList.prototype.preProcess=CSelectValueInputList_preProcess;CSelectValueInputList.prototype.checkData=CSelectValueInputList_checkData;CSelectValueInputList.prototype.checkPass=CSelectValueInputList_checkPass;CSelectValueInputList.prototype.checkFail=CSelectValueInputList_checkFail;CSelectValueInputList.prototype.updateSelected=CSelectValueInputList_updateSelected;CSelectValueInputList.prototype.autoSubmit=CSelectValueInputList_autoSubmit;CSelectValueInputList.prototype.showParentDetails=CSelectValueInputList_showParentDetails;function CDatePicker(_rp,_pM,_sl,_ur,_qv,_o8,_sP,_pP,_pZ,_rZ,_od,_oo,_ou,_nF,_qW,_uo,_mB,_rf){this.setCVId(_mB);this.m_oSubmit=_rp;this.m_oForm=_pM;this.m_oEditBox=_sl;this._kq=_ur;this.m_sRef=_qv;this._fu=_rf;this._h5=g_dateOrder;if(_o8){var _vf=_o8.split("T");this.m_dDate=dParseDate(_vf[0],"YMD");if((this.m_dDate===false)||(!this.m_dDate)){this.m_dDate=new Date();}}else{this.m_dDate=new Date();}this._jV=_sP;this._i7=g_startDayOfWeek;this._iJ=_pP;this._if=_od;if(_oo){this._hn=dParseDate(_oo,"YMD");if(this._hn>this.m_dDate){this.m_dDate=this._hn;}}if(_ou){this._gI=dParseDate(_ou,"YMD");if(this._gI<this.m_dDate){this.m_dDate=this._gI;}}this._jx=_nF;this.m_bDisabled=false;this._l1=false;this._dx=_qW;this._ew=browserIsNS7();this._lw=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);this._ho=_uo;if(!this._ho){this._ho=document.getElementById('imgTest'+_qv);}if(this._ho){this._kF=new Image();this._kF.src=this._lw+"/prompting/images/error_timed_small_off.gif";this._kx=new Image();this._kx.src=this._lw+"/prompting/images/error_timed_small.gif";}this.updateFormVariable(this.m_oForm,this.m_dDate);this.drawDate();this.checkDate(this.m_oEditBox);if(_sP===0){this._hS=this._gH();}this.m_oDatePickerDialog=new CDatePickerDialog(this._kq,this,_qv,_sP,_pP,this._i7,_mB,this._fu);this.m_oDatePickerDialog._hS=this._hS;};CDatePicker.prototype=new CPromptControl();function CDatePicker_updateFormVariable(_pM,_s1){if(_s1){var _zm=_s1.getFullYear();_zm="0000"+_zm;_zm=_zm.substring(_zm.length-4,_zm.length);var _K1=(parseInt(_s1.getMonth(),10)+1).toString();if(_K1.length==1){_K1="0"+_K1;}var _FG=(_s1.getDate()).toString();if(_FG.length==1){_FG="0"+_FG;}var _n2=_zm+"-"+_K1+"-"+_FG;if(this._if===0){_n2+="T00:00:00.000";}this.m_oForm.value=_n2;}else{this.m_oForm.value=P_ai;}this.notify(P_bX,this);};function CDatePicker_drawDate(){var _In=P_ai;if(this.m_dDate){_In=getFormatDate(this.m_dDate,this._iJ,this._h5);}if(this._jV===0){this.m_oEditBox.value=_In;}};function CDatePicker_toggleDialogDatePicker(_oZ){if(this.m_dDate){this.m_oDatePickerDialog.refreshDate(this.m_dDate);}else{var _wv=new Date();this.m_dDate=_wv;this.updateFormVariable(this.m_oForm,this.m_dDate);this.drawDate();this.m_oDatePickerDialog.refreshDate(_wv);}if(!_oZ._jJ){document.body.appendChild(this.m_oDatePickerDialog._kq.parentNode.removeChild(this.m_oDatePickerDialog._kq));_oZ._jJ=true;}if((!this.m_oDatePickerDialog.isVisible())){this.positionDialog(_oZ);}this.m_oDatePickerDialog._lD=this.m_dDate.getDate();this.m_oDatePickerDialog.toggleDatePicker();};function CDatePicker_positionDialog(_tW){var _Bu=this.m_oDatePickerDialog._kq;var _Hq=_Bu.style.display;_Bu.style.display="inline";var _La=document.documentElement.querySelector(".RVReport")||document.documentElement;var _KK;if(window.edge===true){_KK={x:_La.scrollLeft,y:document.body.scrollTop};}else{_KK={x:_La.scrollLeft,y:_La.scrollTop};}var _H3=_tW.getBoundingClientRect();var _Fv=_Bu.getBoundingClientRect();var _J4=_La.getBoundingClientRect();_Bu.style.display=_Hq;var _yv={x:_KK.x,y:_KK.y};if(_H3.top>0){if(_H3.top+_Fv.height<=_J4.height){_yv.y+=_H3.top;}else if(_H3.top+_Fv.height-_J4.height<_H3.top){_yv.y+=_J4.height-_Fv.height;}}if(_H3.left>0){if(_H3.left+_Fv.width<=_J4.width){_yv.x+=_H3.left;}else if(_H3.left+_Fv.width-_J4.width<_H3.left){_yv.x+=_J4.width-_Fv.width;}}if(this._ew===true||window.edge===true){_Bu.style.left=_yv.x+"px";_Bu.style.top=_yv.y+"px";}else{_Bu.style.pixelLeft=_yv.x;_Bu.style.pixelTop=_yv.y;}};function CDatePicker_checkDatePass(_sl){if(this._ho&&(this._ho.src!=this._kF.src)){this._ho.src=this._kF.src;}if(_sl){_sl.className="clsSelectDateEditBox";PRMTUtils._g7(_sl,this.m_sRef);}this.notify(gPASS,this);this.checkData();};function CDatePicker_checkDateFail(_sl){if(this._ho&&(this._ho.src!=this._kx.src)){this._ho.src=this._kx.src;}if(_sl){_sl.className="clsSelectDateEditBoxParseError";var _Ao=sStripNonAlphanumerics(_sl.value)===P_ai;var _yE=_Ao?PMT_UIM_MISSING_VALUE:PMT_UIM_INVALID_INPUT;PRMTUtils._kO(_sl,this.m_sRef,this._lw,_yE);}this.notify(gFAIL,this);this.checkData();};function CDatePicker_checkDate(_sl){var _Ah=true;var _HZ=sStripNonAlphanumerics(_sl.value)._j5();if(this._if===0){var _JS=_HZ.split(/T(?=\d)/);_HZ=_JS[0];}if(this._jx===false&&_HZ===P_ai){this.m_dDate=null;this.updateFormVariable(this.m_oForm,this.m_dDate);this._l1=true;this.checkDatePass(_sl);return;}var _BJ=false;var _Ke=this._h5;if(_sl==this.m_oForm){_Ke="YMD";}if(this._iJ===1){_BJ=dParseEra(_HZ,_Ke);}else{_BJ=dParseDate(_HZ,_Ke);}if(!_BJ){_Ah=false;}if(_Ah===false){this._l1=false;this.checkDateFail(_sl);return;}else{var _nx=_BJ;if(this._hn){if(_nx<this._hn){this._l1=false;this.checkDateFail(_sl);return;}}if(this._gI){if(_nx>this._gI){this._l1=false;this.checkDateFail(_sl);return;}}this.m_dDate=_nx;this._l1=true;this.updateFormVariable(this.m_oForm,this.m_dDate);this.checkDatePass(_sl);return;}};function CDatePicker_keyPress(_mG){_mG=(_mG)?_mG:((event)?event:null);if(_mG){var _rx=(_mG.keyCode)?_mG.keyCode:_mG.which;if(_rx=='8'){this.checkDate(this.m_oEditBox);}}return true;};function CDatePicker_gotFocus(){this.m_oDatePickerDialog.hidePicker();};function CDatePicker_lostFocus(){this.checkDate(this.m_oEditBox);if(this._l1===true){this.drawDate();}};function CDatePicker_preProcess(){if(this._dx==P_ak){var _Lf=P_ai;if((this.m_oEditBox.value!==P_ai)&&(this.m_bDisabled!==true)){_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(this.sGetFormatValue())+'"';_Lf+=' useValue="'+sXmlEncode(this.sGetValue())+'"';_Lf+=' selected="true" />';}addSelectChoices(this.m_oSubmit,_Lf);}else{if(this.m_bDisabled!==true){this.m_oSubmit.value=this.m_oForm.value;}else{this.m_oSubmit.value=P_ai;}}};function CDatePicker_sGetValue(){this.checkDate(this.m_oEditBox);if(this._l1===true){return this.m_oForm.value;}else{return false;}};function CDatePicker_enable(){this.m_bDisabled=false;this._kq.style.filter="none";this.m_oEditBox.style.filter="none";PRMTUtils._h6(this._kq,"clsClockDisabled");PRMTUtils._h6(this.m_oEditBox,"clsClockDisabled");};function CDatePicker_disable(){this.m_bDisabled=true;this._kq.style.filter="alpha(opacity=75)";this.m_oEditBox.style.filter="alpha(opacity=75)";PRMTUtils._hi(this._kq,"clsClockDisabled");PRMTUtils._hi(this.m_oEditBox,"clsClockDisabled");};function CDatePicker_toggleDisable(_t5){if(this.isRequired()===false){if(_t5===false){this.disable();}else{this.enable();}}};function CDatePicker_handleResize(){var o=document.getElementById(this.m_sRef+"imgPicker");if(o){this.positionDialog(o);}};function CDatePicker_sGetFormatValue(){if(this.isValid()===true){return getFormatDate(this.m_dDate,this._iJ,this._h5);}else{return false;}};function CDatePicker_setValue(s){this.m_dDate=dParseDate(s,"YMD");this.m_oDatePickerDialog.refreshDate(this.m_dDate);this.drawDate();this.checkDate(this.m_oEditBox);};function CDatePicker_hasValue(){if(this.m_oForm.value===P_ai){return false;}else{return true;}};function CDatePicker_handleNotify(){if(this._jV===0){this.m_oDatePickerDialog.hidePicker();}};function CDatePicker_checkFail(){this.checkDateFail(this.m_oEditBox);};CDatePicker.prototype.drawDate=CDatePicker_drawDate;CDatePicker.prototype.toggleDialogDatePicker=CDatePicker_toggleDialogDatePicker;CDatePicker.prototype.updateFormVariable=CDatePicker_updateFormVariable;CDatePicker.prototype.checkDate=CDatePicker_checkDate;CDatePicker.prototype.checkDateFail=CDatePicker_checkDateFail;CDatePicker.prototype.checkDatePass=CDatePicker_checkDatePass;CDatePicker.prototype.keyPress=CDatePicker_keyPress;CDatePicker.prototype.gotFocus=CDatePicker_gotFocus;CDatePicker.prototype.lostFocus=CDatePicker_lostFocus;CDatePicker.prototype.preProcess=CDatePicker_preProcess;CDatePicker.prototype.sGetValue=CDatePicker_sGetValue;CDatePicker.prototype.enable=CDatePicker_enable;CDatePicker.prototype.disable=CDatePicker_disable;CDatePicker.prototype.toggleDisable=CDatePicker_toggleDisable;CDatePicker.prototype.positionDialog=CDatePicker_positionDialog;CDatePicker.prototype.handleResize=CDatePicker_handleResize;CDatePicker.prototype.sGetFormatValue=CDatePicker_sGetFormatValue;CDatePicker.prototype.setValue=CDatePicker_setValue;CDatePicker.prototype.hasValue=CDatePicker_hasValue;CDatePicker.prototype.handleNotify=CDatePicker_handleNotify;CDatePicker.prototype.checkFail=CDatePicker_checkFail;CDatePicker.prototype.checkData=function(){if(this._fU&&!this._fU._iF){this._fU.checkData();}};CDatePicker.prototype._id=function(_tW,_vq){var _LV=0;if(this._ew&&!_vq){_LV=_tW.y;var _ut=_tW;while(_ut=_ut.offsetParent){if(_ut.style&&_ut.style.position=="relative"){_LV+=_ut.offsetTop;}}if(!_LV){_LV=iOffsetFromBodyY(_tW);}}else{_LV=iOffsetFromBodyY(_tW);}return _LV;};function PRMT_DateHelper(_pM,_sl,_qv,_o8,_pP,_pZ,_rZ,_od,_oo,_ou,_nF){this.m_oForm=_pM;this.m_oEditBox=_sl;this.m_sRef=_qv;this._h5=g_dateOrder;if(_o8){var _vf=_o8.split("T");this.m_dDate=dParseDate(_vf[0],"YMD");if((this.m_dDate===false)||(!this.m_dDate)){this.m_dDate=new Date();}}else{this.m_dDate=new Date();}this._i7=g_startDayOfWeek;this._iJ=_pP;this._if=_od;if(_oo){this._hn=dParseDate(_oo,"YMD");if(this._hn>this.m_dDate){this.m_dDate=this._hn;}}if(_ou){this._gI=dParseDate(_ou,"YMD");if(this._gI<this.m_dDate){this.m_dDate=this._gI;}}this._jx=_nF;this.m_bDisabled=false;this._l1=false;};PRMT_DateHelper.prototype.getCurrentDate=function(){return this.m_dDate;};PRMT_DateHelper.prototype._i8=function(_pr){var _Ah=true;var _HZ=sStripNonAlphanumerics(_pr)._j5();if(this._if===0){var _Lz=/[T]/;var _JS=_HZ.split(_Lz);_HZ=_JS[0];}var _nx=null;if(!(this._jx===false&&_HZ===P_ai)){var _BJ=false;var _Ke="YMD";if(this._iJ===1){_BJ=dParseEra(_HZ,_Ke);}else{_BJ=dParseDate(_HZ,_Ke);}if(!_BJ){_Ah=false;}if(_Ah){_nx=_BJ;if((this._hn&&(_nx<this._hn))||(this._gI&&(_nx>this._gI))){_Ah=false;}}}this.m_dDate=_nx;this._l1=_Ah;return _Ah;};PRMT_DateHelper.prototype._hD=function(_pr){var _xY=null;if(_pr){var _xP=_pr.getMonth()+1;var _H9=(_xP>9?String(_xP):"0"+_xP);var _vT=_pr.getDate();var _yF=(_vT>9?String(_vT):"0"+_vT);_xY=_pr.getFullYear()+"-"+_H9+"-"+_yF;}return _xY;};PRMT_DateHelper.prototype._il=function(_q6){return getFormatDate(_q6,this._iJ,this._h5);};PRMT_DateHelper.prototype._iR=function(_s1){var _xY;if(_s1){var _zm=_s1.getFullYear();_zm="0000"+_zm;_zm=_zm.substring(_zm.length-4,_zm.length);var _K1=(parseInt(_s1.getMonth(),10)+1).toString();if(_K1.length==1){_K1="0"+_K1;}var _FG=(_s1.getDate()).toString();if(_FG.length==1){_FG="0"+_FG;}var _n2=_zm+"-"+_K1+"-"+_FG;if(this._if===0){_n2+="T00:00:00.000";}_xY=_n2;}else{_xY=P_ai;}return _xY;};function PRMT_TimeHelper(_nF){this._jx=_nF;};PRMT_TimeHelper.prototype.getTimeFormatForDisplay=function(_nM,_nE){var _nK=P_ai;if(_nM){var _ES=_nM.getHours();if(g_24HourClock=='false'){if(_ES==0){_ES=12;}else if(_ES>12){_ES=_ES-12;}}var _GA=_ES.toString();if((_GA.length==1)&&(g_hourFormatMedium=='hh')){_GA='0'+_GA;}_nK+=_GA;var _we=_nM.getMinutes().toString();if((_we.length==1)&&(g_minuteFormatMedium=='mm')){_we='0'+_we;}_nK+=g_timeSeparator+_we;if(_nE<=1){var _wY=_nM.getSeconds().toString();if((_wY.length==1)&&(g_secondFormatMedium=='ss')){_wY='0'+_wY;}_nK+=g_timeSeparator+_wY;}if(_nE==0){var _F4=_nM.getMilliseconds().toString();if(_F4.length==2){_F4='0'+_F4;}else if(_F4.length==1){_F4='00'+_F4;}_nK+=P_A+_F4;}if((g_24HourClock=='false')&&(g_AMPMLocation=='right')){if(_nM.getHours()>=12){_nK=_nK+P_br+g_pmString;}else{_nK=_nK+P_br+g_amString;}}else if((g_24HourClock=="false")&&(g_AMPMLocation=="left")){if(_nM.getHours()>=12){_nK=g_pmString+P_br+_nK;}else{_nK=g_amString+P_br+_nK;}}}return _nK;};PRMT_TimeHelper.prototype.getTimeFormatForInput=function(_nM,_nE){var _m2=P_ai;if(_nM){var _GA=this.getTimePartWithZeroPadding(_nM.getHours().toString(),2);var _we=this.getTimePartWithZeroPadding(_nM.getMinutes().toString(),2);_m2=_GA+P_b6+_we;if(_nE<2){var _wY=this.getTimePartWithZeroPadding(_nM.getSeconds().toString(),2);_m2+=P_b6+_wY;if(_nE<1){var _F4=this.getTimePartWithZeroPadding(_nM.getMilliseconds().toString(),3);_m2+=P_A+_F4;}}}return _m2;};PRMT_TimeHelper.prototype.getTimeFormatForSubmit=function(_nM){var _pS=P_ai;if(_nM){var _GA=this.getTimePartWithZeroPadding(_nM.getHours().toString(),2);var _we=this.getTimePartWithZeroPadding(_nM.getMinutes().toString(),2);var _wY=this.getTimePartWithZeroPadding(_nM.getSeconds().toString(),2);var _F4=this.getTimePartWithZeroPadding(_nM.getMilliseconds().toString(),3);_pS=_GA+P_b6+_we+P_b6+_wY+P_A+_F4;}return _pS;};PRMT_TimeHelper.prototype.getTimePartWithZeroPadding=function(_po,_rQ){var _yR=_po;while(_yR.length<_rQ){_yR='0'+_yR;}return _yR;};PRMT_TimeHelper.prototype.getTimeValuesArray=function(_tR){var _x1=_tR.split(":");var _K6=new Array();_K6[0]=_x1[0];_K6[1]=_x1[1];if(_x1.length>2){var _H1=_x1[2].split(".");_K6[2]=_H1[0];if(_H1.length>1){_K6[3]=_x1[2].split(".")[1];}}return _K6;};PRMT_TimeHelper.prototype.dParseTime=function(_tv){var _nM=(_tv)?new Date(1970,0,1,0,0,0,0):null;var _rd=(_tv)?_tv:P_ai;var _wH=_rd.split(/[T\s]/g);if(_wH.length==2){_rd=_wH[1];}var _wa=_rd.split(/[:\.\,]/g);if((_wa.length>=2)){var _GA=parseInt(_wa[0],10);if(_GA!=NaN&&_GA<=23&&_GA>=0){_nM.setHours(_GA);}else{_nM.setHours(0);}var _we=parseInt(_wa[1],10);if(_we!=NaN&&_we<=59&&_we>=0){_nM.setMinutes(_we);}else{_nM.setMinutes(0);}if(_wa.length>=3){var _wY=parseInt(_wa[2],10);if(_wY!=NaN&&_wY<=59&&_wY>=0){_nM.setSeconds(_wY);}else{_nM.setSeconds(0);}}if(_wa.length==4){var _F4=parseInt(_wa[3],10);if(_F4!=NaN&&_F4<=999&&_F4>=0){_nM.setMilliseconds(_F4);}else{_nM.setMilliseconds(0);}}}return _nM;};PRMT_TimeHelper.prototype.bCheckTime=function(_mM,_nE){var _IB=true;var _pS=this.sStripNonAlphanumerics(_mM)._j5();if(this._jx||(_pS!==P_ai)){if(_pS===P_ai){_IB=false;}else{var _K6=this.getTimeValuesArray(_pS);var _m9=_K6[0];var _L2=_K6[1];var _Db=_K6[2];var _nD=_K6[3];if(!this.bisValidHours(_m9)||!this.bisValidMinutes(_L2)||(_nE<=1&&!this.bisValidSeconds(_Db))||(_nE==0&&!this.bisValidMilliseconds(_nD))){_IB=false;}}}return _IB;};PRMT_TimeHelper.prototype.bisValidHours=function(_m9){var _ES=parseInt(_m9,10);return(bNumbersOnly(_m9)&&_ES>=P_ah&&_ES<=P_aK);};PRMT_TimeHelper.prototype.bisValidMinutes=function(_qt){var _IJ=parseInt(_qt,10);return(bNumbersOnly(_qt)&&_IJ>=P_a2&&_IJ<=P_df);};PRMT_TimeHelper.prototype.bisValidSeconds=function(_rC){var _FS=parseInt(_rC,10);return(bNumbersOnly(_rC)&&_FS>=P_di&&_FS<=P_aI);};PRMT_TimeHelper.prototype.bisValidMilliseconds=function(_ql){var _yX=parseInt(_ql,10);return(bNumbersOnly(_ql)&&_yX>=P_cu&&_yX<=P_dm);};PRMT_TimeHelper.prototype.sStripNonAlphanumerics=function(_sG){var _yr=/[\s,-]/g;var _yb=_sG.split(_yr);var _HZ=_yb.join(P_br);return _HZ;};var g_amString="AM";var g_pmString="PM";var g_mediumFormat="MMM d, yyyy h:mm:ss a";var g_shortFormat="M/d/yy h:mm a";var g_hourFormatMedium="h";var g_minuteFormatMedium="mm";var g_secondFormatMedium="ss";var g_hourFormatShort="h";var g_minuteFormatShort="mm";var g_secondFormatShort=P_ai;var g_timeSeparator=P_b6;var g_AMPMLocation="right";var g_24HourClock="false";var P_aK=23;var P_df=59;var P_aI=59;var P_dm=999;var P_ah=0;var P_a2=0;var P_di=0;var P_cu=0;var P_cn=new Date();var P_cw=P_cn.getFullYear();var P_bq=P_cn.getMonth();var P_cj=P_cn.getDate();var P_t={'mediumDateFormat':null,'mediumDateSeparator':null};P_t.dateRegexFromDateOrder=function(_uN){var _K8;var _wW;var _A6;var _AC;if(_uN=='MYD'){_K8='([Mm]+.+[Yy]+.+[Dd]+)';_A6='([Mm]+)(.+?)([Yy]+)[^Dd]+([Dd]+)';_AC=['monthFormat','yearFormat','dayFormat'];}else if(_uN=='MDY'){_K8='^([Mm]+.+[Dd]+.+[Yy]+)';_A6='([Mm]+)(.+?)([Dd]+)[^Yy]+([Yy]+)$';_AC=['monthFormat','dayFormat','yearFormat'];}else if(_uN=='YMD'){_K8='([Yy]+.+[Mm]+.+[Dd]+)';_A6='([Yy]+)(.+?)([Mm]+)[^Dd]+([Dd]+)';_AC=['yearFormat','monthFormat','dayFormat'];}else if(_uN=='YDM'){_K8='([Yy]+.+[Dd]+.+[Mm]+)';_A6='([Yy]+)(.+?)([Dd]+)[^Mm]+([Mm]+)';_AC=['yearFormat','dayFormat','monthFormat'];}else if(_uN=='DMY'){_K8='([Dd]+.+[Mm]+.+[Yy]+)';_A6='([Dd]+)(.+?)([Mm]+)[^Yy]+([Yy]+)';_AC=['dayFormat','monthFormat','yearFormat'];}else if(_uN=='DYM'){_K8='([Dd]+.+[Yy]+.+[Mm]+)';_A6='([Dd]+)(.+?)([Yy]+)[^Mm]+([Mm]+)';_AC=['dayFormat','yearFormat','monthFormat'];}return{'reDateFormat':new RegExp(_K8),'reDateParts':new RegExp(_A6),'datePartsOrder':_AC};};P_t.parseDateFormat=function(_sX,_uN,_nB,_oT,_s4){var _IA=P_t.dateRegexFromDateOrder(_uN);var _Ma=_IA['reDateFormat'].exec(_sX);var _y2=_nB,dateSeparator=_oT,datePartFormat={};if(_Ma!=null){_y2=_Ma[1];_Ma=_IA['reDateParts'].exec(_y2);if(_Ma!=null){dateSeparator=_Ma[2];datePartFormat[_IA['datePartsOrder'][0]]=_Ma[1];datePartFormat[_IA['datePartsOrder'][1]]=_Ma[3];datePartFormat[_IA['datePartsOrder'][2]]=_Ma[4];}}else{}P_t[_s4+'DateFormat']=_y2;P_t[_s4+'DateSeparator']=dateSeparator;P_t[_s4+'DatePartFormat']=datePartFormat;};P_t.resetDateFormats=function(){P_t.mediumDateFormat=null;};function getFormatDate(_sD,_pP){if(!P_t.mediumDateFormat){P_t.parseDateFormat(g_mediumFormat,g_dateOrder,'MMM d, yyyy',' ','medium');P_t.parseDateFormat(g_shortFormat,g_shortFormatDateOrder,"M/d/yy",'/','short');}if(!_sD){return false;}var _BI=P_t.mediumDatePartFormat.yearFormat;var _FY=P_t.mediumDatePartFormat.monthFormat;var _Az=P_t.mediumDatePartFormat.dayFormat;var sY=P_ai;var sM=P_ai;var sD=P_ai;if(_pP==1){sY=getJapaneseEra(_sD);}else{sY=_sD.getFullYear();sY="0000"+sY;sY=sY.substring(sY.length-4,sY.length);if((_BI=="yy")&&(parseInt(sY,10)>1900)){sY=sY.substring(sY.length-2,sY.length);}}if(_FY=="M"){sM=_sD.getMonth()+1;}else if(_FY=="MMM"){sM=g_arMonthsAbbr[_sD.getMonth()];}else if(_FY=="MMMM"){sM=g_arMonths[_sD.getMonth()];}else{var iM=_sD.getMonth()+1;sM=iM.toString();if(sM.length==1){sM="0"+sM;}}if(_Az.match(/DD/i)){var iD=_sD.getDate();sD=iD.toString();if(sD.length==1){sD="0"+sD;}}else{sD=_sD.getDate();}_In=P_t.mediumDateFormat;_In=_In.replace(RegExp(_BI,P_V),sY);_In=_In.replace(RegExp(_Az,P_V),sD);_In=_In.replace(RegExp(_FY,P_V),sM);return _In;};function intGetDays(_oO,_vm){switch(_oO){case 0:return 31;case 1:return(boolLeapYear(_vm))?29:28;case 2:return 31;case 3:return 30;case 4:return 31;case 5:return 30;case 6:return 31;case 7:return 31;case 8:return 30;case 9:return 31;case 10:return 30;case 11:return 31;default:return-1;}};function sGetMonth(_qJ){return g_arMonthsAbbr[_qJ];};function sGetDay(_pd){return g_arDaysAbbr[_pd];};function boolLeapYear(_o4){if((_o4%4===0)&&((!(_o4%100===0))||(_o4%400===0))){return true;}else{return false;}};function boolTestYear(_qQ){var _Hw=new RegExp("^\\s*\\d{1,4}\\s*$");return(typeof _qQ=="string"&&_qQ.match(_Hw)?true:false);};function boolTestDate(_vf){var _nx=Date.parse(_vf);if(_nx){return true;}else{return false;}};function boolTestDateValidity(_mT){if(_mT.getTime()){return true;}else{return false;}};function sStripNonAlphanumerics(_sG){var _yr=/[\s,-]/g;var _yb=_sG.split(_yr);var _HZ=_yb.join(P_br);return _HZ;};function dParseDate(_vf,_pZ){var _qJ=null;var _pd=null;var _o4=null;var _Cq=false;var _Ak=null;var _Hf=false;var _Gp=null;var _FE=false;var _Ix=null;var _C2=0;var _EE=1;var _C3=2;var _LS=/[^0-9]/;var _EK=null;if(_pZ){switch(_pZ){case "MYD":_C2=1;_EE=0;_C3=2;break;case "MDY":_C2=2;_EE=0;_C3=1;break;case "YMD":_C2=0;_EE=1;_C3=2;break;case "YDM":_C2=0;_EE=2;_C3=1;break;case "DMY":_C2=2;_EE=1;_C3=0;break;case "DYM":_C2=1;_EE=2;_C3=0;break;default:_C2=0;_EE=1;_C3=2;break;}}var _z9=_vf;var _v0="?.[]^$(){}|\\&";var _GW=g_dateSeparatorShort.split("");var _K3="";for(var i=0;i<_GW.length;i++){_K3+=_v0.indexOf(_GW[i])>=0?("\\"+_GW[i]):_GW[i];}var _xG=new RegExp(_K3,P_V);_z9=_z9.replace(_xG,P_br);var _ER=". ";var _KE=P_t.mediumDateSeparator;var _yY=((_v0.indexOf(_KE)>=0)||(_ER==_KE))?("\\"+_KE):_KE;var _KN=new RegExp(_yY,P_V);_z9=_z9.replace(_KN,P_br);var _A2=/[\s,\-\/\\#\:]/g;var _JP=_z9.split(_A2);if(_JP.length!=3){var _FX=/[\s,\.\-\/\\#\:]/g;_JP=_z9.split(_FX);}if(_JP.length<3){return false;}else if(_JP.length>3){var _BP=new Array();for(var x=0;x<_JP.length;x++){if(_JP[x]!==P_ai){_BP=_BP.concat(_JP[x]);}}_JP=_BP;}if(_JP.length>3){var _zw=new Array();for(var i=0;i<_JP.length;i++){var z=_JP[i].search(_LS);if(z==-1){if(_JP[i]){_zw=_zw.concat(_JP[i]);}}}if(_zw.length==3){_JP=_zw;}else{return false;}}for(var i=0;i<_JP.length;i++){if(!validateStringForInvalidChars(_JP[i])){return false;}}if(_JP[_C2]&&_JP[_C2].search(_LS)==-1){if((_JP[_C2].length>=1)&&(_JP[_C2].length<=4)){_o4=_JP[_C2];if(_o4.length==2){_o4=sShortToFullYearConversion(_o4);}_FE=true;_Ix=_C2;}}var _uJ=false;var _nc=false;if(bNumbersOnly(_JP[_EE])===true){_nc=parseInt(_JP[_EE],10)-1;}else{_uJ=iCheckMonthString(_JP[_EE]);}if((parseInt(_uJ,10)>=0)&&(parseInt(_uJ,10)<=11)){_qJ=_uJ;_Hf=true;_Gp=_EE;}else if(checkMonth(_nc)){_qJ=_nc;_Hf=true;_Gp=_EE;}if((_Hf)&&(_FE)){if(checkDay(_JP[_C3],parseInt(_qJ,10),parseInt(_o4,10))){_pd=_JP[_C3];_Cq=true;_Ak=_C3;}}if((_Hf)&&(_FE)&&(_Cq)){_EK=prmt_createDateObject(_o4,_qJ,_pd);_EK.setFullYear(_o4);if(!boolTestDateValidity(_EK)){return false;}else{return _EK;}}_FE=false;_Hf=false;_Cq=false;_o4=null;_qJ=null;_pd=null;_C2=0;_EE=1;_C3=2;_o4=_JP[0];_qJ=parseInt(_JP[1],10)-1;_pd=parseInt(_JP[2],10);if((bCheckFullYear(_o4))&&(checkMonth(_qJ))&&checkDay(_pd,_qJ,parseInt(_o4,10))){_EK=new Date(_o4,_qJ,_pd);_EK.setFullYear(_o4);return _EK;}_o4=null;_qJ=null;_pd=null;var k=0;for(k=0;k<_JP.length;k++){var _zT=iCheckMonthString(_JP[k]);if((parseInt(_zT,10)>=0)&&(parseInt(_zT,10)<=11)){_qJ=parseInt(_zT,10);_Hf=true;_Gp=k;}}var l=0;for(l=0;l<_JP.length;l++){if(bCheckFullYear(_JP[l])===true){_o4=_JP[l];_FE=true;_Ix=l;}}if((_FE)&&(_Hf)){var m=0;for(m=0;m<_JP.length;m++){if((m!=_Ix)&&(m!=_Gp)){if(_JP[m].search(_LS)==-1){if(checkDay(_JP[m],parseInt(_qJ,10),parseInt(_o4,10))){_pd=_JP[m];_Cq=true;_Ak=m;}}}}}if((_Hf)&&(_FE)&&(_Cq)){_EK=prmt_createDateObject(_o4,_qJ,_pd);_EK.setFullYear(_o4);if(!boolTestDate(_EK)){return false;}else{return _EK;}}else{return false;}};function prmt_createDateObject(_o4,_qJ,_pd){var _xY=new Date(_o4,_qJ,_pd);var _AL=1;while(_xY.getDate()!=_pd&&_AL<6){_xY=new Date(_o4,_qJ,_pd,_AL);_AL++;}return _xY;};function bCheckFullYear(_qQ){var _LS=/[^0-9]/;var z=_qQ.search(_LS);if(z==-1){if((_qQ.length==3)||(_qQ.length==4)){return true;}}return false;};function validateStringForInvalidChars(_rA){return!/[\[\]\{\}\(\)\*\+\?\\\^\$\|]/g.test(_rA);};function iCheckMonthString(_uJ){var _H5=new RegExp("\\.",P_cm);var _wB=_uJ.replace(_H5,P_ai);var j=0;for(j=0;j<g_arMonthsAbbr.length;j++){var _xj=g_arMonthsAbbr[j];_xj=_xj.replace(_H5,P_ai);var _C9=_xj.length;var _Ii=null;if(_wB.length>_C9){_Ii=_wB.substr(0,_C9);}else{_Ii=_wB;}var _LY=new RegExp("^"+_Ii,"i");if(_xj.match(_LY)){return j;}}return false;};function checkMonth(s){var _xW=parseInt(s,10);if((_xW>=0)&&(_xW<=11)){return true;}else{return false;}};function checkDay(s,_nc,_oi){var _xA=intGetDays(_nc,_oi);var _xW=parseInt(s,10);return((_xW>=1)&&(_xW<=_xA));};function bIsDateLater(_ma,_nx){_ma.setHours(0);_ma.setSeconds(0);_ma.setMinutes(0);_ma.setMilliseconds(0);_nx.setHours(0);_nx.setSeconds(0);_nx.setMinutes(0);_nx.setMilliseconds(0);if(_ma>_nx){return true;}else{return false;}};function bIsDateEarlier(_ma,_nx){_ma.setHours(0);_ma.setSeconds(0);_ma.setMinutes(0);_ma.setMilliseconds(0);_nx.setHours(0);_nx.setSeconds(0);_nx.setMinutes(0);_nx.setMilliseconds(0);if(_ma<_nx){return true;}else{return false;}};function japaneseEra(_ts,_qE,_r9,_rO,_vN,_u6,_qa){this._ir=_ts;this._jN=new Date(_qE,(parseInt(_r9,10)-1).toString(),_rO,0,0,0);this._ku=new Date(_vN,(parseInt(_u6,10)-1).toString(),_qa,23,59,59);};function getJapaneseEra(_nx){var _x7=P_ai;updateJapaneseEraNames();for(var i=0;i<japaneseEras.length;i++){if(_nx>=japaneseEras[i]._jN&&_nx<=japaneseEras[i]._ku){_x7=japaneseEras[i]._ir;var _DI=(parseInt(_nx.getFullYear(),10)-parseInt(japaneseEras[i]._jN.getFullYear(),10)+1);_x7+=P_br+_DI.toString();return _x7;}}_x7=_nx.getFullYear();return _x7;};function updateJapaneseEraNames(){if(!(japaneseEras instanceof Array)||japaneseEras.length<5){return;}if(typeof PMT_EMP_JAPANESE_EMPORER_1==P_bJ){japaneseEras[0]._ir=PMT_EMP_JAPANESE_EMPORER_1;}if(typeof PMT_EMP_JAPANESE_EMPORER_2==P_bJ){japaneseEras[1]._ir=PMT_EMP_JAPANESE_EMPORER_2;}if(typeof PMT_EMP_JAPANESE_EMPORER_3==P_bJ){japaneseEras[2]._ir=PMT_EMP_JAPANESE_EMPORER_3;}if(typeof PMT_EMP_JAPANESE_EMPORER_4==P_bJ){japaneseEras[3]._ir=PMT_EMP_JAPANESE_EMPORER_4;}if(typeof PMT_EMP_JAPANESE_EMPORER_5==P_bJ){japaneseEras[4]._ir=PMT_EMP_JAPANESE_EMPORER_5;}};function getYearfromEra(_rk,_nN){updateJapaneseEraNames();for(var i=0;i<japaneseEras.length;i++){if(_rk==japaneseEras[i]._ir){_nN=japaneseEras[i]._jN.getFullYear()+_nN-1;return _nN;}}return false;};function dParseEra(_vf,_pZ){var _A2=/[\s,\.-\/\\#\:]/g;var _LS=/[^0-9]/;var _rk=null;var _nN=null;var _LU=false;var _F5=false;var _y0=null;var _BO=false;var _JP=_vf.split(_A2);updateJapaneseEraNames();for(var i=0;i<_JP.length;i++){if(_JP[i].search(_LS)!=-1){for(var j=0;j<japaneseEras.length;j++){var _HF=_JP[i];if(_HF.length>japaneseEras[j]._ir.length){_HF=_HF.substring(0,japaneseEras[j]._ir.length);}var _zf=new RegExp("^"+_HF,"i");if(japaneseEras[j]._ir.match(_zf)){_LU=true;_y0=i;_rk=japaneseEras[j]._ir;if(_y0+1<_JP.length){var y=_JP[_y0+1].search(_LS);if(y==-1){_F5=true;iEraYearPosition=i+1;_nN=parseInt(_JP[_y0+1],10);}}}}}}if((_LU===true)&&(_F5===true)){var _wI=P_ai;var _Bd=getYearfromEra(_rk,_nN);for(var m=0;m<_JP.length;m++){if(m==_y0){_wI+=P_br+_Bd;}else if(m==iEraYearPosition){}else{_wI+=P_br+_JP[m];}}_BO=dParseDate(_wI,_pZ);}else{_BO=dParseDate(_vf,_pZ);}return _BO;};function iTestEra(_qQ){var _A2=/[\s,\.-\/\\#\:]/g;var _JP=_qQ.split(_A2);var _HF=_JP[0];var _LU=false;var _Ka=P_ai;var _yd=null;if(_JP.length==2){updateJapaneseEraNames();for(var j=0;j<japaneseEras.length;j++){if(_HF.length>japaneseEras[j]._ir.length){_HF=_HF.substring(0,japaneseEras[j]._ir.length);}var _zf=new RegExp("^"+_HF,"i");if(japaneseEras[j]._ir.match(_zf)){_LU=true;_Ka=japaneseEras[j]._ir;_yd=parseInt(_JP[1],10);}}if(_LU===true){return getYearfromEra(_Ka,_yd);}}return false;};function sShortToFullYearConversion(_ul){if(_ul.length==2){var _oi=parseInt(_ul,10);if(_oi>=MIN_YEAR&&_oi<=MAX_YEAR){_oi=_oi+2000;}else{_oi=_oi+1900;}var _GB=_oi.toString();return _GB;}else{return false;}};g_arMonths=new Array("January","February","March","April","May","June","July","August","September","October","November","December");g_arMonthsAbbr=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");g_arDays=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");g_arDaysAbbr=new Array("Su","Mo","Tu","We","Th","Fr","Sa");g_amString="AM";g_pmString="PM";g_startDayOfWeek=1;g_mediumFormat="MMM d, yyyy h:mm:ss a";g_shortFormat="M/d/yy h:mm a";g_dateOrder="MDY";g_shortFormatDateOrder="MDY";g_yearFormatMedium="yyyy";g_monthFormatMedium="MMM";g_dayFormatMedium="d";g_hourFormatMedium="h";g_minuteFormatMedium="mm";g_secondFormatMedium="ss";g_yearFormatShort="yy";g_monthFormatShort="M";g_dayFormatShort="d";g_hourFormatShort="h";g_minuteFormatShort="mm";g_secondFormatShort=P_ai;g_dateSeparatorMedium=P_br;g_dateSeparatorShort="/";g_timeSeparator=P_b6;var japaneseEras=new Array();japaneseEras[0]=new japaneseEra('Meiji','1868','8','8','1912','7','29');japaneseEras[1]=new japaneseEra('Taisho','1912','7','30','1926','12','24');japaneseEras[2]=new japaneseEra('Showa','1926','12','25','1989','1','7');japaneseEras[3]=new japaneseEra('Heisei','1989','1','8','2019','4','30');japaneseEras[4]=new japaneseEra('Reiwa','2019','5','1','2087','12','31');MIN_YEAR=0;MAX_YEAR=49;function CDatePickerDialog(_ur,_u8,_qv,_qx,_pP,_rZ,_mB,_rf){this.setCVId(_mB);if(_rf==null){this.popupZIndex="115";}else{this.popupZIndex=_rf;}this._kq=_ur;this._jb=(browserIsNS7()?null:document.getElementById("pickerControl"+_qv+"iframe"));this.m_oParentControl=_u8;this.m_sRef=_qv;this._lG=document.getElementById("myYear"+this.m_sRef);this._iZ=_qx;this._ew=browserIsNS7();this.initMonths();this._i7=_rZ;this.initDays();this._lD=this.m_oParentControl.m_dDate.getDate();this._iJ=_pP;this._dt=[];if(!this._iZ){this._kq.style.position="absolute";this._kq.style.display="none";this._kq.style.zIndex=this.popupZIndex;var _Fm=document.getElementById("dialogDatePicker"+this.m_sRef);if(_Fm){PRMTUtils._hj(_Fm,"click",function(_nQ){PRMTUtils.F_StopEvent(_nQ);});}if(document&&document.body&&(!document.body.oDatePickerHandler||document.body.oDatePickerHandler[_mB]!==true)){if(!document.body.oDatePickerHandler){document.body.oDatePickerHandler=[_mB];}var _qL=this.getObserverArray('datePickerObserverArray');document.body.oDatePickerHandler[_mB]=true;PRMTUtils._hj(document.body,"click",function(_nQ){_nQ=(_nQ?_nQ:event);var _oJ=(_nQ.target?_nQ.target:_nQ.srcElement);if(!(_oJ&&_oJ.tagName=="IMG"&&_oJ.src&&_oJ.src.match(/icon_datepicker.gif/i))){datePickerObserverNotify(_qL);}});}}else{this.refreshDate(this.m_oParentControl.m_dDate);this._kq.style.visibility="inherit";}};CDatePickerDialog.prototype=new CPromptControl();function CDatePickerDialog_toggleDatePicker(){var _Ef=this._jb;if(this.isVisible()){this._kq.style.display="none";this._kq.style.zIndex="1";if(_Ef!==null){_Ef.style.display="none";}}else{datePickerObserverNotify();this._kq.style.display="inline";this._kq.style.zIndex=this.popupZIndex;var _ns="btnYearDown"+this.m_sRef;var _DX=document.getElementById(_ns);if(_DX!=null){window.setTimeout("document.getElementById('"+_ns+"').focus();",500);}if(_Ef!==null&&typeof _Ef.allowTransparency!=P_cD){this.resizeIframe(_Ef,this._kq);_Ef.style.zIndex="1";_Ef.style.display="inline";}}};function CDatePickerDialog_hidePicker(){var _An=this._jb;this._kq.style.display="none";if(_An!==null&&_An.style){_An.style.display="none";}};function CDatePickerDialog_isVisible(){return(this._kq.style.display=="inline");};function CDatePickerDialog_refreshDate(_s1){if(!_s1){var d=new Date();_s1=d;this.m_oParentControl.m_dDate=d;}var _xA=intGetDays(_s1.getMonth(),_s1.getFullYear());this._lD=_s1.getDate();if(this._lD>_xA){_s1.setDate(_xA);}else{_s1.setDate(this._lD);}if(this._iJ==1){this.drawEmperorYear(_s1);}else{this.drawYear(_s1);}this.refreshPickerLayout(_s1);};function CDatePickerDialog_refreshPickerLayout(_s1){this.m_oParentControl.updateFormVariable(this.m_oParentControl.m_oForm,_s1);this.clearMonths();this.clearDays();this.drawMonth(_s1.getMonth());this.drawDays(_s1);this.refreshPickerIFrame();};function CDatePickerDialog_refreshPickerIFrame(){if(this._jb!==null){this.resizeIframe(this._jb,this._kq);}};function CDatePickerDialog_yearUp(){var _s1=new Date();_s1.setDate(1);_s1.setMonth(this.m_oParentControl.m_dDate.getMonth());var _EG=this.m_oParentControl.m_dDate.getFullYear();_s1.setFullYear(_EG+1);var _xA=intGetDays(_s1.getMonth(),_s1.getFullYear());if(this._lD>_xA){_s1.setDate(_xA);}else{_s1.setDate(this._lD);}if(this.m_oParentControl._hn){if(bIsDateEarlier(_s1,this.m_oParentControl._hn)===true){return;}}if(this.m_oParentControl._gI){if(bIsDateLater(_s1,this.m_oParentControl._gI)===true){if(_s1.getYear()==this.m_oParentControl._gI.getYear()){_s1.setMonth(this.m_oParentControl._gI.getMonth());_s1.setDate(this.m_oParentControl._gI.getDate());}else{return;}}}this.m_oParentControl.m_dDate=_s1;this.refreshDate(this.m_oParentControl.m_dDate);this.m_oParentControl.drawDate();this.m_oParentControl.checkDate(this.m_oParentControl.m_oEditBox);};function CDatePickerDialog_yearDown(){var _s1=new Date();_s1.setDate(1);_s1.setMonth(this.m_oParentControl.m_dDate.getMonth());var _EG=this.m_oParentControl.m_dDate.getFullYear();if(parseInt(_EG,10)<=0){return;}_s1.setFullYear(_EG-1);var _xA=intGetDays(_s1.getMonth(),_s1.getFullYear());if(this._lD>_xA){_s1.setDate(_xA);}else{_s1.setDate(this._lD);}if(this.m_oParentControl._hn){if(bIsDateEarlier(_s1,this.m_oParentControl._hn)===true){if(bIsDateEarlier(_s1,this.m_oParentControl._hn)===true){if(_s1.getYear()==this.m_oParentControl._hn.getYear()){_s1.setMonth(this.m_oParentControl._hn.getMonth());_s1.setDate(this.m_oParentControl._hn.getDate());}else{return;}}}}if(this.m_oParentControl._gI){if(bIsDateLater(_s1,this.m_oParentControl._gI)===true){return;}}this.m_oParentControl.m_dDate=_s1;this.refreshDate(this.m_oParentControl.m_dDate);this.m_oParentControl.drawDate();this.m_oParentControl.checkDate(this.m_oParentControl.m_oEditBox);};function CDatePickerDialog_initMonths(){for(var i=0;i<12;i++){var _KD=this.m_sRef+"m"+i;var _B8=document.getElementById(_KD);_B8.innerHTML=sGetMonth(i);}};function CDatePickerDialog_initDays(){var _vS=this._i7-1;var _wd=null;var _yS=null;for(var i=0;i+_vS<7;i++){var _GO=i+_vS;_wd=this.m_sRef+"d"+i;_yS=document.getElementById(_wd);_yS.innerHTML=sGetDay(_GO);}for(i=0;i<_vS;i++){_wd=this.m_sRef+"d"+(7-_vS+i);_yS=document.getElementById(_wd);_yS.innerHTML=sGetDay(i);}};function CDatePickerDialog_drawYear(_s1){var _L5=_s1.getFullYear();_L5="0000"+_L5;_L5=_L5.substring(_L5.length-4,_L5.length);this._lG.value=_L5;};function CDatePickerDialog_drawEmperorYear(_s1){var _Hb=getJapaneseEra(_s1);this._lG.value=_Hb;};function CDatePickerDialog_newMonth(_qJ){var _xA=intGetDays(_qJ,this.m_oParentControl.m_dDate.getFullYear());var _z4;if(this._lD>_xA){_z4=_xA;}else{_z4=this._lD;}var _s1=new Date(this.m_oParentControl.m_dDate.getFullYear(),_qJ,_z4);_s1.setFullYear(this.m_oParentControl.m_dDate.getFullYear());if(this.m_oParentControl._hn){if(bIsDateEarlier(_s1,this.m_oParentControl._hn)===true){if(_s1.getMonth()==this.m_oParentControl._hn.getMonth()){var _Fz=this.m_oParentControl._hn.getDate();if((_z4<_Fz)&&(_Fz<=_xA)){_s1.setDate(_Fz);}}else{return;}}}if(this.m_oParentControl._gI){if(bIsDateLater(_s1,this.m_oParentControl._gI)===true){if(_s1.getMonth()==this.m_oParentControl._gI.getMonth()){var _Fz=this.m_oParentControl._gI.getDate();if((_z4>_Fz)&&(_Fz<=_xA)){_s1.setDate(_Fz);}}else{return;}}}this.m_oParentControl.m_dDate=_s1;this.refreshDate(this.m_oParentControl.m_dDate);this.m_oParentControl.drawDate();this.m_oParentControl.checkDate(this.m_oParentControl.m_oEditBox);};function CDatePickerDialog_clearMonths(){var _Fp=0;for(_Fp=0;_Fp<12;_Fp++){var _D9=this.m_sRef+"m"+_Fp;document.getElementById(_D9).className="clsSelectDateMonths pm";}};function CDatePickerDialog_drawMonth(_qJ){var _C5=false;var _CC=false;var _xK=this.m_oParentControl.m_dDate.getFullYear();if(this.m_oParentControl._hn){if(_xK<=this.m_oParentControl._hn.getFullYear()){_C5=true;}}if(this.m_oParentControl._gI){if(_xK>=this.m_oParentControl._gI.getFullYear()){_CC=true;}}for(var c=0;c<12;c++){var _B9=this.m_sRef+"m"+c;if(_qJ==c){document.getElementById(_B9).className="clsSelectDateMonthsSelected pms";document.getElementById(_B9).setAttribute("aria-selected","true");document.getElementById(_B9).setAttribute("tabindex","0");document.getElementById(_B9).setAttribute("role","option");}else if((_C5===true)&&(bIsDateEarlier(new Date(_xK,c,intGetDays(c,_xK)),this.m_oParentControl._hn)===true)){document.getElementById(_B9).className="clsSelectDateMonthsDisabled pmd";document.getElementById(_B9).setAttribute("aria-selected","false");document.getElementById(_B9).setAttribute("tabindex","0");document.getElementById(_B9).setAttribute("role","option");}else if((_CC===true)&&(bIsDateLater(new Date(_xK,c,1),this.m_oParentControl._gI)===true)){document.getElementById(_B9).className="clsSelectDateMonthsDisabled pmd";document.getElementById(_B9).setAttribute("aria-selected","false");document.getElementById(_B9).setAttribute("tabindex","0");document.getElementById(_B9).setAttribute("role","option");}else{document.getElementById(_B9).className="clsSelectDateMonths pm";document.getElementById(_B9).setAttribute("aria-selected","false");document.getElementById(_B9).setAttribute("tabindex","0");document.getElementById(_B9).setAttribute("role","option");}}};function CDatePickerDialog_newDay(_vF){var _AO=parseInt(_vF.innerHTML,10);if(!isNaN(_AO)){this._lD=_AO;var _s1=new Date();_s1.setDate(1);_s1.setMonth(this.m_oParentControl.m_dDate.getMonth());_s1.setFullYear(this.m_oParentControl.m_dDate.getFullYear());_s1.setDate(_AO);if(this.m_oParentControl._hn){if(bIsDateEarlier(_s1,this.m_oParentControl._hn)===true){return;}}if(this.m_oParentControl._gI){if(bIsDateLater(_s1,this.m_oParentControl._gI)===true){return;}}this.m_oParentControl.m_dDate=_s1;this.refreshDate(this.m_oParentControl.m_dDate);this.m_oParentControl.drawDate();if(!this._iZ){this.hidePicker();window.setTimeout("document.getElementById('txtDate"+this.m_sRef+"').focus();",500);}}this.m_oParentControl.checkDate(this.m_oParentControl.m_oEditBox);};function CDatePickerDialog_drawDays(_rs){this.clearDays();var _L8=new Date(_rs.getFullYear(),_rs.getMonth(),1);var _JY=_L8.getDay();var _Ia=intGetDays(_rs.getMonth(),_rs.getFullYear());var _zC=_rs.getDate();var i=0;var j=0;var _Hz=_JY-this._i7+1;if(_Hz>0){i=_Hz;}else if(_Hz===0){i=0;}else{i=7+_Hz;}var _C5=false;var _CC=false;if(this.m_oParentControl._hn){if(bIsDateEarlier(_L8,this.m_oParentControl._hn)===true){_C5=true;}}var _HS=new Date(_rs.getFullYear(),_rs.getMonth(),_Ia);if(this.m_oParentControl._gI){if(bIsDateLater(_HS,this.m_oParentControl._gI)===true){_CC=true;}}var _G0;var _xo;var _xb=true;for(var c=1;c<_Ia+1;c++){if(this._ew){_xo=this.m_sRef+"r"+j+"c"+i;_G0=document.getElementById(_xo);}else{if(i===0||_xb){_xo=this.m_sRef+"r"+j+"c"+i;_G0=document.getElementById(_xo);}else{_G0=_G0.nextSibling;}_xb=false;}_G0.innerHTML=c;_G0.setAttribute("role","option");_G0.setAttribute("aria-describedby",this.m_sRef+"d"+i);this.addEventListenerForDay(_G0,"mousedown",this.newDay.bind(this,_G0));var _zg=this;if(c==_Ia){this.addEventListenerForDay(_G0,"keydown",function(e){if((e.keyCode==9)&&(!e.shiftKey)){if(_zg.checkTabFocus(this)){PRMTUtils.F_StopEvent(e);}}else if((e.keyCode==13)||(e.keyCode==32)){_zg.newDay(this);}});}else{this.addEventListenerForDay(_G0,"keydown",function(e){if((e.keyCode==13)||(e.keyCode==32)){_zg.newDay(this);}});}_G0.setAttribute("tabindex","0");if(c==_zC){_G0.className="clsSelectDateDaysSelected pds";_G0.setAttribute("aria-selected","true");}else if((_C5===true)&&(c<this.m_oParentControl._hn.getDate())){_G0.className="clsSelectDateDaysDisabled pdd";_G0.setAttribute("aria-selected","false");_G0.setAttribute("tabindex","0");_G0.setAttribute("role","option");}else if((_CC===true)&&(c>this.m_oParentControl._gI.getDate())){_G0.className="clsSelectDateDaysDisabled pdd";_G0.setAttribute("aria-selected","false");_G0.setAttribute("tabindex","0");_G0.setAttribute("role","option");}else{_G0.className="clsSelectDateDays pd";_G0.setAttribute("aria-selected","false");_G0.setAttribute("tabindex","0");_G0.setAttribute("role","option");}i++;if(i==7){i=0;j++;}}};function CDatePickerDialog_clearDays(){var _xo;var _G0;var _wA;if(!this._ew){_xo=this.m_sRef+"r"+0+"c"+0;_G0=document.getElementById(_xo);_wA=_G0.parentElement;}this.removeEventListenersFromDays();var i=0;for(var j=0;j<6;j++){if(this._ew){for(i=0;i<7;i++){_xo=this.m_sRef+"r"+j+"c"+i;_G0=document.getElementById(_xo);_G0.removeAttribute("tabindex");_G0.removeAttribute("role");_G0.removeAttribute("aria-selected");_G0.innerHTML=P_ai;_G0.className="clsSelectDate";}}else{var _Ep=_wA.firstChild;for(i=0;i<7;i++){_Ep.innerHTML=P_ai;_Ep.className="clsSelectDate";_Ep=_Ep.nextSibling;}_wA=_wA.nextSibling;}}};function CDatePickerDialog_addEventListenerForDay(_ox,_qr,_pv){if(_ox){if(_ox.addEventListener){_ox.addEventListener(_qr,_pv,false);this._dt.push({remove:function(){_ox.removeEventListener(_qr,_pv,false);}});}else{_ox.attachEvent('on'+_qr,_pv);this._dt.push({remove:function(){_ox.detachEvent('on'+_qr,_pv);}});}}};function CDatePickerDialog_removeEventListenersFromDays(){while(this._dt.length>0){var _IC=this._dt.pop();_IC.remove();}};function CDatePickerDialog_checkDatePass(_sl){_sl.className="clsSelectDateYearEditBox";this.m_oParentControl.checkDatePass(null);this.notify(gPASS,this);};function CDatePickerDialog_checkDateFail(_sl){_sl.className="clsSelectDateYearEditBoxParseError";this.m_oParentControl.checkDateFail(null);this.notify(gFAIL,this);};function CDatePickerDialog_getYearFromEditBox(_sl){var _qQ=_sl.value;var _o4=false;if(this._iJ==1){_o4=iTestEra(_qQ);}else if(boolTestYear(_qQ)){_o4=_qQ;if(_o4.length==2){_o4=sShortToFullYearConversion(_o4);}}return _o4;};function CDatePickerDialog_checkYear(_sl){var _o4=this.getYearFromEditBox(_sl);if(_o4===false){this.checkDateFail(_sl);}else{this.checkDatePass(_sl);var _AV=this.m_oParentControl;var _Du=_AV.m_dDate;_Du.setFullYear(_o4);if(this._iJ==1){this.refreshDate(_Du);}else{this.refreshPickerLayout(_Du);}_AV.drawDate();_AV.checkDate(_AV.m_oEditBox);}};function CDatePickerDialog_keyPress(_r3){if(_r3=='8'){this.checkYear(this._lG);}return true;};function CDatePickerDialog_lostFocus(){this.refreshDate(this.m_oParentControl.m_dDate);this.m_oParentControl.drawDate();this.checkDatePass(this._lG);};function CDatePickerDialog_checkTabFocus(){if(!this._iZ){var _v4=document.getElementById("btnYearDown"+this.m_sRef);if(_v4!=null){_v4.focus();return true;}}else{var _D7=document.getElementById(this.m_sRef+"imgPicker");if(_D7!=null){_D7.focus();return true;}}return false;};function CDatePickerDialog_resizeIframe(_nP,_ur){var _JO=_nP;while(_JO=_JO.parentNode){if(_JO.className=="cogstyle-filter-body"){return;}}if(_nP.parentNode!=_ur.parentNode){_nP.parentNode.removeChild(_nP);_ur.parentNode.insertBefore(_nP,_ur);}if(this._ew===true){_nP.style.left=_ur.style.left;_nP.style.top=_ur.style.top;_nP.style.width=_ur.width;_nP.style.height=_ur.height;}else{_nP.style.pixelLeft=_ur.style.pixelLeft;_nP.style.pixelTop=_ur.style.pixelTop;_nP.style.pixelWidth=_ur.offsetWidth;_nP.style.pixelHeight=_ur.offsetHeight;}};CDatePickerDialog.prototype.toggleDatePicker=CDatePickerDialog_toggleDatePicker;CDatePickerDialog.prototype.refreshDate=CDatePickerDialog_refreshDate;CDatePickerDialog.prototype.yearUp=CDatePickerDialog_yearUp;CDatePickerDialog.prototype.yearDown=CDatePickerDialog_yearDown;CDatePickerDialog.prototype.drawYear=CDatePickerDialog_drawYear;CDatePickerDialog.prototype.newMonth=CDatePickerDialog_newMonth;CDatePickerDialog.prototype.drawMonth=CDatePickerDialog_drawMonth;CDatePickerDialog.prototype.clearMonths=CDatePickerDialog_clearMonths;CDatePickerDialog.prototype.newDay=CDatePickerDialog_newDay;CDatePickerDialog.prototype.drawDays=CDatePickerDialog_drawDays;CDatePickerDialog.prototype.clearDays=CDatePickerDialog_clearDays;CDatePickerDialog.prototype.drawEmperorYear=CDatePickerDialog_drawEmperorYear;CDatePickerDialog.prototype.hidePicker=CDatePickerDialog_hidePicker;CDatePickerDialog.prototype.isVisible=CDatePickerDialog_isVisible;CDatePickerDialog.prototype.checkYear=CDatePickerDialog_checkYear;CDatePickerDialog.prototype.lostFocus=CDatePickerDialog_lostFocus;CDatePickerDialog.prototype.initMonths=CDatePickerDialog_initMonths;CDatePickerDialog.prototype.initDays=CDatePickerDialog_initDays;CDatePickerDialog.prototype.checkDateFail=CDatePickerDialog_checkDateFail;CDatePickerDialog.prototype.checkDatePass=CDatePickerDialog_checkDatePass;CDatePickerDialog.prototype.keyPress=CDatePickerDialog_keyPress;CDatePickerDialog.prototype.resizeIframe=CDatePickerDialog_resizeIframe;CDatePickerDialog.prototype.getYearFromEditBox=CDatePickerDialog_getYearFromEditBox;CDatePickerDialog.prototype.refreshPickerIFrame=CDatePickerDialog_refreshPickerIFrame;CDatePickerDialog.prototype.refreshPickerLayout=CDatePickerDialog_refreshPickerLayout;CDatePickerDialog.prototype.checkTabFocus=CDatePickerDialog_checkTabFocus;CDatePickerDialog.prototype.removeEventListenersFromDays=CDatePickerDialog_removeEventListenersFromDays;CDatePickerDialog.prototype.addEventListenerForDay=CDatePickerDialog_addEventListenerForDay;function CMultipleDatePicker(_sZ,_os,_rp,_nF,_qW,_tY,_s7,_qg,_tQ,_mB){this.setCVId(_mB);this._iX=_sZ;this.m_oLstChoices=_os;this.m_oSubmit=_rp;this._jx=_nF;this._l1=false;this._dx=_qW;this._k0=_tY;if(_qg){this._iT=_qg;}if(_tQ){this._fn=_tQ;}this.checkData();if(_s7){this._dJ=_s7;this.resizeList();}this.checkInsertRemove();};CMultipleDatePicker.prototype=new CPromptControl();function CMultipleDatePicker_selectAll(){for(var i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=true;}this.checkInsertRemove();};function CMultipleDatePicker_deSelectAll(){for(var i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=false;}this.checkInsertRemove();};function CMultipleDatePicker_insert(){var _CE=this._iX.m_dDate;if(_CE){var _qk=this._iX.sGetFormatValue();var _nJ=this._iX.sGetValue();if((_qk)&&(_nJ)){this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nJ,false,false);}}this.checkData();this.resizeList();this.resizeList();this.checkInsertRemove();};function CMultipleDatePicker_remove(){this.removeSelectedChoices();this.checkInsertRemove();};function CMultipleDatePicker_preProcess(){var i=0;if(this._dx==P_ak){var _Lf=P_ai;if(this.m_oLstChoices.options.length>0){for(i=0;i<this.m_oLstChoices.options.length;i++){_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(this.m_oLstChoices.options[i].text)+'"';_Lf+=' useValue="'+sXmlEncode(this.m_oLstChoices.options[i].value)+'"';if(this.m_oLstChoices.options[i].selected==true){_Lf+=' selected="true" />';}else{_Lf+=' selected="false" />';}}}addSelectChoices(this.m_oSubmit,_Lf);}else{for(i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=true;}}};function CMultipleDatePicker_checkData(){if((this._jx==true)&&(this.m_oLstChoices.options.length===0)){this._l1=false;this.checkFail();return false;}else{this._l1=true;this.checkPass();return true;}};function CMultipleDatePicker_resizeList(){if(this._dJ){this.m_oLstChoices.style.width='auto';if(this._dJ.width<200){this.m_oLstChoices.style.width='200px';}}};function CMultipleDatePicker_checkInsertRemove(){if(this._iT){if((this._iX.getValid()==true)&&(this._iX.hasValue())){this._iT.disabled=false;}else{this._iT.disabled=true;this._iT.className="clsInsertRemoveButton";}}if(this._fn){if(this.m_oLstChoices.selectedIndex==-1){this._fn.disabled=true;this._fn.className="clsInsertRemoveButton";}else{this._fn.disabled=false;}}};function CMultipleDatePicker_add(_qk,_nV){this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nV,false,false);this.checkData();this.resizeList();this.resizeList();this.checkInsertRemove();};function CMultipleDatePicker_addNoUpdate(_qk,_nV,_rF){_qk=sDecodeU003(_qk);_nV=sDecodeU003(_nV);if(_rF==true){this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nV,true,true);}else{this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nV,false,false);}};function CMultipleDatePicker_update(){this.checkData();this.resizeList();this.resizeList();this.checkInsertRemove();};CMultipleDatePicker.prototype.selectAll=CMultipleDatePicker_selectAll;CMultipleDatePicker.prototype.deSelectAll=CMultipleDatePicker_deSelectAll;CMultipleDatePicker.prototype.insert=CMultipleDatePicker_insert;CMultipleDatePicker.prototype.remove=CMultipleDatePicker_remove;CMultipleDatePicker.prototype.preProcess=CMultipleDatePicker_preProcess;CMultipleDatePicker.prototype.checkData=CMultipleDatePicker_checkData;CMultipleDatePicker.prototype.resizeList=CMultipleDatePicker_resizeList;CMultipleDatePicker.prototype.checkInsertRemove=CMultipleDatePicker_checkInsertRemove;CMultipleDatePicker.prototype.add=CMultipleDatePicker_add;CMultipleDatePicker.prototype.addNoUpdate=CMultipleDatePicker_addNoUpdate;CMultipleDatePicker.prototype.update=CMultipleDatePicker_update;function CTimePicker(_rp,_pM,_oh,_mD,_nh,_vo,_uc,_tJ,_mb,_sl,_qv,_pP,_nE,_qx,_qp,_ml,_ud,_oH,_mC,_va,_tv,_nF,_qW,_mB,_uQ,_ro){this.setCVId(_mB);this.m_oSubmit=_rp;this.m_oForm=_pM;this.id=_uQ;this.m_oHours=_oh;this.m_oMinutes=_mD;this.m_oSeconds=_nh;this._lm=_vo;this._fl=_uc;this._gj=_mb;this.m_oEditBox=_sl;this.m_sRef=_qv;this._jx=_nF;this.m_bDisabled=false;this._l1=false;this._dx=_qW;if(_pP==null){if(g_24HourClock.toString().toLowerCase()=="true"){_pP=2;}else{if(g_AMPMLocation=='left'){_pP=1;}else{_pP=0;}}}this._iJ=_pP;this._kS=_nE;this._lr=false;this._ei=false;this._hK=false;this._jI=false;this.setValue(_tv);this._ll=this.m_oHours.name;this._gN=this.m_oMinutes.name;if(this._kS<=1){this._e2=this.m_oSeconds.name;}else{this._e2="null";}if(this._kS==0){this._lN=this._lm.name;}else{this._lN="null";}if((this._iJ==0)||(this._iJ==1)){this._lY=this._fl.name;}else{this._lY="null";}this._iZ=_qx;if(this._iZ==true){this._eT=eval(_va);}else{this._eT=null;}this._gC=_qp;this._jp=g_hourFormatMedium;this._hy=g_minuteFormatMedium;this._e7=g_secondFormatMedium;this._kL=this.m_oHours;this._lw=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);this._ho=_tJ;if(this._ho!=null){this._kF=new Image();this._kF.src=this._lw+"/prompting/images/error_timed_small_off.gif";this._kx=new Image();this._kx.src=this._lw+"/prompting/images/error_timed_small.gif";}this._hC=_mC;if(this._hC==1){this.funcInt=setInterval(this.drawLiveTime.bind(this),1000);}this.refreshTime();this.updateSubmitField();this._i9=_ro;};CTimePicker.prototype=new CPromptControl();function CTimePicker_updateSubmitField(){var _GA=this._f6.getHours().toString();if(_GA.length==1){_GA='0'+_GA;}var _we=this._f6.getMinutes().toString();if(_we.length==1){_we='0'+_we;}var _wY=this._f6.getSeconds().toString();if(_wY.length==1){_wY='0'+_wY;}var _F4=this._f6.getMilliseconds().toString();if(_F4.length==2){_F4='0'+_F4;}else if(_F4.length==1){_F4='00'+_F4;}this.m_oForm.value=_GA+P_b6+_we+P_b6+_wY+P_A+_F4;};function CTimePicker_refreshTime(){this.checkData();if(this._l1){this.updateSubmitField();}this.drawHours();this.drawMinutes();if(this._kS<=1){this.drawSeconds();}if(this._kS==0){this.drawMilliseconds();}if((this._iJ==0)||(this._iJ==1)){this.drawAMPM();}};function CTimePicker_drawHours(){var _AB=this.m_oHours.value;var _ES=this.iGetCurrentHours();var _GA=_ES.toString();if((this._jp=='hh')&&(_GA.length==1)){_GA='0'+_GA;}this.m_oHours.value=_GA;this.m_oHours.id=this.id+"_prmtTime_HOURS";this.m_oHours.className="clsSelectTimeControl pcl";if(this._eT!=null){this._eT.clockSetTime(this._f6.getHours(),this._f6.getMinutes(),this._f6.getSeconds());}if(this._lr&&_AB!=_ES.toString()){this._lr=false;var _uH=PMT_UIM_INVALID_HOURS_CHANGED.replace(/\^1/,P_ah).replace(/\^2/,P_aK).replace(/\^3/,_ES);var _sl=this.m_oEditBox;PRMTUtils._fB(_sl,this.m_sRef,this._lw,_uH);}};function CTimePicker_drawMinutes(){var _Eg=this.m_oMinutes.value;var _IJ=this.iGetCurrentMinutes();var _we=_IJ.toString();if((this._hy=='mm')&&(_we.length==1)){_we='0'+_we;}this.m_oMinutes.value=_we;this.m_oMinutes.id=this.id+"_prmtTime_MINUTES";this.m_oMinutes.className="clsSelectTimeControl pcl";if(this._eT!=null){this._eT.clockSetTime(this._f6.getHours(),this._f6.getMinutes(),this._f6.getSeconds());}if(this._ei&&_Eg!=_IJ.toString()){this._ei=false;var _uH=PMT_UIM_INVALID_MINUTES_CHANGED.replace(/\^1/,P_a2).replace(/\^2/,P_df).replace(/\^3/,_IJ);var _sl=this.m_oEditBox;PRMTUtils._fB(_sl,this.m_sRef,this._lw,_uH);}};function CTimePicker_drawSeconds(){var _xD=this.m_oSeconds.value;var _FS=this.iGetCurrentSeconds();var _wY=_FS.toString();if(this._e7=='ss'&&(_wY.length==1)){_wY='0'+_wY;}this.m_oSeconds.value=_wY;this.m_oSeconds.id=this.id+"_prmtTime_SECONDS";this.m_oSeconds.className="clsSelectTimeControl pcl";if(this._eT!=null){this._eT.clockSetTime(this._f6.getHours(),this._f6.getMinutes(),this._f6.getSeconds());}if(this._hK&&_xD!=_FS.toString()){this._hK=false;var _uH=PMT_UIM_INVALID_SECONDS_CHANGED.replace(/\^1/,P_di).replace(/\^2/,P_aI).replace(/\^3/,_FS);var _sl=this.m_oEditBox;PRMTUtils._fB(_sl,this.m_sRef,this._lw,_uH);}};function CTimePicker_drawMilliseconds(){var _LK=this._lm.value;var _yX=this.iGetCurrentMilliseconds();var _F4=_yX.toString();if(_F4.length==2){_F4='0'+_F4;}else if(_F4.length==1){_F4='00'+_F4;}this._lm.value=_F4;this._lm.id=this.id+"_prmtTime_MILLISECONDS";this._lm.className="clsSelectTimeControl pcl";if(this._jI&&_LK!=_yX.toString()){this._jI=false;var _uH=PMT_UIM_INVALID_MILLISECONDS_CHANGED.replace(/\^1/,P_cu).replace(/\^2/,P_dm).replace(/\^3/,_yX);var _sl=this.m_oEditBox;PRMTUtils._fB(_sl,this.m_sRef,this._lw,_uH);}};function CTimePicker_drawAMPM(){this._fl.value=this.sGetCurrentAMPM();this._fl.id=this.id+"_prmtTime_AMPM";this._fl.className="clsSelectTimeControl pcl";};function CTimePicker_drawLiveTime(){this._f6=new Date();if(this._eT!=null){}this.refreshTime();};function CTimePicker_stopLiveTime(){if(this._hC==1){if(this._eT!=null){this._eT.stopLiveTime();}if(this._kS>1){this._f6.setSeconds(0);}if(this._kS>0){this._f6.setMilliseconds(0);}this._hC=0;clearInterval(this.funcInt);}};function CTimePicker_setCurrentHours(_nr){this.stopLiveTime();if((_nr>=P_ah)&&(_nr<=P_aK)){this._f6.setHours(_nr);}};function CTimePicker_setCurrentMinutes(_nr){this.stopLiveTime();if(_nr>=P_a2&&_nr<=P_df){this._f6.setMinutes(_nr);}};function CTimePicker_setCurrentSeconds(_nr){this.stopLiveTime();if(_nr>=P_di&&_nr<=P_aI){this._f6.setSeconds(_nr);}};function CTimePicker_setCurrentMilliseconds(_nr){this.stopLiveTime();if(_nr>=P_cu&&_nr<=P_dm){this._f6.setMilliseconds(_nr);}};function CTimePicker_setCurrentAMPM(_nK){this.stopLiveTime();var _GN=this.sGetCurrentAMPM();if(_nK==_GN){return;}else{var _ES=this._f6.getHours();if(_nK==g_pmString){if(_ES<12){_ES=_ES+12;this.setCurrentHours(_ES);}}else if(_nK==g_amString){if(_ES>11){_ES=_ES-12;this.setCurrentHours(_ES);}}}};function CTimePicker_iGetCurrentHours(){if(this._iJ==2){return this._f6.getHours();}else{var _ES=this._f6.getHours();if(_ES>12){_ES=_ES-12;}if(_ES==0){_ES=12;}return _ES;}};function CTimePicker_iGetCurrentMinutes(){return this._f6.getMinutes();};function CTimePicker_iGetCurrentSeconds(){return this._f6.getSeconds();};function CTimePicker_iGetCurrentMilliseconds(){return this._f6.getMilliseconds();};function CTimePicker_sGetCurrentAMPM(){if(this._iJ==2){return P_ai;}else{if(this._f6.getHours()>11){return g_pmString;}else{return g_amString;}}};function CTimePicker_bisValidHours(_m9){var _ES=parseInt(this.m_oHours.value,10);return(bNumbersOnly(_m9)&&_ES>=P_ah&&_ES<=P_aK);};function CTimePicker_bisValidMinutes(_qt){var _IJ=parseInt(this.m_oMinutes.value,10);return(bNumbersOnly(_qt)&&_IJ>=P_a2&&_IJ<=P_df);};function CTimePicker_bisValidSeconds(_qt){var _FS=parseInt(this.m_oSeconds.value,10);return(bNumbersOnly(_qt)&&_FS>=P_di&&_FS<=P_aI);};function CTimePicker_bisValidMilliseconds(_nD){var _yX=parseInt(this._lm.value,10);return(bNumbersOnly(_nD)&&_yX>=P_cu&&_yX<=P_dm);};function CTimePicker_bCheckTime(){if(!this.bisValidHours(this.m_oHours.value)){return false;}if(!this.bisValidMinutes(this.m_oMinutes.value)){return false;}if(this._kS<=1){if(!this.bisValidSeconds(this.m_oSeconds.value)){return false;}}if(this._kS==0){if(!this.bisValidMilliseconds(this.m_oSeconds.value)){return false;}}return true;};function CTimePicker_setCurrentFocus(_uk){this._kL=_uk;this._kL.select();};function CTimePicker_oGetCurrentFocus(){return this._kL;};function CTimePicker_timeUp(){var _yJ=this._kL.name;switch(_yJ){case this._ll:var _wU=this._f6.getHours();if(_wU==P_aK){this.setCurrentHours(P_ah);}else{this.setCurrentHours(this._f6.getHours()+1);}if(this._iJ!=2){this.drawAMPM();}this.drawHours();break;case this._gN:if(this.iGetCurrentMinutes()==P_df){this.setCurrentMinutes(P_a2);}else{this.setCurrentMinutes(this.iGetCurrentMinutes()+1);}this.drawMinutes();break;case this._e2:if(this.iGetCurrentSeconds()==P_aI){this.setCurrentSeconds(P_di);}else{this.setCurrentSeconds(this.iGetCurrentSeconds()+1);}this.drawSeconds();break;case this._lN:if(this.iGetCurrentMilliseconds()==P_dm){this.setCurrentMilliseconds(P_cu);}else{this.setCurrentMilliseconds(this.iGetCurrentMilliseconds()+1);}this.drawMilliseconds();break;case this._lY:if(this.sGetCurrentAMPM()==g_amString){this.setCurrentAMPM(g_pmString);}else{this.setCurrentAMPM(g_amString);}this.drawAMPM();break;default:alert('problem with CTimePicker_timeUp()');break;}this.updateSubmitField();if(!PRMTUtils._ix()){this._kL.select();}};function CTimePicker_timeDown(){var _yJ=this._kL.name;switch(_yJ){case this._ll:var _wU=this._f6.getHours();if(_wU==P_ah){this.setCurrentHours(P_aK);}else{this.setCurrentHours(this._f6.getHours()-1);}if(this._iJ!=2){this.drawAMPM();}this.drawHours();break;case this._gN:if(this.iGetCurrentMinutes()==P_a2){this.setCurrentMinutes(P_df);}else{this.setCurrentMinutes(this.iGetCurrentMinutes()-1);}this.drawMinutes();break;case this._e2:if(this.iGetCurrentSeconds()==P_di){this.setCurrentSeconds(P_aI);}else{this.setCurrentSeconds(this.iGetCurrentSeconds()-1);}this.drawSeconds();break;case this._lN:if(this.iGetCurrentMilliseconds()==P_cu){this.setCurrentMilliseconds(P_dm);}else{this.setCurrentMilliseconds(this.iGetCurrentMilliseconds()-1);}this.drawMilliseconds();break;case this._lY:if(this.sGetCurrentAMPM()==g_amString){this.setCurrentAMPM(g_pmString);}else{this.setCurrentAMPM(g_amString);}this.drawAMPM();break;default:alert('problem with CTimePicker_timeUp()');break;}this.updateSubmitField();if(!PRMTUtils._ix()){this._kL.select();}};function CTimePicker_keyPress(_mG,_uk){_mG=(_mG)?_mG:((event)?event:null);if(_mG){var _rx=parseInt(((_mG.keyCode)?_mG.keyCode:_mG.which),10);switch(_rx){case 38:this.timeUp();this.setCurrentFocus(_uk);break;case 40:this.timeDown();this.setCurrentFocus(_uk);break;default:break;}if(this.bCheckTime()==false){this.checkTimeFail();}else{this.checkTimePass();this.updateSubmitField();}}return true;};function CTimePicker_checkTimePass(){if((this._ho!=null)&&(this._ho.src!=this._kF.src)){this._ho.src=this._kF.src;}this.notify(gPASS,this);};function CTimePicker_checkTimeFail(){if(this._ho!=null){this._ho.src=this._kx.src+'?'+Math.random();}this.notify(gFAIL,this);};function CTimePicker_bCheckHour(){this._lr=true;if(this.bisValidHours(this.m_oHours.value)){var _nr=parseInt(this.m_oHours.value,10);this.m_oHours.className="clsSelectTimeControl pcl";this.checkTimePass();if(this._iJ==2){this.setCurrentHours(_nr);}else{if((_nr>0)&&(_nr<12)&&(this.sGetCurrentAMPM()==g_pmString)){_nr=_nr+12;this.setCurrentHours(_nr);}else if((_nr>0)&&(_nr<12)&&(this.sGetCurrentAMPM()==g_amString)){this.setCurrentHours(_nr);}else if(_nr>12){this.setCurrentHours(_nr);}else if((_nr==12)&&(this.sGetCurrentAMPM()==g_amString)){this.setCurrentHours(0);}else if((_nr==12)&&(this.sGetCurrentAMPM()==g_pmString)){this.setCurrentHours(12);}}return true;}else{this.m_oHours.className="clsSelectTimeControlParseError";this.checkTimeFail();return false;}};function CTimePicker_bCheckMinute(){this._ei=true;if(this.bisValidMinutes(this.m_oMinutes.value)){var _nr=parseInt(this.m_oMinutes.value,10);this.m_oMinutes.className="clsSelectTimeControl pcl";this.setCurrentMinutes(_nr);this.checkTimePass();return true;}else{this.m_oMinutes.className="clsSelectTimeControlParseError";this.checkTimeFail();return false;}};function CTimePicker_bCheckSecond(){this._hK=true;if(this.bisValidSeconds(this.m_oSeconds.value)){var _nr=parseInt(this.m_oSeconds.value,10);this.m_oSeconds.className="clsSelectTimeControl pcl";this.setCurrentSeconds(_nr);this.checkTimePass();return true;}else{this.m_oSeconds.className="clsSelectTimeControlParseError";this.checkTimeFail();return false;}};function CTimePicker_bCheckMillisecond(){this._jI=true;if(this.bisValidMilliseconds(this._lm.value)){var _nr=parseInt(this._lm.value,10);this._lm.className="clsSelectTimeControl pcl";this.setCurrentMilliseconds(_nr);this.checkTimePass();return true;}else{this._lm.className="clsSelectTimeControlParseError";this.checkTimeFail();return false;}};function CTimePicker_bCheckAMPM(){var _nK=this._fl.value;var _Dx=new RegExp("^"+g_amString.substring(0,1),"i");var _xi=new RegExp("^"+g_pmString.substring(0,1),"i");if(_nK.match(_Dx)){this._fl.className="clsSelectTimeControl pcl";this.setCurrentAMPM(g_amString);this.checkTimePass();return true;}else if(_nK.match(_xi)){this._fl.className="clsSelectTimeControl pcl";this.setCurrentAMPM(g_pmString);this.checkTimePass();return true;}else{this._fl.className="clsSelectTimeControlParseError";this.checkTimeFail();return false;}};function CTimePicker_sGetFormatTime(){return getFormatTime(this._f6,this._kS);};function CTimePicker_sGetSQLTime(){var _nK=P_ai;_nK=this.m_oForm.value;return _nK;};function CTimePicker_checkData(){if((this._jx==true)&&((this.m_oForm.value==P_ai)||(this.bCheckTime()==false))){this._l1=false;this.checkTimeFail();return false;}if((this.m_bDisabled==false)&&(this.bCheckTime()==false)){this._l1=false;this.checkTimeFail();return false;}else{this._l1=true;this.checkTimePass();if(SYSTEMPROPERTY_TREE_CACHE_ENABLED){if(this._i9){this._i9.cacheControlValue(this._i9._type_);}}return true;}};function CTimePicker_preProcess(){if(this._dx==P_ak){var _Lf=P_ai;if(this.m_bDisabled!=true){_Lf+='<selectOption';_Lf+=' displayValue="'+this.sGetFormatTime()+'"';_Lf+=' useValue="'+this.sGetSQLTime()+'"';_Lf+=' selected="true" />';}addSelectChoices(this.m_oSubmit,_Lf);}else{if(this.m_bDisabled!=true){this.m_oSubmit.value=this.sGetSQLTime();}else{this.m_oSubmit.value=P_ai;}}};function CTimePicker_enable(){this.m_bDisabled=false;if(this._gj){PRMTUtils._h6(this._gj.parentNode,"clsClockDisabled");}PRMTUtils._h6(this._gj,"clsClockDisabled");PRMTUtils._h6(this.m_oEditBox,"clsClockDisabled");PRMTUtils._h6(this.m_oHours,"clsClockDisabled");PRMTUtils._h6(this.m_oMinutes,"clsClockDisabled");PRMTUtils._h6(this.m_oSeconds,"clsClockDisabled");PRMTUtils._h6(this._lm,"clsClockDisabled");PRMTUtils._h6(this._fl,"clsClockDisabled");};function CTimePicker_disable(){this.m_bDisabled=true;this.stopLiveTime();if(this._gj){PRMTUtils._hi(this._gj.parentNode,"clsClockDisabled");}PRMTUtils._hi(this._gj,"clsClockDisabled");PRMTUtils._hi(this.m_oEditBox,"clsClockDisabled");PRMTUtils._hi(this.m_oHours,"clsClockDisabled");PRMTUtils._hi(this.m_oMinutes,"clsClockDisabled");PRMTUtils._hi(this.m_oSeconds,"clsClockDisabled");PRMTUtils._hi(this._lm,"clsClockDisabled");PRMTUtils._hi(this._fl,"clsClockDisabled");};function CTimePicker_toggleDisable(_t5){if(this.isRequired()==false){if(_t5==false){this.disable();}else{this.enable();}}};function CTimePicker_sGetValue(){return this.sGetSQLTime();};function CTimePicker_sGetFormatValue(){return this.sGetFormatTime();};function CTimePicker_setValue(_tv){if(_tv!=null){this._f6=dParseTime(_tv);}else{this.resetTime();}this.refreshTime();this.updateSubmitField();};function CTimePicker_resetTime(){this._f6=new Date();this._f6.setHours(0);this._f6.setMinutes(0);this._f6.setSeconds(0);this._f6.setMilliseconds(0);};function CTimePicker_hasValue(){if(this.m_oForm.value==P_ai){return false;}else{return true;}};function CTimePicker_checkFail(){this.checkTimeFail();};CTimePicker.prototype.updateSubmitField=CTimePicker_updateSubmitField;CTimePicker.prototype.refreshTime=CTimePicker_refreshTime;CTimePicker.prototype.drawHours=CTimePicker_drawHours;CTimePicker.prototype.drawMinutes=CTimePicker_drawMinutes;CTimePicker.prototype.drawSeconds=CTimePicker_drawSeconds;CTimePicker.prototype.drawMilliseconds=CTimePicker_drawMilliseconds;CTimePicker.prototype.drawAMPM=CTimePicker_drawAMPM;CTimePicker.prototype.drawLiveTime=CTimePicker_drawLiveTime;CTimePicker.prototype.stopLiveTime=CTimePicker_stopLiveTime;CTimePicker.prototype.setCurrentHours=CTimePicker_setCurrentHours;CTimePicker.prototype.setCurrentMinutes=CTimePicker_setCurrentMinutes;CTimePicker.prototype.setCurrentSeconds=CTimePicker_setCurrentSeconds;CTimePicker.prototype.setCurrentMilliseconds=CTimePicker_setCurrentMilliseconds;CTimePicker.prototype.setCurrentAMPM=CTimePicker_setCurrentAMPM;CTimePicker.prototype.iGetCurrentHours=CTimePicker_iGetCurrentHours;CTimePicker.prototype.iGetCurrentMinutes=CTimePicker_iGetCurrentMinutes;CTimePicker.prototype.iGetCurrentSeconds=CTimePicker_iGetCurrentSeconds;CTimePicker.prototype.iGetCurrentMilliseconds=CTimePicker_iGetCurrentMilliseconds;CTimePicker.prototype.sGetCurrentAMPM=CTimePicker_sGetCurrentAMPM;CTimePicker.prototype.bCheckTime=CTimePicker_bCheckTime;CTimePicker.prototype.bisValidHours=CTimePicker_bisValidHours;CTimePicker.prototype.bisValidMinutes=CTimePicker_bisValidMinutes;CTimePicker.prototype.bisValidSeconds=CTimePicker_bisValidSeconds;CTimePicker.prototype.bisValidMilliseconds=CTimePicker_bisValidMilliseconds;CTimePicker.prototype.setCurrentFocus=CTimePicker_setCurrentFocus;CTimePicker.prototype.oGetCurrentFocus=CTimePicker_oGetCurrentFocus;CTimePicker.prototype.timeUp=CTimePicker_timeUp;CTimePicker.prototype.timeDown=CTimePicker_timeDown;CTimePicker.prototype.keyPress=CTimePicker_keyPress;CTimePicker.prototype.bCheckHour=CTimePicker_bCheckHour;CTimePicker.prototype.bCheckMinute=CTimePicker_bCheckMinute;CTimePicker.prototype.bCheckSecond=CTimePicker_bCheckSecond;CTimePicker.prototype.bCheckMillisecond=CTimePicker_bCheckMillisecond;CTimePicker.prototype.bCheckAMPM=CTimePicker_bCheckAMPM;CTimePicker.prototype.checkTimePass=CTimePicker_checkTimePass;CTimePicker.prototype.checkTimeFail=CTimePicker_checkTimeFail;CTimePicker.prototype.sGetFormatTime=CTimePicker_sGetFormatTime;CTimePicker.prototype.sGetSQLTime=CTimePicker_sGetSQLTime;CTimePicker.prototype.checkData=CTimePicker_checkData;CTimePicker.prototype.preProcess=CTimePicker_preProcess;CTimePicker.prototype.enable=CTimePicker_enable;CTimePicker.prototype.disable=CTimePicker_disable;CTimePicker.prototype.toggleDisable=CTimePicker_toggleDisable;CTimePicker.prototype.sGetFormatValue=CTimePicker_sGetFormatValue;CTimePicker.prototype.sGetValue=CTimePicker_sGetValue;CTimePicker.prototype.setValue=CTimePicker_setValue;CTimePicker.prototype.resetTime=CTimePicker_resetTime;CTimePicker.prototype.hasValue=CTimePicker_hasValue;CTimePicker.prototype.checkFail=CTimePicker_checkFail;function dParseTime(_tv){var _nM=new Date(1970,0,1,0,0,0,0);var _rd=(_tv)?_tv:P_ai;var _wH=_rd.split(/[T\s]/g);if(_wH.length==2){_rd=_wH[1];}var _wa=_rd.split(/[:\.\,]/g);if((_wa.length==4)||(_wa.length==3)){var _GA=parseInt(_wa[0],10);if(_GA!=NaN&&_GA<=23&&_GA>=0){_nM.setHours(_GA);}else{_nM.setHours(0);}var _we=parseInt(_wa[1],10);if(_we!=NaN&&_we<=59&&_we>=0){_nM.setMinutes(_we);}else{_nM.setMinutes(0);}var _wY=parseInt(_wa[2],10);if(_wY!=NaN&&_wY<=59&&_wY>=0){_nM.setSeconds(_wY);}else{_nM.setSeconds(0);}if(_wa.length==4){var _F4=parseInt(_wa[3],10);if(_F4!=NaN&&_F4<=999&&_F4>=0){_nM.setMilliseconds(_F4);}else{_nM.setMilliseconds(0);}}}return _nM;};function getFormatTime(_nM,_nE){var _nK=P_ai;var _ES=_nM.getHours();if(g_24HourClock=='false'){if(_ES==0){_ES=12;}else if(_ES>12){_ES=_ES-12;}}var _GA=_ES.toString();if((_GA.length==1)&&(g_hourFormatMedium=='hh')){_GA='0'+_GA;}_nK+=_GA;var _we=_nM.getMinutes().toString();if((_we.length==1)&&(g_minuteFormatMedium=='mm')){_we='0'+_we;}_nK+=g_timeSeparator+_we;if(_nE<=1){var _wY=_nM.getSeconds().toString();if((_wY.length==1)&&(g_secondFormatMedium=='ss')){_wY='0'+_wY;}_nK+=g_timeSeparator+_wY;}if(_nE==0){var _F4=_nM.getMilliseconds().toString();if(_F4.length==2){_F4='0'+_F4;}else if(_F4.length==1){_F4='00'+_F4;}_nK+=P_A+_F4;}if((g_24HourClock=='false')&&(g_AMPMLocation=='right')){if(_nM.getHours()>=12){_nK=_nK+P_br+g_pmString;}else{_nK=_nK+P_br+g_amString;}}else if((g_24HourClock=="false")&&(g_AMPMLocation=="left")){if(_nM.getHours()>=12){_nK=g_pmString+P_br+_nK;}else{_nK=g_amString+P_br+_nK;}}return _nK;};var g_amString="AM";var g_pmString="PM";var g_mediumFormat="MMM d, yyyy h:mm:ss a";var g_shortFormat="M/d/yy h:mm a";var g_hourFormatMedium="h";var g_minuteFormatMedium="mm";var g_secondFormatMedium="ss";var g_hourFormatShort="h";var g_minuteFormatShort="mm";var g_secondFormatShort=P_ai;var g_timeSeparator=P_b6;var g_AMPMLocation="right";var g_24HourClock="false";var P_aK=23;var P_df=59;var P_aI=59;var P_dm=999;var P_ah=0;var P_a2=0;var P_di=0;var P_cu=0;function CClock(_ut,_p6,_qv,_mC,_p5,_mB){this.setCVId(_mB);this._kE=70;this._du=60;var _xp=10;var _yQ=10;var _E6='................';this._gQ=_E6.split(P_ai);var _Fj='......................';this._kX=_Fj.split(P_ai);var _w2='..........................';this._gX=_w2.split(P_ai);this._iA=_p5;this._fV=this._kE+_xp;this._fW=this._du+_yQ;this._ev=12;this._hL=360/this._ev;if(_p6){this.m_dDate=new Date(_p6);}else{this.m_dDate=new Date();this.m_dDate.setHours(0);this.m_dDate.setMinutes(0);this.m_dDate.setSeconds(0);this.m_dDate.setMilliseconds(0);}this._fU=_ut;this.m_sRef=_qv;this._ew=browserIsNS7();this.init();this.draw();this._hC=_mC;if(this._hC==1){this.funcInterval=setInterval(this.drawLiveTime.bind(this),100);}};CClock.prototype=new CPromptControl();function CClock_init(){var _zn=document.createElement("DIV");_zn.className="clsDivClock";this._fU.appendChild(_zn);var _D8=document.createElement("DIV");_D8.className="clsDivRelative";_zn.appendChild(_D8);var i=0;for(i=1;i<this._ev+1;i++){var _Ay=document.createElement("DIV");_Ay.className="clsClockDigits";_Ay.id='clockDigits'+this.m_sRef+i;var _Ca=document.createTextNode(i);_Ay.appendChild(_Ca);_D8.appendChild(_Ay);}for(i=0;i<this._kX.length;i++){var _L1=document.createElement("DIV");_L1.className="clsMinuteHand";_L1.id='minuteHand'+this.m_sRef+i;_D8.appendChild(_L1);}for(i=0;i<this._gQ.length;i++){var _DF=document.createElement("DIV");_DF.className="clsHourHand";_DF.id='hourHand'+this.m_sRef+i;_D8.appendChild(_DF);}if(this._iA==true){for(i=0;i<this._gX.length;i++){var _wG=document.createElement("DIV");_wG.className="clsSecondHand";_wG.id='secondHand'+this.m_sRef+i;_D8.appendChild(_wG);}}};function CClock_draw(){var _yl='clockDigits'+this.m_sRef+1;var o=document.getElementById(_yl);if(o==null){return;}this.drawClockFace();this.drawHour();this.drawMinute();if(this._iA==true){this.drawSecond();}};function CClock_drawClockFace(){for(var i=0;i<this._ev;++i){var _yl='clockDigits'+this.m_sRef+(i+1);var o=document.getElementById(_yl);if(o!=null){if(this._ew==true||window.edge==true){o.style.top=this._fV+this._kE*Math.sin(-1.045+i*this._hL*Math.PI/180)+'px';o.style.left=this._fW+this._du*Math.cos(-1.045+i*this._hL*Math.PI/180)+'px';}else{o.style.pixelTop=this._fV+this._kE*Math.sin(-1.045+i*this._hL*Math.PI/180);o.style.pixelLeft=this._fW+this._du*Math.cos(-1.045+i*this._hL*Math.PI/180);}}}};function CClock_drawSecond(){var _FS=this.m_dDate.getSeconds();var _tn=-1.57+Math.PI*_FS/30;for(var i=0;i<this._gX.length;i++){var _yl='secondHand'+this.m_sRef+(i);var o=document.getElementById(_yl);if(o!=null){if(this._ew==true||window.edge==true){o.style.top=(this._fV+i*2*Math.sin(_tn))+'px';o.style.left=(this._fW+i*2*Math.cos(_tn)+5)+'px';}else{o.style.pixelTop=this._fV+i*2*Math.sin(_tn);o.style.pixelLeft=this._fW+i*2*Math.cos(_tn)+5;}}}};function CClock_drawMinute(){var _IJ=this.m_dDate.getMinutes();var _mX=-1.57+Math.PI*_IJ/30;for(var i=0;i<this._kX.length;i++){var _yl='minuteHand'+this.m_sRef+(i);var o=document.getElementById(_yl);if(o!=null){if(this._ew==true||window.edge==true){o.style.top=(this._fV+i*2*Math.sin(_mX))+'px';o.style.left=(this._fW+i*2*Math.cos(_mX)+5)+'px';}else{o.style.pixelTop=this._fV+i*2*Math.sin(_mX);o.style.pixelLeft=this._fW+i*2*Math.cos(_mX)+5;}}}};function CClock_drawHour(){var _ES=this.m_dDate.getHours();var _sg=-1.57+Math.PI*_ES/6+Math.PI*parseInt(this.m_dDate.getMinutes(),10)/360;for(var i=0;i<this._gQ.length;i++){var _yl='hourHand'+this.m_sRef+(i);var o=document.getElementById(_yl);if(o!=null){if(this._ew==true||window.edge==true){o.style.top=(this._fV+i*2*Math.sin(_sg))+'px';o.style.left=(this._fW+i*2*Math.cos(_sg)+5)+'px';}else{o.style.pixelTop=this._fV+i*2*Math.sin(_sg);o.style.pixelLeft=this._fW+i*2*Math.cos(_sg)+5;}}}};function CClock_clockSetTime(_sg,_mX,_tn){var _wp=false;if(_sg!=this.m_dDate.getHours()){this.m_dDate.setHours(_sg);_wp=true;}if(_mX!=this.m_dDate.getMinutes()){this.m_dDate.setMinutes(_mX);this.drawMinute();_wp=true;}if(_tn!=this.m_dDate.getSeconds()){this.m_dDate.setSeconds(_tn);if(this._iA==true){this.drawSecond();}}if(_wp==true){this.drawHour();}};function CClock_drawLiveTime(){var _KU=new Date();var _IM=_KU.getHours()+P_b6+_KU.getMinutes()+P_b6+_KU.getSeconds();if(_IM==this.lastLiveTimeDraw){return;}this.lastLiveTimeDraw=_IM;this.m_dDate.setHours(_KU.getHours());this.m_dDate.setMinutes(_KU.getMinutes());this.m_dDate.setSeconds(_KU.getSeconds());this.draw();};function CClock_stopLiveTime(){if(this._hC==1){this._hC=0;clearInterval(this.funcInterval);}};CClock.prototype.init=CClock_init;CClock.prototype.draw=CClock_draw;CClock.prototype.drawClockFace=CClock_drawClockFace;CClock.prototype.drawHour=CClock_drawHour;CClock.prototype.drawMinute=CClock_drawMinute;CClock.prototype.drawSecond=CClock_drawSecond;CClock.prototype.clockSetTime=CClock_clockSetTime;CClock.prototype.drawLiveTime=CClock_drawLiveTime;CClock.prototype.stopLiveTime=CClock_stopLiveTime;function CMultipleTimePicker(_uE,_os,_rp,_nF,_qW,_tY,_s7,_qg,_tQ,_mB){this.setCVId(_mB);this._kj=_uE;this.m_oLstChoices=_os;this.m_oSubmit=_rp;this._jx=_nF;this._l1=false;this._dx=_qW;this._k0=_tY;if(_qg){this._iT=_qg;}if(_tQ){this._fn=_tQ;}this.checkData();if(_s7){this._dJ=_s7;this.resizeList();}this.checkInsertRemove();};CMultipleTimePicker.prototype=new CPromptControl();function CMultipleTimePicker_addNoUpdate(_qk,_nV,_rF){_qk=sDecodeU003(_qk);_nV=sDecodeU003(_nV);if(_rF==true){this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nV,true,true);}else{this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nV,false,false);}};function CMultipleTimePicker_update(){this.checkData();this.resizeList();this.resizeList();this.checkInsertRemove();};function CMultipleTimePicker_selectAll(){for(var i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=true;}this.checkInsertRemove();};function CMultipleTimePicker_deSelectAll(){for(var i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=false;}this.checkInsertRemove();};function CMultipleTimePicker_insert(){var _qk=this._kj.sGetFormatTime();var _nJ=this._kj.sGetSQLTime();this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nJ,false,false);this.checkData();this.resizeList();this.resizeList();this.checkInsertRemove();};function CMultipleTimePicker_remove(){this.removeSelectedChoices();this.checkInsertRemove();};function CMultipleTimePicker_preProcess(){var i=0;if(this._dx==P_ak){var _Lf=P_ai;if(this.m_oLstChoices.options.length>0){for(i=0;i<this.m_oLstChoices.options.length;i++){_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(this.m_oLstChoices.options[i].text)+'"';_Lf+=' useValue="'+sXmlEncode(this.m_oLstChoices.options[i].value)+'"';if(this.m_oLstChoices.options[i].selected==true){_Lf+=' selected="true" />';}else{_Lf+=' selected="false" />';}}}addSelectChoices(this.m_oSubmit,_Lf);}else{for(i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=true;}}};function CMultipleTimePicker_checkData(){if((this._jx==true)&&(this.m_oLstChoices.options.length===0)){this._l1=false;this.checkFail();return false;}else{this._l1=true;this.checkPass();return true;}};function CMultipleTimePicker_resizeList(){if(this._dJ){this.m_oLstChoices.style.width='auto';if(this._dJ.width<200){this.m_oLstChoices.style.width='200px';}}};function CMultipleTimePicker_checkInsertRemove(){if(this._iT){if((this._kj.getValid()==true)&&(this._kj.hasValue())){this._iT.disabled=false;}else{this._iT.disabled=true;this._iT.className="clsInsertRemoveButton";}}if(this._fn){if(this.m_oLstChoices.selectedIndex==-1){this._fn.disabled=true;this._fn.className="clsInsertRemoveButton";}else{this._fn.disabled=false;}}};CMultipleTimePicker.prototype.addNoUpdate=CMultipleTimePicker_addNoUpdate;CMultipleTimePicker.prototype.update=CMultipleTimePicker_update;CMultipleTimePicker.prototype.selectAll=CMultipleTimePicker_selectAll;CMultipleTimePicker.prototype.deSelectAll=CMultipleTimePicker_deSelectAll;CMultipleTimePicker.prototype.insert=CMultipleTimePicker_insert;CMultipleTimePicker.prototype.remove=CMultipleTimePicker_remove;CMultipleTimePicker.prototype.preProcess=CMultipleTimePicker_preProcess;CMultipleTimePicker.prototype.checkData=CMultipleTimePicker_checkData;CMultipleTimePicker.prototype.resizeList=CMultipleTimePicker_resizeList;CMultipleTimePicker.prototype.checkInsertRemove=CMultipleTimePicker_checkInsertRemove;function CDateTime(_t8,_ro,_rp,_pM,_nF,_qW,_pe,_mo,_mB){this.setCVId(_mB);this._eN=_t8;this._i9=_ro;this.m_oForm=_pM;this.m_oSubmit=_rp;this._jx=_nF;this.m_bDisabled=false;if(this._jx===true){this._eN._jx=true;this._i9._jx=true;}var _p6=P_ai;var _tv=P_ai;if(_pe){var _Lz=/[T\s]/;var _HD=_pe.split(_Lz);if(_HD.length>2){_p6=P_ai;var _EB=_HD.length-1;_tv=_HD[_EB];for(var i=0;i<_EB;i++){_p6+=_HD[i];if(i<_EB-1){_p6+=P_br;}}this._eN.setValue(_p6);this._i9.setValue(_tv);}else if(_HD.length==2){_p6=_HD[0];this._eN.setValue(_p6);_tv=_HD[1];this._i9.setValue(_tv);}else if(_HD.length==1){_p6=_HD[0];this._eN.setValue(_p6);}}if(_mo===false){this._fP=false;}else{this._fP=true;}this._l1=false;this._dx=_qW;this.checkData();};CDateTime.prototype=new CPromptControl();function CDateTime_updateFormValue(){this._eN._jx=true;this._i9._jx=true;};function CDateTime_preProcess(){var _Lf=P_ai;if(this._dx==P_ak){if(this.m_bDisabled!==true){_Lf+='<selectOption';_Lf+=' displayValue="'+this.sGetFormatValue()+'"';_Lf+=' useValue="'+this.sGetXSDValue()+'"';_Lf+=' selected="true" />';}addSelectChoices(this.m_oSubmit,_Lf);}else{_Lf=this.sGetSQLDateTime();this.m_oSubmit.value=_Lf;}};function CDateTime_checkData(){if(this._jx===true){if((this._eN.isValid()===true)&&(this._i9.isValid()===true)){this._l1=true;this.checkPass();return true;}else if(this._eN.isValid()===false){this._l1=false;this._eN.checkFail();return false;}else if(this._i9.isValid()===false){this._l1=false;this._i9.checkFail();return false;}else{this._l1=false;return false;}}else{this._l1=true;this.checkPass();return true;}};function CDateTime_getValid(){if((this._eN.getValid()===true)&&(this._i9.getValid()===true)){return true;}else{return false;}};function CDateTime_sGetSQLDateTime(){var _Dj=this._eN.sGetValue();var _EF=this._i9.sGetSQLTime();if((_Dj===false)||(_EF===false)){this.m_oForm.value=P_ai;return false;}else{this.m_oForm.value=_Dj+P_br+_EF;return this.m_oForm.value;}};function CDateTime_sGetXSDValue(){var _Dj=this._eN.sGetValue();var _EF=this._i9.sGetSQLTime();if((_Dj===false)||(_EF===false)){return false;}else{var _F1=this._eN.sGetValue()+"T"+this._i9.sGetSQLTime();return _F1;}};function CDateTime_sGetFormatDateTime(){var _pP=this._eN._iJ;var _pZ=this._eN._h5;var _CE=this._eN.m_dDate;var _xS=getFormatDate(_CE,_pP,_pZ);var _L9=this._i9.sGetFormatTime();var _wt=_xS+P_br+_L9;return _wt;};function CDateTime_enable(){if(this._jx===true){this._eN._jx=true;this._i9._jx=true;}this._eN.enable();this._i9.enable();this.m_bDisabled=false;};function CDateTime_disable(){if(this._jx===true){this._eN._jx=false;this._i9._jx=false;}this._eN.disable();this._i9.disable();this.m_bDisabled=true;};function CDateTime_sGetValue(){this.checkData();if((this._l1===true)&&((this._eN.hasValue()===true)&&(this._i9.hasValue()===true))){if(this._fP===false){return this.sGetSQLDateTime();}else{return this.sGetXSDValue();}}else{return false;}};function CDateTime_sGetFormatValue(){this.checkData();if((this._l1===true)&&((this._eN.hasValue()===true)&&(this._i9.hasValue()===true))){return this.sGetFormatDateTime();}else{return false;}};function CDateTime_hasValue(){if((this._eN.hasValue())&&(this._i9.hasValue())){return true;}else{return false;}};function CDateTime_toggleDisable(_t5){if(this.isRequired()===false){if(_t5===false){this.disable();}else{this.enable();}}this.checkData();};CDateTime.prototype.preProcess=CDateTime_preProcess;CDateTime.prototype.sGetSQLDateTime=CDateTime_sGetSQLDateTime;CDateTime.prototype.sGetFormatDateTime=CDateTime_sGetFormatDateTime;CDateTime.prototype.checkData=CDateTime_checkData;CDateTime.prototype.enable=CDateTime_enable;CDateTime.prototype.disable=CDateTime_disable;CDateTime.prototype.toggleDisable=CDateTime_toggleDisable;CDateTime.prototype.sGetValue=CDateTime_sGetValue;CDateTime.prototype.sGetFormatValue=CDateTime_sGetFormatValue;CDateTime.prototype.sGetXSDValue=CDateTime_sGetXSDValue;CDateTime.prototype.getValid=CDateTime_getValid;CDateTime.prototype.hasValue=CDateTime_hasValue;function CSearch(_rp,_qm,_os,_pM,_sh,_td,_qv,_sj,_mL,_om,_nF,_qW,_tY,_tI,_pi,_nl,_qX,_qn,_o1,_qg,_tQ,_m7,_qw,_mB){this.setCVId(_mB);this.m_oSubmit=_rp;this.m_oForm=_pM;this._fI=_sh;this.m_oLstResults=_qm;this.m_oLstChoices=_os;this._ea=_nl;this._jx=_nF;this._l1=false;this._dx=_qW;this._k0=_tY;this._jj="clsFeedbackWidgetParseErrorArrowLeft";this.m_sRef=_qv;this.m_sPromptId=this.m_sRef.replace(new RegExp(_mB+"$"),P_ai);this._kI=_sj;this._gq=_mL;this._gR=_om;this._iE=_m7;this._eg=_qw;if(_o1){this._e4=_o1;}if(_qg){this._iT=_qg;}if(_tQ){this._fn=_tQ;}if(_tI){this._lx=_tI;}else{this._lx=false;}this._lw=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);this._hd=_td;this.imgBusyTrue=new Image();this.imgBusyTrue.src=this._lw+"/prompting/images/prompt_search_ani.gif";this.imgBusyFalse=new Image();this.imgBusyFalse.src=this._lw+"/prompting/images/prompt_search.gif";this._kF=new Image();this._kF.src=this._lw+"/prompting/images/error_timed_small_off.gif";this._kx=new Image();this._kx.src=this._lw+"/prompting/images/error_timed_small.gif";this._dG=_pi;this.checkData();this.stopAnimateSearchIcon();this._dy=true;if(this.m_sRef){if((_qX)){this.m_oResultsSizer=_qX;this.m_oResultsTester=new Object();this.m_oResultsTester._hq=false;this.m_oResultsTester._iU=0;this.m_iIntervalResults=window.setInterval('search'+this.m_sRef+'.testResize(search'+this.m_sRef+'.m_oResultsSizer, search'+this.m_sRef+'.m_oLstResults, search'+this.m_sRef+'.m_oResultsTester,search'+this.m_sRef+'.m_iIntervalResults)',250);}if(_qn){this.m_oChoicesSizer=_qn;this.m_oChoicesTester=new Object();this.m_oChoicesTester._hq=false;this.m_oChoicesTester._iU=0;this.m_iIntervalChoices=window.setInterval('search'+this.m_sRef+'.testResize(search'+this.m_sRef+'.m_oChoicesSizer, search'+this.m_sRef+'.m_oLstChoices, search'+this.m_sRef+'.m_oChoicesTester,search'+this.m_sRef+'.m_iIntervalChoices)',250);}}this._hr=true;this._fM=window.setInterval('search'+this.m_sRef+'.checkSearchButtonState()',1000);this.checkSearchButtonState();var _Lx="200px";if(typeof SYSTEMPROPERTY_CSEARCH_AUTO_RESIZE_RESULT_LIST!=P_cD&&SYSTEMPROPERTY_CSEARCH_AUTO_RESIZE_RESULT_LIST===true){_Lx="auto";}this.m_oLstResults.style.width=_Lx;this.m_oLstChoices.style.width=_Lx;this.update();};CSearch.prototype=new CPromptControl();function CSearch_selectAll(_r8){for(var i=0;i<_r8.options.length;i++){_r8.options[i].selected=true;}this.checkInsertRemove();};function CSearch_deSelectAll(_r8){for(var i=0;i<_r8.options.length;i++){_r8.options[i].selected=false;}this.checkInsertRemove();};function CSearch_preProcess(){var i=0;if(this._dx==P_ak){var _Lf=P_ai;if((this.m_oLstChoices.options.length>0)&&(this._dy==true)){if(this._lx==true){for(i=0;i<this.m_oLstChoices.options.length;i++){_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(this.m_oLstChoices.options[i].text)+'"';_Lf+=' useValue="'+sXmlEncode(this.m_oLstChoices.options[i].value)+'"';if(this.m_oLstChoices.options[i].selected==true){_Lf+=' selected="true" />';}else{_Lf+=' selected="false" />';}}}else{if(this.m_oLstChoices.selectedIndex!=-1){_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(this.m_oLstChoices.options[this.m_oLstChoices.selectedIndex].text)+'"';_Lf+=' useValue="'+sXmlEncode(this.m_oLstChoices.options[this.m_oLstChoices.selectedIndex].value)+'"';_Lf+=' selected="true" />';}}}addSelectChoices(this.m_oSubmit,_Lf);if(this.m_oForm&&this.m_oForm.elements&&typeof this.m_oForm.elements['p_'+this.m_sRef]==P_cZ){addSelectChoices(this.m_oForm.elements['p_'+this.m_sRef],_Lf);}if((this._ea)&&(this._dG!=true)){this.processResults();}}else{if(this.m_oLstResults!=this.m_oLstChoices){for(i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=true;}}}};function CSearch_processResults(){var _Lf="<selectOptions>";if(this.m_oLstResults.options.length>0){for(var i=0;i<this.m_oLstResults.options.length;i++){_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(this.m_oLstResults.options[i].text)+'"';_Lf+=' useValue="'+sXmlEncode(this.m_oLstResults.options[i].value)+'"';if(this.m_oLstResults.options[i].selected==true){_Lf+=' selected="true" />';}else{_Lf+=' selected="false" />';}}}_Lf+="</selectOptions>";this._ea.value=_Lf;};function CSearch_insert(_tx,_sr){if(_tx.selectedIndex!=-1&&_tx.options[_tx.selectedIndex].value>P_ai){for(var i=0;i<_tx.options.length;i++){if(_tx.options[i].selected==true&&!this.contains(_sr.options,_tx.options[i])){_sr.options[_sr.options.length]=new Option(_tx.options[i].text,_tx.options[i].value,false,false);}}}this.update();return false;};function CSearch_contains(_mw,_qq){if(_mw&&_qq){var _of=_qq.text;var _nK=_qq.value;for(var i=0;i<_mw.length;i++){if(_mw[i].text==_of&&_mw[i].value==_nK){return true;}}}return false;};function CSearch_remove(_r8){if(_r8.selectedIndex!=-1){var i=0;for(i=_r8.options.length-1;i>-1;i--){if(_r8.options[i].selected==true){_r8.options[i]=null;}}}this.update();};function CSearch_busyTrue(_oa){};function CSearch_busyFalse(_oa){_oa.src=this.imgBusyFalse.src;};function CSearch_busy(){this.busyTrue(document.images['imgBusy']);};function CSearch_startAnimateSearchIcon(){if(this._dG){this._dG.value="true";}this._hd.src=this.imgBusyTrue.src;};function CSearch_stopAnimateSearchIcon(){this._hd.src=this.imgBusyFalse.src;};function CSearch_toggleAdvanced(_qG,_p1){var _G6=document.getElementById(_qG);var _FV=document.getElementById(_p1);if(_G6.style.display!="none"){_G6.style.display="none";_FV.src=this._lw+"/prompting/images/prompt_option_expand.gif";if(this._kI){this._kI.value="false";}}else{_G6.style.display="inline";_FV.src=this._lw+"/prompting/images/prompt_option_collapse.gif";if(this._kI){this._kI.value="true";}}};function CSearch_setOptions(_t3,_sB){this._gq.value=_t3;this._gR.value=_sB;};function CSearch_checkData(){if(this.m_oLstResults!=this.m_oLstChoices){if((this._jx==true)&&(this.m_oLstChoices.options.length===0)){this._l1=false;this.checkFail();return false;}else{this._l1=true;this.checkPass();return true;}}else{if((this._jx==true)&&((this.m_oLstChoices.options.length===0)||(this.m_oLstChoices.selectedIndex==-1))){this._l1=false;this.checkFail();return false;}else{this._l1=true;this.checkPass();return true;}}};function CSearch_startSearch(){this.startAnimateSearchIcon();while(this.m_oLstResults.hasChildNodes()){this.m_oLstResults.removeChild(this.m_oLstResults.firstChild);}if(this._lx==false){this._dy=false;}if(this._iE!=P_ai){eval(this._iE+"();");}else{var _qy=this.getCV();if(_qy&&typeof _qy.submitPromptValues==P_c7&&typeof ViewerDispatcherEntry==P_c7){var _K4=new ViewerDispatcherEntry(_qy);_K4.addFormField("ui.action",K_ACTION_FORWARD);var _LA=new RegExp("_sws_"+this.m_sRef);var _Hh=new RegExp("sws.*"+this.m_sRef);for(var i in this.m_oForm.elements){var _zW=this.m_oForm.elements[i];if(typeof _zW==P_cZ&&_zW&&_zW.name&&_zW.value){if(_zW.name.match(_Hh)){var _ts=_zW.name;_ts=_ts.replace(_LA,"_sws_"+this.m_sPromptId);_K4.addFormField(_ts,_zW.value);}}}_K4.addFormField("_searchParameter",this._eg);_K4.addFormField("_promptIdBasedNames","true");_K4.addFormField("_promptControl",P_bG);_qy.submitPromptValues(_K4);}else{SetPromptMethod(K_ACTION_FORWARD);SetPromptControl(P_bG);}}};function CSearch_checkSearchButtonState(){if(this._e4){if(this._fI.value==P_ai){this._e4.className="clsPromptButton";this.disableSearchButton();}else{this.enableSearchButton();if(this._hr==true){this._hr=false;window.clearInterval(this._iw);}}}};function CSearch_enableSearchButton(){this._e4.disabled=false;};function CSearch_disableSearchButton(){this._e4.disabled=true;};function CSearch_catchSearch(_mG){var _E8=(_mG)?_mG:((event)?event:null);if(_E8&&_E8.keyCode==13&&typeof Search_DisableEnterKeyAutoSubmit!=P_cD&&Search_DisableEnterKeyAutoSubmit!==true){if(this._e4){if(this._fI.value!=P_ai){this.startSearch();}}else{this.startSearch();}if(typeof _E8.stopPropagation==P_c7){_E8.stopPropagation();}if(typeof _E8.preventDefault==P_c7){_E8.preventDefault();}_E8.cancelBubble=true;return false;}};function CSearch_keyPress(_r3){if(_r3=='8'){this.checkSearchButtonState();}return true;};function CSearch_checkInsertRemove(){if(this._iT){if(this.m_oLstResults.selectedIndex==-1){this._iT.disabled=true;this._iT.className="clsInsertRemoveButton";}else{this._iT.disabled=false;}}if(this._fn){if(this.m_oLstChoices.selectedIndex==-1){this._fn.disabled=true;this._fn.className="clsInsertRemoveButton";}else{this._fn.disabled=false;}}};function CSearch_testResize(_s7,_mR,_rm,_ry){if(_rm._hq==false){if(_s7.width!=0||_rm._iU<100){_rm._hq=true;}else{_rm._iU++;}}else{window.clearInterval(_ry);}};function CSearch_add(_qk,_nV){this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nV,false,false);this.checkData();this.checkInsertRemove();};function CSearch_addNoUpdate(_of,_nK,_nC,_rF){_of=sDecodeU003(_of);_nK=sDecodeU003(_nK);var _FK=0;if(_nC=="result"){if(_rF==true){_FK=this.m_oLstResults.options.length;this.m_oLstResults.options[_FK]=new Option(_of,_nK,true,true);this.m_oLstResults.options[_FK].selected=true;}else{this.m_oLstResults.options[this.m_oLstResults.options.length]=new Option(_of,_nK,false,false);}}else{if(_rF==true){_FK=this.m_oLstChoices.options.length;this.m_oLstChoices.options[_FK]=new Option(_of,_nK,true,true);this.m_oLstChoices.options[_FK].selected=true;}else{this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_of,_nK,false,false);}}};function CSearch_addOptions(_mw){var _qk,_nJ,_qH,_HE;if(_mw instanceof Array){for(var _xk=0;_xk<_mw.length;_xk++){var _Kj=_mw[_xk];if(_Kj&&_Kj.length){_qk=(_Kj.length>0?_Kj[0]:P_ai);_nJ=(_Kj.length>1?_Kj[1]:P_ai);_HE=(_Kj.length>2?_Kj[2]:false);_qH=(_Kj.length>3?_Kj[3]:null);this.addNoUpdate(_qk,_nJ,_qH,_HE);}}this.update();}};function CSearch_update(){this.checkData();this.checkInsertRemove();CPromptControl_updateSelectWidth(this.m_oLstChoices);CPromptControl_updateSelectWidth(this.m_oLstResults);};CSearch.prototype.selectAll=CSearch_selectAll;CSearch.prototype.deSelectAll=CSearch_deSelectAll;CSearch.prototype.preProcess=CSearch_preProcess;CSearch.prototype.remove=CSearch_remove;CSearch.prototype.insert=CSearch_insert;CSearch.prototype.contains=CSearch_contains;CSearch.prototype.busyTrue=CSearch_busyTrue;CSearch.prototype.busyFalse=CSearch_busyFalse;CSearch.prototype.busy=CSearch_busy;CSearch.prototype.toggleAdvanced=CSearch_toggleAdvanced;CSearch.prototype.setOptions=CSearch_setOptions;CSearch.prototype.checkData=CSearch_checkData;CSearch.prototype.startAnimateSearchIcon=CSearch_startAnimateSearchIcon;CSearch.prototype.stopAnimateSearchIcon=CSearch_stopAnimateSearchIcon;CSearch.prototype.startSearch=CSearch_startSearch;CSearch.prototype.processResults=CSearch_processResults;CSearch.prototype.checkSearchButtonState=CSearch_checkSearchButtonState;CSearch.prototype.enableSearchButton=CSearch_enableSearchButton;CSearch.prototype.disableSearchButton=CSearch_disableSearchButton;CSearch.prototype.catchSearch=CSearch_catchSearch;CSearch.prototype.keyPress=CSearch_keyPress;CSearch.prototype.checkInsertRemove=CSearch_checkInsertRemove;CSearch.prototype.testResize=CSearch_testResize;CSearch.prototype.add=CSearch_add;CSearch.prototype.addNoUpdate=CSearch_addNoUpdate;CSearch.prototype.addOptions=CSearch_addOptions;CSearch.prototype.update=CSearch_update;var P_bP=50;var P_bo=50;var P_aL="checkbox";var P_aJ="click";var P_s="contextmenu";var P_N="dblclick";var P_aS="dragRef";var P_bQ="dragTree";var P_be="drag";var P_cC="dragend";var P_o="dragstart";var P_b2="icon";var P_b0="img";var P_b5="indicator";var P_g="indicatorSpan";var P_dc="keypress";var P_bA="label";var P_dg="labelText";var P_bO="middle";var P_cl="nobr";var P_bL="onclick";var P_aw="oncontextmenu";var P_aE="ondblclick";var P_O="ondrag";var P_aq="ondragend";var P_dk="ondragstart";var P_bf="onkeypress";var P_Z="toggle_";var P_bu="tree";var P_cv="treeRef";function CTree(_pE,_rp,_nF,_uq,_qv,_tJ,_tY,_mB,_l5,_qd){this.contentLocale=null;this.setCVId(_mB);this._lg=_l5;this._ec=_pE;this._dN=null;this._j8=new CTreeNode(null,tntRoot,true,'root','root',false);this._j8._hG=this;this._j8.setTreeRef(P_ai);if(this._ec!=null){this._ec.setAttribute("role","tree");}this.m_oSubmit=_rp;this._jx=_nF;if(_uq==false){this._fk=P_b9;this._hO=NORMAL_TREE;}else{this._fk=DISCONTIGUOUS_TREE_SELECTION;this._hO=CHECKBOX_TREE;}this._l1=false;this.m_sRef=_qv;this._dz=P_ai;this._k0=_tY;this._js=_tJ;if(this._js!=null){this._kF=new Image();this._kF.src=P_by;this._kx=new Image();this._kx.src=P_bE;}this._lT=false;this._eY=false;this._gK=0;this._kA=false;this._hc=true;this._fi=null;this._hl=false;this._dU=null;this._dC=null;this._ds=null;this._ed=null;this._j1=false;this._g5=new Array();this._io=null;this._gh=null;this._dI=false;this._kG=false;this._fT=false;this._jk=true;this._ex=false;this._fd=5000;this._le=true;this._jr=null;this._gv=null;this._lb=null;this._d1=true;this._kr=false;this._dq=false;this._ez=null;this._hp=1;if(typeof AccessibilityHandler!="undefined"){this._hp=-1;}this._lw=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);if(typeof gDispatcher!=P_cD){this._fz=gDispatcher;}else if(typeof CDispatcher!=P_cD){this._fz=new CDispatcher();}else{this._fz=null;}this._iV=this.getGateway();this._jg=document.createElement("IMG");this._jg.src=P_bK;this._jg.className=P_cW;this._jg.alt="";this._jg.setAttribute(P_cv,P_b0);this._l2=document.createElement("DIV");this._lK=document.createElement("NOBR");this._lK.setAttribute(P_cv,P_cl);this._kZ=document.createElement("IMG");this._kZ.setAttribute(P_cv,P_b0);this._g2=document.createElement("SPAN");this._g2.style.paddingLeft=3;this._ga=document.createElement("IMG");this._ga.className=P_cW;this._i2=document.createElement("SPAN");this._gU=document.createElement("IMG");this._gU.className=P_cW;this._gU.onclick=null;this._gU.src=P_bD;this._gU.alt="";this._fg=document.createElement("IMG");this._fg.className=P_cW;this._eh=document.createElement("SPAN");this._jP=document.createElement("A");this._jP.className=P_ao;if(window.ie11){this._jP.href="#";this._jP.addEventListener("mouseover",function(){window.status=P_ai;return true;});this._jP.addEventListener("mouseout",function(){window.status=P_ai;return true;});this._jP.addEventListener("mouseup",function(e){window.status=P_ai;e.returnValue=false;});this._jP.addEventListener("mousedown",function(e){window.status=P_ai;e.returnValue=false;});this._jP.addEventListener("mousemove",function(e){window.status=P_ai;e.returnValue=false;});this._jP.addEventListener(P_aJ,function(e){window.status=P_ai;e.returnValue=false;});}else if(window.ie){this._jP.href="#";this._jP.attachEvent("onmouseover",function(){window.status=P_ai;return true;});this._jP.attachEvent("onmouseout",function(){window.status=P_ai;return true;});this._jP.attachEvent("onmouseup",function(e){window.status=P_ai;e.returnValue=false;});this._jP.attachEvent("onmousedown",function(e){window.status=P_ai;e.returnValue=false;});this._jP.attachEvent("onmousemove",function(e){window.status=P_ai;e.returnValue=false;});this._jP.attachEvent(P_bL,function(e){window.status=P_ai;e.returnValue=false;});}else{this._jP.addEventListener("mouseover",function(){window.status=P_ai;return false;},true);this._jP.addEventListener("mouseout",function(){window.status=P_ai;return false;},true);this._jP.addEventListener("mouseup",function(e){window.status=P_ai;e.preventDefault();return false;},true);this._jP.addEventListener("mousedown",function(e){window.status=P_ai;e.preventDefault();return false;},true);this._jP.addEventListener("mousemove",function(e){window.status=P_ai;e.preventDefault();return false;},true);this._jP.addEventListener(P_aJ,function(e){window.status=P_ai;e.preventDefault();return false;},true);}this._gb=null;this._kY=_qd;this.cacheKeyPrefix="";this.bAllowStateCache=false;this._kh=null;};CTree.prototype=new CPromptControl();CTree.prototype.setItemTabIndex=function(_uG){this._hp=_uG;};CTree.prototype.setAllowStateCache=function(_q1,_mz){this.bAllowStateCache=_q1;this.cacheKeyPrefix=_mz;};CTree.prototype.savePromptControlRef=function(_o6){this._kh=_o6;};CTree.prototype.setPromptingTree=function(_uG){this._ex=_uG;};CTree.prototype.setLocale=function(_uG){this.contentLocale=_uG;};CTree.prototype.setLabel=function(_pQ){if(_pQ!=null){this._ec.setAttribute("aria-label",_pQ);}};CTree.prototype.getGateway=function(){var _Df=document.location.pathname;var _Ch=(this.getCV?this.getCV():null);if(_Ch&&_Ch.getGateway){_Df=_Ch.getGateway();}return _Df;};CTree.prototype.getPromptingTree=function(){return this._ex;};CTree.prototype.setDisabled=function(_uG){this._kr=_uG;};CTree.prototype.getDisabled=function(){return this._kr;};CTree.prototype.setMaxValueCount=function(_uG){this._fd=_uG;};CTree.prototype.getMaxValueCount=function(){return this._fd;};CTree.prototype.getHasBeenDrawn=function(){return this._dq;};CTree.prototype.setContainerWidth=function(_uG){this._gv=_uG;};CTree.prototype.getContainerWidth=function(){return this._gv;};CTree.prototype.setContainerHeight=function(_uG){this._lb=_uG;};CTree.prototype.getContainerHeight=function(){return this._lb;};CTree.prototype.getStyle=function(){return this._lg;};CTree.prototype.addToPreviousSelections=function(_uG){_uG=sDecodeU003(_uG);if(this._jr==null){this._jr=new Array();}this._jr[this._jr.length]=_uG;};CTree.prototype.getPreviousSelections=function(){return this._jr;};CTree.prototype.clearPreviousSelections=function(){this.clearPrevSelArray();};CTree.prototype.addToPrevSelArray=function(_vd,_sI){if(this._jr==null){this._jr=new Array();}_vd=sDecodeU003(_vd);_sI=sDecodeU003(_sI);this._jr[this._jr.length]=new Array(_sI,_vd);};CTree.prototype.removeFromPrevSelArray=function(_pS,_mH){if(this._jr==null){return;}for(var _KY=0;_KY<this._jr.length;_KY++){var _m8=this._jr[_KY];var _m2=_m8;if(typeof _m8==P_cZ&&_m8.length){_m2=_m8[0];_m8=_m8[1];}if(typeof _mH==P_cD){_mH=_pS;}if(_m8==_pS&&_m2==_mH){this._jr.splice(_KY,1);_KY--;}}if(this._jr.length<1){this._jr=null;}};CTree.prototype.getPrevSelArray=function(){return this._jr;};CTree.prototype.clearPrevSelArray=function(){this._jr=null;this._gb=null;};CTree.prototype.setShowPreviousValues=function(_uG){this._le=_uG;};CTree.prototype.getShowPreviousValues=function(){return this._le;};CTree.prototype.setSingleClickFunc=function(_uG){this._io=_uG;};CTree.prototype.getSingleClickFunc=function(){return this._io;};CTree.prototype.setDoubleClickFunc=function(_uG){this._gh=_uG;};CTree.prototype.getDoubleClickFunc=function(){return this._gh;};CTree.prototype.setLastSelectedNode=function(_uG){this._ez=_uG;};CTree.prototype.getLastSelectedNode=function(){return this._ez;};CTree.prototype.addToSelectionOrder=function(_vx){for(var i=0;i<this._g5.length;i++){if(this._g5[i]==_vx){return;}}this._g5[this._g5.length]=_vx;};CTree.prototype.removeFromSelectionOrder=function(_vx){for(var i=0;i<this._g5.length;i++){if(this._g5[i]==_vx){delete this._g5[i];break;}}};CTree.prototype.getSelectionOrder=function(){var _HH=new Array();for(var i=0;i<this._g5.length;i++){if(this._g5[i]!=null){_HH[_HH.length]=this._g5[i];}}return _HH;};CTree.prototype.clearSelectionOrder=function(){this._g5=new Array();};CTree.prototype.setTrackSelectionOrder=function(_uG){this._j1=_uG;};CTree.prototype.getTrackSelectionOrder=function(){return this._j1;};CTree.prototype.setContextMenu=function(_uG){this._ed=_uG;};CTree.prototype.getContextMenu=function(){return this._ed;};CTree.prototype.setAllowDragDrop=function(_uG){this._hl=_uG;};CTree.prototype.getAllowDragDrop=function(){return this._hl;};CTree.prototype.setOnDragEnd=function(_uG){this._ds=_uG;};CTree.prototype.getOnDragEnd=function(){return this._ds;};CTree.prototype.setOnDragStart=function(_uG){this._dU=_uG;};CTree.prototype.getOnDragStart=function(){return this._dU;};CTree.prototype.setOnDrag=function(_uG){this._dC=_uG;};CTree.prototype.getOnDrag=function(){return this._dC;};CTree.prototype.setAnchorNode=function(_uG){this._fi=_uG;};CTree.prototype.getAnchorNode=function(){return this._fi;};CTree.prototype.setMustChangeDefaultValue=function(_uG){this._kG=_uG;this._dQ=new Array();this.setDefaultSelectLock(true);};CTree.prototype.getMustChangeDefaultValue=function(){return this._kG;};CTree.prototype.setAllowSelectionToggle=function(_uG){this._hc=_uG;};CTree.prototype.getAllowSelectionToggle=function(){return this._hc;};CTree.prototype.setSelectTreeUI=function(_uG){this._hO=_uG;if(_uG==NORMAL_TREE){this.setAllowSelectionToggle(false);}};CTree.prototype.getSelectTreeUI=function(){return this._hO;};CTree.prototype.setRootNodeShowing=function(_uG){this._lT=_uG;};CTree.prototype.getRootNodeShowing=function(){return this._lT;};CTree.prototype.setForceSelectionAtLowestLevel=function(_uG){this._kA=_uG;};CTree.prototype.getForceSelectionAtLowestLevel=function(){return this._kA;};CTree.prototype.setLoadOnTheFlyFunction=function(_oG){this._eY=_oG;};CTree.prototype.getLoadOnTheFly=function(){return this._eY;};CTree.prototype.setLoading=function(_uG){if(_uG){this._gK+=1;}else if(this._gK>0){this._gK-=1;}};CTree.prototype.getLoading=function(){return this._gK;};CTree.prototype.nodesCanHaveChildren=function(){return this._d1;};CTree.prototype.setNodesCanHaveChildren=function(_uG){this._d1=_uG;};CTree.prototype.getName=function(){return this.m_sRef;};CTree.prototype.getRootNode=function(){return this._j8;};CTree.prototype.drawAll=function(){if(this._dN==null){this.setupOuterTable();}this.draw(this.getRootNode(),this._dN);if(this.getDefaultSelectLock()==true&&this.getMustChangeDefaultValue()==true){this.setDefaultSelectLock(false);}};CTree.prototype.setupOuterTable=function(){if(this.getHideOuterTable()==false){this.drawOuterTable();this._dN=document.getElementById("treePane"+this.m_sRef);}else{this._dN=this._ec;}if(window.ie){this._dN.onselectstart=function(){document.selection.empty();return false;};}};CTree.prototype.setHideAdornments=function(_uG){this._dI=_uG;};CTree.prototype.getHideAdornments=function(){return this._dI;};CTree.prototype.setHideOuterTable=function(_uG){this._fT=_uG;};CTree.prototype.getHideOuterTable=function(){return this._fT;};CTree.prototype.getErrorFeedbackWidget=function(){return this._k0;};CTree.prototype.setErrorFeedbackWidget=function(_uk){this._k0=_uk;};CTree.prototype.getImgCheck=function(){return this._js;};CTree.prototype.setImgCheck=function(_uk){this._js=_uk;};CTree.prototype.setImgErrorFalse=function(_ne){this._kF=new Image();this._kF.src=_ne;};CTree.prototype.setImgErrorTrue=function(_ne){this._kx=new Image();this._kx.src=_ne;};CTree.prototype.setRecursiveSelect=function(_uG){this._jk=_uG;};CTree.prototype.getRecursiveSelect=function(){return this._jk;};CTree.prototype.selectAll=function(){this.getRootNode().setSelected(true,true);this.redraw();this.checkData();};CTree.prototype.deSelectAll=function(){this.getRootNode().setSelected(false,true);this.clearPrevSelArray();if(this.getTrackSelectionOrder()){this.clearSelectionOrder();}this.redraw();this.checkData();};CTree.prototype.redraw=function(){redrawChildren(this.getRootNode(),this.getName());};CTree.prototype.getSelectionMode=function(){return this._fk;};CTree.prototype.setSelectionMode=function(_mx){this._fk=_mx;};CTree.prototype.getRequired=function(){return this._jx;};CTree.prototype.getDefaultSelectedNodes=function(){return this._dQ;};CTree.prototype.addDefaultSelectedNode=function(_vx){this._dQ[this._dQ.length]=_vx;};CTree.prototype.setDefaultSelectLock=function(_uG){this._k4=_uG;};CTree.prototype.getDefaultSelectLock=function(){return this._k4;};CTree.prototype.preProcess=function(){var _Lf=P_ai;this._dz=P_ai;var _DS=this.getRootNode().getChildren();if(_DS.length>0){for(var j=0;j<_DS.length;j++){this.processTree(_DS[j]);}}var _zk=this.getPreviousSelections();if(_zk!=null){for(var i=0;i<_zk.length;i++){if(typeof _zk[i]==P_bJ){this._dz+='<selectOption displayValue="'+sXmlEncode(_zk[i])+'" useValue="'+sXmlEncode(_zk[i])+'"/>';}else if(typeof _zk[i]==P_cZ){this._dz+='<selectOption displayValue="'+sXmlEncode(_zk[i][0])+'" useValue="'+sXmlEncode(_zk[i][1])+'"/>';}}}_Lf+=this._dz;addSelectChoices(this.m_oSubmit,_Lf);};CTree.prototype.processTree=function(_vx){if(_vx.isSelected()){var _FL=false;var _zk=this.getPreviousSelections();if(_zk!=null){var _sE=_vx.getValue();for(var i=0;i<_zk.length;i++){if((typeof _zk[i]==P_bJ)&&(_zk[i]==_sE)){_FL=true;break;}else if((typeof _zk[i]==P_cZ)&&(_zk[i][1]==_sE)){_FL=true;if(!_zk[i][0]){_zk[i][0]=_vx.getName();}break;}}}if(!_FL){this._dz+='<selectOption displayValue="'+sXmlEncode(_vx.getName())+'" useValue="'+sXmlEncode(_vx.getValue())+'"/>';}}if(this.nodesCanHaveChildren()&&_vx.hasSelectedChildren()){var _DS=_vx.getChildren();for(var _DR=0;_DR<_DS.length;_DR++){this.processTree(_DS[_DR]);}}};CTree.prototype.getSelectedLeafNodes=function(_vx){if(!_vx){_vx=this.getRootNode();}var _yt=new Array();if(_vx.canHaveChildren()&&_vx.hasSelectedChildren()){var _DS=_vx.getChildren();for(var _DR=0;_DR<_DS.length;_DR++){var _Dn=this.getSelectedLeafNodes(_DS[_DR]);for(var i in _Dn){_yt[_yt.length]=_Dn[i];}}if(_vx.getTree().getSelectTreeUI()==CHECKBOX_TREE&&_vx.getTree().getSelectionMode()==DISCONTIGUOUS_TREE_SELECTION&&_vx.isSelected()&&_vx.getNodeTypeObject().getRecursiveSelect()==false){_yt[_yt.length]=_vx;}}else if(_vx.getNodeType()==TREE_ITEM&&_vx.isSelected()){_yt[_yt.length]=_vx;}return _yt;};CTree.prototype.getSelectedFolderNodes=function(_vx){if(!_vx){_vx=this.getRootNode();}var _yt=new Array();if(_vx.canHaveChildren()){if(_vx.getNodeType()==TREE_FOLDER&&_vx.isSelected()){_yt[_yt.length]=_vx;}var _DS=_vx.getChildren();for(var _DR=0;_DR<_DS.length;_DR++){var _Dn=this.getSelectedFolderNodes(_DS[_DR]);for(var i in _Dn){_yt[_yt.length]=_Dn[i];}}}return _yt;};CTree.prototype.getSelectedUnfetchedChildren=function(){var _A1=this.getSelectedFolderNodes();var _zP=false;for(var i in _A1){if(this._jk&&_A1[i].getNodeTypeObject().getRecursiveSelect()&&_A1[i].canHaveChildren()&&!_A1[i].hasChildren()){_A1[i].fetchChildren();_zP=true;}}return _zP;};CTree.prototype.checkDefaultValid=function(){var _El=true;var _yt=new Array();if(this._kG){_yt=this.getSelectedLeafNodes(this.getRootNode());_yt=_yt.concat(this.getSelectedFolderNodes(this.getRootNode()));if(_yt.length!=this.getDefaultSelectedNodes().length){return true;}var _Cs,_FO;if(_yt.length>this.getDefaultSelectedNodes().length){_Cs=_yt;_FO=this.getDefaultSelectedNodes();}else{_Cs=this.getDefaultSelectedNodes();_FO=_yt;}for(var i=0;i<_Cs.length;i++){for(var j=0;j<_FO.length;j++){if(_FO[j].getId()==_Cs[i].getId()){_El=false;break;}}if(_El==true){return true;}_El=true;}return false;}return true;};CTree.prototype.handleNotify=function(){this.cleanCacheValues(true);};CTree.prototype.checkData=function(){if(this._ky){return this._ky.checkData();}if(this.getDisabled()==true){if(this.isRequired()==false){this._l1=true;this.checkPass();}else{this._l1=false;this.checkFail();}}else if((((this.isRequired()==false)||(this.getRootNode().hasSelectedChildren()==true))&&this.checkDefaultValid()==true)||this.getPreviousSelections()!=null){this._l1=true;this.checkPass();}else{this._l1=false;this.checkFail();}};CTree.prototype.checkPass=function(){if((this._js!=null)&&(this._js.src!=this._kF.src)){this._js.src=this._kF.src;}if(this._k0){this._k0.className="clsFeedbackWidget";}this.notify();};CTree.prototype.checkFail=function(){if((this._js!=null)&&(this._js.src!=this._kx.src)){this._js.src=this._kx.src;}if(this._k0){this._k0.className="clsFeedbackWidgetParseError";}this.notify(gFAIL,this);};CTree.prototype.setValid=function(_q7){this._l1=_q7;};CTree.prototype.redrawNodeToggle=function(_vx,_pR){var _n4=document.getElementById(_pR+P_Z+_vx.getTreeHierarchy());if(_n4!=null){if(_vx.isLast()==true&&_vx.getParent().getMoreData()!=true){if(_vx.canHaveChildren()==true){if(_vx.isOpen()==true){_n4.src=P_al;_n4.title=PMT_TRE_COLLAPSE;_n4.alt=PMT_TRE_COLLAPSE;}else{_n4.src=P_ay;_n4.title=PMT_TRE_EXPAND;_n4.alt=PMT_TRE_EXPAND;}_n4.tabIndex=this._hp;_n4.onclick=toggle;if(window.ie11){_n4.addEventListener(P_dc,toggle);}else if(window.ie){_n4.attachEvent(P_bf,toggle);}else{_n4.addEventListener(P_dc,toggle,true);}}else{_n4.src=P_bD;_n4.alt="";_n4.onclick=null;}}else{if(_vx.canHaveChildren()==true){if(_vx.isOpen()==true){_n4.src=P_c8;_n4.title=PMT_TRE_COLLAPSE;_n4.alt=PMT_TRE_COLLAPSE;}else{_n4.src=P_cr;_n4.title=PMT_TRE_EXPAND;_n4.alt=PMT_TRE_EXPAND;}_n4.tabIndex=this._hp;_n4.onclick=toggle;if(window.ie11){_n4.addEventListener(P_dc,toggle);}else if(window.ie){_n4.attachEvent(P_bf,toggle);}else{_n4.addEventListener(P_dc,toggle,true);}}else{_n4.src=P_am;_n4.alt="";_n4.onclick=null;}}}};CTree.prototype.drawLoading=function(_vx,_pR){var _Ha=document.getElementById(_pR);if(!_Ha&&_vx.getNodeType()==TREE_ROOT&&this.getRootNodeShowing()==false){_Ha=this._dN;}if(_Ha!=null){var _Ar=document.createElement("DIV");_Ar.className=P_bt;_Ar.id=this.getName()+_vx.getTreeRef()+"loading";_Ar.style.width="100%";var _EW=document.createElement("NOBR");this.drawTreeLines(_vx,_EW,_vx.getLevel()+1);if(!(_vx.getNodeType()==TREE_ROOT&&_vx.getTree().getRootNodeShowing()==false&&_vx.getMoreData()!=true)){var _ID=document.createElement("IMG");_ID.className=P_cW;_ID.src=P_bD;_ID.alt="";_EW.appendChild(_ID);}var _JW=document.createElement("IMG");_JW.className=P_cW;_JW.src=TREE_LOADING;_EW.appendChild(_JW);var _zL=document.createElement("SPAN");_zL.className=P_av+P_br+P_a4;if(typeof PMT_TRE_TREE_LOADING!=P_cD){var _xH=document.createTextNode(PMT_TRE_TREE_LOADING);_zL.appendChild(_xH);_zL.title=PMT_TRE_TREE_LOADING;}_EW.appendChild(_zL);_Ar.appendChild(_EW);_Ha.appendChild(_Ar);}};CTree.prototype.removeLoading=function(_vx){var _LT=document.getElementById(this.getName()+_vx.getTreeRef()+"loading");if(!_LT&&_vx.getNodeType()==TREE_ROOT&&this.getRootNodeShowing()==false){_LT=this._dN;}if(_LT){_LT.parentNode.removeChild(_LT);}};CTree.prototype.drawMoreData=function(_vx,_pR){var _Ha=document.getElementById(_pR);if(!_Ha&&_vx.getNodeType()==TREE_ROOT&&this.getRootNodeShowing()==false){_Ha=this._dN;}if(_Ha!=null){var _Ar=document.createElement("DIV");_Ar.className=P_bt;_Ar.id=this.getName()+_vx.getTreeRef()+"moredata";_Ar.style.width="100%";var _KH=document.createElement("NOBR");this.drawTreeLines(_vx,_KH,_vx.getLevel()+1);var _ID=document.createElement("IMG");_ID.className=P_cW;_ID.src=P_bD;newIcon.alt="";_KH.appendChild(_ID);var _Hg=document.createElement("IMG");_Hg.className=P_cW;_Hg.src=P_au;_KH.appendChild(_Hg);var _zL=document.createElement("SPAN");_zL.className=P_av+P_br+P_c1;if(typeof PMT_TRE_MORE!=P_cD){var _zv=document.createTextNode(PMT_TRE_MORE);_zL.appendChild(_zv);_zL.title=PMT_TRE_MORE;}_zL.id=this.getName()+_vx.getTreeRef()+"moredatalabel";_zL.setAttribute(P_bu,this.getName());_zL.setAttribute(P_cv,_vx.getTreeRef());_zL.tabIndex=this._hp;if(window.ie11){_zL.addEventListener(P_aJ,getMoreDataForTreeNode);_zL.addEventListener(P_dc,getMoreDataForTreeNode);}else if(window.ie){_zL.attachEvent(P_bL,getMoreDataForTreeNode);_zL.attachEvent(P_bf,getMoreDataForTreeNode);}else{_zL.addEventListener(P_aJ,getMoreDataForTreeNode,true);_zL.addEventListener(P_dc,getMoreDataForTreeNode,true);}_KH.appendChild(_zL);_Ar.appendChild(_KH);_Ha.appendChild(_Ar);}};CTree.prototype.removeMoreData=function(_vx){var _HJ=document.getElementById(this.getName()+_vx.getTreeRef()+"moredata");if(!_HJ&&_vx.getNodeType()==TREE_ROOT&&this.getRootNodeShowing()==false){_HJ=this._dN;}if(_HJ){_HJ.parentNode.removeChild(_HJ);}};CTree.prototype.drawTreeLines=function(_vx,_l9,_nd){if(_nd>1){for(var n=1;n<_nd;n++){var _KP=this._jg.cloneNode(true);var _ut=_vx.getParentAtLevel(n);if(_ut.isLast()==true&&_ut.getParent().getMoreData()!=true){_KP.src=P_bm;_KP.alt="";}_l9.appendChild(_KP);}}};CTree.prototype.drawOuterTable=function(){if(this._ec!=null){var _ns=this.m_sRef;var _l5=this.getStyle();var _yx="<fieldset class='clsFieldSet' style='"+cssParser(_l5,gsCSS_DEFAULT_STYLE+',height')+"'><table cellpading='0' cellspacing='0' border='0' onclick='treeContainerClicked(event)' class='clsPromptComponent' style='"+cssParser(_l5,"visibility,height")+"'>"+"<tr>";if(this.getHideAdornments()!=true){_yx+="<td valign='top' width='10px'>"+"<table cellpadding='0' cellspacing='0' border='0' width='10' height='20'>";if(this.getRequired()==true){_yx+="<tr>"+"<td valign='top'><img src='"+this._lw+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/></td>"+"</tr>";}_yx+="<tr>"+"<td valign='middle'><img id='imgTest_tree"+_ns+"' name='imgTest_tree"+_ns+"' class='clsErrorRequired' src='"+this._lw+"/prompting/images/error_timed_small_off.gif' align='bottom' height='10' width='10' border='0'/></td>"+"</tr>"+"</table>"+"</td>";}_yx+="<td>"+"<table cellpadding='0' cellspacing='0' border='0' width='100%'>"+"<tr>"+"<td><div id='treePane"+_ns+"' class='clsTreePane pa'";if(this.getContainerWidth()!=null||this.getContainerHeight()!=null){_yx+=" style='";if(this.getContainerWidth()!=null){_yx+="width:"+this.getContainerWidth()+";";}if(this.getContainerHeight()!=null){_yx+="height:"+this.getContainerHeight()+";";}_yx+="'";}_yx+="></div></td>"+"</tr>";if(this.getHideAdornments()!=true){_yx+="<tr>"+"<td><div id='feedback_tree"+_ns+"' class='clsFeedbackWidget'><IMG name='sizer_tree"+_ns+"' src='"+this._lw+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr>";}if(this.getSelectionMode()!=P_b9){_yx+="<tr>"+"<td align='right'>";if(this.getSelectTreeUI()!=CHECKBOX_TREE||this.getSelectionMode()!=DISCONTIGUOUS_TREE_SELECTION){_yx+="<A href='javascript:"+_ns+".selectAll()' class='clsLink pl'>"+PMT_UIM_SELECTALL+"</A> ";}_yx+="<A href='javascript:"+_ns+".deSelectAll()' class='clsLink pl'>"+PMT_UIM_DESELECTALL+"</A>"+"</td>"+"</tr>";}_yx+="</table>"+"</td>"+"</tr>"+"</table></fieldset>";this._ec.innerHTML=_yx;if(this.getErrorFeedbackWidget()==null){this.setErrorFeedbackWidget(document.getElementById("feedback_tree"+_ns));}if(this.getImgCheck()==null){this.setImgCheck(document.getElementById("imgTest_tree"+_ns));if(this.getImgCheck()!=null){this.setImgErrorFalse(P_by);this.setImgErrorTrue(P_bE);}}}};CTree.prototype.draw=function(_vx,_tc){if(_vx.getTree().getDisabled()==true){return false;}var _nv=_vx.getTreeRef();var _uu=this.getName();if(_vx.getNodeType()==TREE_ROOT){var _mF=document.getElementById(_uu);if(_mF!=null){_tc.removeChild(_mF);}_tc.setAttribute(P_cv,_nv);_tc.setAttribute(P_bu,_uu);}var _l9=this._l2.cloneNode(true);if(this.getAllowDragDrop()==true&&(this.getSelectTreeUI()==NORMAL_TREE||this.getSelectionMode()==P_b9)){if(window.ie11){_l9.addEventListener(P_o,dragStartOnNode);_l9.addEventListener(P_be,dragOnNode);_l9.addEventListener(P_cC,dragEndOnNode);}else if(window.ie){_l9.attachEvent(P_dk,dragStartOnNode);_l9.attachEvent(P_O,dragOnNode);_l9.attachEvent(P_aq,dragEndOnNode);}else{_l9.setAttribute("draggable","true");_l9.addEventListener(P_o,dragStartOnNode);_l9.addEventListener(P_be,dragOnNode);_l9.addEventListener(P_cC,dragEndOnNode);}if(window.chrome){_l9.addEventListener("mousemove",function(e){cancelBub(e);});}}_l9.setAttribute(P_cv,_nv);_l9.setAttribute(P_bu,_uu);_l9.id=_uu+_nv;if(!(_vx.getNodeType()==TREE_ROOT&&this.getRootNodeShowing()==false)){_l9.className=P_bt;var _KV=this._lK.cloneNode(true);_KV.setAttribute(P_bu,_uu);_l9.appendChild(_KV);this.drawTreeLines(_vx,_KV,_vx.getLevel());var _Fg=this._kZ.cloneNode(true);_Fg.id=_uu+_nv+P_b2;_Fg.setAttribute(P_aS,_nv.toString());_Fg.setAttribute(P_bQ,_uu);var _HU=null;if(_vx.getIndicator()!=null){_HU=this._g2.cloneNode(true);_HU.id=_uu+_nv+P_g;_HU.setAttribute(P_cv,_nv);_HU.setAttribute(P_aS,_nv.toString());_HU.setAttribute(P_bQ,_uu);_HU.setAttribute(P_bu,_uu);var _J2=this._ga.cloneNode(true);_J2.id=_uu+_nv+P_b5;_J2.setAttribute(P_cv,_nv);_J2.setAttribute(P_aS,_nv.toString());_J2.setAttribute(P_bQ,_uu);_J2.setAttribute(P_bu,_uu);_J2.src=_vx.getIndicator();_HU.appendChild(_J2);}var _ys=this._i2.cloneNode(true);_ys.id=_uu+_nv+P_bA;_ys.setAttribute(P_cv,_nv);_ys.setAttribute(P_aS,_nv.toString());_ys.setAttribute(P_bQ,_uu);_ys.setAttribute(P_bu,_uu);if(_vx.getTooltip()!=false){_ys.title=this.bidiSafeText(_vx.getTooltip());}else{_ys.title=this.bidiSafeText(_vx.getName());}_Fg.src=getIconSrc(_vx);var _l3=_vx.getNodeTypeObject()._lf;if(_l3!=null){_Fg.alt=_l3;}_Fg.className=P_cW;_l9.setAttribute(P_aS,_nv.toString());_l9.setAttribute(P_bQ,_uu);if(_vx.getNodeType()==TREE_ROOT){_ys.onclick=function(){return false;};_vx._iS=_ys.id;}else{var _n4=this._gU.cloneNode(true);if(_vx.isLast()==true&&_vx.getParent().getMoreData()!=true){if(_vx.canHaveChildren()==true){if(_vx.isOpen()==true){_n4.src=P_al;_n4.title=PMT_TRE_COLLAPSE;_n4.alt=PMT_TRE_COLLAPSE;}else{_n4.src=P_ay;_n4.title=PMT_TRE_EXPAND;_n4.alt=PMT_TRE_EXPAND;}_n4.tabIndex=this._hp;_n4.onclick=toggle;_n4.className=P_b4;if(window.ie11){_n4.addEventListener(P_dc,toggle);}else if(window.ie){_n4.attachEvent(P_bf,toggle);}else{_n4.addEventListener(P_dc,toggle,true);}}else{_n4.src=P_bD;_n4.alt="";}}else{if(_vx.canHaveChildren()==true){if(_vx.isOpen()==true){_n4.src=P_c8;_n4.title=PMT_TRE_COLLAPSE;_n4.alt=PMT_TRE_COLLAPSE;}else{_n4.src=P_cr;_n4.title=PMT_TRE_EXPAND;_n4.alt=PMT_TRE_EXPAND;}_n4.tabIndex=this._hp;_n4.onclick=toggle;_n4.className=P_b4;if(window.ie11){_n4.addEventListener(P_dc,toggle);}else if(window.ie){_n4.attachEvent(P_bf,toggle);}else{_n4.addEventListener(P_dc,toggle,true);}}else{_n4.src=P_am;_n4.alt="";}}_n4.setAttribute(P_cv,P_b0);_n4.id=_uu+_nv+P_Z+_vx.getTreeHierarchy();_vx._iW=_n4.id;_KV.appendChild(_n4);if((_vx.getTree().getForceSelectionAtLowestLevel()==true&&_vx.getNodeType()==TREE_ITEM)||(_vx.getTree().getForceSelectionAtLowestLevel()==false)){_ys.tabIndex=this._hp;P_bU._hj(_ys,P_aJ,selectNode,true);if(_vx.getTree().getSingleClickFunc()!=null){if(window.ie11){_ys.addEventListener(P_aJ,singleClickCaller,true);_ys.addEventListener(P_dc,singleClickCaller,true);}else if(window.ie){_ys.attachEvent(P_bL,singleClickCaller);_ys.attachEvent(P_bf,singleClickCaller);}else{_ys.addEventListener(P_aJ,singleClickCaller,true);_ys.addEventListener(P_dc,singleClickCaller,true);}}if(_vx.getTree().getDoubleClickFunc()!=null){if(window.ie11){_ys.addEventListener(P_N,doubleClickCaller);}else if(window.ie){_ys.attachEvent(P_aE,doubleClickCaller);}else{_ys.addEventListener(P_N,doubleClickCaller,true);if(typeof AccessibilityHandler!="undefined"){_ys.addEventListener(P_dc,doubleClickCaller,true);}}}_ys.onmouseover=treeNodeMouseOver;_ys.onmouseout=treeNodeMouseOut;if(window.ie11){_ys.addEventListener(P_s,contextMenuCaller);_ys.addEventListener(P_dc,selectNode);}else if(window.ie){_ys.attachEvent(P_aw,contextMenuCaller);_ys.attachEvent(P_bf,selectNode);}else{_ys.addEventListener(P_s,contextMenuCaller,true);_ys.addEventListener(P_dc,selectNode,true);}}if(this.getSelectionMode()!=P_b9&&this.getSelectTreeUI()==CHECKBOX_TREE){var _Fx=this._fg.cloneNode(true);_Fx.src=getCheckBoxSrc(_vx);_Fx.setAttribute(P_cv,P_aL);_Fx.id=_uu+_nv+P_aL;if((_vx.getTree().getForceSelectionAtLowestLevel()==true&&_vx.getNodeType()==TREE_ITEM)||(_vx.getTree().getForceSelectionAtLowestLevel()==false)){if(window.ie11){_Fx.tabIndex=this._hp;_Fx.onclick=selectNode;_Fx.addEventListener(P_s,contextMenuCaller);_Fx.addEventListener(P_dc,selectNode);}else if(window.ie){_Fx.tabIndex=this._hp;_Fx.onclick=selectNode;_Fx.attachEvent(P_aw,contextMenuCaller);_Fx.attachEvent(P_bf,selectNode);}else{_Fx.addEventListener(P_aJ,selectNode,true);_Fx.addEventListener(P_s,contextMenuCaller,true);_Fx.addEventListener(P_dc,selectNode,true);}}_KV.appendChild(_Fx);}}_ys.setAttribute("role","treeitem");if(this.contentLocale!=null){_ys.setAttribute("lang",this.contentLocale);}_ys.appendChild(_Fg);if(_HU!=null){_ys.appendChild(_HU);}var _E4=this._eh.cloneNode(true);_E4.id=_uu+_nv+P_dg;_E4.className=getClassName(_vx,this);_E4.setAttribute(P_cv,_nv);_E4.setAttribute(P_aS,_nv.toString());_E4.setAttribute(P_bQ,_uu);_E4.setAttribute(P_bu,_uu);_vx._jH=_E4;_vx._iS=_E4.id;if(typeof AccessibilityHandler!="undefined"&&AccessibilityHandler.isEnabled()){if(_vx.getNodeType()==TREE_ROOT||_vx.getParent().getLableText()==null&&_vx.getIndex()==0){_E4.setAttribute("tabindex","0");}else{_E4.setAttribute("tabindex","-1");}_E4.setAttribute("role","treeitem");_ys.removeAttribute("role");}var _HO=this._jP.cloneNode(true);var _Fw=document.createTextNode(this.bidiSafeText(_vx.getName()));_HO.appendChild(_Fw);_HO.setAttribute("id",_vx.getTreeHierarchy());var _l5=this.getStyle();_HO.style.color=cssParser(_l5,"color",true);_HO.style.backgroundColor=cssParser(_l5,"background-color",true);_HO.style.fontFamily=cssParser(_l5,"font-family",true);_HO.style.fontSize=cssParser(_l5,"font-size",true);_HO.style.fontWeight=cssParser(_l5,"font-weight",true);_HO.style.fontStyle=cssParser(_l5,"font-style",true);_HO.style.fontVariant=cssParser(_l5,"font-variant",true);_HO.style.textAlign=cssParser(_l5,"text-align",true);_HO.style.textVariant=cssParser(_l5,"text-variant",true);_HO.style.textIndent=cssParser(_l5,"text-indent",true);_HO.style.textTransform=cssParser(_l5,"text-transform",true);_HO.setAttribute(P_cv,_nv);_HO.setAttribute(P_aS,_nv.toString());_HO.setAttribute(P_bQ,_uu);_HO.setAttribute(P_bu,_uu);_E4.appendChild(_HO);_ys.appendChild(_E4);_KV.appendChild(_ys);if(_vx.isOpen()){_vx.setRendered(true);}}_tc.appendChild(_l9);if(typeof AccessibilityHandler!="undefined"&&AccessibilityHandler.isEnabled()){_vx.attachEvents();}if(_vx.hasChildren()==true){if(_vx.isOpen()==true){var _DS=_vx.getChildren();var parent=_vx.getParent();if(_vx.isSelected()==true&&parent!=null&&parent.isSelected()==false){_vx.setSelected(true);}for(var _DR=0;_DR<_DS.length;_DR++){this.draw(_DS[_DR],_l9);}}else{var _xv=this.hasUnopenedSelectedChild(_vx);if((_vx.isSelected()==false)&&_xv==true){_vx.setHasSelectedChildren(true);_vx.updateNodeSelection();}if(_vx.hasSelectedChildren()==true||_xv==true){if(this.getSelectionMode()==CONTIGUOUS_TREE_SELECTION){_vx.updateParent();}else{_vx.partialSelectParent();}}}}else{if((_vx.getNodeType()==TREE_ROOT)&&((_vx.getTree().getPromptingTree()!=false)||(_vx.getTree().getLoadOnTheFly()!=false))){_vx.setRendered(false);_vx.fetchChildren();}else if((_vx.isSelected()==true)){if(this.getSelectionMode()==CONTIGUOUS_TREE_SELECTION){_vx.updateParent();}else{_vx.partialSelectParent();}}}this._dq=true;};CTree.prototype.updateSelections=function(_vx,_o9){if(typeof _o9==P_cD){_o9=false;}if(_vx.isSelected()){if((this.getForceSelectionAtLowestLevel()==true&&_o9==false)||this.getSelectionMode()!=P_b9||(this.getSelectionMode()==P_b9&&_o9==false)){_vx.setSelected(true);_vx.updateParent();return true;}else{_vx.setSelected(false);_vx.updateParent();return false;}}else{var _DS=_vx.getChildren();for(var _DR=_DS.length-1;_DR>=0;_DR--){if(this.updateSelections(_DS[_DR],_o9)){_o9=true;}}return _o9;}};CTree.prototype.hasUnopenedSelectedChild=function(_vx){var _DS=_vx.getChildren();for(var _DR=_DS.length-1;_DR>=0;_DR--){if(_DS[_DR].isSelected()||this.hasUnopenedSelectedChild(_DS[_DR])){return true;}}return false;};CTree.prototype.childrenReadyForNode=function(_vx){var _Kq=this.findTreeNode(this.getRootNode(),_vx);_Kq.setLoading(false);this.setLoading(false);if(_Kq.getShowUI()){this.removeLoading(_Kq);}var _Cb=this.getName()+_Kq.getTreeRef();if(_Kq.getChildren().length>0){_Kq.setCanHaveChildren(true);if(_Kq.isOpen()&&_Kq.getRendered()==false&&_Kq.getShowUI()){var _tc=document.getElementById(_Cb);gDrawChildren(_Kq,_tc,function(){_Kq.setRendered(true);if(_Kq.getShowUI()){var _IS=_Kq.getTree();_IS.redrawNodeToggle(_Kq,_Cb);_IS.updateSelections(_Kq,false);_IS.redraw();_IS.checkData();if(_Kq.getMoreData()==true){_IS.drawMoreData(_Kq,_Cb);}}_Kq.setShowUI(true);});return;}}else{_Kq.setCanHaveChildren(false);}if(_Kq.getShowUI()){this.redrawNodeToggle(_Kq,_Cb);_Kq.getTree().updateSelections(_Kq,false);_Kq.getTree().redraw();_Kq.getTree().checkData();if(_Kq.getMoreData()==true){this.drawMoreData(_Kq,_Cb);}}_Kq.setShowUI(true);};CTree.prototype.findTreeNode=function(_mF,_vx){if(_mF._gD!=_vx._gD){if(_mF.hasChildren()){var _GR=_mF.getChildren();for(var i=0;i<_GR.length;i++){var _BN=this.findTreeNode(_GR[i],_vx);if(_BN!=null){return _BN;}}}return null;}return _mF;};CTree.prototype.setRootNodeType=function(_rg){if(_rg!=null&&_rg instanceof CTreeNodeType&&_rg._iJ==TREE_ROOT){this._j8.setNodeTypeObject(_rg);}};CTree.prototype.setWrapper=function(_sz){this._ky=_sz;};CTree.prototype.bidiSafeText=function(_pF){return(typeof this._kY!="undefined"&&typeof this._kY["btdInjectUCCIntoStr"]!="undefined"?this._kY.btdInjectUCCIntoStr(_pF):_pF);};CTree.prototype.getTracking=function(){return this._kh.getTracking();};CTree.prototype.getConversation=function(){var _zl=P_ai;var _qy=this.getCV();if(_qy&&typeof _qy.getConversation==P_c7){_zl=_qy.getConversation();}else{var _pM=document.getElementById("formWarpRequest"+this.getCVId());if(!_pM){document.getElementById("formWarpRequest");}if(_pM){if(typeof _pM.elements["ui.conversation"]!=P_cD){_zl=_pM.elements["ui.conversation"].value;}}}return _zl;};CTree.prototype.getUniqueKey=function(_rX){var _vU="";var _HR="root_children";var _qO=this.getTracking();if(_rX.toUpperCase()==_HR.toUpperCase()){if(this.bAllowStateCache){var _Il=this._kh.getCachedPromptNames(_qO);var _Kg=[];var _C7={};var _wV=this._kh.getName();if((_Il!=null)&&(_Il.length!=0)){var _Jj=_Il.split(":");for(var i=0;i<_Jj.length;i++){if(_Jj[i]!=_wV){_Kg.push(_Jj[i]);var _DZ=this._kh.getCachedDisplayValues(_qO,_Jj[i]);_C7[_Jj[i]]=_DZ;}}_Kg.sort();for(var i=0;i<_Kg.length;i++){_vU+=_Kg[i];_vU+="_";_vU+=_C7[_Kg[i]];}}}}return "PRMT_TREE_"+_qO+_vU+this.cacheKeyPrefix+_rX;};CTree.prototype.setCacheValue=function(_rX,_sE,_tm){var _Dz=this.getUniqueKey(_rX);var _AW=_sE;var _AQ=window.sessionStorage.getItem(_Dz);if(this.bAllowStateCache&&window.sessionStorage){try{if(_AQ!=null&&_AQ!=_AW){_AW=P_bU.mergeChildrenInfo(_AQ,_AW);}window.sessionStorage.setItem(_Dz,_AW);}catch(e){if(!_tm){this.cleanCacheValues();this.setCacheValue(_rX,_AW,true);}}}};CTree.prototype.cleanCacheValues=function(_rr){if(this.bAllowStateCache&&window.sessionStorage){var _EA="PRMT_TREE_"+this.getTracking();for(var _rX in window.sessionStorage){if(_rr){if(_rX.indexOf("PRMT_TREE_")==0){window.sessionStorage.removeItem(_rX);}}else{if(_rX.indexOf("PRMT_TREE_")==0&&_rX.indexOf(_EA)==-1){window.sessionStorage.removeItem(_rX);}}}}};CTree.prototype.getCacheValue=function(_rX){var _sE=null;if(this.bAllowStateCache&&window.sessionStorage){var _Dz=this.getUniqueKey(_rX);_sE=window.sessionStorage.getItem(_Dz);}return _sE;};CTree.prototype.removeCacheValue=function(_rX){var _sE=null;if(this.bAllowStateCache&&window.sessionStorage){var _Dz=this.getUniqueKey(_rX);_sE=window.sessionStorage.removeItem(_Dz);}return _sE;};function toggle(_mG,_qR){_mG=(_mG)?_mG:((event)?event:null);clearSelection();cancelBub(_mG);if(!_qR){_qR=getUINode(_mG);}else{_qR=getUINode(null,_qR);}var _ua=_qR.getAttribute(P_cv).toString();var _p9=_qR.getAttribute(P_bu).toString();var _vx=getTreeNode(_p9,_ua);var k=0,j=0,_DS=null;if((_vx.getTree().getPromptingTree()!=false)||(typeof _vx.getTree().getLoadOnTheFly()==P_c7)){if(((_vx.getTree().getPromptingTree()!=false)&&(typeof activeFetchingTreeNode==P_cD||activeFetchingTreeNode==null))||(typeof _vx.getTree().getLoadOnTheFly()==P_c7)){if(_vx.isOpen()==false){for(k=0;k<_qR.childNodes.length;k++){if((_qR.childNodes[k].nodeType==1)&&(_qR.childNodes[k].tagName!='IMG')&&(_qR.childNodes[k].tagName!='SPAN')&&(_qR.childNodes[k].tagName!='NOBR')){_qR.childNodes[k].style.display="block";}}if(_vx.hasChildren()){if(_vx.getRendered()==false){gDrawChildren(_vx,_qR,function(){_vx.setRendered(true);_vx.setOpen(true);updateToggleIcon(_vx,_p9);});return;}}else{if(_vx.fetchChildren()==false){return false;}}_vx.setOpen(true);}else{for(k=0;k<_qR.childNodes.length;k++){if((_qR.childNodes[k].nodeType==1)&&(_qR.childNodes[k].tagName!='IMG')&&(_qR.childNodes[k].tagName!='SPAN')&&(_qR.childNodes[k].tagName!='NOBR')){_qR.childNodes[k].style.display="none";}}_vx.setOpen(false);}}else{return false;}}else{if(_vx.isOpen()==false){for(k=0;k<_qR.childNodes.length;k++){if((_qR.childNodes[k].nodeType==1)&&(_qR.childNodes[k].tagName!='IMG')&&(_qR.childNodes[k].tagName!='SPAN')&&(_qR.childNodes[k].tagName!='NOBR')){_qR.childNodes[k].style.display="block";}}_vx.setOpen(true);if(_vx.getRendered()==false){_DS=_vx.getChildren();for(j=0;j<_DS.length;j++){_vx.getTree().draw(_DS[j],_qR);}_vx.setRendered(true);}}else{for(k=0;k<_qR.childNodes.length;k++){if((_qR.childNodes[k].nodeType==1)&&(_qR.childNodes[k].tagName!='IMG')&&(_qR.childNodes[k].tagName!='SPAN')&&(_qR.childNodes[k].tagName!='NOBR')){_qR.childNodes[k].style.display="none";}}_vx.setOpen(false);}}updateToggleIcon(_vx,_p9);};function gDrawChildren(_ms,_s0,_sa,_so){var _Hr=_ms.getChildren();var _IS=_ms.getTree();if(!_so){_so=0;}var _HB=Math.min((_so+P_bP),_Hr.length);var _xs=_so;for(_xs=_so;_xs<_HB;_xs++){_IS.draw(_Hr[_xs],_s0);}if(_xs<_Hr.length){setTimeout(function(){gDrawChildren(_ms,_s0,_sa,_xs);},P_bo);}else if(typeof _sa==P_c7){_sa();}};function updateToggleIcon(_ms,_sk){var _BR=document.getElementById(_sk+_ms.getTreeRef()+P_b2);if(_BR){_BR.src=getIconSrc(_ms);var _Ap=document.getElementById(_sk+_ms.getTreeRef()+P_Z+_ms.getTreeHierarchy());_Ap.src=getToggleSrc(_ms);_Ap.title=getToggleTitle(_ms);}};function treeContainerClicked(_mG){_mG=(_mG)?_mG:((event)?event:null);clearSelection();cancelBub(_mG);try{var _qR=getUINode(_mG);var _p9=eval(_qR.getAttribute(P_bu).toString());if(_p9.getSelectTreeUI()!=CHECKBOX_TREE){_p9.getRootNode().setSelected(false);}_p9.setLastSelectedNode(null);_p9.redraw();_p9.checkData();}catch(e){}};function contextMenuCaller(_mG){_mG=(_mG)?_mG:((event)?event:null);clearSelection();cancelBub(_mG);var _qR=getUINode(_mG);var _ua=_qR.getAttribute(P_cv).toString();var _p9=_qR.getAttribute(P_bu).toString();var _vx=getTreeNode(_p9,_ua);if(_vx.getTree().getContextMenu()!=null){var _JC=_vx.getTree().getContextMenu();_JC(_mG);cancelBub(_mG);if((_mG!=null)&&(typeof _mG.preventDefault==="function")){_mG.preventDefault();}return false;}};function singleClickCaller(_mG){_mG=(_mG)?_mG:((event)?event:null);if((_mG!==null)&&(_mG.keyCode!=null)&&(_mG.keyCode!=13)&&(_mG.keyCode!==0)){return false;}clearSelection();cancelBub(_mG);var _qR=getUINode(_mG);var _ua=_qR.getAttribute(P_cv).toString();var _p9=_qR.getAttribute(P_bu).toString();var _vx=getTreeNode(_p9,_ua);var _LD=_vx.getTree().getSingleClickFunc();if(_LD!=null){_LD(_mG);cancelBub(_mG);if(!window.ie){_mG.preventDefault();}return false;}};function doubleClickCaller(_mG){_mG=(_mG)?_mG:((event)?event:null);if(typeof AccessibilityHandler!="undefined"&&AccessibilityHandler.isEnabled()&&_mG.keyCode!=13&&_mG.keyCode!=null){return false;}if(typeof AccessibilityHandler!="undefined"){selectNode(_mG);}clearSelection();cancelBub(_mG);var _qR=getUINode(_mG);var _ua=_qR.getAttribute(P_cv).toString();var _p9=_qR.getAttribute(P_bu).toString();var _vx=getTreeNode(_p9,_ua);if(_vx.getTree().getDoubleClickFunc()!=null){var _IU=_vx.getTree().getDoubleClickFunc();_IU(_mG);cancelBub(_mG);if(!window.ie){_mG.preventDefault();}return false;}};function selectNode(_mG){_mG=(_mG)?_mG:((event)?event:null);if((_mG!==null)&&(_mG.keyCode!=null)&&(_mG.keyCode!=13)&&(_mG.keyCode!==0)){return false;}clearSelection();cancelBub(_mG);var _qR=getUINode(_mG);var _ua=_qR.getAttribute(P_cv).toString();var _p9=_qR.getAttribute(P_bu).toString();var _vx=getTreeNode(_p9,_ua);var _IS=_vx.getTree();if(_IS.getSelectionMode()!=P_b9){if((_mG.ctrlKey==false)&&(_mG.shiftKey==false)&&(_IS.getSelectTreeUI()!=CHECKBOX_TREE)){_IS.clearPreviousSelections();}var _KQ=((_IS.getSelectTreeUI()==NORMAL_TREE)&&(_mG.ctrlKey==false)&&(_mG.shiftKey==false));var _LW=((_IS.getSelectTreeUI()==CHECKBOX_TREE)||((_IS.getSelectTreeUI()==NORMAL_TREE)&&((_IS.getAllowSelectionToggle()==true)||((_IS.getAllowSelectionToggle()==false)&&(_mG.ctrlKey==true)))));if(_KQ){_IS.getRootNode().setSelected(false);if(_IS.getTrackSelectionOrder()){_IS.clearSelectionOrder();}}var _IO=_vx.isSelected();if((_IS.getSelectTreeUI()==NORMAL_TREE)&&(_mG.shiftKey==true)){var _EP=_IS.getAnchorNode();if(_EP!=null&&_vx.getRootNode().hasSelectedChildren()){if(_vx.getParent()==_EP.getParent()){var _zM=_EP.getIndex();var _GT=_vx.getIndex();var _CI=_zM;var _K5;if(_zM>_GT){_K5=-1;}else{_K5=1;}while(_CI!=_GT+_K5){var _J6=_vx.getParent().m_oChildren[_CI];_J6.setSelected(true);var _AY=_J6.getLabel(_p9);_AY.className=getClassName(_J6,_IS);redrawChildren(_J6,_p9);_CI+=_K5;}}}}if(_IO==true){if(_LW){_vx.setSelected(false);_IS.setLastSelectedNode(null);_IS.removeFromPrevSelArray(_vx.getValue(),_vx.getName());}}else{_vx.setSelected(true);_IS.setLastSelectedNode(_vx);}_vx.updateNodeSelection();_vx.updateParent();var _BZ=_vx.getLabel(_p9);_BZ.className=getClassName(_vx,_IS);_IS.checkData();if(_KQ){_IS.redraw();_IS.checkData();}else{redrawChildren(_vx,_p9);redrawParents(_vx,_p9);}if(_LW&&_IO){_IS.setAnchorNode(null);}else{_IS.setAnchorNode(_vx);}}else{_IS.clearPreviousSelections();if(_vx.isSelected()==true&&_IS.getAllowSelectionToggle()==true){_IS.getRootNode().setSelected(false);_IS.setLastSelectedNode(null);}else{_IS.getRootNode().setSelected(false);_vx.setSelected(true);_IS.setLastSelectedNode(_vx);}_vx.updateParent();_IS.redraw();_IS.checkData();}if(!window.ie){_mG.stopPropagation();_mG.preventDefault();}return false;};function redrawChildren(_vx,_p9){if(_vx.getRendered()==true){var _DS=_vx.getChildren();var _IS=_vx.getTree();var _s0=document.getElementById(_p9+_vx.getTreeRef());for(var j=0;j<_DS.length;j++){var _JG=_DS[j];var _BZ=_JG.getLabel(_p9);if(_BZ==null){if(j>0){_IS.redrawNodeToggle(_DS[j-1],_p9+_DS[j-1].getTreeRef());}_IS.draw(_JG,_s0);if(_vx.isOpen()==false){document.getElementById(_p9+_JG.getTreeRef()).style.display="none";}}else{_BZ.className=getClassName(_JG,_IS);if(_IS.getSelectionMode()!=P_b9){if(_IS.getSelectTreeUI()==CHECKBOX_TREE){var _ov=_JG.getCheckbox(_p9);if(_ov)_ov.src=getCheckBoxSrc(_JG);}}}redrawChildren(_JG,_p9);}}};function redrawParents(_vx,_p9){var parentNode=_vx.getParent();if(parentNode!=null){var _BZ=parentNode.getLabel(_p9);if(_BZ!=null){_BZ.className=getClassName(parentNode,parentNode.getTree());if(_vx.getTree().getSelectionMode()!=P_b9){if(parentNode.getTreeRef()!=null&&parentNode.getTreeRef().length!==0){if(_vx.getTree().getSelectTreeUI()==CHECKBOX_TREE){var _ov=parentNode.getCheckbox(_p9);_ov.src=getCheckBoxSrc(parentNode);}redrawParents(parentNode,_p9);}}}}};function dragStartOnNode(_mG){_mG=(_mG)?_mG:((event)?event:null);clearSelection();cancelBub(_mG);var _Lg=(_mG.srcElement)?_mG.srcElement.getAttribute(P_aS):((_mG.originalTarget)?_mG.originalTarget.getAttribute(P_aS):null);if(_Lg!=null&&typeof _Lg==P_bJ&&_Lg.length!==0){var _qR=getUINode(_mG);if(_qR){var _p9=_qR.getAttribute(P_bQ).toString();var _vx=getTreeNode(_p9,_Lg);var _zO=_vx.getTree();if(!_vx.isSelected()){if((_mG.ctrlKey==false)&&(_mG.shiftKey==false)){_zO.getRootNode().setSelected(false);_zO.clearPreviousSelections();if(_zO.getTrackSelectionOrder()){_zO.clearSelectionOrder();}}_vx.setSelected(true);_vx.updateParent();var _BZ=_vx.getLabel();_BZ.className=getClassName(_vx,_zO);if((_mG.ctrlKey==false)&&(_mG.shiftKey==false)){_zO.redraw();_zO.checkData();}}var _yt=_zO.getSelectedFolderNodes();_yt=_yt.concat(_zO.getSelectedLeafNodes());var _CT=_p9+"~~~~~";for(var i=0;i<_yt.length;i++){if(i>0){_CT+="~~~";}_CT+=_yt[i].getTreeRef();}_mG.dataTransfer.setData("Text",_CT);if(_zO.getOnDragStart()!=null){var _E2=_zO.getOnDragStart();_E2(_mG);}}}};function dragOnNode(_mG){_mG=(_mG)?_mG:((event)?event:null);clearSelection();cancelBub(_mG);var _Lg=(_mG.srcElement)?_mG.srcElement.getAttribute(P_aS):((_mG.originalTarget)?_mG.originalTarget.getAttribute(P_aS):null);if(_Lg!=null&&typeof _Lg==P_bJ&&_Lg.length!==0){var _qR=getUINode(_mG);if(_qR){var _p9=_qR.getAttribute(P_bQ).toString();var _vx=getTreeNode(_p9,_Lg);var _zO=_vx.getTree();if(_zO.getOnDrag()!=null){var _xn=_zO.getOnDrag();_xn(_mG);}}}if(!window.ie){_mG.preventDefault();}};function dragEndOnNode(_mG){_mG=(_mG)?_mG:((event)?event:null);clearSelection();cancelBub(_mG);var _Lg=(_mG.srcElement)?_mG.srcElement.getAttribute(P_aS):((_mG.originalTarget)?_mG.originalTarget.getAttribute(P_aS):null);if(_Lg!=null&&typeof _Lg==P_bJ&&_Lg.length!==0){var _qR=getUINode(_mG);if(_qR){var _p9=_qR.getAttribute(P_bQ).toString();var _vx=getTreeNode(_p9,_Lg);var _zO=_vx.getTree();if(_zO.getOnDragEnd()!=null){var _Kp=_zO.getOnDragEnd();_Kp(_mG);}}}if(!window.ie){_mG.preventDefault();}};function clearSelection(){if(typeof document.selection!=P_cD&&typeof document.selection.createRange==P_c7&&document.selection.createRange().text!=P_ai){document.selection.empty();}else if(typeof window.getSelection==P_c7&&typeof window.getSelection()==P_cZ){window.getSelection().removeAllRanges();}};function getUINode(_mG,_qR){if(!_qR){_qR=(_mG.target)?_mG.target:((_mG.srcElement)?_mG.srcElement:null);}while(_qR.nodeType==3){_qR=_qR.parentNode;}var _ua=_qR.getAttribute(P_cv).toString();if((_ua==P_b0)||(_ua==P_bA)||(_ua==P_aL)){_qR=_qR.parentNode;}_ua=_qR.getAttribute(P_cv).toString();if(_ua==P_cl){_qR=_qR.parentNode;}return _qR;};function getTreeNode(_p9,_ua){var _vx=null;if(_ua!=P_ai){var _CU=_ua.split(P_A);var _mc=P_ai;for(var k=0;k<_CU.length;k++){if(_CU[k]!=P_ai){_mc+=".m_oChildren["+_CU[k]+"]";}}_vx=eval(_p9+".getRootNode()"+_mc);}else{_vx=eval(_p9+".getRootNode()");}return _vx;};function getClassName(_vx,_p9){var _HA=P_av;if((_p9.getSelectionMode()==P_b9||_p9.getSelectTreeUI()==NORMAL_TREE)&&_p9.getRootNode()!=_vx){switch(_vx.getState()){case P_cf:_HA=P_T;break;case P_bh:_HA=P_ba;break;}}return _HA;};function getCheckBoxSrc(_vx){var _JF=P_ai;switch(_vx.getState()){case P_bk:_JF=P_aR;break;case P_cf:_JF=P_B;break;case P_bh:_JF=P_cN;break;}return _JF;};function getIconSrc(_vx){var _JF=P_ai;if(_vx.isOpen()==true){_JF=_vx.getNodeTypeObject()._gw;}else{_JF=_vx.getNodeTypeObject()._eP;}return _JF;};function getIconAlign(_vx){return P_bO;};function getToggleSrc(_vx){if(_vx.isOpen()==true){if(_vx.isLast()==true&&_vx.getParent().getMoreData()!=true){return P_al;}else{return P_c8;}}else{if(_vx.isLast()==true&&_vx.getParent().getMoreData()!=true){return P_ay;}else{return P_cr;}}};function getToggleTitle(_vx){if(_vx.isOpen()==true){return PMT_TRE_COLLAPSE;}else{return PMT_TRE_EXPAND;}};function treeNodeMouseOver(_mG){_mG=(_mG)?_mG:((event)?event:null);clearSelection();cancelBub(_mG);var _qR=getUINode(_mG);var _ua=_qR.getAttribute(P_cv).toString();var _p9=_qR.getAttribute(P_bu).toString();var _vx=getTreeNode(_p9,_ua);window.status=P_ai;if(_vx.getNodeTypeObject().getSelectable()&&_vx.isSelected()==false&&_vx.hasSelectedChildren()==false){var _BZ=_vx.getLabel(_p9);_BZ.className=P_ce;}};function treeNodeMouseOut(_mG){_mG=(_mG)?_mG:((event)?event:null);clearSelection();cancelBub(_mG);var _qR=getUINode(_mG);var _ua=_qR.getAttribute(P_cv).toString();var _p9=_qR.getAttribute(P_bu).toString();var _vx=getTreeNode(_p9,_ua);window.status=P_ai;if(_vx.isSelected()==false&&_vx.hasSelectedChildren()==false){var _BZ=_vx.getLabel(_p9);_BZ.className=P_av;}};function CTreeNode(_nk,_rg,_u7,_ts,_sE,_rc){if(_rg){this.init(_nk,_rg,_u7,_ts,_sE,_rc);}};CTreeNode.prototype.init=function(_nk,_rg,_u7,_ts,_sE,_rc){this._gD=this.generateId();this._ir=sDecodeU003(_ts);this._k3=sDecodeU003(_sE);this.m_oChildren=[];this._jz=0;this._fF=_u7;this._he=_u7;this._lU=null;if(_nk!=null){this._eo=_nk;this.setLevel(this._eo.getLevel()+1);if(((this.getTree().getForceSelectionAtLowestLevel()==true&&_rg._iJ==TREE_ITEM)||(this.getTree().getForceSelectionAtLowestLevel()==false))&&(this.getTree().getShowPreviousValues()==true)){this._dE=_rc;}else{this._dE=false;}this._eo.appendChild(this);var _zk=this.getTree().getPreviousSelections();if(_zk!=null){for(var i=0;i<_zk.length;i++){if((typeof _zk[i]==P_bJ)&&(_zk[i]==this._k3)){this._dE=true;break;}else if((typeof _zk[i]==P_cZ)&&(_zk[i][1]==this._k3)){this._dE=true;break;}}}}else{this._eo=null;this.setLevel(0);this._dE=false;}this._eB=_rg;if(_rg._gf==true&&(_nk!=null&&this.getTree().nodesCanHaveChildren()==true)){this.setCanHaveChildren(true);}else{this.setCanHaveChildren(false);}this._ha=false;this._j8=null;this._dT=false;this._hW=false;this._dS=false;this._kn=0;this._f0=null;this.allowUIForChildren=true;var _Mb=this.getTree();if(_Mb&&_Mb._gb&&_Mb._gb[this._k3]){this.setHasSelectedChildren(true);}};CTreeNode.prototype.attachEvents=function(){var _Gq=this.getHTMLTreeItem();if(_Gq==null)return;_Gq.onkeypress=this.onkeypress;_Gq.treeNode=eval(this);};CTreeNode.prototype.onkeypress=function(_mG){_mG=(_mG)?_mG:((event)?event:null);var _rx=_mG.keyCode||_mG.which;var _mc=this.treeNode;var parentNode=_mc.getParent();var _Ap=_mc.getHTMLToggleIcon();if(parentNode==null){if(_rx==40){_mc.getChild(0).getHTMLTreeItem().focus();}}else if(_rx==37){if(_mc.isOpen()){_Ap.click();}else if(parentNode.getHTMLTreeItem()!=null){parentNode.getHTMLTreeItem().focus();if(parentNode!=_mc.getRootNode()){parentNode.getHTMLToggleIcon().click();}}}else if(_rx==39){if(!_mc.isOpen()){_Ap.click();}}else if(_rx==38||_rx==40){var _Bv=_mc.getNextTreeNode(_rx);if(_Bv!=null&&_Bv.getHTMLTreeItem()!=null){_Bv.getHTMLTreeItem().focus();}}};CTreeNode.prototype.getNextTreeNode=function(_rx){var _Af,_Iw,_Bm=0;var parentNode=this.getParent();var _Bv=null;for(var i=0;i<parentNode.getChildrenLength();i++){if(this==parentNode.getChild(i)){_Af=i;break;}}if(_rx==38){_Iw=_Af-1;if(_Af==_Bm){_Iw=_Bm;if(parentNode.isOpen()){return parentNode;}}_Bv=parentNode.getChild(_Iw);while(_Bv.isOpen()){var _F9=_Bv.getChildrenLength()-1;_Bv=_Bv.getChild(_F9);}}else if(_rx==40){if(this.isOpen()){return this.getChild(0);}_Iw=_Af+1;_Bv=parentNode.getChild(_Iw);if(this.isLast()){while(parentNode!=this.getRootNode()){if(parentNode.isLast()){parentNode=parentNode.getParent();}else{return parentNode.getParent().getChild(parentNode.getIndex()+1);}}_Bv=null;}}return _Bv;};CTreeNode.prototype.getHTMLTreeItem=function(){return document.getElementById(this._iS);};CTreeNode.prototype.getHTMLToggleIcon=function(){return document.getElementById(this._iW);};CTreeNode.prototype.getLableText=function(){return this._jH;};CTreeNode.prototype.getTreeHierarchy=function(){var _m3=this.getLevel();var _wh=this.getName();var _Ho;var _Bq=this;for(_Ho=_m3-1;_Ho>=0;_Ho--){_Bq=_Bq.getParent();_wh=_Bq.getName()+"_"+_wh;}return _wh;};CTreeNode.prototype.setSkipValueCount=function(_uG){this._kn=_uG;};CTreeNode.prototype.getSkipValueCount=function(){return this._kn;};CTreeNode.prototype.getTooltip=function(){return this._hW;};CTreeNode.prototype.setTooltip=function(_uG){this._hW=_uG;};CTreeNode.prototype.getNodeTypeObject=function(){return this._eB;};CTreeNode.prototype.setNodeTypeObject=function(_rg){this._eB=_rg;};CTreeNode.prototype.getNodeType=function(){return this.getNodeTypeObject()._iJ;};CTreeNode.prototype.generateId=function(){return(Date.parse((new Date()).toString())/1000000)+Math.random();};CTreeNode.prototype.getRootNode=function(){if(this._j8==null){var _Kh=this;while(_Kh.getLevel()!=0){_Kh=_Kh.getParent();}this._j8=_Kh;}return this._j8;};CTreeNode.prototype.getTree=function(){return this.getRootNode()._hG;};CTreeNode.prototype.getParentAtLevel=function(_m3){var _Aj=this;var _x5=this.getLevel();if(this.getLevel()>_m3){for(var j=_m3;j<_x5;j++){_Aj=_Aj.getParent();}}return _Aj;};CTreeNode.prototype.isLast=function(){if((this.getParent()!=null)&&(this.getTreeRef()==this.getParent().m_oChildren[this.getParent().getChildrenLength()-1].getTreeRef())){return true;}else{return false;}};CTreeNode.prototype.getCheckbox=function(_pB){if(!this._ka){this._ka=document.getElementById(_pB+this.getTreeRef()+P_aL);}return this._ka;};CTreeNode.prototype.getLabel=function(_pB){if(!this._jH){this._jH=document.getElementById(_pB+this.getTreeRef()+P_dg);}return this._jH;};CTreeNode.prototype.setLevel=function(_m3){this._is=_m3;};CTreeNode.prototype.getLevel=function(){return this._is;};CTreeNode.prototype.setRendered=function(_u1){this._he=_u1;};CTreeNode.prototype.getRendered=function(){return this._he;};CTreeNode.prototype.setTreeRef=function(_pB){this._lU=_pB;};CTreeNode.prototype.getTreeRef=function(){return this._lU;};CTreeNode.prototype.hasChildren=function(){if(this.getChildrenLength()>0){return true;}else{return false;}};CTreeNode.prototype.canHaveChildren=function(){return this._i6;};CTreeNode.prototype.setCanHaveChildren=function(_uG){this._i6=_uG;};CTreeNode.prototype.isSelected=function(){return this._dE;};CTreeNode.prototype.setHasSelectedChildren=function(_un){this._ha=_un;};CTreeNode.prototype.hasSelectedChildren=function(){return this._ha;};CTreeNode.prototype.setSelected=function(_rc,_vi){if(this.getNodeTypeObject().getSelectable()){this._dE=_rc;if(this.isSelected()&&this.getTree().getDefaultSelectLock()){this.getTree().addDefaultSelectedNode(this);}if(this.getTree().getTrackSelectionOrder()){if(_rc){this.getTree().addToSelectionOrder(this);}else{this.getTree().removeFromSelectionOrder(this);}}}if(_vi==true||((this.getTree().getSelectTreeUI()!=CHECKBOX_TREE||this.getTree().getSelectionMode()!=DISCONTIGUOUS_TREE_SELECTION)&&(!_rc||(this.getTree().getRecursiveSelect()&&this.getNodeTypeObject().getRecursiveSelect())))){this.setHasSelectedChildren(_rc);for(var j=0;j<this.getChildrenLength();j++){this.m_oChildren[j].setSelected(_rc,_vi);}}};CTreeNode.prototype.updateTreeRefs=function(){var _DS=this.getChildren();for(var j=0;j<this.getChildrenLength();j++){var _nv=P_ai+_DS[j].getTreeRef();var _ET=/(\.{0,1})[0-9]+$/;_nv=_nv.replace(_ET,"$1"+j);_DS[j].setTreeRef(_nv);}};CTreeNode.prototype.update=function(){if(this.getTree().getSelectTreeUI()!=CHECKBOX_TREE||this.getTree().getSelectionMode()!=DISCONTIGUOUS_TREE_SELECTION){this._dE=false;}var _B3=false;var _yj=0;var _DS=this.getChildren();for(var j=0;j<this.getChildrenLength();j++){if(_DS[j].isSelected()==true){_yj+=1;_B3=true;}else if(_DS[j].hasSelectedChildren()){_B3=true;}}this.setSelectedChildrenCount(_yj);this.setHasSelectedChildren(_B3);if(this.getNodeTypeObject().getRecursiveSelect()==true){if(this.getTree().getSelectionMode()==CONTIGUOUS_TREE_SELECTION&&_yj==this.getChildrenLength()&&this.getNodeTypeObject().getFullChildSelectable()){this._dE=true;}this.updateNodeSelection();}this.updateParent();};CTreeNode.prototype.updateParent=function(){var parent=this.getParent();if(parent){parent.update();}};CTreeNode.prototype.partialSelectParent=function(){var parent=this.getParent();if(parent!=null){parent.setHasSelectedChildren(true);if(parent!=this.getRootNode()){parent.updateNodeSelection();parent.partialSelectParent();}}};CTreeNode.prototype.updateNodeSelection=function(){if(this.getTree().getSelectTreeUI()==NORMAL_TREE){if(this.getTree().getSelectionMode()==CONTIGUOUS_TREE_SELECTION&&this.isSelected()==false&&this.getNodeType()==TREE_FOLDER&&this.getChildrenLength()==this.getSelectedChildrenCount()){this._dE=true;}var _BZ=this.getLabel(this.getTree().getName());if(_BZ!=null){_BZ.className=getClassName(this,this.getTree());}}else{var _ov=this.getCheckbox(this.getTree().getName());if(_ov!=null){_ov.src=getCheckBoxSrc(this);}}};CTreeNode.prototype.isOpen=function(){return this._fF;};CTreeNode.prototype.setOpen=function(_rq){this._fF=_rq;};CTreeNode.prototype.getId=function(){return this._gD;};CTreeNode.prototype.getName=function(){return this._ir;};CTreeNode.prototype.setName=function(name){this._ir=name;};CTreeNode.prototype.getValue=function(){return this._k3;};CTreeNode.prototype.setValue=function(_sE){this._k3=sDecodeU003(_sE);};CTreeNode.prototype.getChildren=function(){return this.m_oChildren;};CTreeNode.prototype.getChildrenLength=function(){return this.m_oChildren.length;};CTreeNode.prototype.getParent=function(){return this._eo;};CTreeNode.prototype.appendChild=function(_uk){var _LC=this.getChildrenLength();this.m_oChildren[_LC]=_uk;if(_uk.isSelected()==true){this._jz+=1;}var _Cy;if(this.getTreeRef()!=null&&this.getTreeRef().length!==0){_Cy=this.getTreeRef()+P_A+_LC;}else{_Cy=_LC;}this.m_oChildren[_LC].setTreeRef(_Cy);};CTreeNode.prototype.removeChild=function(_uk){if(!_uk._gD){return;}var _x3=this.getChildrenLength();var _Fn=new Array();for(var i=0;i<_x3;i++){if(_uk._gD!=this.m_oChildren[i]._gD){_Fn.push(this.m_oChildren[i]);}}this.m_oChildren=_Fn;this.updateTreeRefs();};CTreeNode.prototype.getChild=function(_mS){if(_mS>=0&&_mS<this.getChildrenLength()){return this.m_oChildren[_mS];}return null;};CTreeNode.prototype.removeChildren=function(childNodes){if(!childNodes||!childNodes.length||childNodes.length===0){return;}var _D0=new Object();var i=0;for(i=0;i<childNodes.length;i++){if(childNodes[i]._gD){_D0[childNodes[i]._gD]=childNodes[i];}}var _Fn=new Array();for(i=0;i<this.getChildrenLength();i++){if(!_D0[this.m_oChildren[i]._gD]){_Fn.push(this.m_oChildren[i]);}}this.m_oChildren=_Fn;this.updateTreeRefs();};CTreeNode.prototype.detach=function(){this.getParent().removeChild(this);};CTreeNode.prototype.getSelectedChildrenCount=function(){return this._jz;};CTreeNode.prototype.setSelectedChildrenCount=function(_u0){this._jz=_u0;};CTreeNode.prototype.addSelectedChildrenCount=function(){this._jz=this._jz+1;};CTreeNode.prototype.removeSelectedChildrenCount=function(){this._jz=this._jz-1;};CTreeNode.prototype.getState=function(){if(this.isSelected()){return P_bh;}else if(this.hasSelectedChildren()==true){if((this.getTree().getSelectionMode()==CONTIGUOUS_TREE_SELECTION)&&(this.getSelectedChildrenCount()>0)&&(this.getSelectedChildrenCount()==this.getChildrenLength())&&this.getNodeTypeObject().getFullChildSelectable()){return P_bh;}else{return P_cf;}}return P_bk;};CTreeNode.prototype.setShowUI=function(_vk){this.allowUIForChildren=_vk;};CTreeNode.prototype.getShowUI=function(){return this.allowUIForChildren;};CTreeNode.prototype.getResponseCacheKey=function(_ok){return this.getValue()+"_children";};CTreeNode.prototype.fetchChildren=function(_sF){var _Mb=this.getTree();if(!_Mb.nodesCanHaveChildren()&&_sF!==true){return;}if(_Mb.getPromptingTree()!=false){if((typeof activeFetchingTreeNode==P_cD||activeFetchingTreeNode==null)&&(_Mb._fz!=null)&&(this.getLoading()==false)){this.setLoading(true);_Mb.setLoading(true);if(this.getShowUI()){this.setOpen(true);_Mb.redrawNodeToggle(this,_Mb.getName()+this.getTreeRef());_Mb.drawLoading(this,_Mb.getName()+this.getTreeRef());}activeFetchingTreeNode=this;var _x9=SYSTEMPROPERTY_TREE_CACHE_IGNORE_PRIOR_RSVP_RESPONSES?false:this.getTree().getCacheValue(this.getResponseCacheKey());if(_x9&&!this.bShouldFetchChildren){promptTreeCallback(_x9);}else{this.sendFetchChildrenRequest();}}return true;}else if(typeof _Mb.getLoadOnTheFly()==P_c7){if(this.getLoading()==false){this.setLoading(true);_Mb.setLoading(true);if(this.getShowUI()){this.setOpen(true);_Mb.redrawNodeToggle(this,_Mb.getName()+this.getTreeRef());_Mb.drawLoading(this,_Mb.getName()+this.getTreeRef());}var _Jl=_Mb.getLoadOnTheFly();_Jl(this);}return true;}else{this.setCanHaveChildren(false);if(this.getShowUI()){_Mb.redrawNodeToggle(this,_Mb.getName()+this.getTreeRef());}return false;}};var P_cB=100;var P_r=500;CTreeNode.prototype.sendFetchChildrenRequest=function(_n5,_rL){var _KM=P_ai;var _J7="b_action=xts.run&m=/prompting/promptTree.xts";var _De=this.getTree().getTracking();var _zl=this.getTree().getConversation();var _IG=P_r;if(typeof _rL!="undefined"){_IG=_rL;}if(_De==""){if(_IG>0){var _AT=this;setTimeout(function(){_AT.sendFetchChildrenRequest(_n5,_IG-1);},P_cB);return;}}if(_KM!=P_ai){_J7+="&ui.cafcontextid="+_KM;}if(this.getMoreData()==true){_J7+="&skipValueCount="+(this.getSkipValueCount()+this.getTree().getMaxValueCount());}else{_J7+="&skipValueCount="+this.getSkipValueCount();}_J7+="&maximumValueCount="+this.getTree().getMaxValueCount();_J7+="¶mName="+encodeURIComponent(this.getTree().getPromptingTree());_J7+="&treeNodeName="+this.getTree().getName()+this.getTreeRef();if(this.getNodeType()!=TREE_ROOT){_J7+="&useValue="+encodeURIComponent(this.getValue());_J7+="&displayValue="+encodeURIComponent(this.getName());}if(_n5){for(var v_sParamName in _n5){if(v_sParamName=="m_tracking"){_De=_n5[v_sParamName];}else if(v_sParamName=="ui.conversation"){_zl=_n5[v_sParamName];}else{_J7+="&"+v_sParamName+"="+encodeURIComponent(_n5[v_sParamName]);}}}_J7+="&m_tracking="+_De;_J7+="&ui.conversation="+_zl;var _rt=this.getTree()._fz.createRequest(this.getTree().getGateway(),_J7,promptTreeCallback);this.getTree()._fz.setErrorHandlerFunction(treeErrorHandler);this.getTree()._fz.dispatchRequest(_rt);};CTreeNode.prototype.setLoading=function(_uG){this._dT=_uG;};CTreeNode.prototype.getLoading=function(){return this._dT;};CTreeNode.prototype.setMoreData=function(_uG){this._dS=_uG;};CTreeNode.prototype.getMoreData=function(){return this._dS;};CTreeNode.prototype.getIndex=function(){if(this.getParent()!=null){var _DS=this.getParent().getChildren();for(var i=0;i<_DS.length;i++){if(_DS[i]==this){return i;}}}else{return null;}};CTreeNode.prototype.setIndicator=function(_vt){this._f0=_vt;};CTreeNode.prototype.getIndicator=function(){return this._f0;};function CTreeNodeType(_pP,_py,_uz,_oe){this._iJ=_pP;this._gf=_py;this._eP=_uz;this._gw=_oe;this._lf=null;this._g3=true;this._jk=true;this._ge=true;};CTreeNodeType.prototype.setSelectable=function(_uG){this._g3=_uG;};CTreeNodeType.prototype.setAltText=function(_l3){this._lf=_l3;};CTreeNodeType.prototype.getSelectable=function(){return this._g3;};CTreeNodeType.prototype.setFullChildSelectable=function(_uG){this._ge=_uG;};CTreeNodeType.prototype.getFullChildSelectable=function(){return this._ge;};CTreeNodeType.prototype.setRecursiveSelect=function(_uG){this._jk=_uG;};CTreeNodeType.prototype.getRecursiveSelect=function(){return this._jk;};function handleWorking(_ok){var _yk=_ok.split('","');var _J7="b_action=xts.run&m=/prompting/promptTree.xts";var _KM=P_ai;if(_KM!=P_ai){_J7+="&ui.cafcontextid="+_KM;}var _uu=_yk[1];_J7+="&treeNodeName="+_uu;_J7+="&doWait=1&m_tracking="+_yk[2];var _mc=activeFetchingTreeNode;var _J8=_mc.getTree()._fz.createRequest(_mc.getTree().getGateway(),_J7,promptTreeCallback);_mc.getTree()._fz.dispatchRequest(_J8);};function cleanupActiveFetchingTreeNodeOnError(){var _Kq=activeFetchingTreeNode;if(_Kq){var _zq=_Kq.getTree();if(_Kq.getShowUI()){_zq.removeLoading(_Kq);}if(_Kq.getChildren().length==0){_Kq.setCanHaveChildren(false);}if(_Kq.getShowUI()){var _Cb=_zq.getName()+_Kq.getTreeRef();_zq.redrawNodeToggle(_Kq,_Cb);_zq.updateSelections(_Kq,false);_zq.redraw();_zq.checkData();}}activeFetchingTreeNode=null;};CTreeNode.prototype.createNewNode=function(_mc,_sN,name,_sE,_rM){new TreeNode(_mc,_sN,false,jsDecodeStr(name),jsDecodeStr(_sE),_rM);};CTreeNode.prototype.setFetchChildrenFlag=function(_q2){this.bShouldFetchChildren=_q2;};function promptTreeCallback(_ok,_mV){if(_ok!=P_ai&&!P_bU.isChildrenInfo(_ok)){var _yk=_ok.split('","');if(_yk[0].substr(1)=="working"){setTimeout("handleWorking('"+_ok+"');",100);}else{var _Mb=activeFetchingTreeNode;if(_Mb){_Mb=_Mb.getTree();}var _Ch=(_Mb?_Mb.getCV():null);if(_Ch&&_Ch.sSkin&&typeof _ok==P_bJ){_ok=_ok.replace("<link ",'<link type="text/css" rel="stylesheet" href="'+_Ch.sSkin+'/portal/default.css">\n<link ');}_ok+='<script type="text/javascript">\nif (parent.CTree_setPromptAction){parent.CTree_setPromptAction(this);}\n</script>';var _Fl=null;if(_mV){_Fl=document.getElementById('CTree_IFramePOPUP');_Fl.setAttribute('reRender',true);}else{CTree_clearIFramePopup();_Fl=document.createElement('iframe');_Fl.id='CTree_IFramePOPUP';_Fl.src="../common/blank.html";_Fl.className="clsPromptDialog";var d=(document.body?document.body:document.documentElement);d.appendChild(_Fl);}var _Ft=(_Fl&&_Fl.contentWindow?_Fl.contentWindow.document:null);if(_Ft){if(window.ie)_Ft.designMode="On";_Ft.open();_Ft.writeln(_ok);_Ft.close();if(window.ie)_Ft.designMode="Off";}P_bU.setPopupFormTarget(_Fl);}}else if(_ok!=P_ai){var _yk=_ok.split('","');var _Dy=jsDecodeStr(_yk[1]);var _A4=parseInt(jsDecodeStr(_yk[2]),10);var _Gt=parseInt(jsDecodeStr(_yk[3]),10);var _mc=activeFetchingTreeNode;_mc.getTree().setCacheValue(_mc.getResponseCacheKey(),_ok);if(_mc&&_mc.createNewNode){var _xF=6;if(!(_yk.length==_xF&&(jsDecodeStr(_yk[_xF-1]).indexOf('"')>-1))){if((_yk.length-_xF)%4!=0){return false;}for(var i=_xF;i<_yk.length;i+=4){var _rM=false;if(jsDecodeStr(_yk[i+3]).charAt(0)=="t"){_rM=true;}_mc.createNewNode(_mc,_sN,_yk[i+1],_yk[i+2],_rM);}}_mc.setMoreData(_Dy=="true");if(_Dy=="true"){_mc.setFetchChildrenFlag(true);}_mc.setSkipValueCount(_A4);_mc.getTree().setMaxValueCount(_Gt);_mc.getTree().childrenReadyForNode(_mc);}activeFetchingTreeNode=null;}else{cleanupActiveFetchingTreeNodeOnError();}};function getMoreDataForTreeNode(_mG){_mG=(_mG)?_mG:((event)?event:null);if((_mG!==null)&&(_mG.keyCode!=null)&&(_mG.keyCode!=P_c3)&&(_mG.keyCode!=P_z)&&(_mG.keyCode!=P_cK)&&(_mG.keyCode!==0)&&(_mG.keyCode!=P_dj||!_mG.shiftKey)){return false;}clearSelection();cancelBub(_mG);var _qR=null;if(_mG.target){_qR=_mG.target;}else if(_mG.srcElement){_qR=_mG.srcElement;}else{return false;}var _ua=_qR.getAttribute(P_cv).toString();var _p9=_qR.getAttribute(P_bu).toString();var _vx=getTreeNode(_p9,_ua);if(typeof activeFetchingTreeNode==P_cD||activeFetchingTreeNode==null){if(_mG.keyCode==P_cK||_mG.keyCode==P_z||_mG.keyCode==0||_mG.keyCode==null){_vx.getTree().removeMoreData(_vx,_vx.getTree().getName()+_vx.getTreeRef());_vx.fetchChildren(true);}var _Mb=_vx.getTree();if(_Mb){var _wx=_Mb._ek;if(_mG.keyCode==P_c3||(_mG.keyCode==P_dj&&_mG.shiftKey)||_mG.keyCode==P_z||_mG.keyCode==P_cK||_mG.type==P_aJ){_Mb._gW(null,_vx.getLastChild());}else{_Mb._gW(null,_vx);}_wx.tabIndex=0;}}};function treeErrorHandler(_qb,e){};function CTree_clearIFramePopup(){var _Fl=null;while(_Fl=document.getElementById('CTree_IFramePOPUP')){_Fl.parentNode.removeChild(_Fl);delete _Fl;}P_c0=null;};function CTree_promptAction(_o3,_to){var _Ch=P_bU.getCVObjectFromActiveTree();if(_Mb){_Mb=_Mb.getTree();}var _Ch=(_Mb?_Mb.getCV():null);if(_o3==K_ACTION_CANCEL){setTimeout(_Ch.promptAction.bind(_Ch,_o3,_to),10);}else{var _Ew=P_c0.getPreProcessControlArray();if(_Ew){P_c0.preProcessForm(_Ew);var ar=_Ew;var _Kw=ar.length;var k=0;var _LN=P_ai;var _n5={};for(k=0;k<_Kw;k++){var _Kr=P_c0.eval(ar[k]);_n5[_Kr.m_oSubmit.name]=_Kr.sGetValue();}if(P_c0.PT_CONVERSATION_INFO){_n5["PT_CONVERSATION_INFO"]=P_c0.PT_CONVERSATION_INFO;}if(P_c0.PT_TRACKING){_n5["m_tracking"]=P_c0.PT_TRACKING;}setTimeout(activeFetchingTreeNode.sendFetchChildrenRequest.bind(activeFetchingTreeNode,_n5),10);}}CTree_clearIFramePopup();};var P_bU={_hj:function(_ox,_oy,_vI,_qI){_qI=!_qI?false:_qI;if(_ox){if(_ox.addEventListener){_ox.addEventListener(_oy,_vI,_qI);}else{_ox.attachEvent('on'+_oy,_vI);}}},isHTMLPage:function(_to){var _Id=new RegExp("^<(!DOCTYPE )?html","i");var _xY=(_to.match(_Id)?true:false);return _xY;},isChildrenInfo:function(_to){var _Id=new RegExp("j=\\[\"CTree","i");var _xY=(_to.match(_Id)?true:false);return _xY;},mergeChildrenInfo:function(_tP,_tO){var _HP="";var _Lj=_tP.split('","');var _Jc=parseInt(jsDecodeStr(_Lj[2]),10);var _FI='","';var _Kc=_tO.split('","');var _v9=parseInt(jsDecodeStr(_Kc[2]),10);var _KA=_Jc+_v9;_Lj[2]=jsEncodeStr(_KA.toString());_HP=_Lj.join('","');var _E7=_Kc[_Kc.length-1].lastIndexOf("</script>");_Kc[_Kc.length-1]=_Kc[_Kc.length-1].substring(0,_E7);_Kc=_Kc.splice(6,_Kc.length);for(var i=0;i<_Kc.length;i++){_FI+=_Kc[i];if(i!=(_Kc.length-1)){_FI+='","';}}_HP=_HP.replace("\"]</script>",_FI+"</script>");return _HP;},getCVObjectFromActiveTree:function(){var _Mb=activeFetchingTreeNode;if(_Mb){_Mb=_Mb.getTree();}var _Ch=(_Mb?_Mb.getCV():null);return _Ch;},getIframeDoc:function(_rW){var _He=null;if(_rW){if(_rW.contentDocument){_He=_rW.contentDocument;}else if(_rW.contentWindow&&_rW.contentWindow.document){_He=_rW.contentWindow.document;}else if(_rW.document){_He=_rW.document;}}return _He;},_fx:function(){var _Fl=null;var _xY=false;_Fl=document.getElementById('CTree_IFramePOPUP');if(_Fl&&_Fl.reRender){_xY=true;}return _xY;},_gG:function(){var _vn='CTree_IFramePOPUPTarget';var _H6=$(_vn);if(_H6){PRMTUtils._dD(_H6.parent);}var _BC=document.createElement('DIV');_BC.innerHTML='<iframe style="display:none" src="about:blank" content="text/xml" id="'+_vn+'" name="'+_vn+'"></iframe>';document.body.appendChild(_BC);var _AH=document.getElementById(_vn);PRMTUtils._hj(_AH,"load",P_bU._gS);return _vn;},_gS:function(){var _Fl=(window.ie?document.getElementById('CTree_IFramePOPUPTarget'):this);var _He=(_Fl.contentDocument?_Fl.contentDocument:(_Fl.contentWindow?_Fl.contentWindow.document:_Fl.document));if(_He&&_He.location&&_He.location.href!="about:blank"){var _FH=null;if(_He.implementation&&_He.implementation.createDocument){var _A8=new XMLSerializer();_FH=_A8.serializeToString(_He);}else{if(null!=_He.body.parentNode.innerHTML){_FH=_He.body.parentNode.innerHTML;}else{return;}}if(P_bU.isChildrenInfo(_FH)){parent.CTree_clearIFramePopup();parent.promptTreeCallback(_FH);}else{if(!parent.P_bU._fx()){parent.promptTreeCallback(_FH,true);}}}}};var P_bI=100;var P_bR=500;P_bU.setPopupFormTarget=function(_nP,_rL){var _EO=null;var _Ct=null;var _Ev=null;try{_EO=P_bU.getIframeDoc(_nP);if(_EO&&_EO.getElementsByTagName){_Ct=_EO.getElementsByTagName('form');}var _IG=P_bR;if(typeof _rL!="undefined"){_IG=_rL;}}catch(e){}if(_Ct&&_Ct.length>0){_Ev=P_bU._gG();var _LE=_Ct[0];_LE.setAttribute('target',_Ev);if(_nP.reRender){_nP.removeAttribute('reRender');}}else{if(_IG>0){setTimeout(function(){P_bU.setPopupFormTarget(_nP,_IG-1);},P_bI);return;}}};function CTree_setPromptAction(_nA){var _Ch=_nA.oCV;if(_Ch){P_c0=_nA;_Ch.promptAction=CTree_promptAction;}if(_nA.doCancel){_nA.doCancel=CTree_promptAction.bind(this,K_ACTION_CANCEL);}};var PROMPT_SKIN=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var P_Y=PROMPT_SKIN+"/prompting/images/";var TREE_ROOT=0;var TREE_FOLDER=1;var TREE_ITEM=2;var P_b9=0;var DISCONTIGUOUS_TREE_SELECTION=1;var CONTIGUOUS_TREE_SELECTION=2;var NORMAL_TREE="normalTree";var CHECKBOX_TREE="checkboxTree";var P_a4="clsTreeText";var P_c1="clsTreeText aLink";var P_ao="clsTreeText noLink";var P_bt="clsTreeLevel";var P_ba="clsTreeNode_selected";var P_T="clsTreeNode_partial";var P_av="clsTreeNode_unselected";var P_ce="clsTreeNode_hover";var P_b4="clsExpandCollapseHover clsTextIconAlignFix";var P_cW="clsTextIconAlignFix";var tntRoot=new CTreeNodeType(TREE_ROOT,true,P_Y+"icon_tree_folder_closed.gif",P_Y+"icon_tree_folder_open.gif");var tntFolder=new CTreeNodeType(TREE_FOLDER,true,P_Y+"icon_tree_folder_closed.gif",P_Y+"icon_tree_folder_open.gif");var tntLeaf=new CTreeNodeType(TREE_ITEM,false,P_Y+"icon_tree_leaf.gif",P_Y+"icon_tree_leaf.gif");var P_aR=P_Y+"checkbox_unchecked.gif";var P_B=P_Y+"checkbox_mixed.gif";var P_cN=P_Y+"checkbox_checked.gif";var P_by=P_Y+"error_timed_small_off.gif";var P_bE=P_Y+"error_timed_small.gif";var P_bk=0;var P_cf=1;var P_bh=2;var P_cr=P_Y+"icon_tree_Tplus.gif";var P_c8=P_Y+"icon_tree_Tminus.gif";var P_am=P_Y+"icon_tree_T.gif";var P_ay=P_Y+"icon_tree_Lplus.gif";var P_al=P_Y+"icon_tree_Lminus.gif";var P_bD=P_Y+"icon_tree_L.gif";var P_af=P_Y+"icon_tree_L_rtl.gif";var P_bK=P_Y+"icon_tree_I.gif";var P_bm=P_Y+"icon_tree_white.gif";var TREE_LOADING=P_Y+"loading_timed.gif";var P_au=P_Y+"icon_more.gif";var P_c0=null;if(typeof window.ie==='undefined'){if(!!window.MSInputMethodContext&&!!document.documentMode&&(document.documentMode==11)){window.ie=window.ie11=true;}else if(document.childNodes&&!document.all&&!navigator.taintEnabled&&!!window.StyleMedia){window.ie=window.ie11=window.edge=true;}else if(document.all&&!!window.atob){window.ie=window['ie10']=true;}else if(document.all&&!!document.addEventListener){window.ie=window['ie9']=true;}else if(document.all&&!!document.querySelector){window.ie=window['ie8']=true;}else if(document.all&&!!window.XMLHttpRequest){window.ie=window['ie7']=true;}else if(document.all&&!!document.compatMode){window.ie=window['ie6']=true;}else if(document.all){window.ie=window['ie5']=true;}};CInnerTree.prototype=new CTree;function CInnerTree(_pE,_rp,_nF,_uq,_qv,_tJ,_tY,_mB,_l5,_l8,_pU,_o6){this.setCVId(_mB);this._lg=_l5;this._fa=_l8;this._ec=_pE;this._dN=null;var _zy=cssParser(_l5,"direction",true);var _AG=((_zy=="ltr"||_zy=="rtl")?_zy:P_bz.lookupDirection(_pE));this._fQ=(_AG=="rtl"?"RTL":"");this._j8=new CInnerTreeNode(null,tntRoot,true,'root','root',false);this._j8._hG=this;this._j8.setTreeRef(P_ai);this.m_oSubmit=_rp;this._jx=_nF;if(_uq==false){this._fk=P_b9;this._hO=NORMAL_TREE;}else{this._fk=DISCONTIGUOUS_TREE_SELECTION;this._hO=CHECKBOX_TREE;}this._l1=false;this.m_sRef=_qv;this._dz=P_ai;this._k0=_tY;this._js=_tJ;if(this._js!=null){this._kF=new Image();this._kF.src=P_by;this._kx=new Image();this._kx.src=P_bE;}this._lT=false;this._eY=false;this._gK=0;this._kA=false;this._hc=true;this._fi=null;this._hl=false;this._dU=null;this._dC=null;this._ds=null;this._ed=null;this._j1=false;this._g5=[];this._io=null;this._gh=null;this._dI=false;this._kG=false;this._fT=false;this._jk=true;this._ex=false;this._fd=5000;this._le=true;this._jr=null;this._gv=null;this._lb=null;this._d1=true;this._kr=false;this._dq=false;this._ez=null;this._lw=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);if(typeof gDispatcher!=P_cD){this._fz=gDispatcher;}else if(typeof CDispatcher!=P_cD){this._fz=new CDispatcher();}else{this._fz=null;}this._iV=this.getGateway();this._jg=document.createElement("IMG");this._jg.src=P_Y+"blank.gif";this._jg.alt="";this._jg.className="clsTreeLineIcon";this._jg.align=P_bO;this._jg.setAttribute(P_cv,P_b0);this._l2=document.createElement("DIV");this._in=document.createElement("DIV");this._in.setAttribute(P_cV,P_cx);this._lK=document.createElement("NOBR");this._lK.setAttribute(P_cv,P_cl);this._kZ=document.createElement("IMG");this._kZ.setAttribute(P_cv,P_b0);this._g2=document.createElement("SPAN");this._g2.style.paddingLeft=3;this._ga=document.createElement("IMG");this._ga.align=P_bO;this._i2=document.createElement("SPAN");this._gU=document.createElement("IMG");this._gU.align=P_bO;this._gU.onclick=null;this._gU.src=(this._fQ=="RTL"?P_af:P_bD);this._fg=document.createElement("IMG");this._fg.align=P_bO;var _CL=!!navigator.userAgent.match(/Trident.*rv\:11\./);this._li=_CL?createCheckBoxTable():document.createElement("DIV");var _By=_CL?this._li.getElementsByTagName('div')[0]:this._li;var _HT=document.createElement("INPUT");_HT.type="checkbox";_HT.tabIndex=-1;_HT.className="dijitCheckBoxInput";_By.appendChild(_HT);this._eh=document.createElement("SPAN");this._gb=null;if(_pU){this.setAllowStateCache(SYSTEMPROPERTY_TREE_CACHE_ENABLED,_pU);}if(_o6){this.savePromptControlRef(_o6);}};function createCheckBoxTable(){var _C6=document.createElement("table");var tr=document.createElement("tr");var td=document.createElement("td");var _Aa=document.createElement("div");td.appendChild(_Aa);tr.appendChild(td);_C6.appendChild(tr);return _C6;};CInnerTree.prototype.redrawNodeToggle=function(_vx,_pR){var _n4=document.getElementById(_pR+P_Z+_vx.getTreeHierarchy());if(_n4!=null){this.detailToogleIcon(_vx,_n4);}};CInnerTree.prototype.drawLoading=function(_vx,_pR){var _Ha=document.getElementById(_pR);if(!_Ha&&_vx.getNodeType()==TREE_ROOT&&this.getRootNodeShowing()==false){_Ha=this._dN;}if(_Ha!=null){var _Ar=document.createElement("DIV");_Ar.className=P_bt;_Ar.id=this.getName()+_vx.getTreeRef()+"loading";_Ar.style.width="100%";var _Ic=document.createElement("NOBR");this.drawTreeLines(_vx,_Ic,_vx.getLevel()+1);if(!(_vx.getNodeType()==TREE_ROOT&&_vx.getTree().getRootNodeShowing()==false&&_vx.getMoreData()!=true)){var _ID=document.createElement("IMG");_ID.align=P_bO;_ID.src=(this._fQ=="RTL"?P_af:P_bD);_Ic.appendChild(_ID);}var _Dr=document.createElement("IMG");_Dr.align=P_bO;_Dr.src=TREE_LOADING;_Ic.appendChild(_Dr);var _zL=document.createElement("SPAN");_zL.className=P_av+P_br+P_a4;if(typeof PMT_TRE_TREE_LOADING!=P_cD){var _FZ=document.createTextNode(PMT_TRE_TREE_LOADING);_zL.appendChild(_FZ);_zL.title=PMT_TRE_TREE_LOADING;}_Ic.appendChild(_zL);_Ar.appendChild(_Ic);_Ha.appendChild(_Ar);}};CInnerTree.prototype.drawMoreData=function(_vx,_pR){var _Ha=document.getElementById(_pR);if(!_Ha&&_vx.getNodeType()==TREE_ROOT&&this.getRootNodeShowing()==false){_Ha=this._dN;}var _GS=(_Ha.getAttribute("role")=="tree"?_Ha:_Ha.firstChild.nextSibling);if(_Ha!=null&&_GS!=null&&(_GS.getAttribute("role")=="group"||_GS.getAttribute("role")=="tree")){var _Ar=document.createElement("DIV");_Ar.className=P_bt;_Ar.id=this.getName()+_vx.getTreeRef()+"moredata";_Ar.style.width="100%";var _Ic=document.createElement("NOBR");this.drawTreeLines(_vx,_Ic,_vx.getLevel()+1);var _ID=document.createElement("IMG");_ID.align=P_bO;_ID.src=(this._fQ=="RTL"?P_af:P_bD);_Ic.appendChild(_ID);var _Dr=document.createElement("IMG");_Dr.align=P_bO;_Dr.src=P_au;_Ic.appendChild(_Dr);var _zL=document.createElement("SPAN");_zL.className=P_av+P_br+P_c1;if(typeof PMT_TRE_MORE!=P_cD){var _FZ=document.createTextNode(PMT_TRE_MORE);_zL.appendChild(_FZ);_zL.title=PMT_TRE_MORE;}_zL.id=this.getName()+_vx.getTreeRef()+"moredatalabel";_zL.setAttribute(P_bu,this.getName());_zL.setAttribute(P_cv,_vx.getTreeRef());_zL.tabIndex=0;PRMTUtils._hj(_zL,"click",getMoreDataForTreeNode);PRMTUtils._hj(_zL,"keydown",getMoreDataForTreeNode);PRMTUtils._hj(_zL,"keypress",getMoreDataForTreeNode);_Ic.appendChild(_zL);_Ar.appendChild(_Ic);_GS.appendChild(_Ar);}};CInnerTree.prototype.drawTreeLines=function(_vx,_l9,_nd){if(_nd>1){for(var n=1;n<_nd;n++){var _KP=this._jg.cloneNode(true);var _ut=_vx.getParentAtLevel(n);if(_ut.isLastSibling()==true&&_ut.getParent().getMoreData()!=true){_KP.className=_KP.className+" clsTreeLineIconSpace";}_l9.appendChild(_KP);}}};CInnerTree.prototype.drawOuterTable=function(){if(this._ec!=null){var _ns=this.m_sRef;var _l5=this.getStyle();var _yx="<fieldset class='clsFieldSet' style='"+cssParser(_l5,gsCSS_DEFAULT_STYLE+',height')+"'><table cellpading='0' cellspacing='0' border='0' onclick='treeContainerClicked(event)' class='clsPromptComponent' style='"+cssParser(_l5,"visibility,height")+"'>"+"<tr>";if(this.getHideAdornments()!=true){_yx+="<td valign='top' width='10px'>"+"<table cellpadding='0' cellspacing='0' border='0' width='10' height='20'>";if(this.getRequired()==true){_yx+="<tr>"+"<td valign='top'><img src='"+this._lw+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/></td>"+"</tr>";}_yx+="<tr>"+"<td valign='middle'><img id='imgTest_tree"+_ns+"' name='imgTest_tree"+_ns+"' class='clsErrorRequired' src='"+this._lw+"/prompting/images/error_timed_small_off.gif' align='bottom' height='10' width='10' border='0'/></td>"+"</tr>"+"</table>"+"</td>";}_yx+="<td>"+"<table cellpadding='0' cellspacing='0' border='0' width='100%'>"+"<tr>"+"<td><div id='treePane"+_ns+"' tabindex='-1' class='clsTreePane pa'";if(this.getContainerWidth()!=null||this.getContainerHeight()!=null){_yx+=" style='";if(this.getContainerWidth()!=null){_yx+="width:"+this.getContainerWidth()+";";}if(this.getContainerHeight()!=null){_yx+="height:"+this.getContainerHeight()+";";}_yx+="'";}_yx+="></div></td>"+"</tr>";if(this.getHideAdornments()!=true){_yx+="<tr>"+"<td><div id='feedback_tree"+_ns+"' class='clsFeedbackWidget'><IMG name='sizer_tree"+_ns+"' src='"+this._lw+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr>";}if(this.getSelectionMode()!=P_b9){_yx+="<tr>"+"<td align='right'>";if(this.getSelectTreeUI()!=CHECKBOX_TREE||this.getSelectionMode()!=DISCONTIGUOUS_TREE_SELECTION){_yx+="<A href='javascript:"+_ns+".selectAll()' class='clsLink pl'>"+PMT_UIM_SELECTALL+"</A> ";}_yx+="<A href='javascript:"+_ns+".deSelectAll()' class='clsLink pl'>"+PMT_UIM_DESELECTALL+"</A>"+"</td>"+"</tr>";}_yx+="</table>"+"</td>"+"</tr>"+"</table></fieldset>";this._ec.innerHTML=_yx;if(this.getErrorFeedbackWidget()==null){this.setErrorFeedbackWidget(document.getElementById("feedback_tree"+_ns));}if(this.getImgCheck()==null){this.setImgCheck(document.getElementById("imgTest_tree"+_ns));if(this.getImgCheck()!=null){this.setImgErrorFalse(P_by);this.setImgErrorTrue(P_bE);}}}};CInnerTree.prototype.createElementIndicator=function(_vx,_uu,_nv){var _HU=this._g2.cloneNode(true);_HU.id=_uu+_nv+P_g;_HU.setAttribute(P_cv,_nv);_HU.setAttribute(P_aS,_nv.toString());_HU.setAttribute(P_bQ,_uu);_HU.setAttribute(P_bu,_uu);var _J2=this._ga.cloneNode(true);_J2.id=_uu+_nv+P_b5;_J2.setAttribute(P_cv,_nv);_J2.setAttribute(P_aS,_nv.toString());_J2.setAttribute(P_bQ,_uu);_J2.setAttribute(P_bu,_uu);_J2.src=_vx.getIndicator();_HU.appendChild(_J2);return _HU;};CInnerTree.prototype.draw=function(_vx,_tc){if(_vx.getTree().getDisabled()==true){return false;}var _nv=_vx.getTreeRef();var _uu=this.getName();if(_vx.getNodeType()==TREE_ROOT){var _mF=document.getElementById(_uu);if(_mF!=null){_tc.removeChild(_mF);}_tc.setAttribute(P_cv,_nv);_tc.setAttribute(P_bu,_uu);}var _sT=this._l2.cloneNode(true);PRMTUtils._hj(_sT,"dragstart",dragStartOnNode);PRMTUtils._hj(_sT,"drag",dragOnNode);PRMTUtils._hj(_sT,"dragend",dragEndOnNode);_sT.setAttribute(P_cv,_nv);_sT.setAttribute(P_bu,_uu);if(_nv==P_ai){_sT.setAttribute(P_cV,P_aO);}_sT.id=_uu+_nv;if(!(_vx.getNodeType()==TREE_ROOT&&this.getRootNodeShowing()==false)){this.drawNode(_vx,_sT);}_tc.appendChild(_sT);this.drawNodeChildren(_vx,_sT);this._dq=true;};CInnerTree.prototype.drawToogleIcon=function(_vx){var _n4=this._gU.cloneNode(true);_n4.src=P_Y+"blank.gif";return this.detailToogleIcon(_vx,_n4);};CInnerTree.prototype.detailToogleIcon=function(_vx,_n4){var _Bg=this._i2.cloneNode(true);_Bg.className=P_X;_Bg.setAttribute(P_cV,P_ag);var _I0="";if(_vx.canHaveChildren()==true){if(_vx.isOpen()==true){_n4.className=P_bl+this._fQ;_n4.title=PMT_TRE_COLLAPSE;_n4.alt=PMT_TRE_COLLAPSE;_I0="-";}else{_n4.className=P_cG+this._fQ;_n4.title=PMT_TRE_EXPAND;_n4.alt=PMT_TRE_EXPAND;_I0="+";}_n4.tabIndex=-1;_n4.onclick=toggle;_Bg.onclick=toggle;}else{_n4.className=P_cp;_n4.src=P_Y+"blank.gif";_n4.alt="";_n4.onclick=null;}var _II=document.createTextNode(_I0);_Bg.appendChild(_II);_n4.setAttribute(P_cv,P_b0);return[_n4,_Bg];};CInnerTree.prototype.drawNodeCheckboxIcon=function(_vx){var _x2=this._li.cloneNode(true);updateCheckboxClass(_x2,_vx);_x2.setAttribute(P_cv,P_aL);if((_vx.getTree().getForceSelectionAtLowestLevel()==true&&_vx.getNodeType()==TREE_ITEM)||(_vx.getTree().getForceSelectionAtLowestLevel()==false)){PRMTUtils._hj(_x2.firstChild,"click",selectNode);}return _x2;};CInnerTree.prototype.drawNodeLabel=function(_vx,_uu,_nv){var _wr=this._eh.cloneNode(true);_wr.id=_uu+_nv+P_dg;this.updateLabelClass(_wr,getClassName(_vx,this),_vx);_wr.setAttribute(P_cv,_nv);_wr.setAttribute(P_aS,_nv.toString());_wr.setAttribute(P_bQ,_uu);_wr.setAttribute(P_bu,_uu);_wr.setAttribute(P_cV,P_bN);_vx._jH=_wr;if(_vx.isFirst()){_wr.tabIndex=0;this._ek=_wr;}var _Di=document.createTextNode(G_IsBidiEnabled&&this._fa?P_bz.enforceBidiDirection(_vx.getName(),this._fa):_vx.getName());_wr.appendChild(_Di);updateLabelAriaChecked(_wr,_vx);var _l5=this.getStyle();_wr.style.color=cssParser(_l5,"color",true);_wr.style.backgroundColor=cssParser(_l5,"background-color",true);_wr.style.fontFamily=cssParser(_l5,"font-family",true);_wr.style.fontSize=cssParser(_l5,"font-size",true);_wr.style.fontWeight=cssParser(_l5,"font-weight",true);_wr.style.fontStyle=cssParser(_l5,"font-style",true);_wr.style.fontVariant=cssParser(_l5,"font-variant",true);_wr.style.textAlign=cssParser(_l5,"text-align",true);_wr.style.textVariant=cssParser(_l5,"text-variant",true);_wr.style.textIndent=cssParser(_l5,"text-indent",true);_wr.style.textTransform=cssParser(_l5,"text-transform",true);_wr.setAttribute(P_cv,_nv);_wr.setAttribute(P_aS,_nv.toString());_wr.setAttribute(P_bQ,_uu);_wr.setAttribute(P_bu,_uu);_wr.setAttribute("onfocus","this.classname='"+P_ce+" "+P_a4+"';");_wr.setAttribute("onblur","this.classname='"+P_av+" "+P_a4+"';");return _wr;};CInnerTree.prototype.drawNode=function(_vx,_sT){var _nv=_vx.getTreeRef();var _uu=this.getName();_sT.className=P_bt;_sT.setAttribute(P_aS,_nv.toString());_sT.setAttribute(P_bQ,_uu);_sT.setAttribute(P_cV,P_ag);var _KV=this._lK.cloneNode(true);_KV.setAttribute(P_cv,P_cl);_KV.setAttribute(P_bu,_uu);_KV.setAttribute(P_cV,P_ag);_KV.setAttribute("style","white-space: nowrap;");_sT.appendChild(_KV);this.drawTreeLines(_vx,_KV,_vx.getLevel());var _JD=null;if(_vx.getIndicator()!=null){_JD=createElementIndicator(_vx,_uu,_nv);}var _Iv=this._i2.cloneNode(true);_Iv.id=_uu+_nv+P_bA;_Iv.setAttribute(P_cv,_nv);_Iv.setAttribute(P_aS,_nv.toString());_Iv.setAttribute(P_bQ,_uu);_Iv.setAttribute(P_bu,_uu);_Iv.setAttribute(P_cV,P_ag);_Iv.title=(_vx.getTooltip()!=false?_vx.getTooltip():_vx.getName());if(G_IsBidiEnabled&&this._fa){_Iv.title=P_bz.enforceBidiDirection(_Iv.title,this._fa);}var _Ll=this._kZ.cloneNode(true);_Ll.id=_uu+_nv+P_b2;_Ll.setAttribute(P_aS,_nv.toString());_Ll.setAttribute(P_bQ,_uu);_Ll.setAttribute(P_cV,P_ag);_Ll.src=P_Y+"blank.gif";_Ll.className="clsTreeNodeIcon";_Ll.alt="";_Ll.align=P_bO;var _n4=null;if(_vx.getNodeType()==TREE_ROOT){_Iv.onclick=function(){return false;};}else{var _LG=this.drawToogleIcon(_vx);_n4=_LG[0];_n4.id=_uu+_nv+P_Z+_vx.getTreeHierarchy();_KV.appendChild(_n4);_KV.appendChild(_LG[1]);if((_vx.getTree().getForceSelectionAtLowestLevel()==true&&_vx.getNodeType()==TREE_ITEM)||(_vx.getTree().getForceSelectionAtLowestLevel()==false)){_Iv.tabIndex=-1;PRMTUtils._hj(_Iv,"click",selectNode.bind(this));if(_vx.getTree().getSingleClickFunc()!=null){PRMTUtils._hj(_Iv,"click",singleClickCaller);}if(_vx.getTree().getDoubleClickFunc()!=null){PRMTUtils._hj(_Iv,"dblclick",doubleClickCaller);}_Iv.onmouseover=treeNodeMouseOver;_Iv.onmouseout=treeNodeMouseOut;PRMTUtils._hj(_Iv,"contextmenu",contextMenuCaller);}if(this.getSelectionMode()!=P_b9&&this.getSelectTreeUI()==CHECKBOX_TREE){var _Fx=this.drawNodeCheckboxIcon(_vx);_Fx.id=_uu+_nv+P_aL;_Fx.firstChild.id=_uu+_nv+P_aL+"Input";_KV.appendChild(_Fx);}}_Iv.appendChild(_Ll);if(_JD!=null){_Iv.appendChild(_JD);}var _wr=this.drawNodeLabel(_vx,_uu,_nv);if(_n4!=null){if(_n4.title==PMT_TRE_COLLAPSE){_wr.setAttribute(P_a7,true);}else{_wr.setAttribute(P_a7,false);}}_Iv.appendChild(_wr);_KV.appendChild(_Iv);PRMTUtils._hj(_Iv,"keydown",this._h4.bind(this));if(_vx.isOpen()){_vx.setRendered(true);}};CInnerTree.prototype.getExpandedNodeCacheKey=function(_vx){return _vx.getValue()+"_expanded";};CInnerTree.prototype.drawNodeChildren=function(_vx,_sT){if(_vx.hasChildren()==true){if(_vx.isOpen()==true){var _DS=_vx.getChildren();var parent=_vx.getParent();if(_vx.isSelected()==true&&parent!=null&&parent.isSelected()==false){_vx.setSelected(true);}for(var _DR=0;_DR<_DS.length;_DR++){this.draw(_DS[_DR],_sT);}}else{var _xv=this.hasUnopenedSelectedChild(_vx);if((_vx.isSelected()==false)&&_xv==true){_vx.setHasSelectedChildren(true);_vx.updateNodeSelection();}if(_vx.hasSelectedChildren()==true||_xv==true){if(this.getSelectionMode()==CONTIGUOUS_TREE_SELECTION){_vx.updateParent();}else{_vx.partialSelectParent();}}}}else{if((_vx.getNodeType()==TREE_ROOT)&&((_vx.getTree().getPromptingTree()!=false)||(_vx.getTree().getLoadOnTheFly()!=false))){_vx.setRendered(false);_vx.fetchChildren();}else if((_vx.isSelected()==true)){if(this.getSelectionMode()==CONTIGUOUS_TREE_SELECTION){_vx.updateParent();}else{_vx.partialSelectParent();}}var _AT=this;var _GU=function(){var _Ks=(_AT.getCacheValue(_AT.getExpandedNodeCacheKey(_vx))=="true");if(_Ks){_AT.toggleExpandCollapse(_sT,_vx,P_bd);}};window.setTimeout(_GU,0);}};CInnerTree.prototype._h4=function(_mG){_mG=(arguments&&arguments.length?arguments[arguments.length-1]:null);var _nm=(_mG?_mG:(typeof event!=P_cD?event:null));if(_nm==null){return false;}var _xY=false;if(_nm){clearSelection();var _Bb=getTargetNodeInfo(_mG);var _wE=0;var _vL=0;if(_nm.type=="keydown"){var _rx=(_nm.keyCode?_nm.keyCode:_nm.which);if(_nm.altKey||_rx==9){return true;}switch(_rx){case P_ck:_wE=P_u;break;case P_z:_wE=P_bd;break;case P_c3:_vL=P_aV;break;case P_cT:_vL=P_bZ;break;case P_aW:this.processNodeSelection(_Bb.node,_Bb.uiNode.getAttribute(P_bu).toString(),_nm.ctrlKey,_nm.shiftKey);break;default:return selectNode(_mG);}}if(_wE!=0){if(!this.toggleExpandCollapse(_Bb.uiNode,_Bb.node,_wE)){_vL=_wE*2;}}if(_vL!=0){var _rU=this._fq(_vL,_Bb.node);if(_rU!=null&&_rU!=_Bb.node){this._gW(_Bb.node,_rU);}}PRMTUtils.F_StopEvent(_mG);}return _xY;};CInnerTree.prototype._fq=function(_uY,_vx){var _xY=null;var parentNode=_vx.getParent();if(_uY==P_bZ){if(_vx.isClosed()||!_vx.hasChildren()){if(_vx.isLastSibling()&&parentNode!=null){if(parentNode.getMoreData()==true){if(this._eF(parentNode)){return null;}}while(parentNode!=_vx.getRootNode()){if(parentNode.getNextSibling()!=null){_xY=parentNode.getNextSibling();break;}else{parentNode=parentNode.getParent();}}}else{_xY=_vx.getNextSibling();}}else if(_vx.isOpen()){_xY=_vx.getFirstChild();}}else if(_uY==P_aV){if(!_vx.isFirstSibling()){_xY=_vx.getPreviousSibling();while(_xY&&_xY.hasChildren()&&_xY.isOpen()){_xY=_xY.getLastChild();}}else{if(parentNode!=_vx.getRootNode()){_xY=parentNode;}}}else if(_uY==P_H){if(parentNode!=_vx.getRootNode()){_xY=parentNode;}}else if(_uY==P_bH){if(_vx.isOpen()&&_vx.hasChildren()){_xY=_vx.getFirstChild();}}return _xY;};CInnerTree.prototype._eF=function(parentNode){var _yq=document.getElementById(parentNode.getTree().getName()+parentNode.getTreeRef()+'moredatalabel');if(_yq!=null){this._ek.tabIndex=-1;this._ek=_yq;this._ek.tabIndex=0;window.setTimeout(function(){_yq.focus();},0);return true;}return false;};CInnerTree.prototype._gW=function(_vx,_rU){try{var _uu=this.getName();this._ek.tabIndex=-1;if(_vx==null){_vx=getUINodeNodeInfo(this._ek).node;}this.updateLabelClass(this._ek,getClassName(_vx,this),_vx);var _wz=_rU.getLabelContainer(_uu);this._ek=_wz;this.updateLabelClass(this._ek,P_ce,_rU);this._ek.tabIndex=0;window.setTimeout(function(){_wz.focus();},0);}catch(e){}};CInnerTree.prototype.getFirstTreeNode=function(){var _xe=null;var _Ed=this.getRootNode();if((_mF._gD!=_vx._gD)&&(_mF.hasChildren())){_xe=_mF.getChildren()[0];}return _xY;};CInnerTree.prototype.setNodeChildrenDisplay=function(_qR,_qo){var _GS=_qR.firstChild.nextSibling;if(_GS&&_GS.getAttribute("role")=="group"){_GS.style.display=_qo;}};CInnerTree.prototype.closeUINode=function(_qR){this.setNodeChildrenDisplay(_qR,"none");};CInnerTree.prototype.openUINode=function(_qR){this.setNodeChildrenDisplay(_qR,"block");};function expandFolderChildren(_qR,_vx){if(_vx.hasChildren()){if(_vx.getRendered()==false){var _p9=_qR.getAttribute(P_bu).toString();gDrawChildren(_vx,_qR,function(){_vx.setRendered(true);_vx.setOpen(true);updateToggleIcon(_vx,_p9);});return;}}else{if(_vx.fetchChildren()==false){return false;}}};CInnerTree.prototype.expandNode=function(_qR,_vx){if(((_vx.getTree().getPromptingTree()!=false)&&(typeof activeFetchingTreeNode==P_cD||activeFetchingTreeNode==null))||(typeof _vx.getTree().getLoadOnTheFly()==P_c7)){this.openUINode(_qR);expandFolderChildren(_qR,_vx);}else{this.openUINode(_qR);if(_vx.getRendered()==false){var _DS=_vx.getChildren();var j=0;for(j=0;j<_DS.length;j++){_vx.getTree().draw(_DS[j],_qR);}_vx.setRendered(true);}}_vx.setOpen(true);};CInnerTree.prototype.collapseNode=function(_qR,_vx){this.closeUINode(_qR);_vx.setOpen(false);};CInnerTree.prototype.canToggleNode=function(_vx){var _KR=((((_vx.getTree().getPromptingTree()!=false)&&(typeof activeFetchingTreeNode==P_cD||activeFetchingTreeNode==null))||(typeof _vx.getTree().getLoadOnTheFly()==P_c7))?true:false);return _KR;};function toggle(_mG,_qR){_mG=(_mG)?_mG:((event)?event:null);clearSelection();PRMTUtils.F_StopEvent(_mG);_qR=(_qR?getUINode(null,_qR):getUINode(_mG));var _ua=_qR.getAttribute(P_cv).toString();var _p9=_qR.getAttribute(P_bu).toString();var _vx=getTreeNode(_p9,_ua);var _Mb=_vx.getTree();if(_Mb&&_Mb.canToggleNode(_vx)){_Mb.toggleExpandCollapse(_qR,_vx,0);_Mb._gW(null,_vx);}};CInnerTree.prototype.toggleExpandCollapse=function(_qR,_vx,_oY){var _xY=false;var _p9=_qR.getAttribute(P_bu).toString();var _Ks=null;if(_vx.isClosed()&&_oY!=P_u){_Ks=true;this.expandNode(_qR,_vx);_xY=true;}else if((_vx.isOpen())&&_oY!=P_bd){_Ks=false;this.collapseNode(_qR,_vx);_xY=true;}if(_Ks){this.setCacheValue(this.getExpandedNodeCacheKey(_vx),"true");}else{this.removeCacheValue(this.getExpandedNodeCacheKey(_vx));}updateToggleIcon(_vx,_p9);if(_Ks!=null){this.updateAriaLabelContainer(_vx,_p9,_Ks);}return _xY;};function gDrawChildren(_ms,_s0,_sa,_so){var _Hr=_ms.getChildren();var _IS=_ms.getTree();if(!_so){_so=0;}var _HB=Math.min((_so+P_bP),_Hr.length);var _xs=_so;var _xC=_IS.getName()+_ms.getTreeRef()+"children";var _GS=document.getElementById(_xC);if(!_GS){_GS=_IS._in.cloneNode(true);_GS.id=_xC;_s0.appendChild(_GS);}for(_xs=_so;_xs<_HB;_xs++){_IS.draw(_Hr[_xs],_GS);}if(_xs<_Hr.length){setTimeout(function(){gDrawChildren(_ms,_s0,_sa,_xs);},P_bo);}else if(typeof _sa==P_c7){_sa();}};CInnerTree.prototype.updateAriaLabelContainer=function(_ms,_sk,_pL){var _B0=document.getElementById(_sk+_ms.getTreeRef()+P_dg);if(_B0){_B0.setAttribute(P_a7,_pL);}};CInnerTree.prototype.updateLabelClass=function(_pt,className,_vx){_pt.className=className+" "+P_a4;if(!(this.getSelectionMode()!=P_b9&&this.getSelectTreeUI()==CHECKBOX_TREE)&&_vx){updateLabelAriaChecked(_pt,_vx)}};function cancelBub(_mG){return PRMTUtils.F_StopEvent.apply(this,arguments);};function getTargetNodeInfo(_mG){return getUINodeNodeInfo(getUINode(_mG));};function getUINodeNodeInfo(_qR){var _xY={};_xY.uiNode=_qR;var _ua=_qR.getAttribute(P_cv).toString();_xY.tree=_qR.getAttribute(P_bu).toString();_xY.node=getTreeNode(_xY.tree,_ua);return _xY;};function selectNode(_mG){_mG=(_mG)?_mG:((event)?event:null);if((_mG!=null)&&(_mG.keyCode!=null)&&(_mG.keyCode!=13)&&(_mG.keyCode!=0)){return false;}clearSelection();PRMTUtils.F_StopEvent(_mG);var _qR=getUINode(_mG);var _ua=_qR.getAttribute(P_cv).toString();var _p9=_qR.getAttribute(P_bu).toString();var _vx=getTreeNode(_p9,_ua);var _IS=_vx.getTree();_IS._gW(null,_vx);_IS.processNodeSelection(_vx,_p9,_mG.ctrlKey,_mG.shiftKey);if(_IS._kh){_IS._kh.cacheControlValue();}return false;};CInnerTree.prototype.processNodeSelection=function(_vx,_p9,_qV,_oW){if(this.getSelectionMode()!=P_b9){if((_qV==false)&&(_oW==false)&&(this.getSelectTreeUI()!=CHECKBOX_TREE)){this.clearPreviousSelections();}var _KQ=((this.getSelectTreeUI()==NORMAL_TREE)&&(_qV==false)&&(_oW==false));var _LW=((this.getSelectTreeUI()==CHECKBOX_TREE)||((this.getSelectTreeUI()==NORMAL_TREE)&&((this.getAllowSelectionToggle()==true)||((this.getAllowSelectionToggle()==false)&&(_qV==true)))));if(_KQ){this.getRootNode().setSelected(false);if(this.getTrackSelectionOrder()){this.clearSelectionOrder();}}var _IO=_vx.isSelected();if((this.getSelectTreeUI()==NORMAL_TREE)&&(_oW==true)){var _EP=this.getAnchorNode();if(_EP!=null&&_vx.getRootNode().hasSelectedChildren()){if(_vx.getParent()==_EP.getParent()){var _zM=_EP.getIndex();var _GT=_vx.getIndex();var _CI=_zM;var _K5=((_zM>_GT)?-1:1);while(_CI!=_GT+_K5){var _J6=_vx.getParent().m_oChildren[_CI];_J6.setSelected(true);var _AY=_J6.getLabel(_p9);this.updateLabelClass(_AY,getClassName(_J6,this),_J6);redrawChildren(_J6,_p9);_CI+=_K5;}}}}if(_IO==true){if(_LW){_vx.setSelected(false);this.setLastSelectedNode(null);this.removeFromPrevSelArray(_vx.getValue(),_vx.getName());}}else{_vx.setSelected(true);this.setLastSelectedNode(_vx);}_vx.updateNodeSelection();_vx.updateParent();this.updateLabelClass(_vx.getLabel(_p9),getClassName(_vx,this),_vx);this.checkData();if(_KQ){this.redraw();this.checkData();}else{redrawChildren(_vx,_p9);redrawParents(_vx,_p9);}if(_LW&&_IO){this.setAnchorNode(null);}else{this.setAnchorNode(_vx);}}else{this.clearPreviousSelections();if(_vx.isSelected()==true&&this.getAllowSelectionToggle()==true){this.getRootNode().setSelected(false);this.setLastSelectedNode(null);}else{this.getRootNode().setSelected(false);_vx.setSelected(true);this.setLastSelectedNode(_vx);}_vx.updateParent();this.redraw();this.checkData();}};function redrawChildren(_vx,_p9){if(_vx.getRendered()==true){var _DS=_vx.getChildren();var _IS=_vx.getTree();var _GS=document.getElementById(_p9+_vx.getTreeRef()+"children");if(_GS===null){_GS=document.getElementById(_p9+_vx.getTreeRef());}for(var j=0;j<_DS.length;j++){var _JG=_DS[j];var _pt=_JG.getLabel(_p9);if(_pt==null){if(j>0){_IS.redrawNodeToggle(_DS[j-1],_p9+_DS[j-1].getTreeRef());}_IS.draw(_JG,_GS);if(_vx.isOpen()==false){document.getElementById(_p9+_JG.getTreeRef()).style.display="none";}}else{_IS.updateLabelClass(_pt,getClassName(_JG,_IS),_JG);if(_IS.getSelectionMode()!=P_b9){if(_IS.getSelectTreeUI()==CHECKBOX_TREE){var _ov=_JG.getCheckbox(_p9);if(_ov){updateCheckboxClass(_ov,_JG);}}}}redrawChildren(_JG,_p9);}}};function redrawParents(_vx,_p9){var parentNode=_vx.getParent();if(parentNode!=null){var _pt=parentNode.getLabel(_p9);if(_pt!=null){var _Mb=parentNode.getTree();_Mb.updateLabelClass(_pt,getClassName(parentNode,_Mb),parentNode);if(_vx.getTree().getSelectionMode()!=P_b9){if(parentNode.getTreeRef()!=null&&parentNode.getTreeRef().length!=0){if(_vx.getTree().getSelectTreeUI()==CHECKBOX_TREE){var _ov=parentNode.getCheckbox(_p9);updateCheckboxClass(_ov,parentNode);}redrawParents(parentNode,_p9);}}}}};function dragStartOnNode(_mG){_mG=(_mG)?_mG:((event)?event:null);clearSelection();PRMTUtils.F_StopEvent(_mG);var _Lg=_mG.srcElement.getAttribute(P_aS);if(typeof _Lg==P_bJ&&_Lg.length!=0){var _qR=getUINode(_mG);if(_qR){var _p9=_qR.getAttribute(P_bQ).toString();var _vx=getTreeNode(_p9,_Lg);var _zO=_vx.getTree();if(!_vx.isSelected()){if((_mG.ctrlKey==false)&&(_mG.shiftKey==false)){_zO.getRootNode().setSelected(false);_zO.clearPreviousSelections();if(_zO.getTrackSelectionOrder()){_zO.clearSelectionOrder();}}_vx.setSelected(true);_vx.updateParent();_zO.updateLabelClass(_vx.getLabel(),getClassName(_vx,_zO). _vx);if((_mG.ctrlKey==false)&&(_mG.shiftKey==false)){_zO.redraw();_zO.checkData();}}var _yt=_zO.getSelectedFolderNodes();_yt=_yt.concat(_zO.getSelectedLeafNodes());var _CT=_p9+"~~~~~";for(var i=0;i<_yt.length;i++){if(i>0){_CT+="~~~";}_CT+=_yt[i].getTreeRef();}event.dataTransfer.setData("Text",_CT);if(_zO.getOnDragStart()!=null){var _E2=_zO.getOnDragStart();_E2(_mG);}}}};function getUINode(_mG,_qR){if(!_qR){_qR=(_mG.target)?_mG.target:((_mG.srcElement)?_mG.srcElement:null);}while(_qR&&!(_qR.tagName=="DIV"&&_qR.getAttribute(P_bu)!=null)){_qR=_qR.parentNode;}return _qR;};function getToggleSrc(_vx){if(_vx.isOpen()==true){if(_vx.isLastSibling()==true&&_vx.getParent().getMoreData()!=true){return P_al;}else{return P_c8;}}else{if(_vx.isLastSibling()==true&&_vx.getParent().getMoreData()!=true){return P_ay;}else{return P_cr;}}};function treeNodeMouseOver(_mG){_mG=(_mG)?_mG:((event)?event:null);clearSelection();PRMTUtils.F_StopEvent(_mG);var _qR=getUINode(_mG);var _ua=_qR.getAttribute(P_cv).toString();var _p9=_qR.getAttribute(P_bu).toString();var _vx=getTreeNode(_p9,_ua);window.status=P_ai;var _Mb=_vx.getTree();if(_Mb)_Mb.treeNodeShowFocus(_vx,_p9);};CInnerTree.prototype.treeNodeShowFocus=function(_vx,_p9){if(_vx.getNodeTypeObject().getSelectable()&&_vx.isSelected()==false&&_vx.hasSelectedChildren()==false){this.updateLabelClass(_vx.getLabel(_p9),P_ce,_vx);}};CInnerTree.prototype.treeNodeHideFocus=function(_vx,_p9){if(_vx.isSelected()==false&&_vx.hasSelectedChildren()==false){this.updateLabelClass(_vx.getLabel(_p9),P_av,_vx);}};function treeNodeMouseOut(_mG){_mG=(_mG)?_mG:((event)?event:null);clearSelection();PRMTUtils.F_StopEvent(_mG);var _qR=getUINode(_mG);var _ua=_qR.getAttribute(P_cv).toString();var _p9=_qR.getAttribute(P_bu).toString();var _vx=getTreeNode(_p9,_ua);window.status=P_ai;var _Mb=_vx.getTree();if(_Mb)_Mb.treeNodeHideFocus(_vx,_p9);};function CInnerTreeNode(_nk,_rg,_u7,_ts,_sE,_rc){if(_rg){this.init(_nk,_rg,_u7,_ts,_sE,_rc);}};CInnerTreeNode.prototype=new CTreeNode();CInnerTreeNode.prototype.isFirst=function(){var _KR=false;if((this.getParent()!=null)&&(this.getParent()==this.getRootNode())&&(this.getTreeRef()==this.getParent().m_oChildren[0].getTreeRef())){_KR=true;}return _KR;};CInnerTreeNode.prototype.isFirstSibling=function(){var _KR=false;if((this.getParent()!=null)&&(this.getTreeRef()==this.getParent().m_oChildren[0].getTreeRef())){_KR=true;}return _KR;};CInnerTreeNode.prototype.isLastSibling=function(){var _KR=false;if((this.getParent()!=null)&&(this.getTreeRef()==this.getParent().m_oChildren[this.getParent().getChildrenLength()-1].getTreeRef())){_KR=true;}return _KR;};CInnerTreeNode.prototype.getNextSibling=function(){var _FR=null;if(!this.isLastSibling()){_FR=this.getParent().m_oChildren[this.getIndex()+1];}return _FR;};CInnerTreeNode.prototype.getPreviousSibling=function(){var _FR=null;if(!this.isFirstSibling()){_FR=this.getParent().m_oChildren[this.getIndex()-1];}return _FR;};CInnerTreeNode.prototype.getLabel=function(_pB){if(!this._jH){this._jH=document.getElementById(_pB+this.getTreeRef()+P_dg);}return this._jH;};CInnerTreeNode.prototype.getLabelContainer=function(_uu){return document.getElementById(_uu+this.getTreeRef()+P_dg);};CInnerTreeNode.prototype.getNodeLabel=function(){var _Mb=this.getTree();var _Bi=_Mb.getName();if(!this._jH){this._jH=document.getElementById(_pB+this.getTreeRef()+P_dg);}return this._jH;};CInnerTreeNode.prototype.hasChildren=function(){return(this.getChildrenLength()>0);};CInnerTreeNode.prototype.updateNodeSelection=function(){var _Mb=this.getTree();if(_Mb.getSelectTreeUI()==NORMAL_TREE){if(_Mb.getSelectionMode()==CONTIGUOUS_TREE_SELECTION&&this.isSelected()==false&&this.getNodeType()==TREE_FOLDER&&this.getChildrenLength()==this.getSelectedChildrenCount()){this._dE=true;}var _pt=this.getLabel(this.getTree().getName());if(_pt!=null){_Mb.updateLabelClass(_pt,getClassName(this,_Mb),this);}}else{var _ov=this.getCheckbox(_Mb.getName());if(_ov!=null){updateCheckboxClass(_ov,this);}}};CInnerTreeNode.prototype.isClosed=function(){return!this._fF;};CInnerTreeNode.prototype.getFirstChild=function(){var _FR=null;if(this.getChildrenLength()>0){_FR=this.m_oChildren[0];}return _FR;};CInnerTreeNode.prototype.getLastChild=function(){var _FR=null;if(this.getChildrenLength()>0){_FR=this.m_oChildren[this.getChildrenLength()-1];}return _FR;};var P_c6={'TREE_L':{'MINUS':P_al,'PLUS':P_ay,'ONLY':P_bD},'TREE_T':{'MINUS':P_c8,'PLUS':P_cr,'ONLY':P_am}};CInnerTreeNode.prototype.createNewNode=function(_mc,_sN,name,_sE,_rM){new CInnerTreeNode(_mc,_sN,false,jsDecodeStr(name),jsDecodeStr(_sE),_rM);};function updateCheckboxClass(_ov,_vx){var _Ag=P_ai;var _Br=true;var _pX="true";switch(_vx.getState()){case P_bk:_Ag=P_bY;_Br=false;_pX="false";break;case P_cf:_Ag=P_cy;_pX="mixed";break;case P_bh:_Ag=P_bx;break;}_ov.className=_Ag;_ov.firstChild.checked=_Br;_ov.firstChild.setAttribute("checked",_Br);updateLabelAriaChecked(_vx.getLabel(_vx.getTree().getName()),_vx,_pX);};function updateLabelAriaChecked(_pt,_vx,_pX){if(typeof _pX==P_cD){_pX=node2AriaChecked(_vx);}if(_pt){if(_pt[P_bS]){_pt[P_bS]=_pX;}else{_pt.setAttribute(P_bS,_pX);}}};function node2AriaChecked(_vx){if(_vx&&_vx.getState){var _IQ=_vx.getState();return(_IQ==P_bk?"false":(_IQ==P_cf?"mixed":"true"));}};function updateToggleIcon(_ms,_sk){var _BR=document.getElementById(_sk+_ms.getTreeRef()+P_b2);if(_BR){var _Ap=document.getElementById(_sk+_ms.getTreeRef()+P_Z+_ms.getTreeHierarchy());_Ap.className=getToggleClassName(_ms);_Ap.title=getToggleTitle(_ms);var _Ja=((_Ap.className==P_bl+_ms._j8._hG._fQ)?"-":"+");var _yC=_Ap.nextSibling;if(_yC.textContent){_yC.textContent=_Ja;}else{_yC.firstChild.data=_Ja;}}};function getToggleClassName(_vx){if(_vx.isOpen()==true){return(P_bl+_vx._j8._hG._fQ);}else{return(P_cG+_vx._j8._hG._fQ);}};CInnerTreeIOS.prototype=new CInnerTree;function CInnerTreeIOS(_pE,_rp,_nF,_uq,_qv,_tJ,_tY,_mB,_l5,_l8,_pU,_o6){CInnerTree.call(this,_pE,_rp,_nF,_uq,_qv,_tJ,_tY,_mB,_l5,_l8,_pU,_o6);if(this._fQ!="RTL"){this._gU.setAttribute("role","presentation");}};CInnerTreeIOS.prototype.drawLoading=function(_vx,_pR){var _Ha=document.getElementById(_pR);if(!_Ha&&_vx.getNodeType()==TREE_ROOT&&this.getRootNodeShowing()==false){_Ha=this._dN;}if(_Ha!=null){var _Ar=document.createElement("DIV");_Ar.className=P_bt;_Ar.id=this.getName()+_vx.getTreeRef()+"loading";_Ar.style.width="100%";var _Ic=document.createElement("NOBR");this.drawTreeLines(_vx,_Ic,_vx.getLevel()+1);if(!(_vx.getNodeType()==TREE_ROOT&&_vx.getTree().getRootNodeShowing()==false&&_vx.getMoreData()!=true)){var _ID=document.createElement("IMG");_ID.align=P_bO;_ID.src=(this._fQ=="RTL"?P_af:P_bD);if(this._fQ!="RTL"){_ID.setAttribute("role","presentation");}_Ic.appendChild(_ID);}var _Dr=document.createElement("IMG");_Dr.align=P_bO;_Dr.src=TREE_LOADING;_Ic.appendChild(_Dr);var _zL=document.createElement("SPAN");_zL.className=P_av+P_br+P_a4;if(typeof PMT_TRE_TREE_LOADING!=P_cD){var _FZ=document.createTextNode(PMT_TRE_TREE_LOADING);_zL.appendChild(_FZ);_zL.title=PMT_TRE_TREE_LOADING;}_Ic.appendChild(_zL);_Ar.appendChild(_Ic);_Ha.appendChild(_Ar);}};CInnerTreeIOS.prototype.drawMoreData=function(_vx,_pR){var _Ha=document.getElementById(_pR);if(!_Ha&&_vx.getNodeType()==TREE_ROOT&&this.getRootNodeShowing()==false){_Ha=this._dN;}var _GS=(_Ha.getAttribute("role")=="tree"?_Ha:_Ha.firstChild.nextSibling);if(_Ha!=null&&_GS!=null&&(_GS.getAttribute("role")=="group"||_GS.getAttribute("role")=="tree")){var _Ar=document.createElement("DIV");_Ar.className=P_bt;_Ar.id=this.getName()+_vx.getTreeRef()+"moredata";_Ar.style.width="100%";var _Ic=document.createElement("NOBR");this.drawTreeLines(_vx,_Ic,_vx.getLevel()+1);var _ID=document.createElement("IMG");_ID.align=P_bO;_ID.src=(this._fQ=="RTL"?P_af:P_bD);if(this._fQ!="RTL"){_ID.setAttribute("role","presentation");}_Ic.appendChild(_ID);var _Dr=document.createElement("IMG");_Dr.align=P_bO;_Dr.src=P_au;_Dr.setAttribute("role","presentation");_Ic.appendChild(_Dr);var _zL=document.createElement("SPAN");_zL.className=P_av+P_br+P_c1;if(typeof PMT_TRE_MORE!=P_cD){var _FZ=document.createTextNode(PMT_TRE_MORE);_zL.appendChild(_FZ);_zL.title=PMT_TRE_MORE;}_zL.id=this.getName()+_vx.getTreeRef()+"moredatalabel";_zL.setAttribute(P_bu,this.getName());_zL.setAttribute(P_cv,_vx.getTreeRef());_zL.tabIndex=0;PRMTUtils._hj(_zL,"click",getMoreDataForTreeNode);PRMTUtils._hj(_zL,"keydown",getMoreDataForTreeNode);PRMTUtils._hj(_zL,"keypress",getMoreDataForTreeNode);_Ic.appendChild(_zL);_Ar.appendChild(_Ic);_GS.appendChild(_Ar);}};CInnerTreeIOS.prototype.draw=function(_vx,_tc){if(_vx.getTree().getDisabled()==true){return false;}var _nv=_vx.getTreeRef();var _uu=this.getName();if(_vx.getNodeType()==TREE_ROOT){var _mF=document.getElementById(_uu);if(_mF!=null){_tc.removeChild(_mF);}_tc.setAttribute(P_cv,_nv);_tc.setAttribute(P_bu,_uu);}var _sT=this._l2.cloneNode(true);PRMTUtils._hj(_sT,"dragstart",dragStartOnNode);PRMTUtils._hj(_sT,"drag",dragOnNode);PRMTUtils._hj(_sT,"dragend",dragEndOnNode);_sT.setAttribute(P_cv,_nv);_sT.setAttribute(P_bu,_uu);if(_nv==P_ai){_sT.setAttribute(P_cV,"listbox");}_sT.id=_uu+_nv;if(!(_vx.getNodeType()==TREE_ROOT&&this.getRootNodeShowing()==false)){this.drawNode(_vx,_sT);}_tc.appendChild(_sT);this.drawNodeChildren(_vx,_sT);this._dq=true;};CInnerTreeIOS.prototype.detailToogleIcon=function(_vx,_n4){var _Bg=this._i2.cloneNode(true);_Bg.className=P_X;_Bg.setAttribute(P_cV,P_ag);var _I0="";if(_vx.canHaveChildren()==true){_n4.setAttribute("aria-labelledby",_vx.id);if(_vx.isOpen()==true){_n4.className=P_bl+this._fQ;_n4.title=PMT_TRE_COLLAPSE;_n4.alt=PMT_TRE_COLLAPSE;_I0="-";}else{_n4.className=P_cG+this._fQ;_n4.title=PMT_TRE_EXPAND;_n4.alt=PMT_TRE_EXPAND;_I0="+";}_n4.tabIndex=-1;_n4.onclick=this.toggle;_Bg.onclick=this.toggle;}else{_n4.className=P_cp;_n4.src=P_Y+"blank.gif";_n4.alt="";_n4.onclick=null;_n4.removeAttribute("aria-labelledby");_n4.removeAttribute("title");_n4.removeAttribute("tabindex");}var _II=document.createTextNode(_I0);_Bg.appendChild(_II);_n4.setAttribute(P_cv,P_b0);return[_n4,_Bg];};CInnerTreeIOS.prototype.drawNodeCheckboxIcon=function(_vx){var _Jt=CInnerTree.prototype.drawNodeCheckboxIcon.call(this,_vx);_Jt.setAttribute("aria-hidden","true");return _Jt;};CInnerTreeIOS.prototype.drawNodeLabel=function(_vx,_uu,_nv){var _wr=this._eh.cloneNode(true);_wr.id=_uu+_nv+P_dg;this.updateLabelClass(_wr,getClassName(_vx,this),_vx);_wr.setAttribute(P_cv,_nv);_wr.setAttribute(P_aS,_nv.toString());_wr.setAttribute(P_bQ,_uu);_wr.setAttribute(P_bu,_uu);_vx._jH=_wr;if(_vx.isFirst()){_wr.tabIndex=0;this._ek=_wr;}var _Di=document.createTextNode(G_IsBidiEnabled&&this._fa?P_bz.enforceBidiDirection(_vx.getName(),this._fa):_vx.getName());_wr.appendChild(_Di);var _l5=this.getStyle();_wr.style.color=cssParser(_l5,"color",true);_wr.style.backgroundColor=cssParser(_l5,"background-color",true);_wr.style.fontFamily=cssParser(_l5,"font-family",true);_wr.style.fontSize=cssParser(_l5,"font-size",true);_wr.style.fontWeight=cssParser(_l5,"font-weight",true);_wr.style.fontStyle=cssParser(_l5,"font-style",true);_wr.style.fontVariant=cssParser(_l5,"font-variant",true);_wr.style.textAlign=cssParser(_l5,"text-align",true);_wr.style.textVariant=cssParser(_l5,"text-variant",true);_wr.style.textIndent=cssParser(_l5,"text-indent",true);_wr.style.textTransform=cssParser(_l5,"text-transform",true);_wr.setAttribute(P_cv,_nv);_wr.setAttribute(P_aS,_nv.toString());_wr.setAttribute(P_bQ,_uu);_wr.setAttribute(P_bu,_uu);_wr.setAttribute("onfocus","this.classname='"+P_ce+" "+P_a4+"';");_wr.setAttribute("onblur","this.classname='"+P_av+" "+P_a4+"';");return _wr;};CInnerTreeIOS.prototype.toggle=function(_mG,_qR){_mG=(_mG)?_mG:((event)?event:null);clearSelection();PRMTUtils.F_StopEvent(_mG);_qR=(_qR?getUINode(null,_qR):getUINode(_mG));var _ua=_qR.getAttribute(P_cv).toString();var _p9=_qR.getAttribute(P_bu).toString();var _vx=getTreeNode(_p9,_ua);var _Mb=_vx.getTree();if(_Mb&&_Mb.canToggleNode(_vx)){_Mb.toggleExpandCollapse(_qR,_vx,0);}};CInnerTreeIOS.prototype.toggleExpandCollapse=function(_qR,_vx,_oY){var _xY=false;var _p9=_qR.getAttribute(P_bu).toString();var _Ks=null;if(_vx.isClosed()&&_oY!=P_u){_Ks=true;this.expandNode(_qR,_vx);_xY=true;}else if((_vx.isOpen())&&_oY!=P_bd){_Ks=false;this.collapseNode(_qR,_vx);_xY=true;}if(_Ks){this.setCacheValue(this.getExpandedNodeCacheKey(_vx),"true");}else{this.removeCacheValue(this.getExpandedNodeCacheKey(_vx));}updateToggleIcon(_vx,_p9);if(_Ks!=null){this.updateAriaLabelContainer(_vx,_p9,_Ks);}return _xY;};CInnerTreeIOS.prototype.updateAriaLabelContainer=function(_ms,_sk,_pL){var _B0=document.getElementById(_sk+_ms.getTreeRef()+P_dg);if(_B0&&_ms.canHaveChildren()){_B0.setAttribute(P_a7,_pL);}else if(!_ms.canHaveChildren()){_ms.removeAttribute(P_a7);}};function CIntervalPicker(_rp,_pM,_rN,_oh,_mD,_nh,_vo,_tJ,_qv,_pe,_nF,_qW,_rw,_oN,_pg,_mB){this.setCVId(_mB);this.m_oSubmit=_rp;this.m_oForm=_pM;this.m_oDays=_rN;this.m_oHours=_oh;this.m_oMinutes=_mD;this._fh=_rw;this._lF=_oN;this._fX=false;initIntervalRegularExpressions();if((this._fh==true)||(this._lF==true)){this.m_oSeconds=_nh;}else{this.m_oSeconds=null;}if(this._lF==true){this._lm=_vo;}else{this._lm=null;}this._jx=_nF;this.m_bDisabled=false;this._l1=false;this._dx=_qW;this._jh=_pg?_pg:false;var _rd=_pe?_pe:P_ai;if(_rd.indexOf('P')!=-1){this.parseXSDIntervalValue(_rd);}else{var z=_rd.search(P_aF);if(z==-1){this._fX=false;}else{this._fX=true;_rd=_rd.replace(P_aF,P_ai);}var _wa=_rd.split(/[:.\s]/g);switch(_wa.length){case 5:this._kt=_wa[0];this._hB=_wa[1];this._fc=_wa[2];this._fN=_wa[3];this._hI=_wa[4];break;default:if(this._jx==true){this._kt=0;this._hB=0;this._fc=0;this._fN=0;this._hI=0;}else{this._kt=null;this._hB=null;this._fc=null;this._fN=null;this._hI=null;}}}this._lw=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);this._ho=_tJ;if(this._ho!=null){this._kF=new Image();this._kF.src=this._lw+"/prompting/images/error_timed_small_off.gif";this._kx=new Image();this._kx.src=this._lw+"/prompting/images/error_timed_small.gif";}this.m_sRef=_qv;this.draw();this.updateFormField();this.checkInterval();};CIntervalPicker.prototype=new CPromptControl();function CIntervalPicker_draw(){var _Dc=(this._kt!=null)?this._kt:(this._jx==true)?"0":P_ai;if(this._fX==true){this.m_oDays.value="-"+_Dc;}else{this.m_oDays.value=_Dc;}this.m_oHours.value=(this._hB!=null)?this._hB:(this._jx==true)?"0":P_ai;this.m_oMinutes.value=(this._fc!=null)?this._fc:(this._jx==true)?"0":P_ai;if((this._fh==true)||(this._lF==true)){this.m_oSeconds.value=(this._fN!=null)?this._fN:(this._jx==true)?"0":P_ai;}if(this._lF==true){this._lm.value=(this._hI!=null)?this._hI:(this._jx==true)?"0":P_ai;}};function CIntervalPicker_updateFormField(){var _JV=0;var _wb=0;var _Ly=0;var _Lw=P_ai;var _GA=P_ai;var _we=P_ai;var _wY=P_ai;var _F4=P_ai;var _wu=P_ai;if(this._fX==true){_wu='-';}if(this._fN!=null){if(parseInt(this._fN,10)>=60){_Ly=1;_wY=(parseInt(this._fN,10)-60).toString();}else{_wY=this._fN.toString();}if(_wY.length==1){_wY='0'+_wY;}}if(this._fc!=null){if(parseInt(this._fc,10)>=60){_wb=1;_we=(parseInt(this._fc,10)+_Ly)-60;}else{_we=this._fc.toString();}if(_we.length==1){_we='0'+_we;}}if(this._hB>24){_JV=(parseInt(this._hB,10)+_wb)/24;_JV=parseInt(_JV,10);_wb+=parseInt(this._hB,10)%24;if(this._kt!=null){_Lw=(parseInt(this._kt,10)+_JV).toString();}else{_Lw=_JV.toString();}_GA=_wb.toString();}else{if(this._kt!=null){_Lw=this._kt.toString();}else{_Lw='00';}if(this._hB!=null){_GA=(parseInt(this._hB,10)+_wb).toString();}else if(_wb>0){_GA=_wb.toString();}else{_GA='00';}}if(_Lw.length==2){_Lw='0'+_Lw;}else if(_Lw.length==1){_Lw='00'+_Lw;}if(_GA.length==1){_GA='0'+_GA;}if(_Ly>0){_we=_Ly.toString();if(_we.length==1){_we='0'+_we;}}else if(_we==P_ai){_we='00';}if(_wY==P_ai){_wY='00';}if(this._hI!=null){_F4=this._hI.toString();if(_F4.length==2){_F4='0'+_F4;}else if(_F4.length==1){_F4='00'+_F4;}}else{_F4='000';}this.m_oForm.value=_wu+_Lw+P_br+_GA+P_b6+_we+P_b6+_wY+P_A+_F4;};function CIntervalPicker_keyPress(_r3,_tD){if(_r3=='8'){switch(_tD){case 'checkDay':this.checkDay();break;case 'checkHour':this.checkHour();break;case 'checkMinute':this.checkMinute();break;case 'checkSecond':this.checkSecond();break;case 'checkMillisecond':this.checkMillisecond();break;default:this.checkInterval();}}return true;};function CIntervalPicker_checkInterval(){var _KO=false;var _w4=false;if(this._jx==true){var _zt=true;if((this._lF==true)&&(this._lm.value==P_ai)){_zt=false;}if((_zt==true)&&((this._fh==true)||(this._lF==true))&&(this.m_oSeconds.value==P_ai)){_zt=false;}if(_zt==true){if((this.m_oDays.value==P_ai)||(this.m_oHours.value==P_ai)||(this.m_oMinutes.value==P_ai)){_zt=false;}}if(_zt==false){this.checkIntervalFail();return;}}if(this.bIsNegative(this.m_oDays.value)||this.bIsNegative(this.m_oHours.value)||this.bIsNegative(this.m_oMinutes.value)){_w4=true;}if((this._fh==true)||(this._lF==true)){if(this.bIsNegative(this.m_oSeconds.value)==true){_w4=true;}}if(this._lF==true){if(this.bIsNegative(this._lm.value)==true){_w4=true;}}if(this.bcheckNumber(this.m_oDays.value)&&this.bcheckNumber(this.m_oHours.value)&&this.bcheckNumber(this.m_oMinutes.value)){_KO=true;}if((this._fh==true)||(this._lF==true)){if(this.bcheckNumber(this.m_oSeconds.value)!=true){_KO=false;}}if(this._lF==true){if(this.bcheckNumber(this._lm.value)!=true){_KO=false;}}if(_w4==true){this._fX=true;if(this._jh==false){_KO=false;}}else{this._fX=false;}if(_KO==true){this.updateFormField();this.checkIntervalPass();this._l1=true;}else{this.checkIntervalFail();this._l1=false;}};function CIntervalPicker_checkIntervalPass(){if((this._ho!=null)&&(this._ho.src!=this._kF.src)){this._ho.src=this._kF.src;}this._l1=true;this.notify(gPASS,this);};function CIntervalPicker_checkIntervalFail(){if(this._ho!=null){this._ho.src=this._kx.src+'?'+Math.random();}this._l1=false;this.notify(gFAIL,this);};function CIntervalPicker_checkDay(){if(this.m_oDays.value!=P_ai){var _Lw=this.m_oDays.value;if(this.bcheckNumber(_Lw)==true){_Lw=this.sStripNegative(_Lw);this._kt=(_Lw!=P_ai)?_Lw:null;this.m_oDays.className="clsIntervalWidget";}else{this._kt=null;this.m_oDays.className="clsIntervalWidgetParseError";}}else{this._kt=null;if(this._jx==true){this.m_oDays.className="clsIntervalWidgetParseError";}else{this.m_oDays.className="clsIntervalWidget";}}this.checkInterval();};function CIntervalPicker_checkHour(){if(this.m_oHours.value!=P_ai){var _GA=this.m_oHours.value;if(this.bcheckNumber(_GA)==true){_GA=this.sStripNegative(_GA);this._hB=(_GA!=P_ai)?_GA:null;this.m_oHours.className="clsIntervalWidget";}else{this._hB=null;this.m_oHours.className="clsIntervalWidgetParseError";}}else{this._hB=null;if(this._jx==true){this.m_oHours.className="clsIntervalWidgetParseError";}else{this.m_oHours.className="clsIntervalWidget";}}this.checkInterval();};function CIntervalPicker_checkMinute(){if(this.m_oMinutes.value!=P_ai){var _we=this.m_oMinutes.value;if(this.bcheckNumber(this.m_oMinutes.value)==true){_we=this.sStripNegative(_we);this._fc=(_we!=P_ai)?_we:null;this.m_oMinutes.className="clsIntervalWidget";}else{this._fc=null;this.m_oMinutes.className="clsIntervalWidgetParseError";}}else{this._fc=null;if(this._jx==true){this.m_oMinutes.className="clsIntervalWidgetParseError";}else{this.m_oMinutes.className="clsIntervalWidget";}}this.checkInterval();};function CIntervalPicker_checkSecond(){if((this._fh==true)||(this._lF==true)){if(this.m_oSeconds.value!=P_ai){var _wY=this.m_oSeconds.value;if(this.bcheckNumber(_wY)==true){_wY=this.sStripNegative(_wY);this._fN=(_wY!=P_ai)?_wY:null;this.m_oSeconds.className="clsIntervalWidget";}else{this._fN=null;this.m_oSeconds.className="clsIntervalWidgetParseError";}}else{this._fN=null;if(this._jx==true){this.m_oSeconds.className="clsIntervalWidgetParseError";}else{this.m_oSeconds.className="clsIntervalWidget";}}this.checkInterval();}};function CIntervalPicker_checkMillisecond(){if(this._lF==true){if(this._lm.value!=P_ai){var _F4=this._lm.value;if(this.bcheckNumber(_F4)==true){_F4=this.sStripNegative(_F4);this._hI=(_F4!=P_ai)?_F4:null;this._lm.className="clsIntervalWidget";}else{this._hI=null;this._lm.className="clsIntervalWidgetParseError";}}else{this._hI=null;if(this._jx==true){this._lm.className="clsIntervalWidgetParseError";}else{this._lm.className="clsIntervalWidget";}}this.checkInterval();}};function CIntervalPicker_startCheckDataInterval(_vr,_vK){var _Iu=this.m_sRef+".checkValueChange('"+_vr+"')";if(_vr=="day"){this._kH=this.m_oDays.value;this._hT=setInterval(_Iu,_vK);}else if(_vr=="hour"){this._e8=this.m_oHours.value;this._h9=setInterval(_Iu,_vK);}else if(_vr=="minute"){this._lL=this.m_oMinutes.value;this._jY=setInterval(_Iu,_vK);}else if(_vr=="second"&&this.m_oSeconds!=null){this._gg=this.m_oSeconds.value;this._kQ=setInterval(_Iu,_vK);}else if(_vr=="millisecond"&&this._lm!=null){this._jv=this._lm.value;this._jS=setInterval(_Iu,_vK);}};function CIntervalPicker_endCheckDataInterval(_ri){if(typeof _ri!=P_cD&&_ri!==P_ai){clearInterval(_ri);}};function CIntervalPicker_checkValueChange(_vr){if(_vr=="day"&&typeof this._kH!=P_cD){if(this.m_oDays.value!=this._kH){this.endCheckDataInterval(this._hT);this.checkDay();}}else if(_vr=="hour"&&typeof this._e8!=P_cD){if(this.m_oHours.value!=this._e8){this.endCheckDataInterval(this._h9);this.checkHour();}}else if(_vr=="minute"&&typeof this._lL!=P_cD){if(this.m_oMinutes.value!=this._lL){this.endCheckDataInterval(this._jY);this.checkMinute();}}else if(_vr=="second"&&this.m_oSeconds!=null&&typeof this._gg!=P_cD){if(this.m_oSeconds.value!=this._gg){this.endCheckDataInterval(this._kQ);this.checkSecond();}}else if(_vr=="millisecond"&&this._lm!=null&&typeof this._jv!=P_cD){if(this._lm.value!=this._jv){this.endCheckDataInterval(this._jS);this.checkMillisecond();}}};function CIntervalPicker_bcheckNumber(_oX){_oX=_oX.replace('-',P_ai);var z=_oX.search(/[^0-9]/);if(z==-1){return true;}else{return false;}};function CIntervalPicker_sGetInterval(){this.updateFormField();var _nK=P_ai;_nK=this.m_oForm.value;return _nK;};function CIntervalPicker_sGetFormatInterval(){var _nK=P_ai;if(this._fX==true){_nK+=g_minusSign;}var _Lw="0";if(this._kt!=null){_Lw=this._kt.toString();}var _GA="0";if(this._hB!=null){_GA=this._hB.toString();}var _we="00";if(this._fc!=null){_we=this._fc.toString();if(_we.length==1){_we='0'+_we;}}_nK+=_Lw+P_br+_GA+P_b6+_we;if((this._fh==true)||(this._lF==true)){var _wY='00';if(this._fN!=null){_wY=this._fN.toString();if(_wY.length==1){_wY='0'+_wY;}}_nK+=P_b6+_wY;}if(this._lF==true){var _F4='000';if(this._hI!=null){_F4=this._hI.toString();if(_F4.length==2){_F4='0'+_F4;}else if(_F4.length==1){_F4='00'+_F4;}}_nK+=P_A+_F4;}return _nK;};function CIntervalPicker_checkData(){this.checkInterval();if((this._jx==true)&&(this.m_oForm.value==P_ai)){this._l1=false;this.checkIntervalFail();return false;}else{this._l1=true;this.checkIntervalPass();return true;}};function CIntervalPicker_preProcess(){if(this._dx==P_ak){var _Lf=P_ai;if(this.hasValue()==true){if((this.m_oForm.value!=P_ai)&&(this.m_bDisabled!=true)){_Lf+='<selectOption';_Lf+=' displayValue="'+this.sGetFormatInterval()+'"';_Lf+=' useValue="'+this.sGetXSDValue()+'"';_Lf+=' selected="true" />';}}addSelectChoices(this.m_oSubmit,_Lf);}else{if(this.m_bDisabled!=true){this.m_oSubmit.value=this.sGetInterval();}else{this.m_oSubmit.value=P_ai;}}};function CIntervalPicker_sGetValue(){if(this._dx==P_ak){return this.sGetXSDValue();}else{return this.sGetInterval();}};function CIntervalPicker_sGetFormatValue(){return this.sGetFormatInterval();};function CIntervalPicker_sGetXSDValue(){var _Fy=P_ai;if(this._kt!=null){_Fy+=this.sStripNegative(this._kt.toString())+"D";}if((this._hB!=null)||(this._fc!=null)||(this._fN!=null)||(this._hI!=null)){_Fy+="T";if(this._hB!=null){_Fy+=this.sStripNegative(this._hB.toString())+"H";}if(this._fc!=null){_Fy+=this.sStripNegative(this._fc.toString())+"M";}if(this._fN!=null){_Fy+=this.sStripNegative(this._fN.toString());}if(this._hI!=null){_Fy+=P_A+this.sStripNegative(this._hI.toString())+"S";}}if(_Fy!=P_ai){_Fy="P"+_Fy;if(this._fX==true){_Fy=g_minusSign+_Fy;}}return _Fy;};function CIntervalPicker_parseXSDIntervalValue(s){var _F2=s;var _yL=0;var _JE=0;var _HQ=0;var _Gl=0;var _IT=0;var _vV=0;var _x4=0;var _CB=0;var z=_F2.search(P_aF);if(z==-1){this._fX=false;}else{this._fX=true;_F2=_F2.replace(P_aF,P_ai);}var _Ba=_F2.indexOf('P');if(_Ba!=-1){_F2=_F2.substring(_Ba+1);var _xQ=_F2.indexOf('T');var _BS=_F2.split('T');if(((_BS.length>0)&&(_xQ>0))||(_xQ==-1)){var _Ix=_BS[0].indexOf('Y');if(_Ix!=-1){_yL=parseInt(_BS[0].substring(currentPos,_Ix),10);_BS[0]=_BS[0].substring(_Ix+1);}var _Gp=_BS[0].indexOf('M');if(_Gp!=-1){_JE=parseInt(_BS[0].substring(0,_Gp),10);_BS[0]=_BS[0].substring(_Gp+1);}var _Ak=_BS[0].indexOf('D');if(_Ak!=-1){_HQ=parseInt(_BS[0].substring(0,_Ak),10);}_Gl=(_yL*365)+(_JE*30)+_HQ;}else{_Gl=0;}if((_BS.length==2)||(_xQ!=-1)){var _AZ=_BS.length-1;var _Gx=_BS[_AZ].indexOf('H');if(_Gx!=-1){_IT=parseInt(_BS[_AZ].substring(0,_Gx),10);_BS[_AZ]=_BS[_AZ].substring(_Gx+1);}var _xz=_BS[_AZ].indexOf('M');if(_xz!=-1){_vV=parseInt(_BS[_AZ].substring(0,_xz),10);_BS[_AZ]=_BS[_AZ].substring(_xz+1);}var _yo=_BS[_AZ].indexOf('S');if(_yo!=-1){var _Kd=_BS[_AZ].indexOf(P_A);var _D2=_BS[_AZ].substring(0,_yo).split(P_A);if((_D2.length==2)||(_Kd==-1)){_x4=parseInt(_D2[0],10);}if((_D2.length==2)||(_Kd!=-1)){_CB=parseInt(_D2[_D2.length-1],10);}}}this._kt=_Gl;this._hB=_IT;this._fc=_vV;this._fN=_x4;this._hI=_CB;}};function CIntervalPicker_iConvertMonthToDays(){return 30;};function CIntervalPicker_hasValue(){if((this._kt!=null)||(this._hB!=null)||(this._fc!=null)||(this._fN!=null)||(this._hI!=null)){return true;}return false;};function CIntervalPicker_bIsNegative(s){if(s==null){return false;}var z=s.toString().search(P_aF);if(z==-1){return false;}return true;};function CIntervalPicker_sStripNegative(s){if(s!=null){return s.toString().replace(P_aF,P_ai);}return P_ai;};function CIntervalPicker_lostFocus(){};CIntervalPicker.prototype.draw=CIntervalPicker_draw;CIntervalPicker.prototype.updateFormField=CIntervalPicker_updateFormField;CIntervalPicker.prototype.keyPress=CIntervalPicker_keyPress;CIntervalPicker.prototype.checkInterval=CIntervalPicker_checkInterval;CIntervalPicker.prototype.checkDay=CIntervalPicker_checkDay;CIntervalPicker.prototype.checkHour=CIntervalPicker_checkHour;CIntervalPicker.prototype.checkMinute=CIntervalPicker_checkMinute;CIntervalPicker.prototype.checkSecond=CIntervalPicker_checkSecond;CIntervalPicker.prototype.checkMillisecond=CIntervalPicker_checkMillisecond;CIntervalPicker.prototype.bcheckNumber=CIntervalPicker_bcheckNumber;CIntervalPicker.prototype.checkIntervalPass=CIntervalPicker_checkIntervalPass;CIntervalPicker.prototype.checkIntervalFail=CIntervalPicker_checkIntervalFail;CIntervalPicker.prototype.sGetInterval=CIntervalPicker_sGetInterval;CIntervalPicker.prototype.sGetFormatInterval=CIntervalPicker_sGetFormatInterval;CIntervalPicker.prototype.checkData=CIntervalPicker_checkData;CIntervalPicker.prototype.preProcess=CIntervalPicker_preProcess;CIntervalPicker.prototype.sGetFormatValue=CIntervalPicker_sGetFormatValue;CIntervalPicker.prototype.sGetValue=CIntervalPicker_sGetValue;CIntervalPicker.prototype.sGetXSDValue=CIntervalPicker_sGetXSDValue;CIntervalPicker.prototype.parseXSDIntervalValue=CIntervalPicker_parseXSDIntervalValue;CIntervalPicker.prototype.iConvertMonthToDays=CIntervalPicker_iConvertMonthToDays;CIntervalPicker.prototype.hasValue=CIntervalPicker_hasValue;CIntervalPicker.prototype.bIsNegative=CIntervalPicker_bIsNegative;CIntervalPicker.prototype.sStripNegative=CIntervalPicker_sStripNegative;CIntervalPicker.prototype.lostFocus=CIntervalPicker_lostFocus;CIntervalPicker.prototype.startCheckDataInterval=CIntervalPicker_startCheckDataInterval;CIntervalPicker.prototype.endCheckDataInterval=CIntervalPicker_endCheckDataInterval;CIntervalPicker.prototype.checkValueChange=CIntervalPicker_checkValueChange;function initIntervalRegularExpressions(){P_aF=new RegExp(sEscapeRegularExpression(g_minusSign),P_V);};var g_minusSign="-";var P_aF=new RegExp(g_minusSign,P_V);function CMultipleIntervalPicker(_nL,_os,_rp,_nF,_qW,_tY,_s7,_qg,_tQ,_mB){this.setCVId(_mB);this._jA=_nL;this.m_oLstChoices=_os;this.m_oSubmit=_rp;this._jx=_nF;this._l1=false;this._dx=_qW;this._k0=_tY;if(_qg){this._iT=_qg;}if(_tQ){this._fn=_tQ;}this.checkData();if(_s7){this._dJ=_s7;this.resizeList();}this.checkInsertRemove();};CMultipleIntervalPicker.prototype=new CPromptControl();function CMultipleIntervalPicker_addNoUpdate(_qk,_nV,_rF){_qk=sDecodeU003(_qk);_nV=sDecodeU003(_nV);if(_rF==true){this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nV,true,true);}else{this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nV,false,false);}};function CMultipleIntervalPicker_update(){this.checkData();this.resizeList();this.resizeList();this.checkInsertRemove();};function CMultipleIntervalPicker_selectAll(){for(var i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=true;}this.checkData();this.checkInsertRemove();};function CMultipleIntervalPicker_deSelectAll(){for(var i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=false;}this.checkData();this.checkInsertRemove();};function CMultipleIntervalPicker_insert(){var _yT=this._jA.sGetInterval();var _IR=this._jA.sGetFormatInterval();this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_IR,_yT,false,false);this.checkData();this.resizeList();this.resizeList();};function CMultipleIntervalPicker_remove(){this.removeSelectedChoices();};function CMultipleIntervalPicker_preProcess(){var i=0;if(this._dx==P_ak){var _Lf=P_ai;if(this.m_oLstChoices.options.length>0){for(i=0;i<this.m_oLstChoices.options.length;i++){_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(this.m_oLstChoices.options[i].text)+'"';_Lf+=' useValue="'+sXmlEncode(this.m_oLstChoices.options[i].value)+'"';if(this.m_oLstChoices.options[i].selected==true){_Lf+=' selected="true" />';}else{_Lf+=' selected="false" />';}}}addSelectChoices(this.m_oSubmit,_Lf);}else{for(i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=true;}}};function CMultipleIntervalPicker_checkData(){if((this._jx==true)&&(this.m_oLstChoices.options.length===0)){this._l1=false;this.checkFail();return false;}else{this._l1=true;this.checkPass();return true;}};function CMultipleIntervalPicker_resizeList(){if(this._dJ){this.m_oLstChoices.style.width='auto';if(this._dJ.width<200){this.m_oLstChoices.style.width='200px';}}};function CMultipleIntervalPicker_checkInsertRemove(){if(this._iT){if((this._jA.getValid()==true)&&this._jA.hasValue()){this._iT.disabled=false;}else{this._iT.disabled=true;this._iT.className="clsInsertRemoveButton";}}if(this._fn){if(this.m_oLstChoices.selectedIndex==-1){this._fn.disabled=true;this._fn.className="clsInsertRemoveButton";}else{this._fn.disabled=false;}}};CMultipleIntervalPicker.prototype.addNoUpdate=CMultipleIntervalPicker_addNoUpdate;CMultipleIntervalPicker.prototype.update=CMultipleIntervalPicker_update;CMultipleIntervalPicker.prototype.selectAll=CMultipleIntervalPicker_selectAll;CMultipleIntervalPicker.prototype.deSelectAll=CMultipleIntervalPicker_deSelectAll;CMultipleIntervalPicker.prototype.insert=CMultipleIntervalPicker_insert;CMultipleIntervalPicker.prototype.remove=CMultipleIntervalPicker_remove;CMultipleIntervalPicker.prototype.preProcess=CMultipleIntervalPicker_preProcess;CMultipleIntervalPicker.prototype.checkData=CMultipleIntervalPicker_checkData;CMultipleIntervalPicker.prototype.resizeList=CMultipleIntervalPicker_resizeList;CMultipleIntervalPicker.prototype.checkInsertRemove=CMultipleIntervalPicker_checkInsertRemove;function CMultipleDateTimePicker(_tK,_os,_rp,_nF,_qW,_tY,_s7,_qg,_tQ,_mB){this.setCVId(_mB);this._lS=_tK;this.m_oLstChoices=_os;this.m_oSubmit=_rp;this._jx=_nF;this._l1=false;this._dx=_qW;this._k0=_tY;if(_qg){this._iT=_qg;}if(_tQ){this._fn=_tQ;}this.checkData();if(_s7){this._dJ=_s7;this.resizeList();}this.checkInsertRemove();};CMultipleDateTimePicker.prototype=new CPromptControl();function CMultipleDateTimePicker_addNoUpdate(_qk,_nV,_rF){_qk=sDecodeU003(_qk);_nV=sDecodeU003(_nV);if(_rF==true){this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nV,true,true);}else{this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nV,false,false);}};function CMultipleDateTimePicker_update(){this.checkData();this.resizeList();this.resizeList();this.checkInsertRemove();};function CMultipleDateTimePicker_selectAll(){for(var i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=true;}this.checkData();};function CMultipleDateTimePicker_deSelectAll(){for(var i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=false;}this.checkData();};function CMultipleDateTimePicker_insert(){var _qk=this._lS.sGetFormatDateTime();var _nJ=P_ai;if(this._dx==P_ak){_nJ=this._lS.sGetXSDValue();}else{_nJ=this._lS.sGetSQLDateTime();}this.m_oLstChoices.options[this.m_oLstChoices.options.length]=new Option(_qk,_nJ,false,false);this.checkData();this.resizeList();this.resizeList();};function CMultipleDateTimePicker_remove(){this.removeSelectedChoices();};function CMultipleDateTimePicker_preProcess(){var i=0;if(this._dx==P_ak){var _Lf=P_ai;if(this.m_oLstChoices.options.length>0){for(i=0;i<this.m_oLstChoices.options.length;i++){_Lf+='<selectOption';_Lf+=' displayValue="'+sXmlEncode(this.m_oLstChoices.options[i].text)+'"';_Lf+=' useValue="'+sXmlEncode(this.m_oLstChoices.options[i].value)+'"';if(this.m_oLstChoices.options[i].selected==true){_Lf+=' selected="true" />';}else{_Lf+=' selected="false" />';}}}addSelectChoices(this.m_oSubmit,_Lf);}else{for(i=0;i<this.m_oLstChoices.options.length;i++){this.m_oLstChoices.options[i].selected=true;}}};function CMultipleDateTimePicker_checkData(){if((this._jx==true)&&(this.m_oLstChoices.options.length===0)){this._l1=false;this.checkFail();return false;}else{this._l1=true;this.checkPass();return true;}};function CMultipleDateTimePicker_resizeList(){if(this._dJ){this.m_oLstChoices.style.width='auto';if(this._dJ.width<200){this.m_oLstChoices.style.width='200px';}}};function CMultipleDateTimePicker_checkInsertRemove(){if(this._iT){if((this._lS.getValid()==true)&&(this._lS.hasValue())){this._iT.disabled=false;}else{this._iT.disabled=true;this._iT.className="clsInsertRemoveButton";}}if(this._fn){if(this.m_oLstChoices.selectedIndex==-1){this._fn.disabled=true;this._fn.className="clsInsertRemoveButton";}else{this._fn.disabled=false;}}};CMultipleDateTimePicker.prototype.addNoUpdate=CMultipleDateTimePicker_addNoUpdate;CMultipleDateTimePicker.prototype.update=CMultipleDateTimePicker_update;CMultipleDateTimePicker.prototype.selectAll=CMultipleDateTimePicker_selectAll;CMultipleDateTimePicker.prototype.deSelectAll=CMultipleDateTimePicker_deSelectAll;CMultipleDateTimePicker.prototype.insert=CMultipleDateTimePicker_insert;CMultipleDateTimePicker.prototype.remove=CMultipleDateTimePicker_remove;CMultipleDateTimePicker.prototype.preProcess=CMultipleDateTimePicker_preProcess;CMultipleDateTimePicker.prototype.checkData=CMultipleDateTimePicker_checkData;CMultipleDateTimePicker.prototype.resizeList=CMultipleDateTimePicker_resizeList;CMultipleDateTimePicker.prototype.checkInsertRemove=CMultipleDateTimePicker_checkInsertRemove;function CPromptButton(_ut,_pP,_uw,_mB){this.setCVId(_mB);this._fU=_ut;this._iJ=_pP;this._ko=_uw;this.draw();};CPromptButton.prototype=new CPromptControl();function CPromptButton_getType(){return this._iJ;};function CPromptButton_setEnabled(_uw){this._ko=_uw;this.draw();};function CPromptButton_draw(){if(typeof this._fU.disabled!=P_cD){if(this._ko==false){this._fU.disabled=true;PRMTUtils._h6(this._fU,"bph");PRMTUtils._hi(this._fU,"bpd");}else{this._fU.disabled=false;PRMTUtils._h6(this._fU,"bpd");}this._ic=this._fU.onmouseover;this._kD=this._fU.onmouseout;if(this._fU.disabled){this._fU.onmouseover=null;this._fU.onmouseout=null;}else{this._fU.onmouseover=this._ic;this._fU.onmouseout=this._kD;}}};CPromptButton.prototype.getType=CPromptButton_getType;CPromptButton.prototype.setEnabled=CPromptButton_setEnabled;CPromptButton.prototype.draw=CPromptButton_draw;function promptButtonCancel(s){if(typeof cancel!=P_cD){cancel();return;}if(_dY('cancel',s)){return;}var _Ff=s;if(_Ff==P_ai){if(typeof getConfigFrame!=P_cD){var tf=getConfigFrame();if(tf){var _IL=tf.applicationName;if((_IL=="QS")&&(typeof tf.cancelPromptPage!=P_cD)){tf.cancelPromptPage();return;}else{_Ff=tf.frameBackURL;if((_Ff==null)||(_Ff==P_ai)){tf.close();}else{tf.location=_Ff;}}}}if(typeof document.forms["formWarpRequest"]!=P_cD){var _Lo=document.forms["formWarpRequest"].elements["ui.backURL"];if((typeof _Lo!=P_cD)&&(_Lo.value!=P_ai)){_Ff=_Lo.value;}}}if(_Ff==P_ai){self.history.back();}else{self.location=_Ff;}};function promptButtonBack(){if(_dY('back')){return;}SetPromptContinue('true');SetPromptMethod(K_ACTION_BACK);SetPromptControl(P_aB);};function promptButtonNext(){if(_dY('next')){return;}SetPromptContinue('true');SetPromptMethod(K_ACTION_FORWARD);SetPromptControl(P_aB);};function promptButtonFinish(){if(_dY('finish')){return;}SetPromptContinue('false');SetPromptMethod(K_ACTION_FORWARD);SetPromptControl(P_aB);};function promptButtonOK(){if(_dY('ok')){return;}SetPromptMethod(K_ACTION_FORWARD);SetPromptControl(P_aB);};function promptAction(_o3,_to){if(_dY(_o3,_to)||_jq()){return false;}switch(_o3){case K_ACTION_BACK:promptButtonBack();break;case K_ACTION_CANCEL:promptButtonCancel(_to);break;case K_ACTION_NEXT:promptButtonNext();break;case K_ACTION_FINISH:promptButtonFinish();break;case K_ACTION_REPROMPT:SetPromptControl(_o3);break;default:promptButtonOK();}_k8(true);};function promptButtonNotify(){if(typeof bVerifyPageNavigation!=P_cD){var _yz=bVerifyPageNavigation();notifyPageNavEnabled(_yz);}};function bVerifyPageNavigation(){var _CR=true;if(typeof preProcessControlArray==P_cZ){var _Kw=preProcessControlArray.length;var k=0;for(k=0;k<_Kw;k++){var _Ck=eval(preProcessControlArray[k]);if((typeof _Ck.getValid==P_c7)&&!_Ck.getValid()){_CR=false;break;}}}return _CR;};function notifyPageNavEnabled(_uw){if(typeof pageNavigationObserverArray==P_cZ){var _Kw=pageNavigationObserverArray.length;var _xy=false;var _Ck=null;var _zb=null;for(var j=0;j<_Kw;j++){_Ck=eval(pageNavigationObserverArray[j]);_zb=_Ck.getType();if(_zb==PROMPTBUTTON_FINISH){_xy=true;break;}}for(var k=0;k<_Kw;k++){_Ck=eval(pageNavigationObserverArray[k]);_zb=_Ck.getType();if(_uw==false){if((_zb==PROMPTBUTTON_NEXT)||(_zb==PROMPTBUTTON_OK)||(_zb==PROMPTBUTTON_FINISH)){_Ck.setEnabled(false);}}else{if(_zb==PROMPTBUTTON_FINISH){if(bCanFinish==true){_Ck.setEnabled(true);}else{_Ck.setEnabled(false);}}else if(_zb==PROMPTBUTTON_NEXT){if((bNextPage==false)&&(_xy==true)){_Ck.setEnabled(false);}else{_Ck.setEnabled(true);}}else if(_zb==PROMPTBUTTON_OK){_Ck.setEnabled(true);}}}}};var PROMPTBUTTON_OK=0;var PROMPTBUTTON_CANCEL=1;var PROMPTBUTTON_BACK=2;var PROMPTBUTTON_NEXT=3;var PROMPTBUTTON_FINISH=4;var PROMPTBUTTON_REPROMPT=5;function CSelectDataSourceSignon(_mj,_se,_sd,_tj,_rp,_vB,_qW,_m5,_tJ,_mk,_mB,_tq,_u5){this.setCVId(_mB);this._fv=_mj;this._e1=_se;this._eZ=_sd;this._dp=_tj;this.m_oSubmit=_rp;this._l1=false;this._dx=_qW;this._kl=true;this._kc=(_u5===true);this._d6=(_mk===true);if(typeof _m5!=P_cD){this._ls=_m5;}else{this._ia=null;}if(typeof _tJ!=P_cD){this._eQ=_tJ;}else{this._eQ=null;}this.m_sPromptId=_tq;this._lw=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);if(this._eQ!=null){this._kF=new Image();this._kF.src=this._lw+"/prompting/images/error_timed_small_off.gif";this._kx=new Image();this._kx.src=this._lw+"/prompting/images/error_timed_small.gif";}if(_vB){if(_vB.value=='false'){this._kl=false;}}PRMTUtils._hj(this._eZ,"keypress",this.keyPress.bind(this));PRMTUtils._hj(this._dp,"keypress",this.keyPress.bind(this));this.checkData();};CSelectDataSourceSignon.prototype=new CPromptControl();function CSelectDataSourceSignon_checkPass(){if((this._eQ!=null)&&(this._eQ.src!=this._kF.src)){this._eQ.src=this._kF.src;}this.notify(gPASS,this);};function CSelectDataSourceSignon_checkFail(){if(this._eQ!=null){this._eQ.src=this._kx.src+'?'+Math.random();}this.notify(gFAIL,this);};function CSelectDataSourceSignon_checkData(){this._l1=true;if(this._ls!=null){this._l1=false;if(this._ls.checked==true){this._l1=true;}else{for(var i=0;i<this._ls.length;i++){if(this._ls[i].checked){this._l1=true;}}}}if(this._l1){this.checkPass();}else{this.checkFail();}this.notify((this._l1?gPASS:gFAIL),this);return this._l1;};function CSelectDataSourceSignon_preProcess(){if(this._dx==P_ak&&this.m_oSubmit){this.m_oSubmit.value='<selectChoices><selectOption useValue="'+sXmlEncode(this.sGetValue())+'" selected="true"/></selectChoices>';}};function CSelectDataSourceSignon_sGetPersistValue(){var _v2=P_ai;var _Jx=$("oPersist"+this.m_sPromptId);if(_Jx&&_Jx.checked){_v2+=' persist="true"';}return _v2;};function CSelectDataSourceSignon_sGetValue(){var _E0=P_ai;var _Gr=this.sGetPersistValue();_E0+="<credential"+_Gr+">";var _F8=P_ai;var _Iy=$("oConnectionName"+this.m_sPromptId);if(_Gr.length>0&&_Iy&&_Iy.value){_F8=' name="'+_Iy.value+'"';}_E0+="<dataSourceConnection"+_F8+">";if(this._fv!=null){_E0+=this._fv.value;}_E0+="</dataSourceConnection>";if(this._kl==true){_E0+="<dataSourceSignon>";if(this._e1!=null){_E0+=this._e1.value;}_E0+="</dataSourceSignon>";_E0+="<username/>";_E0+="<password/>";}else{_E0+="<dataSourceSignon/>";_E0+="<username>";if(this._eZ!=null){_E0+=this._eZ.value;}_E0+="</username>";if(this._d6){_E0+="<cubePassword>";if(this._dp!=null){_E0+=sXmlEncode(this._dp.value);}_E0+="</cubePassword>";}else{_E0+="<password>";if(this._dp!=null){_E0+=sXmlEncode(this._dp.value);}_E0+="</password>";}}_E0+="</credential>";return _E0;};function CSelectDataSourceSignon_setDataSourceConnection(s){this._fv.value=s;};function CSelectDataSourceSignon_setDataSourceSignon(s){this._e1.value=s;};function CSelectDataSourceSignon_setbUseSignon(_uT){if(_uT=='true'){this._kl=true;}else if(_uT=='false'){this._kl=false;}else{this._kl=_uT;}};function CSelectDataSourceSignon_keyPress(){var _nm=(arguments&&arguments.length?arguments[arguments.length-1]:null);if(_nm){var _rx=(_nm.keyCode)?_nm.keyCode:_nm.which;if(_rx=='13'){var _qy=this.getCV();if(_qy&&(typeof _qy.canSubmitPrompt==P_c7)&&_qy.canSubmitPrompt()&&(typeof _qy.promptAction==P_c7)){if(this._kc==true){_qy.promptAction(K_ACTION_NEXT);}else{_qy.promptAction(K_ACTION_FINISH);}}return PRMTUtils.F_StopEvent(_nm);}}return true;};CSelectDataSourceSignon.prototype.preProcess=CSelectDataSourceSignon_preProcess;CSelectDataSourceSignon.prototype.checkPass=CSelectDataSourceSignon_checkPass;CSelectDataSourceSignon.prototype.checkFail=CSelectDataSourceSignon_checkFail;CSelectDataSourceSignon.prototype.checkData=CSelectDataSourceSignon_checkData;CSelectDataSourceSignon.prototype.keyPress=CSelectDataSourceSignon_keyPress;CSelectDataSourceSignon.prototype.sGetPersistValue=CSelectDataSourceSignon_sGetPersistValue;CSelectDataSourceSignon.prototype.sGetValue=CSelectDataSourceSignon_sGetValue;CSelectDataSourceSignon.prototype.setDataSourceConnection=CSelectDataSourceSignon_setDataSourceConnection;CSelectDataSourceSignon.prototype.setDataSourceSignon=CSelectDataSourceSignon_setDataSourceSignon;CSelectDataSourceSignon.prototype.setbUseSignon=CSelectDataSourceSignon_setbUseSignon;function genTextBoxHTML(_tq,_uA,_qw,_sA,_qW,_pe,_oM,_nF,_qM,_rz,_uC,_oV,_mI,_pn,_sM,_te,_tE,_l6,_l5,_p4,_l7){var _mU=_tq;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_tq,formName:_uA,parameterName:_qw,allowZero:_uC,dataType:_sA,defaultValue:_pe,endValue:_l7,initialState:_oM,hideAdornments:_oV,hideText:_mI,maxLength:_p4,multiLine:_rz,multi:_sM,_Hl:_te,readOnly:_tE,required:_nF,showCondition:_l6,showThousandSeparator:_qM,style:_l5,submitType:_qW,supressExtraPromptNames:_pn};}if(_mU.multi){if(!_mU.range){genTextBoxMultipleHTML(_mU);}else{_mU.startValue=_mU.defaultValue;genTextBoxRangeMultipleHTML(_mU);}}else{if(_mU.range){_mU.startValue=_mU.defaultValue;genTextBoxRangeHTML(_mU);}else{genTextBoxSingleHTML(_mU);}}};function genTextBoxSingleHTML(_md,_og,_nI,_uR,_uB,_tl,_p8,_tC,_vg,_ob,_tw,_nZ,_sy,_mr,_mN,_sb){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,allowZero:_ob,dataType:_uR,defaultValue:_tl,hideAdornments:_tw,hideText:_nZ,maxLength:_mN,multiLine:_vg,readOnly:_sb,required:_p8,showThousandSeparator:_tC,style:_mr,submitType:_uB,supressExtraPromptNames:_sy};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _Gh="document."+_uA+".imgTest"+_tq;if(_mU.hideAdornments){_Gh=null;}var _Jr="_textEditBox"+_tq;var _l5=_mU.style;if(_l5.match(/margin/i)===null){_l5+=";margin:0px;";}var _DD=P_ai;if(cssParser(_mU.style,'width')!=P_ai){_DD='width:100%;';}var _yx=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai)+"<fieldset class='clsFieldSet' style='"+_DD+cssParser(_mU.style,gsCSS_DEFAULT_STYLE+((_mU.multi==true||_mU.range==true)?",width":P_ai))+"'>"+"<table cellpadding='0' cellspacing='0' border='0' style='"+_DD+"'>"+"<tr>";if(!_mU.hideAdornments){_yx+="<td valign='top' width='10px'>"+"<table cellpadding='0' cellspacing='0' border='0'>";if(_mU.required){_yx+="<tr>"+"<td valign='top'><img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/></td>"+"</tr>";}_yx+="<tr>"+"<td valign='middle'><img id='imgTest"+_tq+"' name='imgTest"+_tq+"' class='clsErrorRequired' src='"+_Eb+"/prompting/images/error_timed_small_off.gif' align='bottom' height='10' width='10' border='0'/></td>"+"</tr>"+"</table>"+"</td>";}_yx+="<td id='textEditBox"+_tq+"' style='"+_DD+"'>";var _p4=(_mU.maxLength!==P_ai&&!isNaN(_mU.maxLength)?" maxlength='"+_mU.maxLength+"'":P_ai);var _Js=" class='clsTextWidget pt'"+" style='"+_DD+cssParser(_l5,'color,font,text')+"'"+" onkeyup='textBox"+_tq+".checkData();preventSubmitEvent(event)'"+" onKeyPress='return textBox"+_tq+".keyPress(event)'"+" onblur='textBox"+_tq+".lostFocus(); textBox"+_tq+".endCheckDataInterval()'"+" oncontextmenu='textBox"+_tq+".startCheckDataInterval(100)'";if(_mU.hideText){_yx+="<input type='password' autocomplete='off' name='"+_Jr+"'"+_Js+_p4+"/>";}else if(!_mU.multiLine){_yx+="<input type='text' name='"+_Jr+"'"+_Js+_p4+"/>";}else{_yx+="<textarea name='"+_Jr+"' rows='7' cols='20'"+_Js+"></textarea>";}_yx+="</td>"+"</tr>"+"</table>"+"</fieldset>";renderPromptControlHTML("textBox"+_tq,_yx);var _yD=getCVInstance(_mU);var _BY="this.textBox"+_tq+" = new CText(document.forms[\""+_uA+"\"].elements[\""+alterDoubleQuote(_Bo)+"\"], document.forms[\""+_uA+"\"].elements[\""+_Jr+"\"],"+_Gh+", '"+_mU.dataType+"', "+'"'+_mU.defaultValue.replace(/\\/g,"\\\\")+'"'+", "+_mU.required+", '"+_mU.submitType+"', "+_mU.multiLine+", "+_mU.showThousandSeparator+", "+_mU.allowZero+", document.getElementById('textEditBox"+_tq+"'), 'textBox"+_tq+"', "+_mU.readOnly+", '"+getCVId(_mU)+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('textBox"+_tq+"');";executePromptControlJS(_BY);};function genTextBoxMultipleHTML(_md,_og,_nI,_uR,_uB,_tl,_p8,_tC,_vg,_ob,_tw,_nZ,_sy,_l4,_mr,_mN){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,allowZero:_ob,dataType:_uR,defaultValue:_tl,hideAdornments:_tw,hideText:_nZ,maxLength:_mN,multiLine:_vg,required:_p8,showCondition:_l4,showThousandSeparator:_tC,style:_mr,submitType:_uB,supressExtraPromptNames:_sy};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _Jr=_Bo;if(_mU.submitType==P_ak){_Jr="_oLstChoices"+_tq;}var _DD=P_ai;var _Ab=P_ai;if(cssParser(_mU.style,"width")!=P_ai){_DD='width:100%;';_Ab='table-layout:fixed;';}var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<fieldset class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table style='"+_DD+"' border='0' cellpadding='0' cellspacing='0'>"+"<tr><td colspan='3'></td><td class='clsControlLabel pc' style='vertical-align:bottom;>";if(_mU.showCondition){_yx+=PMT_UIM_NEWVALUE;}_yx+="</td></tr><tr>";if(_mU.showCondition){_yx+="<td class='clsControlLabel pc' style='padding:0px 0px 5px 5px;'>";}else{_yx+="<td class='clsControlLabel pc'>";}if(!_mU.hideAdornments&&_mU.required){_yx+="<img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10px' width='10px' border='0'/>";}if(_mU.showCondition){_yx+=PMT_UIM_CONDITION+"<br/>"+"<select name='oExcludeSelectedValues'>"+"<option value='false'>"+PMT_UIM_SHOWONLY+"</option>"+"<option value='true'>"+PMT_UIM_DONOTSHOW+"</option>"+"</select>";}else{_yx+=PMT_UIM_CHOICES;}_yx+="</td></tr>"+"<tr><td valign='top' id='textBoxSingle"+_tq+"' style='"+_DD+"'></td>"+"<td width='5px'><img src='"+_Eb+"/prompting/images/spacer.gif' align='top' height='10' width='5' border='0'/></td>"+"<td valign='top' class='clsButtonLeftRightPadding' ><table border='0' cellpadding='2' cellspacing='0'>"+"<tr>"+"<td><table border='0' cellpadding='2' cellspacing='0'>"+"<tr>"+"<td id='getInsertButton"+_tq+"'></td>"+"</tr>"+"<tr>"+"<td id='getRemoveButton"+_tq+"'></td>"+"</tr>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='90' height='1'/></td>"+"</tr>"+"</table></td>"+"</tr></table>"+"</td>"+"<td valign='top'><table border='0' cellspacing='0' cellpadding='0'>"+"<tr>"+"<td><select name='"+_Jr+"' id='"+_Jr+"' style='"+_Ab+cssParser(_mU.style,'color,font,text,height')+";width:100%;overflow:scroll;' class='clsChoicesListbox pv' multiple='multiple' size='7' onmouseup=\"setTimeout('multipleText"+_tq+".checkInsertRemove()', 100);\" onkeyup='multipleText"+_tq+".catchDeleteKey(event.keyCode);'></select></td>"+"</tr>"+"<tr>"+"<td><div id='feedback"+_tq+"' class='clsFeedbackWidget'><img name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr>"+"<tr>"+"<td align='right'>"+"<a href='javascript:multipleText"+_tq+".selectAll();' class='clsLink pl'>"+PMT_UIM_SELECTALL+"</a>"+" "+"<a href='javascript:multipleText"+_tq+".deSelectAll()' class='clsLink pl'>"+PMT_UIM_DESELECTALL+"</a>"+"</td>"+"</tr></table>"+"</td></tr></table>"+"</fieldset>";renderPromptControlHTML("textBox"+_tq,_yx);var _yD=getCVInstance(_mU);var _BY="genTextBoxSingleHTML("+generatePromptProperties(_mU,{id:"Single"+_tq,formName:_uA,parameterName:"T_"+_mU.parameterName,submitType:(_mU.submitType==P_cM?_mU.submitType:P_ai),defaultValue:P_ai,required:false,style:cssParser(_mU.style,"background,color,font-weight,font-style,font-family,text-decoration,font-size")+_DD,suppressExtraPromptNames:true})+");"+"genInsertButtonHTML('"+_tq+"', 'multipleText"+_tq+".insert()', 'insertButton"+_tq+"');"+"genRemoveButtonHTML('"+_tq+"', 'multipleText"+_tq+".remove()', 'removeButton"+_tq+"');"+"this.multipleText"+_tq+" = new CMultipleTextPicker(textBoxSingle"+_tq+", document.forms['"+_uA+"'].elements['"+_Jr+"'], document.forms['"+_uA+"'].elements['"+_Bo+"'], "+_mU.required+", '"+_mU.submitType+"', document.getElementById('feedback"+_tq+"'), document.sizer"+_tq+", document.getElementById('insertButton"+_tq+"'), document.getElementById('removeButton"+_tq+"'), '"+getCVId(_mU)+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('multipleText"+_tq+"');"+_yD+"multipleObserverArray = "+_yD+"multipleObserverArray.concat('multipleText"+_tq+"');";executePromptControlJS(_BY);};function genTextBoxRangeHTML(_md,_og,_nI,_uR,_uB,_st,_vl,_sY,_p8,_tC,_vg,_ob,_tw,_nZ,_sy,_mr,_mN){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,allowZero:_ob,dataType:_uR,endValue:_vl,initialState:_sY,hideAdornments:_tw,hideText:_nZ,maxLength:_mN,multiLine:_vg,required:_p8,showThousandSeparator:_tC,startValue:_st,style:_mr,submitType:_uB,supressExtraPromptNames:_sy};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _yx=P_ai;var _DD=P_ai;if(cssParser(_mU.style,"width")!=P_ai){_DD='width:100%;';}if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<fieldset class='clsFieldSet' style='"+_DD+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table border='0' cellspacing='0' cellpadding='0' style='"+_DD+cssParser(_mU.style,"height")+"'>"+"<tr>"+"<td class='clsControlLabel pc' colspan='2' nowrap='nowrap'>"+PMT_RNG_FROM+"</td>"+"</tr>"+"<tr>"+"<td nowrap='nowrap'> </td>"+"<td style='"+_DD+"' nowrap='nowrap' id='tdRangeFrom"+_tq+"'>"+"<table cellpadding='0' cellspacing='0' border='0'>"+"<tr>"+"<td valign='top'>";if(!_mU.required){_yx+="<input name='fromValue"+_tq+"' type='radio' onclick='range"+_tq+".rangeNotify()'/>"+"</td>"+"<td style='padding-left:10px;'"+" onClick='range"+_tq+".fromGotFocus();'"+" onkeyup='range"+_tq+".fromCheckRadioState(event);'"+" onkeypress='if(event)range"+_tq+".fromKeyPress(event.keyCode);'>";}_yx+="<div style='"+_DD+"' id='textBoxrange_from"+_tq+"' nowrap='nowrap'></div>"+"</td>"+"</tr>";if(!_mU.required){_yx+="<tr>"+"<td nowrap='nowrap'>"+"<input value='lowest' name='fromValue"+_tq+"' type='radio' checked='true' onclick='range"+_tq+".rangeNotify()'/>"+"</td>"+"<td class='clsReadOnlyText pe' style='padding-left:10px;' onclick=\"document.forms['"+_uA+"'].elements['fromValue"+_tq+"'][1].checked=true;range"+_tq+".rangeNotify()\">"+PMT_RNG_LOWEST_VALUE+"</td>"+"</tr>";}_yx+="</table>"+"</td>"+"</tr>"+"<tr>"+"<td nowrap='nowrap' colspan='2'> </td>"+"</tr>"+"<tr>"+"<td class='clsControlLabel pc' colspan='2' nowrap='nowrap'>"+PMT_RNG_TO+"</td>"+"</tr>"+"<tr>"+"<td nowrap='nowrap'> </td>"+"<td style='"+_DD+"' nowrap='nowrap' id='tdRangeTo"+_tq+"'>"+"<table cellpadding='0' cellspacing='0' border='0'>"+"<tr>"+"<td valign='top'>";if(!_mU.required){_yx+="<input name='toValue"+_tq+"' type='radio' onclick='range"+_tq+".rangeNotify()'/>"+"</td>"+"<td style='padding-left:10px;'"+" onClick='range"+_tq+".toGotFocus();'"+" onkeyup='range"+_tq+".toCheckRadioState(event);'"+" onkeypress='if(event)range"+_tq+".toKeyPress(event.keyCode);'>";}_yx+="<div style='"+_DD+"' id='textBoxrange_to"+_tq+"' nowrap='nowrap'></div>"+"</td>"+"</tr>";if(!_mU.required){_yx+="<tr>"+"<td nowrap='nowrap'>"+"<input value='highest' name='toValue"+_tq+"' type='radio' checked='true' onclick='range"+_tq+".rangeNotify()'/>"+"</td>"+"<td class='clsReadOnlyText pe' style='padding-left:10px;' onclick=\"document.forms['"+_uA+"'].elements['toValue"+_tq+"'][1].checked=true;range"+_tq+".rangeNotify()\">"+PMT_RNG_HIGHEST_VALUE+"</td>"+"</tr>";}_yx+="</table>"+"</td>"+"</tr>"+"</table>"+"</fieldset>";renderPromptControlHTML("textBox"+_tq,_yx);var _BY="genTextBoxSingleHTML("+generatePromptProperties(_mU,{id:"range_from"+_tq,formName:_uA,parameterName:"range_from"+_mU.parameterName,submitType:(_mU.submitType==P_cM?_mU.submitType:P_ai),defaultValue:_mU.startValue,multiLine:false,allowZero:true,hideText:false,hideAdornments:true,style:cssParser(_mU.style,'background,color,font,text')+_DD,suppressExtraPromptNames:true})+");"+"genTextBoxSingleHTML("+generatePromptProperties(_mU,{id:"range_to"+_tq,formName:_uA,parameterName:"range_to"+_mU.parameterName,submitType:(_mU.submitType==P_cM?_mU.submitType:P_ai),defaultValue:_mU.endValue,multiLine:false,hideAdornments:true,allowZero:true,hideText:false,style:cssParser(_mU.style,'background,color,font,text')+_DD,suppressExtraPromptNames:true})+");";if(_mU.required){_BY+="this.range"+_tq+" = new CRange(document.forms['"+_uA+"'].elements['"+alterDoubleQuote(_Bo)+"'], null, textBoxrange_from"+_tq+", null, null, textBoxrange_to"+_tq+", null, '"+_mU.dataType+"', true, '"+_mU.submitType+"', null, '"+getCVId(_mU)+"');";}else{_BY+="this.range"+_tq+" = new CRange(document.forms['"+_uA+"'].elements['"+alterDoubleQuote(_Bo)+"'], document.forms['"+_uA+"'].elements['fromValue"+_tq+"'][0], textBoxrange_from"+_tq+", null, document.forms['"+_uA+"'].elements['toValue"+_tq+"'][0], textBoxrange_to"+_tq+", null, '"+_mU.dataType+"', false, '"+_mU.submitType+"', "+_mU.initialState+", '"+getCVId(_mU)+"');";}var _yD=getCVInstance(_mU);_BY+=_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('range"+_tq+"');"+_yD+"rangeObserverArray = "+_yD+"rangeObserverArray.concat('range"+_tq+"');";executePromptControlJS(_BY);};function genTextBoxRangeMultipleHTML(_md,_og,_nI,_uR,_uB,_st,_vl,_sY,_p8,_tC,_vg,_ob,_tw,_nZ,_sy,_mr,_mN){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,allowZero:_ob,dataType:_uR,endValue:_vl,initialState:_sY,hideAdornments:_tw,hideText:_nZ,maxLength:_mN,multiLine:_vg,required:_p8,showThousandSeparator:_tC,startValue:_st,style:_mr,submitType:_uB,supressExtraPromptNames:_sy};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _Ab=P_ai;var _DD=P_ai;if(cssParser(_mU.style,"width")!=P_ai){_DD='width:100%;';_Ab="table-layout:fixed;";}var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<fieldset class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>";_yx+="<table cellpadding='0' cellspacing='0' border='0' style='"+_Ab+cssParser(_mU.style,"height")+"'>"+"<tr>"+"<td valign='top' align='left' id='textBoxr_"+_tq+"' style='"+_DD+"'></td>"+"<td valign='top' class='clsButtonLeftRightPadding' >"+"<table border='0' cellpadding='0' cellspacing='0'>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='1' height='16'/></td>"+"</tr>"+"</table>"+"<table border='0' cellpadding='2' cellspacing='0'>"+"<tr>"+"<td id='getInsertButton"+_tq+"'></td>"+"</tr>"+"<tr>"+"<td id='getRemoveButton"+_tq+"'></td>"+"</tr>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='90' height='1'/></td>"+"</tr>"+"</table>"+"</td>"+"<td valign='top'>"+"<table border='0' cellspacing='0' cellpadding='0' width='100%'>"+"<tr>"+"<td class='clsControlLabel pc'>";if(_mU.required){_yx+="<img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/>";}_yx+=PMT_UIM_CHOICES+"</td>"+"</tr>"+"<tr>"+"<td>"+"<select name='_oLstChoices"+_tq+"' style='"+_Ab+cssParser(_mU.style,'color,font,text,height')+"' class='clsChoicesListbox pv' multiple='multiple' onmouseup=\"setTimeout('multipleRange"+_tq+".checkInsertRemove()', 100);\" size='7' onkeyup='multipleRange"+_tq+".catchDeleteKey(event.keyCode)'></select>"+"</td>"+"</tr>"+"<tr>"+"<td>"+"<div id='multipleRangeFeedback"+_tq+"' class='clsFeedbackWidget'>"+"<img name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/>"+"</div>"+"</td>"+"</tr>"+"<tr>"+"<td align='right' nowrap>"+"<a href='javascript:multipleRange"+_tq+".selectAll()' class='clsLink pl'>"+PMT_UIM_SELECTALL+"</a>"+" "+"<a href='javascript:multipleRange"+_tq+".deSelectAll()' class='clsLink pl'>"+PMT_UIM_DESELECTALL+"</a>"+"</td>"+"</tr>"+"</table>"+"</td>"+"</tr>"+"</table></fieldset>";renderPromptControlHTML("textBox"+_tq,_yx);var _yD=getCVInstance(_mU);var _BY="genTextBoxRangeHTML("+generatePromptProperties(_mU,{id:"r_"+_tq,formName:_uA,parameterName:"r_"+_mU.parameterName,startValue:P_ai,endValue:P_ai,style:cssParser(_mU.style,'background,color,font,text')+_DD,required:false,suppressExtraPromptNames:false})+");"+"genInsertButtonHTML('"+_tq+"', 'multipleRange"+_tq+".insertChoiceList()', 'insertButton"+_tq+"');"+"genRemoveButtonHTML('"+_tq+"', 'multipleRange"+_tq+".removeChoiceList()', 'removeButton"+_tq+"');"+"this.multipleRange"+_tq+" = new CMultipleRange(ranger_"+_tq+", document.forms['"+_uA+"'].elements['_oLstChoices"+_tq+"'], document.forms['"+_uA+"'].elements['"+_Bo+"'], "+_mU.required+", '"+_mU.submitType+"', document.getElementById('multipleRangeFeedback"+_tq+"'), document.sizer"+_tq+", '"+_tq+"', document.getElementById('insertButton"+_tq+"'), document.getElementById('removeButton"+_tq+"'), '"+getCVId(_mU)+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('multipleRange"+_tq+"');"+_yD+"multipleObserverArray = "+_yD+"multipleObserverArray.concat('multipleRange"+_tq+"');"+"multipleRange"+_tq+".initChoiceList();";executePromptControlJS(_BY);};function genSelectValueHTML(_tq,_uA,_qw,_qW,_si,_px,_pI,_oM,_oR,_nF,_oA,_oV,_pn,_sM,_te,_l5,_uV,_uP,_pV){var _mU=_tq;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_tq,formName:_uA,parameterName:_qw,submitType:_qW,autoSubmitType:_si,selectUI:_px,columnName:_pI,initialState:_oM,disabled:_oR,required:_nF,autoSubmit:_oA,hideAdornments:_oV,supressExtraPromptNames:_pn,multi:_sM,_Hl:_te,style:_l5,showParentDetails:_uV,numSelectOptions:_uP,alwaysShowGroupingBox:_pV};}if(_mU.multi&&_mU.range){genSelectValueRangeMultipleHTML(_mU);}else{if(_mU.range){genSelectValueRangeHTML(_mU);}else{genSelectValueSMHTML(_mU);}}};function cancelScroll(){window.event.cancelBubble=true;window.event.returnValue=false;};function genSelectValueSMHTML(_md,_og,_nI,_uB,_t2,_n6,_uy,_pO,_p8,_vM,_pN,_tw,_sy,_mr,_vw,_sm,_sn){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,autoSubmitType:_t2,selectUI:_n6,columnName:_uy,disabled:_pO,required:_p8,autoSubmit:_vM,multi:_pN,hideAdornments:_tw,supressExtraPromptNames:_sy,style:_mr,showParentDetails:_vw,numSelectOptions:_sm,alwaysShowGroupingBox:_sn};}var _tq=_mU.id;var _Bo="_"+_mU.parameterName;if(!_mU.supressExtraPromptNames){_Bo="p"+_Bo;}if(!verifyPromptId(_tq)||!verifyPromptId(_Bo)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _At=null;if(!_mU.hideAdornments){_At="document."+_uA+".imgTest"+_tq;}var _Jr=_Bo;var _l5=_mU.style;if(typeof _l5!=P_bJ){_l5=P_ai;}if(_mU.submitType==P_ak){_Jr="_oLstChoices"+_tq;}_Jr=jsEncodeStr(_Jr);var _EV="setTimeout('listBox"+_tq+".checkData()', 100);";if(_mU.autoSubmit){_EV="setTimeout('listBox"+_tq+".autoSubmit()', 100);";}var _DD=cssParser(_mU.style,"width");if(_DD!=P_ai&&_DD.match(/\s*width\s*:\s*\d+%/gi)){_DD="width:100%;";}else{_DD=P_ai;}var _yx=P_ai,_BY=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<fieldset class='clsFieldSet' style='"+_DD+cssParser(_mU.style,"background,border,margin,vertical-align,padding,overflow,visibility,float,display,align"+((_mU.multi==true||_mU.range==true)?",width":P_ai))+"'><table cellpadding='0' cellspacing='0' border='0' style='"+_DD+"'>"+"<tr>";if(!_mU.hideAdornments){if(!_DD){_yx+="<td valign='top' width='10px'><table cellpadding='0' cellspacing='0' border='0' width='10' height='20'>";if(_mU.required){_yx+="<tr>"+"<td valign='top'><img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/></td>"+"</tr>";}_yx+="<tr>"+"<td valign='middle'><img id='imgTest"+_tq+"' name='imgTest"+_tq+"' class='clsErrorRequired' src='"+_Eb+"/prompting/images/error_timed_small_off.gif' align='bottom' height='10' width='10' border='0'/></td>"+"</tr></table></td>";}}_yx+="<td style='"+_DD+"'>";var _yD=getCVInstance(_mU);if(_mU.multi){if(_mU.selectUI=="listBox"){_yx+="<table cellpadding='0' cellspacing='0' border='0' style='"+_DD+"'>"+"<tr>"+"<td>"+"<select id='selectList"+_tq+"' name="+'"'+_Jr+'"'+" size='11' multiple='multiple' class='clsListControl pv' onchange=\"setTimeout('listBox"+_tq+".checkData()', 100)\" style=\""+cssParser(_l5,'color,font,text,height'+((_mU.multi==false&&_mU.range==false)?",width":P_ai))+_DD+"\"";if(_mU.disabled){_yx+=" disabled='disabled'";}_yx+="></select></td>"+"</tr>"+"<tr>"+"<td><div id='feedback"+_tq+"' class='clsFeedbackWidget' style=\"min-width:200px; width:100%;\"><img class='clsFeedbackSpacer' name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr>"+"<tr id='selectListBottomRow"+_tq+"'";if(_mU.numSelectOptions==1&&!_mU.alwaysShowGroupingBox){_yx+=" style='display:none'";}_yx+=">"+"<td align='right' style=\"width:100%\" >"+"<a href='javascript:listBox"+_tq+".selectAll()' class='clsLink pl'><nobr style=\"text-align:right;vertical-align:super\">"+PMT_UIM_SELECTALL+"</nobr></a>"+" "+"<a href='javascript:listBox"+_tq+".deSelectAll()' class='clsLink pl'><nobr style=\"text-align:right;vertical-align:super\">"+PMT_UIM_DESELECTALL+"</nobr></a>"+"</td>"+"</tr>"+"</table>";_BY="this.listBox"+_tq+" = new CSelectValueSelectList(document.forms['"+_uA+"'].elements["+'"'+_Jr+'"'+"], document.forms['"+_uA+"'].elements["+'"'+jsEncodeStr(_Bo)+'"'+"], "+_At+", "+_mU.required+", '"+_mU.submitType+"', document.getElementById('feedback"+_tq+"'), document.sizer"+_tq+", "+_mU.disabled+", '"+_mU.autoSubmitType+"', '"+_tq+"', "+'"'+jsEncodeStr(_mU.parameterName)+'", "'+getCVId(_mU)+'");'+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('listBox"+_tq+"');";}else if(_mU.selectUI=="checkboxGroup"||_mU.selectUI=="radioGroup"){if(_l5.match(/\bheight\s*:/gi)){_l5+=";max-height:inherit;";}else{_l5+=";min-height:20px;";}_yx+="<table cellpadding='0' cellspacing='0' border='0' style='"+_DD+"'>"+"<tr>"+"<td><div style='"+_DD+cssParser(_mU.style,"font,text,color,max-height,min-height,height"+((_mU.range==false)?",width":P_ai))+"' id='selectList"+_tq+"'";if(_mU.numSelectOptions!=1||_mU.selectUI!="checkboxGroup"||_mU.alwaysShowGroupingBox){_yx+=" class='clsCheckBoxList pv'";}_yx+=" oldclass='clsCheckBoxList pv'></div></td>"+"</tr>"+"<tr>"+"<td><div id='feedback"+_tq+"' class='clsFeedbackWidget' style=\"min-width:200px;\"><img class='clsFeedbackSpacer' name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr>"+"<tr id='selectListBottomRow"+_tq+"'";if(_mU.numSelectOptions==1){_yx+=" style='display:none'";}_yx+=">"+"<td align='right' style=\"width:100%;white-space:nowrap;\">";if(_mU.showParentDetails){_yx+="<a id='showParentLink"+_tq+"' href='javascript:checkBoxList"+_tq+".showParentDetails(true)' class='clsLink pl'><nobr style=\"text-align:left;vertical-align:super\">"+PMT_UIM_SHOWPARENTDETAILS+"</nobr></a>"+" ";}_yx+="<a href='javascript:checkBoxList"+_tq+".selectAll()' class='clsLink pl'><nobr style=\"text-align:right;vertical-align:super;\">"+PMT_UIM_SELECTALL+"</nobr></a>"+" "+"<a href='javascript:checkBoxList"+_tq+".deSelectAll()' class='clsLink pl'><nobr style=\"text-align:right;vertical-align:super\">"+PMT_UIM_DESELECTALL+"</nobr></a>"+"</td>"+"</tr>"+"</table>";_BY="this.checkBoxList"+_tq+" = new CSelectValueInputList('"+_uA+"', "+'"'+_Jr+'"'+", document.forms['"+_uA+"'].elements["+'"'+jsEncodeStr(_Bo)+'"'+"], "+_At+", "+_mU.required+", '"+_mU.submitType+"', document.getElementById('feedback"+_tq+"'), 0, 0, "+_mU.disabled+", '"+_mU.autoSubmitType+"', '"+_tq+"', "+_mU.autoSubmit+", 'checkbox', 'checkBoxList"+_tq+"', "+'"'+jsEncodeStr(_mU.parameterName)+'", "'+getCVId(_mU)+'");'+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('checkBoxList"+_tq+"');";}else if(_mU.selectUI=="dropdown"){_yx+="<table cellpadding='0' cellspacing='0' border='0' style='"+_DD+"'>"+"<tr>"+"<td style='"+_DD+"'>"+"<select id='selectList"+_tq+"' name="+'"'+_Jr+'"'+" class='clsSelectControl pv' size='1' style='"+cssParser(_l5,"color,font,text"+((_mU.multi==false&&_mU.range==false)?",width":P_ai))+_DD+"'";if(_mU.disabled){_yx+=" disabled='disabled'";}if(_mU.autoSubmit){_yx+=" onChange=\"setTimeout('listBox"+_tq+".autoSubmit()', 100)\"";}else{_yx+=" onChange=\"setTimeout('listBox"+_tq+".checkData()', 100)\"";}_yx+=">";if(typeof _mU.columnName==P_bJ&&_mU.columnName!==P_ai){_yx+="<option value='' selected='selected'>"+_mU.columnName+"</option>"+"<option value='' >--------------------------------------------</option>";}_yx+="</select></td>"+"</tr>"+"<tr>"+"<td><div id='feedback"+_tq+"' class='clsFeedbackWidget' style=\"min-width:200px; width:100%;\"><img class='clsFeedbackSpacer' name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr></table>";_BY="this.listBox"+_tq+" = new CSelectValueSelectList(document.forms['"+_uA+"'].elements["+'"'+_Jr+'"'+"], document.forms['"+_uA+"'].elements["+'"'+jsEncodeStr(_Bo)+'"'+"], "+_At+", "+_mU.required+", '"+_mU.submitType+"', document.getElementById('feedback"+_tq+"'), document.sizer"+_tq+", "+_mU.disabled+", '"+_mU.autoSubmitType+"', '"+_tq+"', "+'"'+jsEncodeStr(_mU.parameterName)+'", "'+getCVId(_mU)+'");'+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('listBox"+_tq+"');";}}else{if(_mU.selectUI=="dropdown"){_yx+="<table cellpadding='0' cellspacing='0' border='0' style='"+_DD+"'>"+"<tr>"+"<td>"+"<select id='selectList"+_tq+"' name="+'"'+_Jr+'"'+" class='clsSelectControl pv' size='1' style='"+_DD+cssParser(_l5,"color,font,text,width,height"+((_mU.multi==false&&_mU.range==false)?",width":P_ai))+"'";if(_mU.disabled){_yx+=" disabled='disabled'";}if(_mU.autoSubmit){_yx+=" onChange=\"setTimeout('listBox"+_tq+".autoSubmit()', 100)\"";_yx+=" onmousewheel=\"cancelScroll()\"";}else{_yx+=" onChange=\"setTimeout('listBox"+_tq+".checkData()', 100)\"";}_yx+=">";if(typeof _mU.columnName==P_bJ&&_mU.columnName!==P_ai){_yx+="<option value='' selected='selected'>"+_mU.columnName+"</option>"+"<option value=''>--------------------------------------------</option>";}_yx+="</select></td>"+"</tr>"+"<tr>"+"<td><div id='feedback"+_tq+"' class='clsFeedbackWidget' style=\"min-width:200px; width:100%\"><img class='clsFeedbackSpacer' name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr></table>";_BY="this.listBox"+_tq+" = new CSelectValueSelectList(document.forms['"+_uA+"'].elements["+'"'+_Jr+'"'+"], document.forms['"+_uA+"'].elements["+'"'+jsEncodeStr(_Bo)+'"'+"], "+_At+", "+_mU.required+", '"+_mU.submitType+"', document.getElementById('feedback"+_tq+"'), document.sizer"+_tq+", "+_mU.disabled+", '"+_mU.autoSubmitType+"', '"+_tq+"', "+'"'+jsEncodeStr(_mU.parameterName)+'", "'+getCVId(_mU)+'");'+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('listBox"+_tq+"');";}else if(_mU.selectUI=='listBox'){_yx+="<table cellpadding='0' cellspacing='0' border='0' style='"+_DD+"'>"+"<tr>"+"<td style='"+_DD+"'>"+"<select id='selectList"+_tq+"' name="+'"'+_Jr+'"'+" size='11' class='clsListControl pv' onChange=\""+_EV+"\" style='"+_DD+cssParser(_mU.style,"color,font,text,height"+((_mU.multi==false&&_mU.range==false)?",width":P_ai))+"'";if(_mU.disabled){_yx+=" disabled='disabled'";}_yx+=">";if(!_mU.required&&typeof _mU.columnName==P_bJ&&_mU.columnName!==P_ai){_yx+="<option value='' selected='selected'>"+_mU.columnName+"</option>"+"<option value=''>--------------------------------------------</option>";}_yx+="</select></td>"+"</tr>"+"<tr>"+"<td><div id='feedback"+_tq+"' class='clsFeedbackWidget' style=\"min-width:200px; width:100%;\"><img class='clsFeedbackSpacer' name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr></table>";_BY="this.listBox"+_tq+" = new CSelectValueSelectList(document.forms['"+_uA+"'].elements["+'"'+_Jr+'"'+"], document.forms['"+_uA+"'].elements["+'"'+jsEncodeStr(_Bo)+'"'+"], "+_At+", "+_mU.required+", '"+_mU.submitType+"', document.getElementById('feedback"+_tq+"'), document.sizer"+_tq+", "+_mU.disabled+", '"+_mU.autoSubmitType+"', '"+_tq+"', "+'"'+jsEncodeStr(_mU.parameterName)+'", "'+getCVId(_mU)+'");'+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('listBox"+_tq+"');";}else if(_mU.selectUI=="radioGroup"||_mU.selectUI=="checkboxGroup"){if(_l5.match(/\bheight\s*:/gi)){_l5+=";max-height:inherit;";}_yx+="<table cellpadding='0' cellspacing='0' border='0' style='"+_DD+"'>"+"<tr>"+"<td><div id='selectList"+_tq+"' class='clsRadioGroupList pv' oldclass='clsRadioGroupList pv' style='"+cssParser(_l5,"color,font,text,max-height,height"+((_mU.multi==false&&_mU.range==false)?",width":P_ai))+"'></div></td>"+"</tr>"+"<tr>"+"<td><div id='feedback"+_tq+"' class='clsFeedbackWidget' style=\"min-width:200px; width:100%\"><img class='clsFeedbackSpacer' name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr>";if(!_mU.required){_yx+="<tr id='selectListBottomRow"+_tq+"'";if(_mU.numSelectOptions==1){_yx+=" style='display:none'";}_yx+=">"+"<td align='right' style=\"width:100%\"><a href='javascript:radioList"+_tq+".deSelectAll()' class='clsLink pl'><span style=\"text-align:right;vertical-align:super\"><nobr>"+PMT_UIM_DESELECT+"</nobr></span></a></td>"+"</tr>";}_yx+="</table>";_BY="this.radioList"+_tq+" = new CSelectValueInputList('"+_uA+"', "+'"'+_Jr+'"'+", document.forms['"+_uA+"'].elements["+'"'+jsEncodeStr(_Bo)+'"'+"], "+_At+", "+_mU.required+", '"+_mU.submitType+"', document.getElementById('feedback"+_tq+"'), 0, 0, "+_mU.disabled+", '"+_mU.autoSubmitType+"', '"+_tq+"', "+_mU.autoSubmit+", 'radio', 'radioList"+_tq+"', "+'"'+jsEncodeStr(_mU.parameterName)+'", "'+getCVId(_mU)+'");'+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('radioList"+_tq+"');";}}_yx+="</td></tr></table></fieldset>";renderPromptControlHTML("selectValue"+_tq,_yx);executePromptControlJS(_BY);};function genSelectValueRangeHTML(_md,_og,_nI,_uB,_t2,_n6,_uy,_sY,_pO,_p8,_vM,_pN,_tw,_sy,_mr){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,autoSubmitType:_t2,selectUI:_n6,columnName:_uy,initialState:_sY,disabled:_pO,required:_p8,autoSubmit:_vM,multi:_pN,hideAdornments:_tw,supressExtraPromptNames:_sy,style:_mr};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="_"+_mU.parameterName;if(!_mU.supressExtraPromptNames){_Bo="p"+_Bo;}if(!verifyPromptId(_Bo)){return;}var _DD=P_ai;if(cssParser(_mU.style,'width')!=P_ai){_DD='width:100%;';}var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<fieldset class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE+',height')+"'>"+"<table border='0' cellspacing='0' cellpadding='0' style='"+_DD+"'>"+"<tr>"+"<td class='clsControlLabel pc' colspan='2' nowrap='nowrap'>"+PMT_RNG_FROM+"</td>"+"</tr>"+"<tr>"+"<td nowrap='nowrap'> </td>"+"<td style='"+_DD+"' nowrap='nowrap' id='tdRangeFrom"+_tq+"'>"+"<table cellpadding='0' cellspacing='0' border='0'>"+"<tr>"+"<td valign='top'>";if(!_mU.required){_yx+="<input name='fromValue"+_tq+"' type='radio' onclick='range"+_tq+".rangeNotify()'/></td>"+"</td>"+"<td style='padding-left:10px;'"+" onClick='range"+_tq+".fromGotFocus();'"+" onkeyup='range"+_tq+".fromCheckRadioState();'"+" onkeypress='if(event)range"+_tq+".fromKeyPress(event.keyCode);'>";}_yx+="<div id='selectValuerange_from"+_tq+"' style='"+_DD+"'></div>"+"</td>"+"</tr>";if(!_mU.required){_yx+="<tr>"+"<td nowrap='nowrap' valign='top'>"+"<input value='lowest' name='fromValue"+_tq+"' type='radio' checked='true' onclick='range"+_tq+".rangeNotify()'/>"+"</td>"+"<td class='clsReadOnlyText pe' style='padding-left:10px;' onclick=\"document.forms['"+_uA+"'].elements['fromValue"+_tq+"'][1].checked=true;range"+_tq+".rangeNotify()\">"+PMT_RNG_LOWEST_VALUE+"</td>"+"</tr>";}_yx+="</table>"+"</td>"+"</tr>"+"<tr>"+"<td nowrap='nowrap' colspan='2'> </td>"+"</tr>"+"<tr>"+"<td class='clsControlLabel pc' colspan='2' nowrap='nowrap'>"+PMT_RNG_TO+"</td>"+"</tr>"+"<tr>"+"<td nowrap='nowrap'> </td>"+"<td style='"+_DD+"' nowrap='nowrap' id='tdRangeTo"+_tq+"'>"+"<table cellpadding='0' cellspacing='0' border='0'>"+"<tr>"+"<td valign='top'>";if(!_mU.required){_yx+="<input name='toValue"+_tq+"' type='radio' onclick='range"+_tq+".rangeNotify()'/>"+"</td>"+"<td style='padding-left:10px;'"+" onClick='range"+_tq+".toGotFocus();'"+" onkeyup='range"+_tq+".toCheckRadioState();'"+" onkeypress='range"+_tq+".toKeyPress(event.keyCode);'>";}_yx+="<div id='selectValuerange_to"+_tq+"' style='"+_DD+"'></div>"+"</td>"+"</tr>";if(!_mU.required){_yx+="<tr>"+"<td nowrap='nowrap'>"+"<input value='highest' name='toValue"+_tq+"' type='radio' checked='true' onclick='range"+_tq+".rangeNotify()'/>"+"</td>"+"<td class='clsReadOnlyText pe' style='padding-left:10px;' onclick=\"document.forms['"+_uA+"'].elements['toValue"+_tq+"'][1].checked=true;range"+_tq+".rangeNotify()\">"+PMT_RNG_HIGHEST_VALUE+"</td>"+"</tr>";}_yx+="</table>"+"</td>"+"</tr>"+"</table>"+"</fieldset>";renderPromptControlHTML("selectValue"+_tq,_yx);var _BY="genSelectValueSMHTML("+generatePromptProperties(_mU,{id:"range_from"+_tq,formName:_uA,parameterName:"range_from"+_mU.parameterName,hideAdornments:(_mU.required==true)?false:true,autoSubmitType:P_ai,selectUI:'dropdown',autoSubmit:false,style:cssParser(_mU.style,'background-color,color,font,text')+_DD,suppressExtraPromptNames:true})+");"+"genSelectValueSMHTML("+generatePromptProperties(_mU,{id:"range_to"+_tq,formName:_uA,parameterName:"range_to"+_mU.parameterName,autoSubmitType:P_ai,hideAdornments:(_mU.required==true)?false:true,selectUI:'dropdown',autoSubmit:false,style:cssParser(_mU.style,'background-color,color,font,text')+_DD,suppressExtraPromptNames:true})+");";if(_mU.required){_BY+="this.range"+_tq+" = new CRange(document.forms['"+_uA+"'].elements["+'"'+jsEncodeStr(_Bo)+'"'+"], null, listBoxrange_from"+_tq+", null, null, listBoxrange_to"+_tq+", null, null, true, '"+_mU.submitType+"', null, '"+getCVId(_mU)+"');";}else{_BY+="this.range"+_tq+" = new CRange(document.forms['"+_uA+"'].elements["+'"'+jsEncodeStr(_Bo)+'"'+"], document.forms['"+_uA+"'].elements['fromValue"+_tq+"'][0], listBoxrange_from"+_tq+", null, document.forms['"+_uA+"'].elements['toValue"+_tq+"'][0], listBoxrange_to"+_tq+", null, null, false, '"+_mU.submitType+"', "+_mU.initialState+", '"+getCVId(_mU)+"');";}var _yD=getCVInstance(_mU);_BY+=_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('range"+_tq+"');"+_yD+"rangeObserverArray = "+_yD+"rangeObserverArray.concat('range"+_tq+"');";executePromptControlJS(_BY);};function genSelectValueRangeMultipleHTML(_md,_og,_nI,_uB,_t2,_n6,_uy,_sY,_pO,_p8,_vM,_pN,_tw,_sy,_mr,_sm,_ss){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,autoSubmitType:_t2,selectUI:_n6,columnName:_uy,initialState:_sY,disabled:_pO,required:_p8,autoSubmit:_vM,hideAdornments:_tw,supressExtraPromptNames:_sy,multi:_pN,style:_mr,numSelectOptions:_sm,alwayShowGroupingBox:b_ShowGroupingBox};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="_"+_mU.parameterName;if(!_mU.supressExtraPromptNames){_Bo="p"+_Bo;}if(!verifyPromptId(_Bo)){return;}var _DD=P_ai;if(cssParser(_mU.style,'width')!=P_ai){_DD='width:100%;';}var _I9=P_ai;if(_mU.submitType==P_ak){_I9+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_I9+="<fieldset class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'><table cellpadding='0' cellspacing='0' border='0'>"+"<tr>"+"<td valign='top' id='selectValuer_"+_tq+"' style='"+_DD+"'></td>"+"<td valign='top' class='clsButtonLeftRightPadding'>"+"<table border='0' cellpadding='0' cellspacing='0'>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='1' height='16'/></td>"+"</tr>"+"</table>"+"<table border='0' cellpadding='2' cellspacing='0'>"+"<tr>"+"<td id='getInsertButton"+_tq+"'></td>"+"</tr>"+"<tr>"+"<td id='getRemoveButton"+_tq+"'></td>"+"</tr>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='90' height='1'/></td>"+"</tr>"+"</table>"+"</td>"+"<td valign='top'>"+"<table border='0' cellspacing='0' cellpadding='0' width='100%' style='height:100%;'>"+"<tr>"+"<td class='clsControlLabel pc'>";if(_mU.required){_I9+="<img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/>";}_I9+=PMT_UIM_CHOICES+"</td>"+"</tr>"+"<tr>"+"<td style='height:100%;' valign='top'>"+"<select name='_oLstChoices"+_tq+"' style='width:100%;"+cssParser(_mU.style,"color,font,text,height")+"' class='clsChoicesListbox pv' multiple='multiple' size='7' onmouseup=\"setTimeout('multipleRange"+_tq+".checkInsertRemove()', 100);\" onkeyup='multipleRange"+_tq+".catchDeleteKey(event.keyCode)'></select>"+"</td>"+"</tr>"+"<tr>"+"<td>"+"<div id='multipleRangeFeedback"+_tq+"' class='clsFeedbackWidget'>"+"<img name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/>"+"</div>"+"</td>"+"</tr>"+"<tr id='selectListBottomRow"+_tq+"'";if(_mU.numSelectOptions==1&&!_mU.alwaysShowGroupingBox){_I9+=" style='display:none'";}_I9+=">"+"<td align='right' >"+"<a class='clsLink pl' href='javascript:multipleRange"+_tq+".selectAll()'><nobr>"+PMT_UIM_SELECTALL+"</nobr></a>"+" "+"<a class='clsLink pl' href='javascript:multipleRange"+_tq+".deSelectAll()'><nobr>"+PMT_UIM_DESELECTALL+"</nobr></a>"+"</td>"+"</tr>"+"</table>"+"</td>"+"</tr>"+"</table></fieldset>";renderPromptControlHTML("selectValue"+_tq,_I9);var _yD=getCVInstance(_mU);var _BY="genSelectValueRangeHTML("+generatePromptProperties(_mU,{id:"r_"+_tq,formName:_uA,parameterName:"r_"+_mU.parameterName,autoSubmitType:P_ai,selectUI:'dropdown',required:false,style:cssParser(_mU.style,'background,color,font,text')+_DD,suppressExtraPromptNames:true})+");"+"genInsertButtonHTML('"+_tq+"', 'multipleRange"+_tq+".insertChoiceList()', 'insertButton"+_tq+"');"+"genRemoveButtonHTML('"+_tq+"', 'multipleRange"+_tq+".removeChoiceList()', 'removeButton"+_tq+"');"+"this.multipleRange"+_tq+" = new CMultipleRange(ranger_"+_tq+", document.forms['"+_uA+"'].elements['_oLstChoices"+_tq+"'], document.forms['"+_uA+"'].elements["+'"'+jsEncodeStr(_Bo)+'"'+"], "+_mU.required+", '"+_mU.submitType+"', document.getElementById('multipleRangeFeedback"+_tq+"'), document.sizer"+_tq+", '"+_tq+"', document.getElementById('insertButton"+_tq+"'), document.getElementById('removeButton"+_tq+"'), '"+getCVId(_mU)+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('multipleRange"+_tq+"');"+_yD+"multipleObserverArray = "+_yD+"multipleObserverArray.concat('multipleRange"+_tq+"');"+"multipleRange"+_tq+".initChoiceList();";executePromptControlJS(_BY);};function genSelectSearchHTML(_md,_og,_nI,_uB,_sC,_vj,_p2,_pN,_p8,_p3,_tH,_tw,_mr,_nY,_tp,_oK,_pc,_nj,_mA,_sS,_nR,_pO,_uK,_us,_l4){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,multi:_pN,required:_p8,showOptions:_p3,disabled:_pO,hideAdornments:_tw,usePromptIdForName:_us,search_caseInsensitive:_uK,search_criteria:_sC,search_function:_nR,search_matchAnywhere:_vj,search_matchAll:_p2,search_showCondition:_l4,search_showNoResultFoundString:_tH,style:_mr,style_choicesHeader:_mA,style_choicesListBox:_sS,style_editBox:_nY,style_options:_oK,style_resultsHeader:_pc,style_resultsListBox:_nj,style_searchButton:_tp};}var _tq=_mU.id;var _Bo=_mU.parameterName;if(!verifyPromptId(_tq)||!verifyPromptId(_Bo)){return;}var _zi="_sws_"+jsEncodeStr(_mU.usePromptIdForName?_tq:_Bo);var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Jr="p_"+_Bo;if(_mU.submitType==P_ak){_Jr="_sws_"+_Bo+"_selectChoices"+_tq;}_Jr=jsEncodeStr(_Jr);var _yK="display:none;";if(_mU.showOptions){_yK="display:inline;";}var _I3=jsEncodeStr("p_"+_Bo);var _CP=sDecodeU003(_mU.search_criteria);var _yx="<fieldset class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>";if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,_I3,P_ai);}if(_mU.usePromptIdForName){_yx+=genHiddenInputHTML(_uA,"_promptIdBasedNames","true");}_yx+="<input type='hidden' name='"+_zi+"_submit' value='false'/>"+"<input type='hidden' name='"+_zi+"_selectOptions' value=''/>"+"<input type='hidden' name='"+_zi+"_showOptions' value='"+_mU.showOptions+"'/>"+"<input type='hidden' name='"+_zi+"_matchAnywhere' value='"+_mU.search_matchAnywhere+"'/>"+"<input type='hidden' name='"+_zi+"_matchAll' value='"+_mU.search_matchAll+"'/>"+"<input type='hidden' name='"+_zi+"_caseInsensitive' value='"+(_mU.search_caseInsensitive?"true":"false")+"'/>"+"<table border='0' cellspacing='0' cellpadding='0' "+(_mU.disabled?" disabled='true'":P_ai)+">"+"<tr>"+"<td class='clsControlLabel pc'>"+PMT_SSM_KEYWORDSLABEL+"</td>"+"<td/>"+"</tr>"+"<tr>"+"<td class='clsDialogIntroduction pi' nowrap='nowrap' colspan='2'>"+PMT_SSM_KEYWORDTIP+"</td>"+"<td/>"+"</tr>"+"<tr>"+"<td><table border='0' cellspacing='0' cellpadding='0'>"+"<tr>"+"<td><input type='text' name='"+_zi+"_searchValue' class='clsSwsEditBox' style=\""+_mU.style_editBox+"\" "+(_mU.disabled?" disabled='true'":"value='"+_CP+"' onkeyup='search"+_tq+".checkSearchButtonState();preventSubmitEvent(event)' onkeypress='return search"+_tq+".catchSearch(event);' onblur=\"SetSubmitSetting('prompt')\" onfocus=\"SetSubmitSetting('search')\" onpaste='search"+_tq+".enableSearchButton();preventSubmitEvent();'")+"/></td>"+"<td style=\"white-space: nowrap\">"+"<button type='button' name='searchButton"+_tq+"' id='searchButton"+_tq+"' class='clsPromptButton' style=\""+_mU.style_searchButton+"\""+(_mU.disabled?" disabled='true'":"onclick='search"+_tq+".startSearch(); return false;' onmouseover=\"this.className='clsPromptButtonOver'\" onmouseout=\"this.className='clsPromptButton'\" onkeydown=\"if (event.keyCode == 13) {search"+_tq+".startSearch(); if (window.ie) {event.cancelBubble = true; event.returnValue = false;} else {event.preventDefault(); event.stopPropagation();} return false;}\" onkeyup=\"if (window.ie) {event.cancelBubble = true; event.returnValue = false;} else {event.preventDefault(); event.stopPropagation();} return false;\" onkeypress=\"if (window.ie) {event.cancelBubble = true; event.returnValue = false;} else {event.preventDefault(); event.stopPropagation();} return false;\"")+">"+PMT_SSM_SEARCH+"<img src='"+_Eb+"/prompting/images/prompt_search_ani.gif' name='imgBusy"+_tq+"' id='imgBusy"+_tq+"' alt='' border='0' height='16' width='15' align='top' /></button>"+"</td>"+"</tr>"+"</table></td>"+"<td/>"+"</tr>"+"<tr>"+"<td valign='top' class='clsOptions pe'><table cellpadding='3' cellspacing='0' border='0'>"+"<tr>"+"<td valign='top'><a "+(_mU.disabled?"href='#' disabled='true' onclick='return false;'":"href=\"javascript:search"+_tq+".toggleAdvanced('idAdvancedOptions"+_tq+"', 'imgAdvancedArrow"+_tq+"')\"")+" class='clsLink pl'>"+PMT_SSM_OPTIONS+"</a></td>"+"<td valign='top'><a "+(_mU.disabled?"href='#' disabled='true' onclick='return false;'":"href=\"javascript:search"+_tq+".toggleAdvanced('idAdvancedOptions"+_tq+"', 'imgAdvancedArrow"+_tq+"')\"")+"><img id='imgAdvancedArrow"+_tq+"' src='"+_Eb+"/prompting/images/prompt_option_expand.gif' width='10' height='10' border='0' alt='' align='top'/></a></td>"+"</tr>"+"</table></td>"+"<td/>"+"</tr>"+"<tr>"+"<td class='clsSwsOptions pe'><table border='0' id='idAdvancedOptions"+_tq+"' style=\""+_yK+"\">"+"<tr>"+"<td class='clsSwsOptions pe' style=\""+_mU.style_options+"\" valign='top'>";var _F7=((_mU.search_matchAnywhere!="true"&&_mU.search_matchAll!="true")||(!_mU.search_matchAnywhere||!_mU.search_matchAll)?"checked='checked' ":"");_yx+="<input type='radio' name='swsOption"+_tq+"' id='swsStartAny"+_tq+"' "+_F7+(_mU.disabled?" disabled='true'":"onclick=\"search"+_tq+".setOptions('false', 'false')\"")+"/>"+"</td>"+"<td class='clsSwsOptions pe' style=\""+_mU.style_options+"\" valign='top'><label for='swsStartAny"+_tq+"'>"+PMT_SSM_STARTANY+"</label></td>"+"</tr>"+"<tr>"+"<td class='clsSwsOptions pe' style=\""+_mU.style_options+"\" valign='top'>";_F7=(_mU.search_matchAnywhere!="true"&&_mU.search_matchAll=="true"?"checked='checked' ":"");_yx+="<input type='radio' name='swsOption"+_tq+"' id='swsStartAll"+_tq+"' "+_F7+(_mU.disabled?" disabled='true'":"onclick=\"search"+_tq+".setOptions('false', 'true')\"")+"/>"+"</td>"+"<td class='clsSwsOptions pe' style=\""+_mU.style_options+"\" valign='top'><label for='swsStartAll"+_tq+"'>"+PMT_SSM_STARTALL+"</label></td>"+"</tr>"+"<tr>"+"<td class='clsSwsOptions pe' style=\""+_mU.style_options+"\" valign='top'>";_F7=(_mU.search_matchAnywhere=="true"&&_mU.search_matchAll!="true"?"checked='checked' ":"");_yx+="<input type='radio' name='swsOption"+_tq+"' id='swsMatchAny"+_tq+"' "+_F7+(_mU.disabled?" disabled='true'":"onclick=\"search"+_tq+".setOptions('true', 'false')\"")+"/>"+"</td>"+"<td class='clsSwsOptions pe' style=\""+_mU.style_options+"\" valign='top'><label for='swsMatchAny"+_tq+"'>"+PMT_SSM_CONTAINANY+"</label></td>"+"</tr>"+"<tr>"+"<td class='clsSwsOptions pe' style=\""+_mU.style_options+"\" valign='top'>";_F7=(_mU.search_matchAnywhere=="true"&&_mU.search_matchAll=="true"?"checked='checked' ":"");_yx+="<input type='radio' name='swsOption"+_tq+"' id='swsMatchAll"+_tq+"' "+_F7+(_mU.disabled?" disabled='true'":"onclick=\"search"+_tq+".setOptions('true', 'true')\"")+"/>"+"</td>"+"<td class='clsSwsOptions pe' style=\""+_mU.style_options+"\" valign='top'><label for='swsMatchAll"+_tq+"'>"+PMT_SSM_CONTAINALL+"</label></td>"+"</tr>"+"<tr>"+"<td class='clsSwsOptions pe' style=\"padding-top:10px;"+_mU.style_options+"\" valign='top'>";_yx+="<input type='checkbox' name='swsCaseInsensitive"+_tq+"' id='swsCaseInsensitive"+_tq+"' onclick=\"document.forms['"+_uA+"'].elements['"+_zi+"_caseInsensitive'].value=(document.getElementById('swsCaseInsensitive"+_tq+"').checked?'true':'false')\"";if(_mU.search_caseInsensitive){_yx+=" checked='checked'";}if(_mU.disabled){_yx+=" disabled='true'";}_yx+="/></td>"+"<td class='clsSwsOptions pe' style=\"padding-top:10px;"+_mU.style_options+"\" valign='top'><label for='swsCaseInsensitive"+_tq+"'>"+PMT_SSM_CASEINSENSITIVE+"</label></td>"+"</tr>"+"</table></td>"+"<td/>"+"</tr>"+"</table>";if(_mU.search_showNoResultFoundString){_yx+="<div style=\"margin: 3px\">"+PMT_SSM_NORESULTSFOUND+"</div>";}_yx+="<table border='0' cellpadding='0' cellspacing='0'>"+"<tr>"+"<td><table border='0' cellpadding='2' cellspacing='1' width='100%'>"+"<tr>"+"<td valign='top' width='50%'>";if(_mU.multi){_yx+="<table border='0' cellspacing='0' cellpadding='0' width='100%'>"+"<tr>"+"<td class='clsControlLabel pc' style=\""+_mU.style_resultsHeader;if(_mU.search_showCondition){_yx+=";padding-top:27px";}_yx+="\">"+PMT_SSM_SEARCHRESULTS+"</td>"+"</tr>"+"<tr>"+"<td>"+"<select name='_searchResults"+_tq+"' size='9' class='clsSelectControl pv' style=\""+_mU.style_resultsListBox+cssParser(_mU.style,"height")+"\" multiple='multiple' onmouseup=\"setTimeout('search"+_tq+".checkInsertRemove()', 100);\" onDblClick='search"+_tq+".insert(search"+_tq+".m_oLstResults, search"+_tq+".m_oLstChoices);'"+(_mU.disabled?" disabled='true'":P_ai)+"></select>"+"</td>"+"</tr>"+"<tr>"+"<td><div style=\"min-width:200px; width:100%\"><img class='clsFeedbackSpacer' name='sizerResults"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr>"+"<tr>"+"<td align='right'>"+"<a "+(_mU.disabled?"href='#' disabled='true' onclick='return false;'":"href='javascript:search"+_tq+".selectAll(search"+_tq+".m_oLstResults)'")+" class='clsLink pl'><nobr>"+PMT_UIM_SELECTALL+"</nobr></a>"+" "+"<a "+(_mU.disabled?"href='#' disabled='true' onclick='return false;'":"href='javascript:search"+_tq+".deSelectAll(search"+_tq+".m_oLstResults)'")+" class='clsLink pl'><nobr>"+PMT_UIM_DESELECTALL+"</nobr></a>"+"</td>"+"</tr>"+"</table></td>"+"<td class='clsButtonLeftRightPadding'><table border='0' cellpadding='2' cellspacing='0'>"+"<tr>"+"<td id='getInsertButton"+_tq+"'></td>"+"</tr>"+"<tr>"+"<td id='getRemoveButton"+_tq+"'></td>"+"</tr>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='90' height='1'/></td>"+"</tr>"+"</table></td>"+"<td align='right' valign='top' width='50%'><table border='0' cellspacing='0' cellpadding='0' width='100%'>"+"<tr>"+"<td class='clsControlLabel pc' style=\""+_mU.style_choicesHeader;if(_mU.search_showCondition){_yx+=";padding-bottom:5px";}_yx+="\">";if(!_mU.hideAdornments&&_mU.required){_yx+="<img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='bottom' height='10' width='10' border='0'/>";}if(_mU.search_showCondition){_yx+=PMT_UIM_CONDITION+"<br/>"+"<select name='oExcludeSelectedValues'>"+"<option value='false'>"+PMT_UIM_SHOWONLY+"</option>"+"<option value='true'>"+PMT_UIM_DONOTSHOW+"</option>"+"</select>";}else{_yx+=PMT_UIM_CHOICES;}_yx+="</td>"+"</tr>"+"<tr>"+"<td>"+"<select name="+'"'+_Jr+'"'+" class='clsSelectControl pv' style=\""+_mU.style_choicesListBox+cssParser(_mU.style,"height")+"\" size='9' multiple='multiple' onmouseup=\"setTimeout('search"+_tq+".checkInsertRemove()', 100);\" onDblClick='search"+_tq+".remove(search"+_tq+".m_oLstChoices)' onkeyup='search"+_tq+".catchDeleteKey(event.keyCode)'"+(_mU.disabled?" disabled='true'":P_ai)+"></select>"+"</td>"+"</tr>"+"<tr>"+"<td><div id='feedback"+_tq+"' class='clsFeedbackWidget' style=\"min-width:200px; width:100%\"><img class='clsFeedbackSpacer' name='sizerChoices"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr>"+"<tr>"+"<td align='right'><a "+(_mU.disabled?"href='#' disabled='true' onclick='return false;'":"href='javascript:search"+_tq+".selectAll(search"+_tq+".m_oLstChoices)'")+" class='clsLink pl'><nobr>"+PMT_UIM_SELECTALL+"</nobr></a>"+" "+"<a "+(_mU.disabled?"href='#' disabled='true' onclick='return false;'":"href='javascript:search"+_tq+".deSelectAll(search"+_tq+".m_oLstChoices)'")+" class='clsLink pl'><nobr>"+PMT_UIM_DESELECTALL+"</nobr></a>"+"</td>"+"</tr>"+"</table>";}else{_yx+="<table border='0' cellspacing='0' cellpadding='0' width='100%'>"+"<tr>"+"<td class='clsControlLabel pc' style=\""+_mU.style_resultsHeader+"\">";if(!_mU.hideAdornments&&_mU.required){_yx+="<img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/>";}_yx+=PMT_UIM_CHOICE+"</td>"+"</tr>"+"<tr>"+"<td>"+"<select name="+'"'+_Jr+'" id="'+_Jr+'"'+" size='11' class='clsSelectControl pv' style=\""+_mU.style_resultsListBox+"\" onchange='search"+_tq+".checkData()'"+(_mU.disabled?" disabled='true'":P_ai)+"></select>"+"</td>"+"</tr>"+"<tr>"+"<td><div id='feedback"+_tq+"' class='clsFeedbackWidget' style=\"min-width:200px; width:100%\"><img class='clsFeedbackSpacer' name='sizerResults"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr>"+"</table>";}_yx+="</td></tr></table></td></tr></table></fieldset>";renderPromptControlHTML("selectSearch"+_tq,_yx);var _BY=P_ai;if(_mU.multi){_BY+="genInsertButtonHTML('"+_tq+"', 'search"+_tq+".insert(search"+_tq+".m_oLstResults, search"+_tq+".m_oLstChoices)', 'insertButton"+_tq+"');";_BY+="genRemoveButtonHTML('"+_tq+"', 'search"+_tq+".remove(search"+_tq+".m_oLstChoices)', 'removeButton"+_tq+"');";}_BY+="this.search"+_tq+" = new CSearch(document.forms['"+_uA+"'].elements["+'"'+_I3+'"'+"],";if(_mU.multi){_BY+=" document.forms['"+_uA+"'].elements['_searchResults"+_tq+"'],";}else{_BY+=" document.forms['"+_uA+"'].elements["+'"'+_Jr+'"'+"],";}_BY+=" document.forms['"+_uA+"'].elements["+'"'+_Jr+'"'+"],"+" document.forms['"+_uA+"'],"+" document.forms['"+_uA+"'].elements['"+_zi+"_searchValue'],"+" document.images['imgBusy"+_tq+"'],"+" '"+_tq+"',"+" document.forms['"+_uA+"'].elements['"+_zi+"_showOptions'],"+" document.forms['"+_uA+"'].elements['"+_zi+"_matchAnywhere'],"+" document.forms['"+_uA+"'].elements['"+_zi+"_matchAll'],"+" "+_mU.required+","+" '"+_mU.submitType+"',"+" document.getElementById('feedback"+_tq+"'),"+(_mU.multi?"true":"false")+","+" document.forms['"+_uA+"'].elements['"+_zi+"_submit'],"+" document.forms['"+_uA+"'].elements['"+_zi+"_selectOptions'],"+" document.sizerResults"+_tq+","+(_mU.multi?" document.sizerChoices"+_tq:"null")+","+" document.getElementById('searchButton"+_tq+"'),"+(_mU.multi?" document.getElementById('insertButton"+_tq+"')":"''")+","+(_mU.multi?" document.getElementById('removeButton"+_tq+"')":"''")+","+" '"+_mU.search_function+"', '"+jsEncodeStr(_Bo)+"', '"+getCVId(_mU)+"');";var _yD=getCVInstance(_mU);_BY+=_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('search"+_tq+"');";executePromptControlJS(_BY);};function genSelectIntervalHTML(_tq,_uA,_qw,_qW,_pe,_oM,_nF,_oV,_rw,_oN,_pn,_sM,_te,_pg,_l7,_l5){var _mU=_tq;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_tq,formName:_uA,parameterName:_qw,submitType:_qW,defaultValue:_pe,initialState:_oM,required:_nF,hideAdornments:_oV,showSeconds:_rw,showMilliseconds:_oN,suppressExtraPromptNames:_pn,multi:_sM,_Hl:_te,allowNegative:_pg,endValue:_l7,style:_l5};}if(!_mU.allowNegative){_mU.allowNegative=false;}if(_mU.multi){if(!_mU.range){genSelectIntervalMultipleHTML(_mU);}else{genSelectIntervalRangeMultipleHTML(_mU);}}else{if(_mU.range){genSelectIntervalRangeHTML(_mU);}else{genSelectIntervalSingleHTML(_mU);}}};function genSelectIntervalSingleHTML(_md,_og,_nI,_uB,_tl,_p8,_tw,_q3,_ra,_sy,_tA,_mr){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,defaultValue:_tl,required:_p8,hideAdornments:_tw,showSeconds:_q3,showMilliseconds:_ra,suppressExtraPromptNames:_sy,allowNegative:_tA,style:s_style};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Eh=null;if(_mU.showSeconds||_mU.showMilliseconds){_Eh="document.forms['"+_uA+"'].elements['intervalSeconds"+_tq+"']";}var _C4=null;if(_mU.showMilliseconds){_C4="document.forms['"+_uA+"'].elements['intervalMilliseconds"+_tq+"']";}var _Gh="document."+_uA+".imgTest"+_tq;if(_mU.hideAdornments){_Gh=null;}var _DL="p_"+_mU.parameterName;if(_mU.submitType==P_ak){_DL="_oLstChoices"+_tq;}var _I3="p_"+_mU.parameterName;var _yx=genHiddenInputHTML(_uA,jsEncodeStr(_DL),P_ai);if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_I3),P_ai);}_yx+="<fieldset class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'><table border='0' cellpadding='0' cellspacing='0'>"+"<tr>";if(_mU.hideAdornments){_yx+="<td width='10'><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='10' height='20'/></td>";}else{_yx+="<td/>";}_yx+="<td class='clsControlLabel pc' style='padding-right:5px;'>"+PMT_SIC_DAYS+"</td>"+"<td class='clsControlLabel pc' style='padding-right:5px;'>"+PMT_SIC_HOURS+"</td>"+"<td class='clsControlLabel pc' style='padding-right:5px;'>"+PMT_SIC_MINUTES+"</td>";if(_mU.showSeconds||_mU.showMilliseconds){_yx+="<td class='clsControlLabel pc' style='padding-right:5px;'>"+PMT_SIC_SECONDS+"</td>";}if(_mU.showMilliseconds){_yx+="<td class='clsControlLabel pc' style='padding-right:5px;'>"+PMT_SIC_MILLISECONDS+"</td>";}_yx+="</tr>"+"<tr><td valign='top'>";if(!_mU.hideAdornments){_yx+="<table cellpadding='0' cellspacing='0' border='0' width='10' height='20'>";if(_mU.required){_yx+="<tr>"+"<td><img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='bottom' height='10' width='10' border='0'/></td>"+"</tr>";}_yx+="<tr>"+"<td valign='middle'><img id='imgTest"+_tq+"' name='imgTest"+_tq+"' class='clsErrorRequired' src='"+_Eb+"/prompting/images/error_timed_small_off.gif' align='bottom' height='10' width='10' border='0'/></td>"+"</tr>"+"</table>";}_yx+="</td><td>"+"<input type='text' class='clsIntervalWidget pt' name='intervalDays"+_tq+"' size='4' onkeyup='intervalControl"+_tq+".checkDay()' onkeypress=\"intervalControl"+_tq+".keyPress(event.keyCode, 'checkDay');\" onblur=\"intervalControl"+_tq+".lostFocus(); intervalControl"+_tq+".endCheckDataInterval('day')\" oncontextmenu=\"intervalControl"+_tq+".startCheckDataInterval('day', 100)\" style='"+cssParser(_mU.style,"font,text,color")+"'/>"+"</td>"+"<td>"+"<input type='text' class='clsIntervalWidget pt' name='intervalHours"+_tq+"' size='4' onkeyup='intervalControl"+_tq+".checkHour()' onkeypress=\"intervalControl"+_tq+".keyPress(event.keyCode, 'checkHour');\" onblur=\"intervalControl"+_tq+".lostFocus(); intervalControl"+_tq+".endCheckDataInterval('hour')\" oncontextmenu=\"intervalControl"+_tq+".startCheckDataInterval('hour', 100)\" style='"+cssParser(_mU.style,"font,text,color")+"'/>"+"</td>"+"<td>"+"<input type='text' class='clsIntervalWidget pt' name='intervalMinutes"+_tq+"' size='4' maxlength='2' onkeyup='intervalControl"+_tq+".checkMinute()' onkeypress=\"intervalControl"+_tq+".keyPress(event.keyCode, 'checkMinute');\" onblur=\"intervalControl"+_tq+".lostFocus(); intervalControl"+_tq+".endCheckDataInterval('minute')\" oncontextmenu=\"intervalControl"+_tq+".startCheckDataInterval('minute', 100)\" style='"+cssParser(_mU.style,"font,text,color")+"'/>"+"</td>";if(_mU.showSeconds||_mU.showMilliseconds){_yx+="<td><input type='text' class='clsIntervalWidget pt' name='intervalSeconds"+_tq+"' size='4' maxlength='2' onkeyup='intervalControl"+_tq+".checkSecond()' onkeypress=\"intervalControl"+_tq+".keyPress(event.keyCode, 'checkSecond');\" onblur=\"intervalControl"+_tq+".lostFocus(); intervalControl"+_tq+".endCheckDataInterval('second')\" oncontextmenu=\"intervalControl"+_tq+".startCheckDataInterval('second', 100)\" style='"+cssParser(_mU.style,"font,text,color")+"'/></td>";}if(_mU.showMilliseconds){_yx+="<td><input type='text' class='clsIntervalWidget pt' name='intervalMilliseconds"+_tq+"' size='4' maxlength='3' onkeyup='intervalControl"+_tq+".checkMillisecond()' onkeypress=\"intervalControl"+_tq+".keyPress(event.keyCode, 'checkMillisecond');\" onblur=\"intervalControl"+_tq+".lostFocus(); intervalControl"+_tq+".endCheckDataInterval('millisecond')\" oncontextmenu=\"intervalControl"+_tq+".startCheckDataInterval('millisecond', 100)\" style='"+cssParser(_mU.style,"font,text,color")+"'/></td>";}_yx+="</tr></table></fieldset>";renderPromptControlHTML("selectInterval"+_tq,_yx);var _yD=getCVInstance(_mU);var _BY="this.intervalControl"+_tq+" = new CIntervalPicker(document.forms['"+_uA+"'].elements['"+_I3+"'], document.forms['"+_uA+"'].elements['"+_DL+"'], document.forms['"+_uA+"'].elements['intervalDays"+_tq+"'], document.forms['"+_uA+"'].elements['intervalHours"+_tq+"'], document.forms['"+_uA+"'].elements['intervalMinutes"+_tq+"'], "+_Eh+", "+_C4+", "+_Gh+", 'intervalControl"+_tq+"', '"+_mU.defaultValue+"', "+_mU.required+", '"+_mU.submitType+"', "+_mU.showSeconds+", "+_mU.showMilliseconds+", "+_mU.allowNegative+", '"+getCVId(_mU)+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('intervalControl"+_tq+"');";executePromptControlJS(_BY);};function genSelectIntervalMultipleHTML(_md,_og,_nI,_uB,_tl,_p8,_tw,_q3,_ra,_sy,_tA,_mr){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,defaultValue:_tl,required:_p8,hideAdornments:_tw,showSeconds:_q3,showMilliseconds:_ra,suppressExtraPromptNames:_sy,style:_mr,allowNegative:_tA};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _DL="p_"+_mU.parameterName;if(_mU.submitType==P_ak){_DL="oLstChoices"+_tq;}var _I3="p_"+_mU.parameterName;var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_I3),P_ai);}_yx+="<fieldset class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'><table cellpadding='0' cellspacing='0' border='0'>"+"<tr>"+"<td valign='top' id='selectIntervalSingle"+_tq+"'></td>"+"<td valign='top' class='clsButtonLeftRightPadding'><table border='0' cellpadding='2' cellspacing='0'>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' height='20'/></td>"+"</tr>"+"<tr>"+"<td id='getInsertButton"+_tq+"'></td>"+"</tr>"+"<tr>"+"<td id='getRemoveButton"+_tq+"'></td>"+"</tr>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='90' height='1'/></td>"+"</tr>"+"</table></td>"+"<td valign='top'>"+"<table border='0' cellspacing='0' cellpadding='0' width='100%'>"+"<tr>"+"<td class='clsControlLabel pl'>";if(!_mU.hideAdornments&&_mU.required){_yx+="<img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/>";}_yx+=PMT_UIM_CHOICES+"</td>"+"</tr>"+"<tr>"+"<td>"+"<select style='"+cssParser(_mU.style,'font,text,color,height')+"' name='"+_DL+"' class='clsChoicesListBox pv' multiple='multiple' size='7' onmouseup=\"setTimeout('multipleIntervalPicker"+_tq+".checkInsertRemove()', 100);\" onkeyup='multipleIntervalPicker"+_tq+".catchDeleteKey(event.keyCode)'></select>"+"</td>"+"</tr>"+"<tr>"+"<td>"+"<div id='multipleFeedback"+_tq+"' class='clsFeedbackWidget'><img name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div>"+"</td>"+"</tr>"+"<tr>"+"<td align='right'>"+"<a href='javascript:multipleIntervalPicker"+_tq+".selectAll()' class='clsLink pl'>"+PMT_UIM_SELECTALL+"</a>"+" "+"<a href='javascript:multipleIntervalPicker"+_tq+".deSelectAll()' class='clsLink pl'>"+PMT_UIM_DESELECTALL+"</a>"+"</td>"+"</tr>"+"</table>"+"</td></tr></table></fieldset>";renderPromptControlHTML("selectInterval"+_tq,_yx);var _yD=getCVInstance(_mU);var _BY="genSelectIntervalSingleHTML("+generatePromptProperties(_mU,{id:"Single"+_tq,formName:_uA,parameterName:"I_"+_mU.parameterName,defaultValue:P_ai,required:false,style:cssParser(_mU.style,"background,font,text,color"),suppressExtraPromptNames:true})+");"+"genInsertButtonHTML('"+_tq+"', 'multipleIntervalPicker"+_tq+".insert()', 'insertButton"+_tq+"');"+"genRemoveButtonHTML('"+_tq+"', 'multipleIntervalPicker"+_tq+".remove()', 'removeButton"+_tq+"');"+"this.multipleIntervalPicker"+_tq+" = new CMultipleIntervalPicker(intervalControlSingle"+_tq+", document.forms['"+_uA+"'].elements['"+_DL+"'], document.forms['"+_uA+"'].elements['"+_I3+"'], "+_mU.required+", '"+_mU.submitType+"', document.getElementById('multipleFeedback"+_tq+"'), document.sizer"+_tq+", document.getElementById('insertButton"+_tq+"'), document.getElementById('removeButton"+_tq+"'), '"+getCVId(_mU)+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('multipleIntervalPicker"+_tq+"');"+_yD+"multipleObserverArray = "+_yD+"multipleObserverArray.concat('multipleIntervalPicker"+_tq+"');";executePromptControlJS(_BY);};function genSelectIntervalRangeHTML(_md,_og,_nI,_uB,_tl,_sY,_p8,_tw,_q3,_ra,_sy,_vl,_tA,_mr){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,defaultValue:_tl,initialState:_sY,required:_p8,hideAdornments:_tw,showSeconds:_q3,showMilliseconds:_ra,suppressExtraPromptNames:_sy,endValue:_vl,style:_mr,allowNegative:_tA};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _DL="p_"+_mU.parameterName;if(_mU.submitType==P_ak){_DL="_oLstChoices"+_tq;}var _I3="p_"+_mU.parameterName;var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_I3),P_ai);}_yx+="<fieldset class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table cellpadding='0' cellspacing='0' border='0'>"+"<tr>"+"<td class='clsControlLabel pc' colspan='2' nowrap='nowrap'>"+PMT_RNG_FROM+"</td>"+"</tr>"+"<tr>"+"<td nowrap='nowrap'> </td>"+"<td nowrap='nowrap' onClick='range"+_tq+".fromGotFocus();' onkeyup='range"+_tq+".fromCheckRadioState(event.keyCode);' onkeypress='range"+_tq+".fromKeyPress(event.keyCode);'>"+"<table border='0' cellpadding='0' cellspacing='0'>"+"<tr>";if(!_mU.required){_yx+="<td valign='top'>"+"<input name='fromValue"+_tq+"' type='radio' onclick='range"+_tq+".rangeNotify()'/>"+"</td>";}_yx+="<td id='selectIntervalrange_from"+_tq+"'></td>"+"</tr>"+"</table>"+"</td>"+"</tr>";if(!_mU.required){_yx+="<tr>"+"<td nowrap='nowrap'>"+"<img src='"+_Eb+"/prompting/images/spacer.gif' height='1' width='5'/>"+"</td>"+"<td class='clsReadOnlyText pe' onclick=\"document.forms['"+_uA+"'].elements['fromValue"+_tq+"'][1].checked=true;range"+_tq+".rangeNotify()\">"+"<input value='lowest' name='fromValue"+_tq+"' type='radio' checked='true'/>"+"<img width='10' alt='' src='"+_Eb+"/prompting/images/spacer.gif'/>"+PMT_RNG_LOWEST_INTERVAL+"</td>"+"</tr>";}_yx+="<tr>"+"<td nowrap='nowrap' colspan='2'> </td>"+"</tr>"+"<tr>"+"<td class='clsControlLabel pc' colspan='2' nowrap='nowrap'>"+PMT_RNG_TO+"</td>"+"</tr>"+"<tr>"+"<td nowrap='nowrap'> </td>"+"<td nowrap='nowrap' onClick='range"+_tq+".toGotFocus();' onkeyup='range"+_tq+".toCheckRadioState(event.keyCode);' onkeypress='range"+_tq+".toKeyPress(event.keyCode);'>"+"<table cellpadding='0' cellspacing='0'>"+"<tr>";if(!_mU.required){_yx+="<td valign='top'>"+"<input name='toValue"+_tq+"' type='radio' onclick='range"+_tq+".rangeNotify()'/>"+"</td>";}_yx+="<td valign='top' id='selectIntervalrange_to"+_tq+"'></td>"+"</tr>"+"</table>"+"</td>"+"</tr>";if(!_mU.required){_yx+="<tr>"+"<td nowrap='nowrap'><img src='"+_Eb+"/prompting/images/spacer.gif' height='1' width='5'/></td>"+"<td class='clsReadOnlyText pe' onclick=\"document.forms['"+_uA+"'].elements['toValue"+_tq+"'][1].checked=true;range"+_tq+".rangeNotify()\">"+"<input value='highest' name='toValue"+_tq+"' type='radio' checked='true' onclick='range"+_tq+".rangeNotify()'/>"+"<img width='10' alt='' src='"+_Eb+"/prompting/images/spacer.gif'/>"+PMT_RNG_HIGHEST_INTERVAL+"</td>"+"</tr>";}_yx+="</table>"+"</fieldset>";renderPromptControlHTML("selectInterval"+_tq,_yx);var _BY="genSelectIntervalSingleHTML("+generatePromptProperties(_mU,{id:"range_from"+_tq,formName:_uA,parameterName:"range_from"+_mU.parameterName,style:cssParser(_mU.style,'background,color,text,font'),suppressExtraPromptNames:true})+");"+"genSelectIntervalSingleHTML("+generatePromptProperties(_mU,{id:"range_to"+_tq,parameterName:"range_to"+_mU.parameterName,style:cssParser(_mU.style,'background,color,text,font'),defaultValue:_mU.endValue,suppressExtraPromptNames:true})+");";if(_mU.required){_BY+="this.range"+_tq+" = new CRange(document.forms['"+_uA+"'].elements['"+_I3+"'], null, intervalControlrange_from"+_tq+", null, null, intervalControlrange_to"+_tq+", null, 'interval', true, '"+_mU.submitType+"', null, '"+getCVId(_mU)+"');";}else{_BY+="this.range"+_tq+" = new CRange(document.forms['"+_uA+"'].elements['"+_I3+"'], document.forms['"+_uA+"'].elements['fromValue"+_tq+"'][0], intervalControlrange_from"+_tq+", null, document.forms['"+_uA+"'].elements['toValue"+_tq+"'][0], intervalControlrange_to"+_tq+", null, 'interval', false, '"+_mU.submitType+"', "+_mU.initialState+", '"+getCVId(_mU)+"');";}var _yD=getCVInstance(_mU);_BY+=_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('range"+_tq+"');"+_yD+"rangeObserverArray = "+_yD+"rangeObserverArray.concat('range"+_tq+"');";executePromptControlJS(_BY);};function genSelectIntervalRangeMultipleHTML(_md,_og,_nI,_uB,_tl,_sY,_p8,_tw,_q3,_ra,_sy,_vl,_tA,_mr){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,defaultValue:_tl,initialState:_sY,required:_p8,hideAdornments:_tw,showSeconds:_q3,showMilliseconds:_ra,suppressExtraPromptNames:_sy,endValue:_vl,style:_mr,allowNegative:_tA};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _DL="p_"+_mU.parameterName;if(_mU.submitType==P_ak){_DL="_oLstChoices"+_tq;}var _I3="p_"+_mU.parameterName;var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_I3),P_ai);}_yx+="<fieldset class='clsFieldSet'><table cellpadding='0' cellspacing='0' border='0' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<tr>"+"<td valign='top' id='selectIntervalrange_"+_tq+"'></td>"+"<td valign='top' class='clsButtonLeftRightPadding'>"+"<table border='0' cellpadding='0' cellspacing='0'>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='1' height='16'/></td>"+"</tr>"+"</table>"+"<table border='0' cellpadding='2' cellspacing='0'>"+"<tr>"+"<td id='getInsertButton"+_tq+"'></td>"+"</tr>"+"<tr>"+"<td id='getRemoveButton"+_tq+"'></td>"+"</tr>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='90' height='1'/></td>"+"</tr>"+"</table>"+"</td>"+"<td valign='top'>"+"<table border='0' cellspacing='0' cellpadding='0' width='100%'>"+"<tr>"+"<td class='clsControlLabel pc'>";if(_mU.required){_yx+="<img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/>";}_yx+=PMT_UIM_CHOICES+"</td>"+"</tr>"+"<tr>"+"<td>"+"<select name='_oLstChoices"+_tq+"' class='clsChoicesListBox pv' multiple='multiple' size='7' onmouseup=\"setTimeout('multipleRange"+_tq+".checkInsertRemove()', 100);\" onkeyup='multipleRange"+_tq+".catchDeleteKey(event.keyCode)' style='"+cssParser(_mU.style,'font,text,color,height')+"'></select>"+"</td>"+"</tr>"+"<tr>"+"<td><div id='multipleRangeFeedback"+_tq+"' class='clsFeedbackWidget'><img name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr>"+"<tr>"+"<td align='right'>"+"<a href='javascript:multipleRange"+_tq+".selectAll()' class='clsLink pl'>"+PMT_UIM_SELECTALL+"</a>"+" "+"<a href='javascript:multipleRange"+_tq+".deSelectAll()' class='clsLink pl'>"+PMT_UIM_DESELECTALL+"</a>"+"</td>"+"</tr>"+"</table>"+"</td>"+"</tr>"+"</table></fieldset>";renderPromptControlHTML("selectInterval"+_tq,_yx);var _yD=getCVInstance(_mU);var _BY="genSelectIntervalRangeHTML("+generatePromptProperties(_mU,{id:"range_"+_tq,formName:_uA,parameterName:"r_"+_mU.parameterName,style:cssParser(_mU.style,"font,text,background,color"),suppressExtraPromptNames:true})+");"+"genInsertButtonHTML('"+_tq+"', 'multipleRange"+_tq+".insertChoiceList()', 'insertButton"+_tq+"');"+"genRemoveButtonHTML('"+_tq+"', 'multipleRange"+_tq+".removeChoiceList()', 'removeButton"+_tq+"');"+"this.multipleRange"+_tq+" = new CMultipleRange(rangerange_"+_tq+", document.forms['"+_uA+"'].elements['_oLstChoices"+_tq+"'], document.forms['"+_uA+"'].elements['"+_I3+"'], "+_mU.required+", '"+_mU.submitType+"', document.getElementById('multipleRangeFeedback"+_tq+"'), document.sizer"+_tq+", '"+_tq+"', document.getElementById('insertButton"+_tq+"'), document.getElementById('removeButton"+_tq+"'), '"+getCVId(_mU)+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('multipleRange"+_tq+"');"+_yD+"multipleObserverArray = "+_yD+"multipleObserverArray.concat('multipleRange"+_tq+"');"+"multipleRange"+_tq+".initChoiceList();";executePromptControlJS(_BY);};function genSelectDateHTML(_tq,_uA,_qw,_qW,_mZ,_pe,_mi,_t9,_px,_uF,_pZ,_oo,_ou,_sR,_oM,_nF,_mn,_oV,_pn,_uq,_te,_l5,_ta,_my,_oc,_rj,_r6,_q0,_mt,_tN){var _mU=_tq;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_tq,formName:_uA,parameterName:_qw,submitType:_qW,prmtDefaultDate:_mZ,defaultValue:_pe,startOfWeek:_mi,calendar:_t9,selectUI:_px,selectDateUI:_uF,inputOrder:_pZ,firstDate:_oo,lastDate:_ou,dateTime:_sR,initialState:_oM,required:_nF,suppressDisabled:_mn,hideAdornments:_oV,suppressExtraPromptNames:_pn,multi:_uq,_Hl:_te,style:_l5,selectDateEditBoxStyle:_ta,selectDateYearsStyle:_my,selectDateMonthsStyle:_oc,selectDateDaysOfWeekStyle:_rj,selectDateDaysStyle:_r6,endRange:_q0,popupLabel:_mt,popupZindex:_tN};}_mU.startRange=_mU.defaultValue;if(_mU.multi){if(!_mU.range){genSelectDateMultipleHTML(_mU);}else{genSelectDateRangeMultipleHTML(_mU);}}else{if(_mU.range){genSelectDateRangeHTML(_mU);}else{genSelectDateSingleHTML(_mU);}}};function genSelectDateSingleHTML(_md,_og,_nI,_uB,_pK,_tl,_sw,_ny,_n6,_vv,_qU,_pz,_s5,_qN,_p8,_re,_tw,_sy,_mr,_sf,_tu,_pj,_sv,_tb,_mt){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,prmtDefaultDate:_pK,defaultValue:_tl,startOfWeek:_sw,calendar:_ny,selectUI:_n6,selectDateUI:_vv,inputOrder:_qU,firstDate:_pz,lastDate:_s5,dateTime:_qN,required:_p8,suppressDisabled:_re,hideAdornments:_tw,suppressExtraPromptNames:_sy,style:_mr,selectDateEditBoxStyle:_sf,selectDateYearsStyle:_tu,selectDateMonthsStyle:_pj,selectDateDaysOfWeekStyle:_sv,selectDateDaysStyle:_tb};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _AD=P_ai;if(_tq.search("range_from")!=-1){_AD=_tq.substring(10)+".fromGotFocus";}if(_tq.search("range_to")!=-1){_AD=_tq.substring(8)+".toGotFocus";}var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _A9=0;if(_mU.startOfWeek=="Monday"){_A9=1;}else if(_mU.startOfWeek=="Tuesday"){_A9=2;}else if(_mU.startOfWeek=="Wednesday"){_A9=3;}else if(_mU.startOfWeek=="Thursday"){_A9=4;}else if(_mU.startOfWeek=="Friday"){_A9=5;}else if(_mU.startOfWeek=="Saturday"){_A9=6;}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _yG=0;if(_mU.calendar=="Imperial"){_yG=1;}var _Gh="document."+_uA+".imgTest"+_tq;if(_mU.hideAdornments){_Gh=null;}var _DL=_Bo;if(_mU.submitType==P_ak){_DL="_oDS_"+_tq;}var _wo="clsSelectDateCalendar";if(_mU.selectUI=="editBox"){_wo="clsSelectDateCalendarDialog";}var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<input type='hidden' name='"+_DL+"' id='"+_DL+"' value='"+_mU.prmtDefaultDate+"' >"+"<div class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table role='presentation' cellpadding='0' cellspacing='0' border='0' class='clsPromptComponent' style='"+cssParser(_mU.style,"visibility")+"'>"+"<tr>";if(!_mU.required&&!_mU.suppressDisabled&&(_mU.selectUI!="editBox"||!_mU.selectUI||_mU.selectDateUI!="editBox")){_yx+="<td valign='top'>"+"<input type='checkbox' value='anyValue' name='chkAnyValue"+_tq+"' onclick='pickerControl"+_tq+".toggleDisable(this.checked)' checked='checked'>"+"</td>";}else if(!_mU.hideAdornments&&_mU.required){_yx+="<td valign='top'>"+"<table role='presentation' cellpadding='0' cellspacing='0' border='0' width='10' height='20'>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='bottom' height='10' width='10' border='0'/></td>"+"</tr>"+"<tr>"+"<td valign='middle' align='right'><img id='imgTest"+_tq+"' name='imgTest"+_tq+"' class='clsErrorRequired' src='"+_Eb+"/prompting/images/error_timed_small_off.gif' align='bottom' height='10' width='10' border='0'/></td>"+"</tr>"+"</table>"+"</td>";}_yx+="<td valign='top' nowrap='nowrap' id='dateEditBox"+_tq+"'>";if(_mU.selectUI=="editBox"||_mU.selectDateUI=="editBox"){_yx+="<table role='presentation' cellpadding='0' cellspacing='0' border='0'>"+"<tr>"+"<td>"+"<input type='text' class='clsSelectDateEditBox pt' style=\""+_mU.selectDateEditBoxStyle+"\" name='txtDate"+_tq+"' id='txtDate"+_tq+"' onkeyup='pickerControl"+_tq+".checkDate(this)' onkeypress='pickerControl"+_tq+".keyPress(event);' value='' onfocus='pickerControl"+_tq+".gotFocus()' onblur='pickerControl"+_tq+".lostFocus()'>"+"</td><td>"+"<img role='button' tabindex='0' id='"+_tq+"imgPicker' name='"+_tq+"imgPicker' src='"+_Eb+"/prompting/images/icon_datepicker.gif' onKeydown=\"{if (event.keyCode == 9) {if (pickerControl"+_tq+".m_oDatePickerDialog.isVisible()){if (event.shiftKey){pickerControl"+_tq+".toggleDialogDatePicker(this,event); if (typeof range"+_AD+" == 'function') {range"+_AD+"();}} else {var focusEl = document.getElementById('"+_tq+"_btnYearDown');if (focusEl != null){focusEl.focus();PRMTUtils.F_StopEvent(event);}} }} else if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".toggleDialogDatePicker(this,event); event.cancelBubble=true;if (typeof range"+_AD+" == 'function') {range"+_AD+"();}}}\" onClick=\"pickerControl"+_tq+".toggleDialogDatePicker(this,event); event.cancelBubble=true;if (typeof range"+_AD+" == 'function') {range"+_AD+"();}\" height='20' width='25' class='clsToolbarButton' onmouseover='buttonOver(this)' onmouseout='buttonOut(this)' onmousedown='buttonOver(this)' alt='"+PMT_DTP_DATECONTROLBUTTONPOPUP+"' title='"+PMT_DTP_DATECONTROLBUTTONPOPUP+"' align='top' style=\"padding:0px;height:20px;\"/>"+"</td>"+"</tr>"+"</table>";}var _IF="";if((_mU.popupLabel==null)||(_mU.popupLabel=="")){_IF=PMT_DTP_DATECONTROLPOPUP;}else{_IF=_mU.popupLabel;}_yx+="<div name='dialogDatePicker' role='dialog' aria-label='"+_IF+"' id='dialogDatePicker"+_tq+"' style='";if(_mU.selectUI=="editBox"||_mU.selectDateUI=="editBox"){_yx+="display:none;";}_yx+="' onclick='event.cancelBubble=true;' onmousedown=\"if (typeof range"+_AD+" == 'function') {range"+_AD+"()}\">"+"<table role='presentation' border='0' cellpadding='0' cellspacing='0' class='"+_wo+"'>"+"<tr>"+"<td valign='top'>"+"<table role='presentation' class='clsSelectDateDialogTopTable' border='0' cellpadding='0' cellspacing='0' align='center' width='100%'>"+"<tr class='clsSelectDateYears' style=\"color: black"+_mU.selectDateYearsStyle+"\">"+"<td role='presentation' width='15' class='clsToolbarButton' onmouseover='buttonOver(this)' onmouseout='buttonOut(this)' onmousedown='buttonOver(this)'>"+"<img tabindex='0' role='button' id='"+_tq+"_btnYearDown' alt='"+PMT_DTP_DATECONTROLBUTTONYEARDECREMENT+"' title='"+PMT_DTP_DATECONTROLBUTTONYEARDECREMENT+"' src='"+_Eb+"/prompting/images/icon_year_down.gif' onKeydown='if (event.keyCode == 9 && event.shiftKey){var focusEl=document.getElementById(\""+_tq+"imgPicker\");if (focusEl != null){focusEl.focus(); PRMTUtils.F_StopEvent(event);}} else if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".m_oDatePickerDialog.yearDown();}' onclick='pickerControl"+_tq+".m_oDatePickerDialog.yearDown()' ondblclick='pickerControl"+_tq+".m_oDatePickerDialog.yearDown()' align='top'/>"+"</td>"+"<td width='100%' align='center'>"+"<input tabindex='0' class='clsSelectDateYearEditBox pcl' size='8' type='text' id='myYear"+_tq+"' onkeyup='pickerControl"+_tq+".m_oDatePickerDialog.checkYear(this)' onkeypress='pickerControl"+_tq+".m_oDatePickerDialog.keyPress(event.keyCode);pickerControl"+_tq+".m_oDatePickerDialog.m_oParentControl.checkDate(pickerControl"+_tq+".m_oDatePickerDialog.m_oParentControl.m_oEditBox);' onblur='pickerControl"+_tq+".m_oDatePickerDialog.lostFocus()'>"+"</td>"+"<td role='presentation' width='15' align='right' class='clsToolbarButton' onmouseover='buttonOver(this)' onmouseout='buttonOut(this)' onmousedown='buttonOver(this)'>"+"<img tabindex='0' role='button' id='"+_tq+"_btnYearUp' alt='"+PMT_DTP_DATECONTROLBUTTONYEARINCREMENT+"' title='"+PMT_DTP_DATECONTROLBUTTONYEARINCREMENT+"' src='"+_Eb+"/prompting/images/icon_year_up.gif' onKeydown='if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".m_oDatePickerDialog.yearUp();}' onclick='pickerControl"+_tq+".m_oDatePickerDialog.yearUp()' ondblclick='pickerControl"+_tq+".m_oDatePickerDialog.yearUp()' align='top'/>"+"</td>"+"</tr>"+"</table>"+"<table role='listbox' border='0' cellpadding='2' cellspacing='0' aria-label='"+PMT_DTP_DATECONTROLBUTTONPOPUP_MONTHS+"' width='100%' align='center'>"+"<tr>"+"<td tabindex='0' role='option' id='"+_tq+"m0' onkeydown='if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".m_oDatePickerDialog.newMonth(0);}' onmousedown='pickerControl"+_tq+".m_oDatePickerDialog.newMonth(0);' nowrap='nowrap' class='clsSelectDateMonths pm' style=\""+_mU.selectDateMonthsStyle+"\"> </td>"+"<td tabindex='0' role='option' id='"+_tq+"m1' onkeydown='if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".m_oDatePickerDialog.newMonth(1);}' onmousedown='pickerControl"+_tq+".m_oDatePickerDialog.newMonth(1);' nowrap='nowrap' class='clsSelectDateMonths pm' style=\""+_mU.selectDateMonthsStyle+"\"> </td>"+"<td tabindex='0' role='option' id='"+_tq+"m2' onkeydown='if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".m_oDatePickerDialog.newMonth(2);}' onmousedown='pickerControl"+_tq+".m_oDatePickerDialog.newMonth(2);' nowrap='nowrap' class='clsSelectDateMonths pm' style=\""+_mU.selectDateMonthsStyle+"\"> </td>"+"<td tabindex='0' role='option' id='"+_tq+"m3' onkeydown='if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".m_oDatePickerDialog.newMonth(3);}' onmousedown='pickerControl"+_tq+".m_oDatePickerDialog.newMonth(3);' nowrap='nowrap' class='clsSelectDateMonths pm' style=\""+_mU.selectDateMonthsStyle+"\"> </td>"+"<td tabindex='0' role='option' id='"+_tq+"m4' onkeydown='if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".m_oDatePickerDialog.newMonth(4);}' onmousedown='pickerControl"+_tq+".m_oDatePickerDialog.newMonth(4);' nowrap='nowrap' class='clsSelectDateMonths pm' style=\""+_mU.selectDateMonthsStyle+"\"> </td>"+"<td tabindex='0' role='option' id='"+_tq+"m5' onkeydown='if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".m_oDatePickerDialog.newMonth(5);}' onmousedown='pickerControl"+_tq+".m_oDatePickerDialog.newMonth(5);' nowrap='nowrap' class='clsSelectDateMonths pm' style=\""+_mU.selectDateMonthsStyle+"\"> </td>"+"</tr>"+"<tr>"+"<td tabindex='0' role='option' id='"+_tq+"m6' onkeydown='if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".m_oDatePickerDialog.newMonth(6);}' onmousedown='pickerControl"+_tq+".m_oDatePickerDialog.newMonth(6);' nowrap='nowrap' class='clsSelectDateMonths pm' style=\""+_mU.selectDateMonthsStyle+"\"> </td>"+"<td tabindex='0' role='option' id='"+_tq+"m7' onkeydown='if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".m_oDatePickerDialog.newMonth(7);}' onmousedown='pickerControl"+_tq+".m_oDatePickerDialog.newMonth(7);' nowrap='nowrap' class='clsSelectDateMonths pm' style=\""+_mU.selectDateMonthsStyle+"\"> </td>"+"<td tabindex='0' role='option' id='"+_tq+"m8' onkeydown='if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".m_oDatePickerDialog.newMonth(8);}' onmousedown='pickerControl"+_tq+".m_oDatePickerDialog.newMonth(8);' nowrap='nowrap' class='clsSelectDateMonths pm' style=\""+_mU.selectDateMonthsStyle+"\"> </td>"+"<td tabindex='0' role='option' id='"+_tq+"m9' onkeydown='if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".m_oDatePickerDialog.newMonth(9);}' onmousedown='pickerControl"+_tq+".m_oDatePickerDialog.newMonth(9);' nowrap='nowrap' class='clsSelectDateMonths pm' style=\""+_mU.selectDateMonthsStyle+"\"> </td>"+"<td tabindex='0' role='option' id='"+_tq+"m10' onkeydown='if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".m_oDatePickerDialog.newMonth(10);}' onmousedown='pickerControl"+_tq+".m_oDatePickerDialog.newMonth(10);' nowrap='nowrap' class='clsSelectDateMonths pm' style=\""+_mU.selectDateMonthsStyle+"\"> </td>"+"<td tabindex='0' role='option' id='"+_tq+"m11' onkeydown='if ((event.keyCode == 13) || (event.keyCode == 32)) {pickerControl"+_tq+".m_oDatePickerDialog.newMonth(11);}' onmousedown='pickerControl"+_tq+".m_oDatePickerDialog.newMonth(11);' nowrap='nowrap' class='clsSelectDateMonths pm' style=\""+_mU.selectDateMonthsStyle+"\"> </td>"+"</tr>"+"</table>"+"<table role='listbox' border='0' cellspacing='0' width='100%' aria-label='"+PMT_DTP_DATECONTROLBUTTONPOPUP_DAYS+"' align='center'>"+"<tr>"+"<td id='"+_tq+"d0' class='clsSelectDateDaysOfWeek pw' style=\""+_mU.selectDateDaysOfWeekStyle+"\"> </td>"+"<td id='"+_tq+"d1' class='clsSelectDateDaysOfWeek pw' style=\""+_mU.selectDateDaysOfWeekStyle+"\"> </td>"+"<td id='"+_tq+"d2' class='clsSelectDateDaysOfWeek pw' style=\""+_mU.selectDateDaysOfWeekStyle+"\"> </td>"+"<td id='"+_tq+"d3' class='clsSelectDateDaysOfWeek pw' style=\""+_mU.selectDateDaysOfWeekStyle+"\"> </td>"+"<td id='"+_tq+"d4' class='clsSelectDateDaysOfWeek pw' style=\""+_mU.selectDateDaysOfWeekStyle+"\"> </td>"+"<td id='"+_tq+"d5' class='clsSelectDateDaysOfWeek pw' style=\""+_mU.selectDateDaysOfWeekStyle+"\"> </td>"+"<td id='"+_tq+"d6' class='clsSelectDateDaysOfWeek pw' style=\""+_mU.selectDateDaysOfWeekStyle+"\"> </td>"+"</tr>"+"<tr>"+"<td tabindex='0' id='"+_tq+"r0c0' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r0c1' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r0c2' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r0c3' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r0c4' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r0c5' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r0c6' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"</tr>"+"<tr>"+"<td tabindex='0' id='"+_tq+"r1c0' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r1c1' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r1c2' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td role='option' tabindex='0' id='"+_tq+"r1c3' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r1c4' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r1c5' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r1c6' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"</tr>"+"<tr>"+"<td tabindex='0' id='"+_tq+"r2c0' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r2c1' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r2c2' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r2c3' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r2c4' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r2c5' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r2c6' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"</tr>"+"<tr>"+"<td tabindex='0' id='"+_tq+"r3c0' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r3c1' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r3c2' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r3c3' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r3c4' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r3c5' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r3c6' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"</tr>"+"<tr>"+"<td tabindex='0' id='"+_tq+"r4c0' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r4c1' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r4c2' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r4c3' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r4c4' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r4c5' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r4c6' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"</tr>"+"<tr>"+"<td tabindex='0' id='"+_tq+"r5c0' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r5c1' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r5c2' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r5c3' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r5c4' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r5c5' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"<td tabindex='0' id='"+_tq+"r5c6' class='clsSelectDateDays pd' style=\""+_mU.selectDateDaysStyle+"\" > </td>"+"</tr>"+"</table>"+"</td>"+"</tr>"+"</table>"+"</div>"+"</td>"+"</tr>"+"</table>"+"</div>"+"<iframe role='presentation' id='pickerControl"+_tq+"iframe' style=\"position:absolute; display:none;height:0px;width:0px;\" src='"+_Eb+"/prompting/images/spacer.gif'></iframe>";renderPromptControlHTML("selectDate"+_tq,_yx);var _BY=P_ai;if(_mU.selectUI=="editBox"||_mU.selectDateUI=="editBox"){_BY="this.pickerControl"+_tq+" = new CDatePicker(document.forms['"+_uA+"'].elements['"+_Bo+"'], document.forms['"+_uA+"'].elements['"+_DL+"'], document.forms['"+_uA+"'].elements['txtDate"+_tq+"'], document.getElementById('dialogDatePicker"+_tq+"'), '"+_tq+"', '"+_mU.defaultValue+"', 0, "+_yG+", '"+_mU.inputOrder+"', "+_A9+", "+_mU.dateTime+", '"+_mU.firstDate+"', '"+_mU.lastDate+"', "+_mU.required+", '"+_mU.submitType+"', "+_Gh+", '"+getCVId(_mU)+"',"+_mU.popupZindex+" );";}else{_BY="this.pickerControl"+_tq+" = new CDatePicker(document.forms['"+_uA+"'].elements['"+_Bo+"'], document.forms['"+_uA+"'].elements['"+_DL+"'], document.forms['"+_uA+"'].elements['"+_DL+"'], document.getElementById('dialogDatePicker"+_tq+"'), '"+_tq+"', '"+_mU.defaultValue+"', 1, "+_yG+", '"+_mU.inputOrder+"', "+_A9+", "+_mU.dateTime+", '"+_mU.firstDate+"', '"+_mU.lastDate+"', "+_mU.required+", '"+_mU.submitType+"', "+_Gh+", '"+getCVId(_mU)+"',"+_mU.popupZindex+" );";}var _yD=getCVInstance(_mU);_BY+=_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('pickerControl"+_tq+"');"+_yD+"datePickerObserverArray = "+_yD+"datePickerObserverArray.concat('pickerControl"+_tq+"');";executePromptControlJS(_BY);};function genSelectDateMultipleHTML(_md,_og,_nI,_uB,_pK,_tl,_sw,_ny,_n6,_vv,_qU,_pz,_s5,_qN,_p8,_re,_tw,_sy,_mr,_sf,_tu,_pj,_sv,_tb){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,prmtDefaultDate:_pK,defaultValue:_tl,startOfWeek:_sw,calendar:_ny,selectUI:_n6,selectDateUI:_vv,inputOrder:_qU,firstDate:_pz,lastDate:_s5,dateTime:_qN,required:_p8,suppressDisabled:_re,hideAdornments:_tw,suppressExtraPromptNames:_sy,style:_mr,selectDateEditBoxStyle:_sf,selectDateYearsStyle:_tu,selectDateMonthsStyle:_pj,selectDateDaysOfWeekStyle:_sv,selectDateDaysStyle:_tb};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _DL=_Bo;if(_mU.submitType==P_ak){_DL="_oDM_"+_tq;}var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<div class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table role='presentation' cellpadding='0' cellspacing='0' border='0' class='clsPromptComponent' style='"+cssParser(_mU.style,"visibility")+"'>"+"<tr>"+"<td colspan='2'><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='1' height='1'/></td>"+"<td class='clsControlLabel pc'>";if(!_mU.hideAdornments&&_mU.required){_yx+="<img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/>";}_yx+=PMT_UIM_CHOICES+"</td>"+"</tr>"+"<tr>"+"<td valign='top' id='selectDateSingle"+_tq+"'> </td>"+"<td valign='top' align='center' class='clsButtonLeftRightPadding'>"+"<table role='presentation' border='0' cellpadding='2' cellspacing='0'>"+"<tr>"+"<td id='getInsertButton"+_tq+"'> </td>"+"</tr>"+"<tr>"+"<td id='getRemoveButton"+_tq+"'> </td>"+"</tr>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='90' height='1'/></td>"+"</tr>"+"</table>"+"</td>"+"<td valign='top'>"+"<table role='presentation' border='0' cellspacing='0' cellpadding='0' width='100%'>"+"<tr>"+"<td><select name='"+_DL+"' id='"+_DL+"' style='"+cssParser(_mU.style,"font,text,color,height")+"' class='clsChoicesListbox pv' multiple='multiple' size='7' onmouseup=\"setTimeout('multipleDatePicker"+_tq+".checkInsertRemove()', 100);\" onkeyup='multipleDatePicker"+_tq+".catchDeleteKey(event.keyCode)'></select></td>"+"</tr>"+"<tr>"+"<td>"+"<div id='multipleFeedback"+_tq+"' class='clsFeedbackWidget'>"+"<img name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/>"+"</div>"+"</td>"+"</tr>"+"<tr>"+"<td align='right'>"+"<a href='javascript:multipleDatePicker"+_tq+".selectAll()' class='clsLink pl'>"+PMT_UIM_SELECTALL+"</a>"+" "+"<a href='javascript:multipleDatePicker"+_tq+".deSelectAll()' class='clsLink pl'>"+PMT_UIM_DESELECTALL+"</a>"+"</td>"+"</tr>"+"</table>"+"</td>"+"</tr>"+"</table>"+"</div>";renderPromptControlHTML("selectDate"+_tq,_yx);var _yD=getCVInstance(_mU);var _BY="genSelectDateSingleHTML("+generatePromptProperties(_mU,{id:"Single"+_tq,formName:_uA,parameterName:"D_"+_mU.parameterName,defaultValue:P_ai,startOfWeek:P_ai,calendar:P_ai,inputOrder:P_ai,firstDate:_mU.firstDate,lastDate:_mU.lastDate,required:false,suppressDisabled:true,style:cssParser(_mU.style,"visibility"),suppressExtraPromptNames:true})+");"+"genInsertButtonHTML('"+_tq+"', 'multipleDatePicker"+_tq+".insert()', 'insertButton"+_tq+"');"+"genRemoveButtonHTML('"+_tq+"', 'multipleDatePicker"+_tq+".remove()', 'removeButton"+_tq+"');"+"this.multipleDatePicker"+_tq+" = new CMultipleDatePicker(pickerControlSingle"+_tq+", document.forms['"+_uA+"'].elements['"+_DL+"'], document.forms['"+_uA+"'].elements['"+_Bo+"'], "+_mU.required+", '"+_mU.submitType+"', document.getElementById('multipleFeedback"+_tq+"'), document.sizer"+_tq+", document.getElementById('insertButton"+_tq+"'), document.getElementById('removeButton"+_tq+"'), '"+getCVId(_mU)+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('multipleDatePicker"+_tq+"');"+_yD+"multipleObserverArray = "+_yD+"multipleObserverArray.concat('multipleDatePicker"+_tq+"');";executePromptControlJS(_BY);};function genSelectDateRangeHTML(_md,_og,_nI,_uB,_pK,_o0,_nU,_sw,_ny,_n6,_vv,_qU,_pz,_s5,_qN,_sY,_p8,_re,_tw,_sy,_mr,_sf,_tu,_pj,_sv,_tb){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,prmtDefaultDate:_pK,startRange:_o0,endRange:_nU,startOfWeek:_sw,calendar:_ny,selectUI:_n6,selectDateUI:_vv,inputOrder:_qU,firstDate:_pz,lastDate:_s5,dateTime:_qN,initialState:_sY,required:_p8,suppressDisabled:_re,hideAdornments:_tw,suppressExtraPromptNames:_sy,style:_mr,selectDateEditBoxStyle:_sf,selectDateYearsStyle:_tu,selectDateMonthsStyle:_pj,selectDateDaysOfWeekStyle:_sv,selectDateDaysStyle:_tb};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}_mU.startRange=((typeof _mU.firstDate!=P_cD)&&_mU.firstDate)&&((typeof _mU.startRange==P_cD)||!_mU.startRange)?_mU.firstDate:_mU.startRange;_mU.endRange=((typeof _mU.lastDate!=P_cD)&&_mU.lastDate)&&((typeof _mU.endRange==P_cD)||!_mU.endRange)?_mU.lastDate:_mU.endRange;if(!_mU.startRange){_mU.startRange=P_ai;}if(!_mU.endRange){_mU.endRange=P_ai;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<div class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table role='presentation' border='0' cellspacing='0' cellpadding='1' class='clsPromptComponent' style='"+cssParser(_mU.style,"visibility")+"'>"+"<tr>"+"<td class='clsControlLabel pc' colspan='2' nowrap='nowrap'>"+PMT_RNG_FROM+"</td>"+"</tr>"+"<tr>"+"<td nowrap='nowrap'> </td>"+"<td nowrap='nowrap' onClick='range"+_tq+".fromGotFocus();' onkeyup='range"+_tq+".fromCheckRadioState(event.keyCode);' onkeypress='range"+_tq+".fromKeyPress(event.keyCode);' style=\"valign-align:text-top\">";if(!_mU.required){_yx+="<table role='presentation' border='0' cellspacing='0' cellpadding='0'>"+"<tr>"+"<td style='vertical-align:top;'>"+"<input name='fromValue"+_tq+"' type='radio' onclick='range"+_tq+".rangeNotify()'/>"+"<img width='10' alt='' src='"+_Eb+"/prompting/images/spacer.gif'>"+"</td>"+"<td>";}_yx+="<div id='selectDaterange_from"+_tq+"'> </div>";if(!_mU.required){_yx+="</td>"+"</tr>"+"</table>";}_yx+="</td>"+"</tr>";if(!_mU.required){_yx+="<tr>"+"<td nowrap='nowrap'>"+"<img src='"+_Eb+"/prompting/images/spacer.gif' height='1' width='5'/>"+"</td>"+"<td class='clsReadOnlyText pe' onclick=\"document.forms['"+_uA+"'].elements['fromValue"+_tq+"'][1].checked=true;range"+_tq+".rangeNotify()\">"+"<input value='lowest' name='fromValue"+_tq+"' type='radio' checked='true'>"+"<img width='10' alt='' src='"+_Eb+"/prompting/images/spacer.gif'/>"+PMT_RNG_EARLIEST_DATE+"</td>"+"</tr>";}_yx+="<tr>"+"<td nowrap='nowrap' colspan='2'> </td>"+"</tr>"+"<tr>"+"<td class='clsControlLabel pc' colspan='2' nowrap='nowrap'>"+PMT_RNG_TO+"</td>"+"</tr>"+"<tr>"+"<td nowrap='nowrap'> </td>"+"<td nowrap='nowrap' onClick='range"+_tq+".toGotFocus();' onkeyup='range"+_tq+".toCheckRadioState(event.keyCode);' onkeypress='range"+_tq+".toKeyPress(event.keyCode);'>";if(!_mU.required){_yx+="<table role='presentation' border='0' cellspacing='0' cellpadding='0'>"+"<tr>"+"<td style='vertical-align:top;'>"+"<input name='toValue"+_tq+"' type='radio' onclick='range"+_tq+".rangeNotify()'>"+"<img width='10' alt='' src='"+_Eb+"/prompting/images/spacer.gif'/>"+"</td>"+"<td>";}_yx+="<div id='selectDaterange_to"+_tq+"'> </div>";if(!_mU.required){_yx+="</td>"+"</tr>"+"</table>";}_yx+="</td>"+"</tr>";if(!_mU.required){_yx+="<tr>"+"<td nowrap='nowrap'>"+"<img src='"+_Eb+"/prompting/images/spacer.gif' height='1' width='5'/>"+"</td>"+"<td class='clsReadOnlyText pe' onclick=\"document.forms['"+_uA+"'].elements['toValue"+_tq+"'][1].checked=true;range"+_tq+".rangeNotify()\">"+"<input value='highest' name='toValue"+_tq+"' type='radio' checked='true'>"+"<img width='10' alt='' src='"+_Eb+"/prompting/images/spacer.gif'/>"+PMT_RNG_LATEST_DATE+"</td>"+"</tr>";}_yx+="</table>"+"</div>";renderPromptControlHTML("selectDate"+_tq,_yx);var _BY="genSelectDateSingleHTML("+generatePromptProperties(_mU,{id:"range_from"+_tq,formName:_uA,parameterName:"range_from"+_mU.parameterName,defaultValue:_mU.startRange,startOfWeek:P_ai,calendar:P_ai,inputOrder:P_ai,style:cssParser(_mU.style,"visibility"),suppressDisabled:true,suppressExtraPromptNames:true})+");"+"genSelectDateSingleHTML("+generatePromptProperties(_mU,{id:"range_to"+_tq,formName:_uA,parameterName:"range_to"+_mU.parameterName,defaultValue:_mU.endRange,startOfWeek:P_ai,calendar:P_ai,style:cssParser(_mU.style,"visibility"),inputOrder:P_ai,suppressDisabled:true,suppressExtraPromptNames:true})+");";if(_mU.required){_BY+="this.range"+_tq+" = new CRange(document.forms['"+_uA+"'].elements['"+_Bo+"'], null, pickerControlrange_from"+_tq+", null, null, pickerControlrange_to"+_tq+", null, 'date', true, '"+_mU.submitType+"', null, '"+getCVId(_mU)+"');";}else{_BY+="this.range"+_tq+" = new CRange(document.forms['"+_uA+"'].elements['"+_Bo+"'], document.forms['"+_uA+"'].elements['fromValue"+_tq+"'][0], pickerControlrange_from"+_tq+", null, document.forms['"+_uA+"'].elements['toValue"+_tq+"'][0], pickerControlrange_to"+_tq+", null, 'date', false, '"+_mU.submitType+"' , "+_mU.initialState+", '"+getCVId(_mU)+"');";}var _yD=getCVInstance(_mU);_BY+=_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('range"+_tq+"');"+_yD+"rangeObserverArray = "+_yD+"rangeObserverArray.concat('range"+_tq+"');";executePromptControlJS(_BY);};function genSelectDateRangeMultipleHTML(_md,_og,_nI,_uB,_pK,_o0,_nU,_sw,_ny,_n6,_vv,_qU,_pz,_s5,_qN,_sY,_p8,_re,_tw,_sy,_mr,_sf,_tu,_pj,_sv,_tb){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,prmtDefaultDate:_pK,startRange:_o0,endRange:_nU,startOfWeek:_sw,calendar:_ny,selectUI:_n6,selectDateUI:_vv,inputOrder:_qU,firstDate:_pz,lastDate:_s5,dateTime:_qN,initialState:_sY,required:_p8,suppressDisabled:_re,hideAdornments:_tw,suppressExtraPromptNames:_sy,style:_mr,selectDateEditBoxStyle:_sf,selectDateYearsStyle:_tu,selectDateMonthsStyle:_pj,selectDateDaysOfWeekStyle:_sv,selectDateDaysStyle:_tb};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}if(!_mU.startRange){_mU.startRange=P_ai;}if(!_mU.endRange){_mU.endRange=P_ai;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _DL=_Bo;if(_mU.submitType==P_ak){_DL="_oLstDRM_"+_tq;}var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<div class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table role='presentation' cellpadding='0' cellspacing='0' border='0' class='clsPromptComponent' style='"+cssParser(_mU.style,"visibility")+"'>"+"<tr>"+"<td valign='top' id='selectDateRange"+_tq+"'> </td>"+"<td valign='top' align='center' class='clsButtonLeftRightPadding'>"+"<table role='presentation' border='0' cellpadding='0' cellspacing='0'>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='1' height='16'/></td>"+"</tr>"+"</table>"+"<table role='presentation' border='0' cellpadding='2' cellspacing='0'>"+"<tr>"+"<td id='getInsertButton"+_tq+"'> </td>"+"</tr>"+"<tr>"+"<td id='getRemoveButton"+_tq+"'> </td>"+"</tr>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='90' height='1'/></td>"+"</tr>"+"</table>"+"</td>"+"<td valign='top'>"+"<table role='presentation' border='0' cellspacing='0' cellpadding='0' width='100%'>"+"<tr>"+"<td class='clsControlLabel pc'>";if(_mU.required){_yx+="<img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/>";}_yx+=PMT_UIM_CHOICES+"</td>"+"</tr>"+"<tr>"+"<td>"+"<select name='"+_DL+"' style='"+cssParser(_mU.style,"font,text,color,height")+"' class='clsChoicesListbox pv' multiple='multiple' size='7' onmouseup=\"setTimeout('multipleRange"+_tq+".checkInsertRemove()', 100);\" onkeyup='multipleRange"+_tq+".catchDeleteKey(event.keyCode)'></select>"+"</td>"+"</tr>"+"<tr>"+"<td>"+"<div id='multipleRangeFeedback"+_tq+"' class='clsFeedbackWidget'><img name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div>"+"</td>"+"</tr>"+"<tr>"+"<td align='right'>"+"<a href='javascript:multipleRange"+_tq+".selectAll()' class='clsLink pl'>"+PMT_UIM_SELECTALL+"</a>"+" "+"<a href='javascript:multipleRange"+_tq+".deSelectAll()' class='clsLink pl'>"+PMT_UIM_DESELECTALL+"</a>"+"</td>"+"</tr>"+"</table>"+"</td>"+"</tr>"+"</table>"+"</div>";renderPromptControlHTML("selectDate"+_tq,_yx);var _yD=getCVInstance(_mU);var _BY="genSelectDateRangeHTML("+generatePromptProperties(_mU,{id:"Range"+_tq,formName:_uA,parameterName:"r_"+_mU.parameterName,style:cssParser(_mU.style,"visibility"),suppressExtraPromptNames:true})+");"+"genInsertButtonHTML('"+_tq+"', 'multipleRange"+_tq+".insertChoiceList()', 'insertButton"+_tq+"');"+"genRemoveButtonHTML('"+_tq+"', 'multipleRange"+_tq+".removeChoiceList()', 'removeButton"+_tq+"');"+"this.multipleRange"+_tq+" = new CMultipleRange(rangeRange"+_tq+", document.forms['"+_uA+"'].elements['"+_DL+"'], document.forms['"+_uA+"'].elements['"+_Bo+"'], "+_mU.required+", '"+_mU.submitType+"', document.getElementById('multipleRangeFeedback"+_tq+"'), document.sizer"+_tq+", '"+_tq+"', document.getElementById('insertButton"+_tq+"'), document.getElementById('removeButton"+_tq+"'), '"+getCVId(_mU)+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('multipleRange"+_tq+"');"+_yD+"multipleObserverArray = "+_yD+"multipleObserverArray.concat('multipleRange"+_tq+"');"+"multipleRange"+_tq+".initChoiceList();";executePromptControlJS(_BY);};function genSelectTimeHTML(_tq,_uA,_qw,_qW,_pe,_px,_qp,_ml,_ud,_oH,_pP,_nE,_mC,_oM,_nF,_mn,_oV,_pn,_sM,_te,_ti,_l5){var _mU=_tq;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_tq,formName:_uA,parameterName:_qw,submitType:_qW,defaultValue:_pe,selectUI:_px,_xf:_qp,hourFormat:_ml,minuteFormat:_ud,secondFormat:_oH,_nC:_pP,display:_nE,mode:_mC,initialState:_oM,required:_nF,suppressDisabled:_mn,hideAdornments:_oV,suppressExtraPromptNames:_pn,multi:_sM,_Hl:_te,style:_l5,endTime:_ti};}_mU.startTime=_mU.defaultValue;if(_mU.multi){if(!_mU.range){genSelectTimeMultipleHTML(_mU);}else{genSelectTimeRangeMultipleHTML(_mU);}}else{if(_mU.range){genSelectTimeRangeHTML(_mU);}else{genSelectTimeSingleHTML(_mU);}}};function genSelectTimeSingleHTML(_md,_og,_nI,_uB,_tl,_n6,_or,_r0,_m0,_rG,_vJ,_vG,_ol,_p8,_re,_tw,_sy){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,defaultValue:_tl,selectUI:_n6,_xf:_or,hourFormat:_r0,minuteFormat:_m0,secondFormat:_rG,_nC:_vJ,display:_vG,mode:_ol,required:_p8,suppressDisabled:_re,hideAdornments:_tw,suppressExtraPromptNames:_sy};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _DL=_Bo;if(_mU.submitType==P_ak){_DL="_oTS_"+_tq;}var _vD="document.forms['"+_uA+"'].elements['"+_Bo+"']";var _pp="document.forms['"+_uA+"'].elements['"+_DL+"']";var _oh="document.forms['"+_uA+"'].elements['hours"+_tq+"']";var _mD="document.forms['"+_uA+"'].elements['minutes"+_tq+"']";var _nh="document.forms['"+_uA+"'].elements['seconds"+_tq+"']";var _vo="document.forms['"+_uA+"'].elements['milliseconds"+_tq+"']";var _uc="document.forms['"+_uA+"'].elements['AMPM"+_tq+"']";var _tJ="document.forms['"+_uA+"'].elements['imgTest"+_tq+"']";if(_mU.hideAdornments){_tJ=null;}var _qx=true;if(_mU.selectUI=="clock"){_qx=true;}else if(_mU.selectUI=="editBox"){_qx=false;}var _Ig=null;var _C1=null;if(_qx){_Ig="clockDisplay"+_tq;_C1="document.getElementById('clock"+_tq+"')";}var _xf=_mU.timeZone;if(!_xf){_xf="GMT";}var _DA=_mU.hourFormat;if(!_DA){_DA="hh";}var _HC=_mU.minuteFormat;if(!_HC){_HC="mm";}var _GP=_mU.secondFormat;if(!_GP){_GP="ss";}var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<input type='hidden' name='"+_DL+"' value='00:00:00.000'>"+"<div class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table role='presentation' border='0' cellspacing='0' cellpadding='0' class='clsPromptComponent' style='"+cssParser(_mU.style,"visibility")+"'>"+"<tr>";if(!_mU.required&&!_mU.suppressDisabled){_yx+="<td valign='top'>"+"<input type='checkbox' value='anyValue' name='chkAnyValue"+_tq+"' onclick='timePicker"+_tq+".toggleDisable(this.checked)' checked='checked'>"+"</td>";}_yx+="<td valign='top'>"+"<table role='presentation' border='0' cellspacing='0' cellpadding='0' class='clsSelectTime' id='timeTable_"+_tq+"' ";if((_mU.timeLabel!=null)&&(_mU.timeLabel!="")){_yx+="role='group' aria-label='"+_mU.timeLabel+"'";}else{_yx+="role='presnetation' ";}_yx+=">";var _p5=false;if(_qx){if(_mU.display==1||_mU.display===0){_p5=true;}_yx+="<tr class='clsClockPosition'>"+"<td height='100%' colspan='3'><div class='clsClockBlock' align='center'><div id='clock"+_tq+"' class='clsClock'> </div></div></td>"+"</tr>";}_yx+="<tr>";if(!_mU.hideAdornments&&_mU.required){_yx+="<td valign='top'>"+"<table role='presentation' cellpadding='0' cellspacing='0' border='0' width='10' height='20'>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='bottom' height='10' width='10' border='0'/></td>"+"</tr>"+"<tr>"+"<td valign='middle' align='right'><img id='imgTest"+_tq+"' name='imgTest"+_tq+"' class='clsErrorRequired' src='"+_Eb+"/prompting/images/error_timed_small_off.gif' align='bottom' height='10' width='10' border='0'/></td>"+"</tr>"+"</table>"+"</td>";}_yx+="<td id='timeEditBox"+_tq+"' nowrap='nowrap'>"+"<div ";if(typeof _mU.type!="number"){if(typeof g_24HourClock!=P_cD&&g_24HourClock.toString().toLowerCase()=="true"){_mU.type=2;}else{if(typeof g_AMPMLocation!=P_cD&&g_AMPMLocation=='left'){_mU.type=1;}else{_mU.type=0;}}}if(_mU.display===0&&(_mU.type===0||_mU.type==1)){_yx+="class='clsSelectTimeEditBoxExtend pcl' id='editBox"+_tq+"'>";}else{_yx+="class='clsSelectTimeEditBox pcl' id='editBox"+_tq+"'>";}if(_mU.type==1){_yx+="<span>"+"<input name='AMPM"+_tq+"' class='clsSelectTimeControl' style='border:none;' onkeyup='timePicker"+_tq+".keyPress(event,this);timePicker"+_tq+".bCheckAMPM()' onblur='timePicker"+_tq+".refreshTime()' onfocus='timePicker"+_tq+".setCurrentFocus(this)' value='PM' size='2' maxlength='2'>"+"</span>";}_yx+="<span style=\"text-align: right\"><input name='hours"+_tq+"' style='border:none;' class='clsSelectTimeControl' onkeyup='timePicker"+_tq+".keyPress(event,this);timePicker"+_tq+".bCheckHour()' onblur='timePicker"+_tq+".refreshTime()' onfocus='timePicker"+_tq+".setCurrentFocus(this)' value='12' size='2' maxlength='2'></span>"+"<span class='clsColon pcl'>:</span>"+"<span class='pcl'><input name='minutes"+_tq+"' style='border:none;' class='clsSelectTimeControl' onkeyup='timePicker"+_tq+".keyPress(event,this);timePicker"+_tq+".bCheckMinute()' onblur='timePicker"+_tq+".refreshTime()' onfocus='timePicker"+_tq+".setCurrentFocus(this)' value='10' size='2' maxlength='2'></span>";if(_mU.display==1||_mU.display===0){_yx+="<span class='clsColon pcl'>:</span>"+"<span><input name='seconds"+_tq+"' class='clsSelectTimeControl' style='border:none;' onkeyup='timePicker"+_tq+".keyPress(event,this);timePicker"+_tq+".bCheckSecond()' onblur='timePicker"+_tq+".refreshTime()' onfocus='timePicker"+_tq+".setCurrentFocus(this)' value='59' size='2' maxlength='2'></span>";}if(_mU.display===0){_yx+="<span class='clsColon pcl'>.</span>"+"<span><input name='milliseconds"+_tq+"' class='clsSelectTimeControl' style='border:none;' onkeyup='timePicker"+_tq+".keyPress(event,this);timePicker"+_tq+".bCheckMillisecond()' onblur='timePicker"+_tq+".refreshTime()' onfocus='timePicker"+_tq+".setCurrentFocus(this)' value='000' size='3' maxlength='3'></span>";}if(_mU.type===0){_yx+="<span><input name='AMPM"+_tq+"' class='clsSelectTimeControl' style='border:none;' onkeyup='timePicker"+_tq+".keyPress(event,this);timePicker"+_tq+".bCheckAMPM()' onblur='timePicker"+_tq+".refreshTime()' onfocus='timePicker"+_tq+".setCurrentFocus(this)' value='PM' size='3' maxlength='2'></span>";}_yx+="</div>"+"</td>"+"<td>"+"<table cellpadding='0' cellspacing='0' border='0' role='presentation' >"+"<tr>"+"<td width='15' align='right' role='button' class='clsToolbarButton' onmouseover='buttonOver(this)' onmouseout='buttonOut(this)' onmousedown='buttonOver(this)' onclick='timePicker"+_tq+".timeUp()' ondblclick='timePicker"+_tq+".timeUp()'><img id='btnTimeUp"+_tq+"' src='"+_Eb+"/prompting/images/icon_time_up.gif' border='0' align='top' width='15' height='7' alt='"+PMT_DTP_TIME_BUTTON_INCREMENT+"' title='"+PMT_DTP_TIME_BUTTON_INCREMENT+"'/></td>"+"</tr>"+"<tr>"+"<td width='15' align='right' role='button' class='clsToolbarButton' onmouseover='buttonOver(this)' onmouseout='buttonOut(this)' onmousedown='buttonOver(this)' onclick='timePicker"+_tq+".timeDown()' ondblclick='timePicker"+_tq+".timeDown()'><img id='btnTimeDown"+_tq+"' src='"+_Eb+"/prompting/images/icon_time_down.gif' border='0' align='top' width='15' height='7' alt='"+PMT_DTP_TIME_BUTTON_DECREMENT+"' title='"+PMT_DTP_TIME_BUTTON_DECREMENT+"'/></td>"+"</tr>"+"</table>"+"</td>"+"</tr>"+"</table>"+"</td>"+"</tr>"+"</table>"+"</div>";renderPromptControlHTML("selectTime"+_tq,_yx);var _BY=P_ai;if(_qx){_BY+="this.clockDisplay"+_tq+" = new CClock(document.getElementById('clock"+_tq+"'), null, 'clockDisplay"+_tq+"', "+_mU.mode+", "+_p5+", '"+getCVId(_mU)+"');";}var _yD=getCVInstance(_mU);_BY+="this.timePicker"+_tq+" = new CTimePicker("+_vD+", "+_pp+", "+_oh+", "+_mD+", "+_nh+", "+_vo+", "+_uc+", "+_tJ+", "+_C1+", document.getElementById('editBox"+_tq+"'), 'timePicker"+_tq+"', "+_mU.type+", "+_mU.display+", "+_qx+", '"+_xf+"', '"+_DA+"', '"+_HC+"', '"+_GP+"', "+_mU.mode+", '"+_Ig+"', '"+_mU.defaultValue+"', "+_mU.required+", '"+_mU.submitType+"', '"+getCVId(_mU)+"', '"+_tq+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('timePicker"+_tq+"');";executePromptControlJS(_BY);};function genSelectTimeMultipleHTML(_md,_og,_nI,_uB,_tl,_n6,_or,_r0,_m0,_rG,_vJ,_vG,_ol,_p8,_re,_tw,_sy,_pD,_mr){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,defaultValue:_tl,selectUI:_n6,_xf:_or,hourFormat:_r0,minuteFormat:_m0,secondFormat:_rG,_nC:_vJ,display:_vG,mode:_ol,required:_p8,suppressDisabled:_re,hideAdornments:_tw,suppressExtraPromptNames:_sy,inline:_pD,style:_mr};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _DL=_Bo;if(_mU.submitType==P_ak){_DL="_oLstTM_"+_tq;}var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<div class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table cellpadding='0' role='presentation' cellspacing='0' border='0' class='clsPromptComponent' style='"+cssParser(_mU.style,"visibility")+"'>"+"<tr>"+"<td colspan='2'><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='1' height='1'/></td>"+"<td class='clsControlLabel pc'>";if(!_mU.hideAdornments&&_mU.required){_yx+="<img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/>";}_yx+=PMT_UIM_CHOICES+"</td>"+"</tr>"+"<tr>"+"<td valign='top' id='selectTimeSingle"+_tq+"'> </td>"+"<td valign='top' class='clsButtonLeftRightPadding' style=\"padding-left:15px\">"+"<table border='0' cellpadding='2' cellspacing='0'>"+"<tr>"+"<td id='getInsertButton"+_tq+"'> </td>"+"</tr>"+"<tr>"+"<td id='getRemoveButton"+_tq+"'> </td>"+"</tr>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='90' height='1'/></td>"+"</tr>"+"</table>"+"</td>"+"<td valign='top'>"+"<table border='0' cellspacing='0' cellpadding='0' width='100%'>"+"<tr>"+"<td>"+"<select name='"+_DL+"' style='"+cssParser(_mU.style,"font,color,text,height")+"' class='clsChoicesListbox pv' multiple='multiple' size='7' onmouseup=\"setTimeout('multipleTimePicker"+_tq+".checkInsertRemove()', 100);\" onkeyup='multipleTimePicker"+_tq+".catchDeleteKey(event.keyCode)'></select>"+"</td>"+"</tr>"+"<tr>"+"<td>"+"<div id='multipleTextFeedback"+_tq+"' class='clsFeedbackWidget'>"+"<img name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/>"+"</div>"+"</td>"+"</tr>"+"<tr>"+"<td align='right'>"+"<a href='javascript:multipleTimePicker"+_tq+".selectAll()' class='clsLink pl'>"+PMT_UIM_SELECTALL+"</a>"+" "+"<a href='javascript:multipleTimePicker"+_tq+".deSelectAll()' class='clsLink pl'>"+PMT_UIM_DESELECTALL+"</a>"+"</td>"+"</tr>"+"</table>"+"</td>"+"</tr>"+"</table>"+"</div>";renderPromptControlHTML("selectTime"+_tq,_yx);var _yD=getCVInstance(_mU);var _BY="genSelectTimeSingleHTML("+generatePromptProperties(_mU,{id:"Single"+_tq,formName:_uA,defaultValue:P_ai,required:false,suppressDisabled:true,style:cssParser(_mU.style,"visibility"),suppressExtraPromptNames:true})+");"+"genInsertButtonHTML('"+_tq+"', 'multipleTimePicker"+_tq+".insert()', 'insertButton"+_tq+"');"+"genRemoveButtonHTML('"+_tq+"', 'multipleTimePicker"+_tq+".remove()', 'removeButton"+_tq+"');"+"this.multipleTimePicker"+_tq+" = new CMultipleTimePicker(timePickerSingle"+_tq+", document.forms['"+_uA+"'].elements['"+_DL+"'], document.forms['"+_uA+"'].elements['"+_Bo+"'], "+_mU.required+", '"+_mU.submitType+"', document.getElementById('multipleTextFeedback"+_tq+"'), document.sizer"+_tq+", document.getElementById('insertButton"+_tq+"'), document.getElementById('removeButton"+_tq+"'), '"+getCVId(_mU)+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('multipleTimePicker"+_tq+"');"+_yD+"multipleObserverArray = "+_yD+"multipleObserverArray.concat('multipleTimePicker"+_tq+"');";executePromptControlJS(_BY);};function genSelectTimeRangeHTML(_md,_og,_nI,_uB,_um,_pY,_n6,_or,_r0,_m0,_rG,_vJ,_vG,_ol,_sY,_p8,_re,_tw,_sy,_mr){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,startTime:_um,endTime:_pY,selectUI:_n6,_xf:_or,hourFormat:_r0,minuteFormat:_m0,secondFormat:_rG,_nC:_vJ,display:_vG,mode:_ol,initialState:_sY,required:_p8,suppressDisabled:_re,hideAdornments:_tw,suppressExtraPromptNames:_sy,style:_mr};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<div class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table border='0' cellspacing='0' cellpadding='1' class='clsPromptComponent' style='"+cssParser(_mU.style,"visibility")+"'>"+"<tr>"+"<td class='clsControlLabel pc' colspan='2' nowrap='nowrap'>"+PMT_RNG_FROM+"</td>"+"</tr>"+"<tr>"+"<td nowrap='nowrap'> </td>"+"<td nowrap='nowrap' onClick='range"+_tq+".fromGotFocus();' onkeyup='range"+_tq+".fromCheckRadioState(event.keyCode);' onkeypress='range"+_tq+".fromKeyPress(event.keyCode);'>"+"<table cellpadding='0' cellspacing='0'>"+"<tr>";if(!_mU.required){_yx+="<td valign='top'>"+"<input name='fromValue"+_tq+"' type='radio' onclick='range"+_tq+".rangeNotify()'>"+"</td>"+"<td>"+"<img width='10' alt='' src='"+_Eb+"/prompting/images/spacer.gif'/>"+"</td>";}_yx+="<td id='selectTimerange_from"+_tq+"'> </td>"+"</tr>"+"</table>"+"</td>"+"</tr>";if(!_mU.required){_yx+="<tr onclick=\"document.forms['"+_uA+"'].elements['fromValue"+_tq+"'][1].checked=true;range"+_tq+".rangeNotify()\">"+"<td nowrap='nowrap'>"+"<img src='"+_Eb+"/prompting/images/spacer.gif' height='1' width='5'/>"+"</td>"+"<td class='clsReadOnlyText'>"+"<input value='lowest' name='fromValue"+_tq+"' type='radio' checked='true'>"+"<img width='10' alt='' src='"+_Eb+"/prompting/images/spacer.gif'/>"+PMT_RNG_EARLIEST_TIME+"</td>"+"</tr>";}_yx+="<tr>"+"<td nowrap='nowrap' colspan='2'> </td>"+"</tr>"+"<tr>"+"<td class='clsControlLabel pc' colspan='2' nowrap='nowrap'>"+PMT_RNG_TO+"</td>"+"</tr>"+"<tr>"+"<td nowrap='nowrap'> </td>"+"<td nowrap='nowrap' onClick='range"+_tq+".toGotFocus();' onkeyup='range"+_tq+".toCheckRadioState(event.keyCode);' onkeypress='range"+_tq+".toKeyPress(event.keyCode);'>"+"<table cellpadding='0' cellspacing='0'>"+"<tr>";if(!_mU.required){_yx+="<td valign='top'>"+"<input name='toValue"+_tq+"' type='radio' onclick='range"+_tq+".rangeNotify()'>"+"</td>"+"<td>"+"<img width='10' alt='' src='"+_Eb+"/prompting/images/spacer.gif'/>"+"</td>";}_yx+="<td valign='top' id='selectTimerange_to"+_tq+"'></td>"+"</tr>"+"</table>"+"</td>"+"</tr>";if(!_mU.required){_yx+="<tr onclick=\"document.forms['"+_uA+"'].elements['toValue"+_tq+"'][1].checked=true;range"+_tq+".rangeNotify()\">"+"<td nowrap='nowrap'>"+"<img src='"+_Eb+"/prompting/images/spacer.gif' height='1' width='5'/>"+"</td>"+"<td class='clsReadOnlyText'>"+"<input value='highest' name='toValue"+_tq+"' type='radio' checked='true' onclick='range"+_tq+".rangeNotify()'>"+"<img width='10' alt='' src='"+_Eb+"/prompting/images/spacer.gif'/>"+PMT_RNG_LATEST_TIME+"</td>"+"</tr>";}_yx+="</table>"+"</div>";renderPromptControlHTML("selectTime"+_tq,_yx);var _BY="genSelectTimeSingleHTML("+generatePromptProperties(_mU,{id:"range_from"+_tq,formName:_uA,parameterName:"range_from"+_mU.parameterName,defaultValue:_mU.startTime,suppressDisabled:true,style:cssParser(_mU.style,"visibility"),suppressExtraPromptNames:true})+");"+"genSelectTimeSingleHTML("+generatePromptProperties(_mU,{id:"range_to"+_tq,formName:_uA,parameterName:"range_to"+_mU.parameterName,defaultValue:_mU.endTime,style:cssParser(_mU.style,"visibility"),suppressDisabled:true,suppressExtraPromptNames:true})+");";if(_mU.required){_BY+="this.range"+_tq+" = new CRange(document.forms['"+_uA+"'].elements['"+_Bo+"'], null, timePickerrange_from"+_tq+", null, null, timePickerrange_to"+_tq+", null, 'time', true, '"+_mU.submitType+"', null, '"+getCVId(_mU)+"');";}else{_BY+="this.range"+_tq+" = new CRange(document.forms['"+_uA+"'].elements['"+_Bo+"'], document.forms['"+_uA+"'].elements['fromValue"+_tq+"'][0], timePickerrange_from"+_tq+",null, document.forms['"+_uA+"'].elements['toValue"+_tq+"'][0], timePickerrange_to"+_tq+", null, 'datetime', false, '"+_mU.submitType+"', "+_mU.initialState+", '"+getCVId(_mU)+"');";}var _yD=getCVInstance(_mU);_BY+=_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('range"+_tq+"');"+_yD+"rangeObserverArray = "+_yD+"rangeObserverArray.concat('range"+_tq+"');";executePromptControlJS(_BY);};function genSelectTimeRangeMultipleHTML(_md,_og,_nI,_uB,_um,_pY,_n6,_or,_r0,_m0,_rG,_vJ,_vG,_ol,_sY,_p8,_re,_tw,_sy,_mr){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,startTime:_um,endTime:_pY,selectUI:_n6,_xf:_or,hourFormat:_r0,minuteFormat:_m0,secondFormat:_rG,_nC:_vJ,display:_vG,mode:_ol,initialState:_sY,required:_p8,suppressDisabled:_re,hideAdornments:_tw,suppressExtraPromptNames:_sy,style:_mr};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _DL=_Bo;if(_mU.submitType==P_ak){_DL="_oLstTRM_"+_tq;}var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<div class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table cellpadding='0' cellspacing='0' border='0' class='clsPromptComponent' style='"+cssParser(_mU.style,"visibility")+"'>"+"<tr>"+"<td valign='top' id='selectTimer_"+_tq+"'> </td>"+"<td valign='top' class='clsButtonLeftRightPadding'>"+"<table border='0' cellpadding='0' cellspacing='0'>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='1' height='16'/></td>"+"</tr>"+"</table>"+"<table border='0' cellpadding='2' cellspacing='0'>"+"<tr>"+"<td id='getInsertButton"+_tq+"'> </td>"+"</tr>"+"<tr>"+"<td id='getRemoveButton"+_tq+"'> </td>"+"</tr>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='90' height='1'/></td>"+"</tr>"+"</table>"+"</td>"+"<td valign='top'>"+"<table border='0' cellspacing='0' cellpadding='0' width='100%'>"+"<tr>"+"<td class='clsControlLabel pc'>";if(_mU.required){_yx+="<img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/>";}_yx+=PMT_UIM_CHOICES+"</td>"+"</tr>"+"<tr>"+"<td>"+"<select name='"+_DL+"' style='"+cssParser(_mU.style,"font,text,color,height")+"' class='clsChoicesListbox pv' multiple='multiple' size='7' onmouseup=\"setTimeout('multipleRange"+_tq+".checkInsertRemove()', 100);\" onkeyup='multipleRange"+_tq+".catchDeleteKey(event.keyCode)'></select>"+"</td>"+"</tr>"+"<tr>"+"<td>"+"<div id='multipleRangeFeedback"+_tq+"' class='clsFeedbackWidget'>"+"<img name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/>"+"</div>"+"</td>"+"</tr>"+"<tr>"+"<td align='right'>"+"<a href='javascript:multipleRange"+_tq+".selectAll()' class='clsLink pl'>"+PMT_UIM_SELECTALL+"</a>"+" "+"<a href='javascript:multipleRange"+_tq+".deSelectAll()' class='clsLink pl'>"+PMT_UIM_DESELECTALL+"</a>"+"</td>"+"</tr>"+"</table>"+"</td>"+"</tr>"+"</table>"+"</div>";renderPromptControlHTML("selectTime"+_tq,_yx);var _yD=getCVInstance(_mU);var _BY="genSelectTimeRangeHTML("+generatePromptProperties(_mU,{id:"r_"+_tq,formName:_uA,parameterName:"r_"+_mU.parameterName,style:cssParser(_mU.style,"visibility"),suppressExtraPromptNames:true})+");"+"genInsertButtonHTML('"+_tq+"', 'multipleRange"+_tq+".insertChoiceList()', 'insertButton"+_tq+"');"+"genRemoveButtonHTML('"+_tq+"', 'multipleRange"+_tq+".removeChoiceList()', 'removeButton"+_tq+"');"+"this.multipleRange"+_tq+" = new CMultipleRange(ranger_"+_tq+", document.forms['"+_uA+"'].elements['"+_DL+"'], document.forms['"+_uA+"'].elements['"+_Bo+"'], "+_mU.required+", '"+_mU.submitType+"', document.getElementById('multipleRangeFeedback"+_tq+"'), document.sizer"+_tq+", '"+_tq+"', document.getElementById('insertButton"+_tq+"'), document.getElementById('removeButton"+_tq+"'), '"+getCVId(_mU)+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('multipleRange"+_tq+"');"+_yD+"multipleObserverArray = "+_yD+"multipleObserverArray.concat('multipleRange"+_tq+"');"+"multipleRange"+_tq+".initChoiceList();";executePromptControlJS(_BY);};function genSelectDateTimeHTML(_tq,_uA,_qw,_qW,_o8,_rd,_mi,_t9,_px,_pZ,_oo,_ou,_qp,_ml,_ud,_oH,_sR,_pP,_nE,_mC,_oM,_nF,_oV,_mn,_r1,_sM,_te,_l5,_ta,_my,_oc,_rj,_r6,_pm,_ti,_pn){var _mU=_tq;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_tq,formName:_uA,parameterName:_qw,submitType:_qW,defaultDate:_o8,defaultTime:_rd,startOfWeek:_mi,calendar:_t9,selectUI:_px,inputOrder:_pZ,firstDate:_oo,lastDate:_ou,_xf:_qp,hourFormat:_ml,minuteFormat:_ud,secondFormat:_oH,dateTime:_sR,_nC:_pP,display:_nE,mode:_mC,initialState:_oM,required:_nF,hideAdornments:_oV,suppressDisabled:_mn,xSDFormat:_r1,multi:_sM,_Hl:_te,style:_l5,selectDateEditBoxStyle:_ta,selectDateYearsStyle:_my,selectDateMonthsStyle:_oc,selectDateDaysOfWeekStyle:_rj,selectDateDaysStyle:_r6,endDate:_pm,endTime:_ti,suppressExtraPromptNames:_pn};}if(_mU.multi){if(!_mU.range){genSelectDateTimeMultipleHTML(_mU);}else{genSelectDateTimeRangeMultipleHTML(_mU);}}else{if(_mU.range){genSelectDateTimeRangeHTML(_mU);}else{genSelectDateTimeSingleHTML(_mU);}}};function genSelectDateTimeSingleHTML(_md,_og,_nI,_uB,_u9,_pG,_sw,_ny,_n6,_qU,_pz,_s5,_or,_r0,_m0,_rG,_qN,_vJ,_vG,_ol,_p8,_tw,_re,_vu,_mr,_sf,_tu,_pj,_sv,_tb,_sy){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,defaultDate:_u9,defaultTime:_pG,startOfWeek:_sw,calendar:_ny,selectUI:_n6,inputOrder:_qU,firstDate:_pz,lastDate:_s5,_xf:_or,hourFormat:_r0,minuteFormat:_m0,secondFormat:_rG,dateTime:_qN,_nC:_vJ,display:_vG,mode:_ol,required:_p8,hideAdornments:_tw,suppressDisabled:_re,xSDFormat:_vu,style:_mr,selectDateEditBoxStyle:_sf,selectDateYearsStyle:_tu,selectDateMonthsStyle:_pj,selectDateDaysOfWeekStyle:_sv,selectDateDaysStyle:_tb,suppressExtraPromptNames:_sy};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}if(_mU.selectUI=="editBox"){_mU.selectDateUI="editBox";}else{_mU.selectDateUI="calendar";}var _H0="clock";if(_mU.selectUI=="editBox"){_H0="editBox";}var _Gh="document."+_uA+".imgTest"+_tq;if(_mU.hideAdornments){_Gh=null;}var _DL=_Bo;if(_mU.submitType==P_ak){_DL="_oLstDTS_"+_tq;}var _yx=genHiddenInputHTML(_uA,jsEncodeStr(_DL),P_ai);if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<div class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table cellpadding='0' cellspacing='0' border='0' class='clsPromptComponent' style='"+cssParser(_mU.style,"visibility")+"'>"+"<tr>";if(!_mU.required&&!_mU.suppressDisabled){_yx+="<td valign='top'>"+"<input type='checkbox' value='anyValue' name='chkAnyValue"+_tq+"' onclick='selectDateTime"+_tq+".toggleDisable(this.checked)' checked='checked'>"+"</td>";}if(!_mU.hideAdornments&&_mU.required){_yx+="<td valign='top'>"+"<table cellpadding='0' cellspacing='0' border='0' height='20'>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='bottom' height='10' width='10' border='0'/></td>"+"</tr>"+"<tr>"+"<td><img id='imgTest"+_tq+"' name='imgTest"+_tq+"' class='clsErrorRequired' src='"+_Eb+"/prompting/images/error_timed_small_off.gif' align='bottom' height='10' width='10' border='0'/></td>"+"</tr>"+"</table>"+"</td>";}_yx+="<td valign='top'>"+"<table border='0' cellpadding='0' cellspacing='0' class='clsBoundingBox pdt'>";if(_mU.selectUI=="editBox"){_yx+="<tr>"+"<td valign='top'><img src='"+_Eb+"/prompting/images/spacer.gif' height='1' width='5'/><div id='selectDate"+_tq+"'> </div></td>"+"</tr>"+"<tr>"+"<td valign='top'><img src='"+_Eb+"/prompting/images/spacer.gif' height='1' width='5'/><div id='selectTime"+_tq+"'> </div></td>"+"</tr>";}else{_yx+="<tr>"+"<td valign='top'><img src='"+_Eb+"/prompting/images/spacer.gif' height='1' width='5'/><div id='selectDate"+_tq+"'> </div></td>"+"<td valign='top'><img src='"+_Eb+"/prompting/images/spacer.gif' height='1' width='5'/><div id='selectTime"+_tq+"' > </div></td>"+"</tr>";}_yx+="</table>"+"</td>"+"</tr>"+"</table>"+"</div>";renderPromptControlHTML("selectDateTime"+_tq,_yx);var _BY=P_ai;if(_mU.selectUI=='editBox'){_BY="genSelectDateSingleHTML("+generatePromptProperties(_mU,{id:_tq,formName:_uA,parameterName:"D_"+_mU.parameterName,prmtDefaultValue:'-1',defaultValue:P_ai,selectDateUI:'editBox',style:cssParser(_mU.style,"visibility"),required:false,suppressDisabled:true,suppressExtraPromptNames:true})+");"+"genSelectTimeSingleHTML("+generatePromptProperties(_mU,{id:_tq,formName:_uA,parameterName:"T_"+_mU.parameterName,defaultValue:_mU.defaultTime,required:false,style:cssParser(_mU.style,"visibility"),suppressDisabled:true,suppressExtraPromptNames:true})+");";}else{_BY="genSelectDateSingleHTML("+generatePromptProperties(_mU,{id:_tq,formName:_uA,parameterName:"D_"+_mU.parameterName,prmtDefaultValue:'-1',defaultValue:P_ai,required:false,suppressDisabled:true,style:cssParser(_mU.style,"visibility"),suppressExtraPromptNames:true})+");"+"genSelectTimeSingleHTML("+generatePromptProperties(_mU,{id:_tq,formName:_uA,parameterName:"T_"+_mU.parameterName,defaultValue:_mU.defaultTime,required:false,suppressDisabled:true,hideAdornments:true,style:cssParser(_mU.style,"visibility"),suppressExtraPromptNames:true})+");";}var _yD=getCVInstance(_mU);_BY+="this.selectDateTime"+_tq+" = new CDateTime(pickerControl"+_tq+", timePicker"+_tq+", document.forms['"+_uA+"'].elements['"+_Bo+"'], document.forms['"+_uA+"'].elements['"+_DL+"'], "+_mU.required+", '"+_mU.submitType+"', '"+_mU.defaultDate+"', "+_mU.xSDFormat+", '"+getCVId(_mU)+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('selectDateTime"+_tq+"');";executePromptControlJS(_BY);};function genSelectDateTimeMultipleHTML(_md,_og,_nI,_uB,_u9,_pG,_sw,_ny,_n6,_qU,_pz,_s5,_or,_r0,_m0,_rG,_qN,_vJ,_vG,_ol,_p8,_tw,_re,_vu,_mr,_sf,_tu,_pj,_sv,_tb,_sy){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,defaultDate:_u9,defaultTime:_pG,startOfWeek:_sw,calendar:_ny,selectUI:_n6,inputOrder:_qU,firstDate:_pz,lastDate:_s5,_xf:_or,hourFormat:_r0,minuteFormat:_m0,secondFormat:_rG,dateTime:_qN,_nC:_vJ,display:_vG,mode:_ol,required:_p8,hideAdornments:_tw,suppressDisabled:_re,xSDFormat:_vu,style:_mr,selectDateEditBoxStyle:_sf,selectDateYearsStyle:_tu,selectDateMonthsStyle:_pj,selectDateDaysOfWeekStyle:_sv,selectDateDaysStyle:_tb,suppressExtraPromptNames:_sy};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _DL=_Bo;if(_mU.submitType==P_ak){_DL="_oLstDTM_"+_tq;}var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<div class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table cellpadding='0' cellspacing='0' border='0' class='clsPromptComponent' style='"+cssParser(_mU.style,"visibility")+"'>"+"<tr>"+"<td colspan='2'><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='1' height='1'/></td>"+"<td class='clsControlLabel pc'>";if(!_mU.hideAdornments&&_mU.required){_yx+="<img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/>";}_yx+=PMT_UIM_CHOICES+"</td>"+"</tr>"+"<tr>"+"<td valign='top' id='selectDateTimeSingle"+_tq+"'> </td>"+"<td valign='top' align='center' class='clsButtonLeftRightPadding'>"+"<table border='0' cellpadding='2' cellspacing='0'>"+"<tr>"+"<td id='getInsertButton"+_tq+"'> </td>"+"</tr>"+"<tr>"+"<td id='getRemoveButton"+_tq+"'> </td>"+"</tr>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='90' height='1'/></td>"+"</tr>"+"</table>"+"</td>"+"<td valign='top'>"+"<table border='0' cellspacing='0' cellpadding='0' width='100%'>"+"<tr>"+"<td>"+"<select name='"+_DL+"' style='"+cssParser(_mU.style,"font,text,color,height")+"' class='clsChoicesListbox pv' multiple='multiple' size='7' onmouseup=\"setTimeout('multipleDateTimePicker"+_tq+".checkInsertRemove()', 100);\" onkeyup='multipleDateTimePicker"+_tq+".catchDeleteKey(event.keyCode)'></select>"+"</td>"+"</tr>"+"<tr>"+"<td><div id='multipleFeedback"+_tq+"' class='clsFeedbackWidget'><img name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr>"+"<tr>"+"<td align='right'>"+"<a href='javascript:multipleDateTimePicker"+_tq+".selectAll()' class='clsLink pl'>"+PMT_UIM_SELECTALL+"</a>"+" "+"<a href='javascript:multipleDateTimePicker"+_tq+".deSelectAll()' class='clsLink pl'>"+PMT_UIM_DESELECTALL+"</a>"+"</td>"+"</tr>"+"</table>"+"</td>"+"</tr>"+"</table>"+"</div>";renderPromptControlHTML("selectDateTime"+_tq,_yx);var _yD=getCVInstance(_mU);var _BY="genSelectDateTimeSingleHTML("+generatePromptProperties(_mU,{id:"Single"+_tq,formName:_uA,parameterName:"DT_"+_mU.parameterName,defaultDate:P_ai,defaultTime:P_ai,required:false,suppressDisabled:true,style:cssParser(_mU.style,"visibility"),hideAdornments:true,suppressExtraPromptNames:true})+");"+"genInsertButtonHTML('"+_tq+"', 'multipleDateTimePicker"+_tq+".insert()', 'insertButton"+_tq+"');"+"genRemoveButtonHTML('"+_tq+"', 'multipleDateTimePicker"+_tq+".remove()', 'removeButton"+_tq+"');"+"this.multipleDateTimePicker"+_tq+"= new CMultipleDateTimePicker(selectDateTimeSingle"+_tq+", document.forms['"+_uA+"'].elements['"+_DL+"'], document.forms['"+_uA+"'].elements['"+_Bo+"'], "+_mU.required+", '"+_mU.submitType+"', document.getElementById('multipleFeedback"+_tq+"'), document.sizer"+_tq+", document.getElementById('insertButton"+_tq+"'), document.getElementById('removeButton"+_tq+"'), '"+getCVId(_mU)+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('multipleDateTimePicker"+_tq+"');"+_yD+"multipleObserverArray = "+_yD+"multipleObserverArray.concat('multipleDateTimePicker"+_tq+"');";executePromptControlJS(_BY);};function genSelectDateTimeRangeHTML(_md,_og,_nI,_uB,_u9,_pG,_sw,_ny,_n6,_qU,_pz,_s5,_or,_r0,_m0,_rG,_qN,_vJ,_vG,_ol,_sY,_p8,_tw,_re,_vu,_mr,_sf,_tu,_pj,_sv,_tb,_uf,_pY,_sy){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,defaultDate:_u9,defaultTime:_pG,startOfWeek:_sw,calendar:_ny,selectUI:_n6,inputOrder:_qU,firstDate:_pz,lastDate:_s5,_xf:_or,hourFormat:_r0,minuteFormat:_m0,secondFormat:_rG,dateTime:_qN,_nC:_vJ,display:_vG,mode:_ol,initialState:_sY,required:_p8,hideAdornments:_tw,suppressDisabled:_re,xSDFormat:_vu,style:_mr,selectDateEditBoxStyle:_sf,selectDateYearsStyle:_tu,selectDateMonthsStyle:_pj,selectDateDaysOfWeekStyle:_sv,selectDateDaysStyle:_tb,endDate:_uf,endTime:_pY,suppressExtraPromptNames:_sy};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<div class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table cellpadding='0' cellspacing='0' border='0' class='clsPromptComponent' style='"+cssParser(_mU.style,"visibility")+"'>"+"<tr>"+"<td class='clsControlLabel pc' colspan='2' nowrap='nowrap'>"+PMT_RNG_FROM+"</td>"+"</tr>"+"<tr>"+"<td nowrap='nowrap'> </td>"+"<td class='clsControlLabel pc' nowrap='nowrap' onClick='range"+_tq+".fromGotFocus();' onkeyup='range"+_tq+".fromCheckRadioState(event.keyCode);' onkeypress='range"+_tq+".fromKeyPress(event.keyCode);'>"+"<table cellpadding='0' cellspacing='0'>"+"<tr>";if(!_mU.required){_yx+="<td valign='top'><input name='fromValue"+_tq+"' type='radio' onclick='range"+_tq+".rangeNotify()'></td>";}_yx+="<td id='selectDateTimerange_from"+_tq+"' style='width:400px;'> </td>"+"</tr>"+"</table>"+"</td>"+"</tr>";if(!_mU.required){_yx+="<tr>"+"<td nowrap='nowrap'>"+"<img src='"+_Eb+"/prompting/images/spacer.gif' height='1' width='10'/>"+"</td>"+"<td class='clsReadOnlyText' onclick=\"document.forms['"+_uA+"'].elements['fromValue"+_tq+"'][1].checked=true;range"+_tq+".rangeNotify()\">"+"<input value='lowest' name='fromValue"+_tq+"' type='radio' checked='true'>"+"<img width='10' alt='' src='"+_Eb+"/prompting/images/spacer.gif'/>"+PMT_RNG_EARLIEST_DATE+"</td>"+"</tr>";}_yx+="<tr>"+"<td nowrap='nowrap' colspan='2'> </td>"+"</tr>"+"<tr>"+"<td class='clsControlLabel pc' colspan='2' nowrap='nowrap'>"+PMT_RNG_TO+"</td>"+"</tr>"+"<tr>"+"<td nowrap='nowrap'> </td>"+"<td nowrap='nowrap' onClick='range"+_tq+".toGotFocus();' onkeyup='range"+_tq+".toCheckRadioState(event.keyCode);' onkeypress='range"+_tq+".toKeyPress(event.keyCode);'>"+"<table cellpadding='0' cellspacing='0'>"+"<tr>";if(!_mU.required){_yx+="<td valign='top'><input name='toValue"+_tq+"' type='radio' onclick='range"+_tq+".rangeNotify()'></td>";}_yx+="<td id='selectDateTimerange_to"+_tq+"'> </td>"+"</tr>"+"</table>"+"</td>"+"</tr>";if(!_mU.required){_yx+="<tr>"+"<td nowrap='nowrap'>"+"<img src='"+_Eb+"/prompting/images/spacer.gif' height='1' width='10'/>"+"</td>"+"<td class='clsReadOnlyText' onclick=\"document.forms['"+_uA+"'].elements['toValue"+_tq+"'][1].checked=true;range"+_tq+".rangeNotify()\">"+"<input value='highest' name='toValue"+_tq+"' type='radio' checked='true'>"+"<img width='10' alt='' src='"+_Eb+"/prompting/images/spacer.gif'/>"+PMT_RNG_LATEST_DATE+"</td>"+"</tr>";}_yx+="</table>"+"</div>";renderPromptControlHTML("selectDateTime"+_tq,_yx);var _BY="genSelectDateTimeSingleHTML("+generatePromptProperties(_mU,{id:"range_from"+_tq,formName:_uA,parameterName:"range_from"+_mU.parameterName,submitType:P_ai,suppressDisabled:true,style:cssParser(_mU.style,"visibility"),suppressExtraPromptNames:true})+");"+"genSelectDateTimeSingleHTML("+generatePromptProperties(_mU,{id:"range_to"+_tq,formName:_uA,parameterName:"range_to"+_mU.parameterName,submitType:P_ai,defaultDate:_mU.endDate,defaultTime:_mU.endTime,suppressDisabled:true,style:cssParser(_mU.style,"visibility"),suppressExtraPromptNames:true})+");";if(_mU.required){_BY+="this.range"+_tq+" = new CRange(document.forms['"+_uA+"'].elements['"+_Bo+"'], null, selectDateTimerange_from"+_tq+", null, null, selectDateTimerange_to"+_tq+", null, 'datetime', true, '"+_mU.submitType+"', null, '"+getCVId(_mU)+"');";}else{_BY+="this.range"+_tq+" = new CRange(document.forms['"+_uA+"'].elements['"+_Bo+"'], document.forms['"+_uA+"'].elements['fromValue"+_tq+"'][0], selectDateTimerange_from"+_tq+", null, document.forms['"+_uA+"'].elements['toValue"+_tq+"'][0], selectDateTimerange_to"+_tq+", null, 'datetime', false, '"+_mU.submitType+"', "+_mU.initialState+", '"+getCVId(_mU)+"');";}var _yD=getCVInstance(_mU);_BY+=_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('range"+_tq+"');"+_yD+"rangeObserverArray = "+_yD+"rangeObserverArray.concat('range"+_tq+"');";executePromptControlJS(_BY);};function genSelectDateTimeRangeMultipleHTML(_md,_og,_nI,_uB,_u9,_pG,_sw,_ny,_n6,_qU,_pz,_s5,_or,_r0,_m0,_rG,_qN,_vJ,_vG,_ol,_sY,_p8,_tw,_re,_vu,_mr,_sf,_tu,_pj,_sv,_tb,_uf,_pY,_sy){var _mU=_md;if(arguments.length>1||typeof _mU!=P_cZ){_mU={id:_md,formName:_og,parameterName:_nI,submitType:_uB,defaultDate:_u9,defaultTime:_pG,startOfWeek:_sw,calendar:_ny,selectUI:_n6,inputOrder:_qU,firstDate:_pz,lastDate:_s5,_xf:_or,hourFormat:_r0,minuteFormat:_m0,secondFormat:_rG,dateTime:_qN,_nC:_vJ,display:_vG,mode:_ol,initialState:_sY,required:_p8,hideAdornments:_tw,suppressDisabled:_re,xSDFormat:_vu,style:_mr,selectDateEditBoxStyle:_sf,selectDateYearsStyle:_tu,selectDateMonthsStyle:_pj,selectDateDaysOfWeekStyle:_sv,selectDateDaysStyle:_tb,endDate:_uf,endTime:_pY,suppressExtraPromptNames:_sy};}var _tq=_mU.id;if(!verifyPromptId(_tq)){return;}var _Eb=(typeof getPromptSkin!=P_cD?getPromptSkin():P_m);var _uA=_mU.formName;if(!_uA){_uA="forms[0]";}var _Bo="p_"+_mU.parameterName;if(_mU.suppressExtraPromptNames){_Bo=_Bo.substring(1);}var _DL=_Bo;if(_mU.submitType==P_ak){_DL="_oLstDTRM_"+_tq;}var _yx=P_ai;if(_mU.submitType==P_ak){_yx+=genHiddenInputHTML(_uA,jsEncodeStr(_Bo),P_ai);}_yx+="<div class='clsFieldSet' style='"+cssParser(_mU.style,gsCSS_DEFAULT_STYLE)+"'>"+"<table cellpadding='0' cellspacing='0' border='0' class='clsPromptComponent' style='"+cssParser(_mU.style,"visibility")+"'>"+"<tr>"+"<td valign='top' id='selectDateTimeRange"+_tq+"'> </td>"+"<td valign='top' align='center' class='clsButtonLeftRightPadding'>"+"<table border='0' cellpadding='0' cellspacing='0'>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='1' height='16'/></td>"+"</tr>"+"</table>"+"<table border='0' cellpadding='2' cellspacing='0'>"+"<tr>"+"<td id='getInsertButton"+_tq+"'> </td>"+"</tr>"+"<tr>"+"<td id='getRemoveButton"+_tq+"'> </td>"+"</tr>"+"<tr>"+"<td><img src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='90' height='1'/></td>"+"</tr>"+"</table>"+"</td>"+"<td valign='top'>"+"<table border='0' cellspacing='0' cellpadding='0' width='100%'>"+"<tr>"+"<td class='clsControlLabel pc'>";if(_mU.required){_yx+="<img src='"+_Eb+"/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/>";}_yx+=PMT_UIM_CHOICES+"</td>"+"</tr>"+"<tr>"+"<td>"+"<select name='"+_DL+"' style='"+cssParser(_mU.style,"font,text,color,height")+"' class='clsChoicesListbox pv' multiple='multiple' size='7' onmouseup=\"setTimeout('multipleRange"+_tq+".checkInsertRemove()', 100);\" onkeyup='multipleRange"+_tq+".catchDeleteKey(event.keyCode)'></select>"+"</td>"+"</tr>"+"<tr>"+"<td><div id='multipleRangeFeedback"+_tq+"' class='clsFeedbackWidget'><img name='sizer"+_tq+"' src='"+_Eb+"/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>"+"</tr>"+"<tr>"+"<td align='right'>"+"<a href='javascript:multipleRange"+_tq+".selectAll()' class='clsLink pl'>"+PMT_UIM_SELECTALL+"</a>"+" "+"<a href='javascript:multipleRange"+_tq+".deSelectAll()' class='clsLink pl'>"+PMT_UIM_DESELECTALL+"</a>"+"</td>"+"</tr>"+"</table>"+"</td>"+"</tr>"+"</table>"+"</div>";renderPromptControlHTML("selectDateTime"+_tq,_yx);var _yD=getCVInstance(_mU);var _BY="genSelectDateTimeRangeHTML("+generatePromptProperties(_mU,{id:"Range"+_tq,formName:_uA,parameterName:"r_"+_mU.parameterName,style:cssParser(_mU.style,"visibility"),suppressExtraPromptNames:true})+");"+"genInsertButtonHTML('"+_tq+"', 'multipleRange"+_tq+".insertChoiceList()', 'insertButton"+_tq+"');"+"genRemoveButtonHTML('"+_tq+"', 'multipleRange"+_tq+".removeChoiceList()', 'removeButton"+_tq+"');"+"this.multipleRange"+_tq+" = new CMultipleRange(rangeRange"+_tq+", document.forms['"+_uA+"'].elements['"+_DL+"'], document.forms['"+_uA+"'].elements['"+_Bo+"'], "+_mU.required+", '"+_mU.submitType+"', document.getElementById('multipleRangeFeedback"+_tq+"'), document.sizer"+_tq+", '"+_tq+"', document.getElementById('insertButton"+_tq+"'), document.getElementById('removeButton"+_tq+"'), '"+getCVId(_mU)+"');"+_yD+"preProcessControlArray = "+_yD+"preProcessControlArray.concat('multipleRange"+_tq+"');"+_yD+"multipleObserverArray = "+_yD+"multipleObserverArray.concat('multipleRange"+_tq+"');"+"multipleRange"+_tq+".initChoiceList();";executePromptControlJS(_BY);};
|