/* ***************************************************************** */
/*                                                                   */
/* IBM Confidential                                                  */
/*                                                                   */
/* OCO Source Materials                                              */
/*                                                                   */
/* Copyright IBM Corp. 2008                                          */
/*                                                                   */
/* The source code for this program is not published or otherwise    */
/* divested of its trade secrets, irrespective of what has been      */
/* deposited with the U.S. Copyright Office.                         */
/*                                                                   */
/* ***************************************************************** */
if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function $DALA_(_1,_2,_3){_3=dojo.i18n.normalizeLocale(_3);var _4=_3.split("-");var _5=[_1,"nls",_2].join(".");var _6=dojo._loadedModules[_5];if(_6){var _7;for(var i=_4.length;i>0;i--){var _9=_4.slice(0,i).join("_");if(_6[_9]){_7=_6[_9];break;}}if(!_7){_7=_6.ROOT;}if(_7){var _a=function(){};_a.prototype=_7;return new _a();}}throw new Error("Bundle not found: "+_2+" in "+_1+" , locale="+_3);};dojo.i18n.normalizeLocale=function $DALB_(_b){var _c=_b?_b.toLowerCase():dojo.locale;if(_c=="root"){_c="ROOT";}return _c;};dojo.i18n._requireLocalization=function $DALC_(_d,_e,_f,_10){var _11=dojo.i18n.normalizeLocale(_f);var _12=[_d,"nls",_e].join(".");var _13="";if(_10){var _14=_10.split(",");for(var i=0;i<_14.length;i++){if(_11.indexOf(_14[i])==0){if(_14[i].length>_13.length){_13=_14[i];}}}if(!_13){_13="ROOT";}}var _16=_10?_13:_11;var _17=dojo._loadedModules[_12];var _18=null;if(_17){if(dojo.config.localizationComplete&&_17._built){return;}var _19=_16.replace(/-/g,"_");var _1a=_12+"."+_19;_18=dojo._loadedModules[_1a];}if(!_18){_17=dojo["provide"](_12);var _1b=dojo._getModuleSymbols(_d);var _1c=_1b.concat("nls").join("/");var _1d;dojo.i18n._searchLocalePath(_16,_10,function(loc){var _1f=loc.replace(/-/g,"_");var _20=_12+"."+_1f;var _21=false;if(!dojo._loadedModules[_20]){dojo["provide"](_20);var _22=[_1c];if(loc!="ROOT"){_22.push(loc);}_22.push(_e);var _23=_22.join("/")+".js";_21=dojo._loadPath(_23,null,function(_24){var _25=function(){};_25.prototype=_1d;_17[_1f]=new _25();for(var j in _24){_17[_1f][j]=_24[j];}});}else{_21=true;}if(_21&&_17[_1f]){_1d=_17[_1f];}else{_17[_1f]=_1d;}if(_10){return true;}});}if(_10&&_11!=_13){_17[_11.replace(/-/g,"_")]=_17[_13.replace(/-/g,"_")];}};(function(){var _27=dojo.config.extraLocale;if(_27){if(!_27 instanceof Array){_27=[_27];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function $DALD_(m,b,_2b,_2c){req(m,b,_2b,_2c);if(_2b){return;}for(var i=0;i<_27.length;i++){req(m,b,_27[i],_2c);}};}})();dojo.i18n._searchLocalePath=function $DALE_(_2e,_2f,_30){_2e=dojo.i18n.normalizeLocale(_2e);var _31=_2e.split("-");var _32=[];for(var i=_31.length;i>0;i--){_32.push(_31.slice(0,i).join("-"));}_32.push(false);if(_2f){_32.reverse();}for(var j=_32.length-1;j>=0;j--){var loc=_32[j]||"ROOT";var _36=_30(loc);if(_36){break;}}};dojo.i18n._preloadLocalizations=function $DALF_(_37,_38){function preload(_39){_39=dojo.i18n.normalizeLocale(_39);dojo.i18n._searchLocalePath(_39,true,function(loc){for(var i=0;i<_38.length;i++){if(_38[i]==loc){dojo["require"](_37+"_"+loc);return true;}}return false;});};preload();var _3c=dojo.config.extraLocale||[];for(var i=0;i<_3c.length;i++){preload(_3c[i]);}};}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.pad=function $DAMQ_(_3e,_3f,ch,end){var out=String(_3e);if(!ch){ch="0";}while(out.length<_3f){if(end){out+=ch;}else{out=ch+out;}}return out;};dojo.string.substitute=function $DAMR_(_43,map,_45,_46){return _43.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_47,key,_49){var _4a=dojo.getObject(key,false,map);if(_49){_4a=dojo.getObject(_49,false,_46)(_4a);}if(_45){_4a=_45(_4a,key);}return _4a.toString();});};dojo.string.trim=function $DAMS_(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(typeof XSP=="undefined"){var XSP=new XSPConstructor();}function XSPConstructor(){this.validators=new Array();this.preSubmitListeners=new Array();this.querySubmitListeners=new Array();this._onLoadListeners=[];this._listeningForDojo=false;this._unnamedSubmitListenerCount=0;this._eventNameHtmlToWidget=null;this.messages=null;this.lastSubmit=0;this.submitLatency=6*1000;this.djRequire=function x_djreq(_4d){return dojo["require"](_4d);};this.getMessage=function x_gm(msg){if(null==this.messages){this.messages=dojo.i18n.getLocalization("ibm.xsp.widget.layout","xspClientDojo");}return XSP.messages[msg];};this.addPreSubmitListener=function x_apsl(_4f,_50,_51,_52,_53){this._pushListener(this.preSubmitListeners,_4f,_51,_52,_50);};this.addQuerySubmitListener=function x_aqsl(_54,_55,_56,_57,_58){this._pushListener(this.querySubmitListeners,_54,_56,_57,_55);};this._pushListener=function x_pl(_59,_5a,_5b,_5c,_5d){if("undefined"==typeof _5c||null==_5c){this._unnamedSubmitListenerCount++;_5c="script"+this._unnamedSubmitListenerCount.toString();}else{for(var i=0;i<_59.length;i++){if(_5c==_59[i].scriptId){return;}}}_59.push(new this._SubmitListener(_5a,_5d,_5b,_5c));};this._SubmitListener=function x_sl(_5f,_60,_61,_62){this.formId=_5f;this.clientId=_61;this.scriptId=_62;this.listener=_60;this.run=function xsl_r(_63){return this.listener(_63);};};this.canSubmit=function x_cs(){if(this.lastSubmit>0){var now=(new Date()).getTime();if(now<(this.lastSubmit+this.submitLatency)){return false;}}this.lastSubmit=(new Date()).getTime();return true;};this.allowSubmit=function x_as(){this.lastSubmit=0;};this._processListeners=function x_pl(_65,_66,_67){for(var i=0;i<_65.length;i++){var _69=_65[i];if(_69.formId==_66){if(typeof _69.clientId=="undefined"||null==_69.clientId||_69.clientId==_67){var _6a=_69.run();if(_65==this.querySubmitListeners&&_6a==false){return _6a;}}}}return true;};this.attachValidator=function x_av(_6b,_6c,_6d){var v=null;if(arguments.length>3){v=new Array();for(var i=3;i<arguments.length;i++){v.push(arguments[i]);}}this.validators.push(new XSP._Validator(_6b,_6c,_6d,v));};this._Validator=function x_v(_70,_71,_72,_73){this.clientId=_70;this.required=_71;this.converter=_72;this.validatorList=_73;};this.validateAll=function validateAll(_74){for(var i=0;i<this.validators.length;i++){var vc=this.validators[i];var _77=this.findForm(vc.clientId);var fid=(null==_77)?null:_77.id;if(fid==_74){var _79=this.getElementById(vc.clientId);if(_79!=null){var _7a=_79.value;if(vc.required){if(!vc.required.validate(vc.clientId,_7a)){return false;}}if(_7a!=null&&_7a!=""){if(vc.converter){_7a=vc.converter.convert(vc.clientId,_7a);if(_7a==null){return false;}}if(vc.validatorList){for(var j=0;j<vc.validatorList.length;j++){if(!vc.validatorList[j].validate(vc.clientId,_7a)){return false;}}}}}}}return true;};this.validationError=function validationError(_7c,_7d){alert(_7d);var e=this.getElementById(_7c);if(e!=null){e.select();}};this.DateConverter=function DateConverter(_7f,_80){XSP.djRequire("dojo.date.locale");this.message=_80;this.dateFormat=_7f;this.convert=function xdc_c(_81,_82){var _83=XSP.getElementById(_81);if(null!=_83){var _84=_83.value;var _85=dojo.date.locale.parse(_84,{selector:"date",datePattern:this.dateFormat});if(null==_85){XSP.validationError(_81,this.message);return null;}return _85;}return null;};};this.TimeConverter=function TimeConverter(_86,_87){XSP.djRequire("dojo.date.locale");this.message=_87;this.timeFormat=_86;this.convert=function xtc_c(_88,_89){var _8a=XSP.getElementById(_88);if(null!=_8a){var _8b=_8a.value;var _8c=dojo.date.locale.parse(_8b,{selector:"time",timePattern:this.timeFormat});if(null==_8c){XSP.validationError(_88,this.message);return null;}return _8c;}return null;};};this.DateTimeConverter=function DateTimeConverter(_8d,_8e,_8f){XSP.djRequire("dojo.date.locale");this.message=_8f;this.dateFormat=_8d;this.timeFormat=_8e;this.convert=function xdtc_c(_90,_91){var _92=XSP.getElementById(_90);if(null!=_92){var _93=_92.value;var _94=dojo.date.locale.parse(_93,{datePattern:this.dateFormat,timePattern:this.timeFormat});if(null==_94){XSP.validationError(_90,this.message);return null;}return _94;}return null;};};this.IntConverter=function IntConverter(_95){this.message=_95;this.convert=function xic_c(_96,_97){var _98=/^-?\d+$/;if(_98.test(_97)){return parseInt(_97);}XSP.validationError(_96,this.message);return null;};};this.NumberConverter=function NumberConverter(dot,tho,_9b){this.message=_9b;this.convert=function xnc_c(_9c,_9d){_9d=_9d.replace(tho,"");_9d=_9d.replace(dot,".");var _9e=/(^-?\d+(\.\d*)?([eE][-+]?\d+)?$)|(^-?\.\d+([eE][-+]?\d+)?$)/;if(_9e.test(_9d)){return parseFloat(_9d);}XSP.validationError(_9c,this.message);return null;};};this.RequiredValidator=function RequiredValidator(_9f){this.message=_9f;this.validate=function xrv_v(_a0,_a1){if(_a1==null||_a1==""){XSP.validationError(_a0,this.message);return false;}return true;};};this.DateTimeRangeValidator=function DateTimeRangeValidator(_a2,_a3,_a4){XSP.djRequire("dojo.date.stamp");this.minTime=_a2!=null?dojo.date.stamp.fromISOString(_a2):null;this.maxTime=_a3!=null?dojo.date.stamp.fromISOString(_a3):null;this.message=_a4;this.validate=function xdtrv_v(_a5,_a6){if(typeof _a6=="object"&&_a6.getTime){var _a7=_a6.getTime();if((null!=this.minTime&&_a7<this.minTime)||(null!=this.maxTime&&_a7>this.maxTime)){XSP.validationError(_a5,this.message);return false;}}return true;};};this.LengthValidator=function LengthValidator(min,max,_aa){this.min=min;this.max=max;this.message=_aa;this.validate=function xlv_v(_ab,_ac){if(typeof _ac=="string"){var len=_ac.length;if((this.min!=null&&len<this.min)||(this.max!=null&&len>this.max)){XSP.validationError(_ab,this.message);return false;}}return true;};};this.NumberRangeValidator=function NumberRangeValidator(min,max,_b0){this.min=min;this.max=max;this.message=_b0;this.validate=function xnrv_v(_b1,_b2){if(typeof _b2=="number"){if((this.min!=null&&_b2<this.min)||(this.max!=null&&_b2>this.max)){XSP.validationError(_b1,this.message);return false;}}return true;};};this.RegExpValidator=function NumberRangeValidator(_b3,_b4){this.expr=_b3;this.message=_b4;this.validate=function xrev_v(_b5,_b6){if(typeof _b6=="string"){var re=new RegExp(this.expr);if(!re.test(_b6)){XSP.validationError(_b5,this.message);return false;}}return true;};};this.ExpressionValidator=function ExpressionValidator(_b8,_b9){this.expr=_b8;this.message=_b9;this.validate=function xev_v(_ba,_bb){var _bc=dojo.global.value;dojo.global.value=_bb;var _bd=eval(this.expr);dojo.global.value=_bc;if(!_bd){XSP.validationError(_ba,this.message);return false;}return true;};};this.attachEvent=function x_ae(_be,_bf,_c0,_c1,_c2,_c3){if(_bf==null){_bf=_be;}var _c4=dojo.byId(_bf);if(typeof dijit!="undefined"&&typeof dijit.byId!="undefined"){var _c5=dijit.byId(_bf);if(_c5&&_c0){if(!this._eventNameHtmlToWidget){this._eventNameHtmlToWidget={"onclick":"onClick","onchange":"onChange","onblur":"onBlur","onfocus":"onFocus","onkeydown":"onKeyDown","onkeypress":"onKeyPress","onkeyup":"onKeyUp"};}var _c6=this._eventNameHtmlToWidget[_c0];if(_c6&&dojo.isFunction(_c5[_c6])){_c0=_c6;_c4=_c5;}}}dojo.connect(_c4,_c0,function xav_fe(_c7){XSP._fireEvent(_c7,_be,_bf,_c1,_c2,_c3);});};this._fireEvent=function x_fe(evt,_c9,_ca,_cb,_cc,_cd){var _ce=this.findForm(_ca);if(_cc&&(_ce==null||!this.canSubmit())){return false;}var _cf=this._doFireEvent(evt,_ce,_c9,_cb,_cc,_cd);if(_cc){if(_cf){document.forms[_ce.id].submit();}else{this.allowSubmit();}}};this._doFireEvent=function x_dfe(evt,_d1,_d2,_d3,_d4,_d5){var _d6=true;var _d7="";if(_d3!=null){if(dojo.isString(_d3)&&dojo.global[_d3]){_d3=dojo.global[_d3];}if(dojo.isFunction(_d3)){_d6=_d3(evt);if(_d6==false){return false;}if(typeof _d6=="string"){_d7=_d6;}}}if(_d4){if(!_d5){_d6=this.validateAll(_d1.id);if(_d6==false){return false;}}_d6=this._processListeners(this.querySubmitListeners,_d1.id,_d2);if(_d6==false){return false;}this._processListeners(this.preSubmitListeners,_d1.id,_d2);if(_d6&&_d4){document.forms[_d1.id]["$$xspsubmitid"].value=_d2;document.forms[_d1.id]["$$xspsubmitvalue"].value=_d7;document.forms[_d1.id]["$$xspsubmitscroll"].value=this._scrollPosition();}return true;}return false;};this._scrollPosition=function _scrollPosition(){var _d8=window.pageXOffset||document.documentElement.scrollLeft||0;var _d9=window.pageYOffset||document.documentElement.scrollTop||0;return _d8+"|"+_d9;};this.scrollWindow=function scrollWindow(x,y){window.scrollTo(x,y);};this.attachPartialRefreshEvent=function x_apre(_dc,_dd,_de,_df,_e0,_e1,_e2,_e3,_e4,_e5,_e6){if(_de==null){_de=_dd;}var _e7=dojo.byId(_de);dojo.connect(_e7,_df,function xapre_fpre(_e8){XSP._firePartialRefreshEvent(_dc,_e8,_dd,_de,_e0,_e1,_e2,_e3,_e4,_e5,_e6);});};this.attach2=function x_a2(_e9,_ea,_eb,_ec,_ed,_ee,_ef){this.attachPartialRefreshEvent(_e9,_ea,_eb,_ec,_ed,_ee,_ef,null,null,null,true);};this._firePartialRefreshEvent=function x_fpre(_f0,_f1,_f2,_f3,_f4,_f5,_f6,_f7,_f8,_f9,_fa){var _fb=this.findForm(_f3);if(_fb==null||!this.canSubmit()){return false;}var _fc=true;if(this._doFireEvent(_f1,_fb,_f2,_f4,_fc,_f5)){var _fd=_fb.action;_fd+=(_fd.match(/\?/)?"&":"?")+"$$ajaxmode="+_f0+"&$$ajaxid="+_f6;dojo.xhrPost({url:_fd,handleAs:"text",form:_fb,timeout:XSP.submitLatency,content:{"$$ajaxmode":_f0,"$$ajaxid":_f6},load:function xfpre_l(_fe,_ff){XSP._replaceNode(_f6,_fe);XSP.allowSubmit();return _fe;},error:function xfpre_e(_100,_101){XSP.allowSubmit();console.log("Partial Refresh error. response:");console.dir(_100);console.log("Partial Refresh error. ioArgs:");console.dir(_101);var txt=XSP.getMessage("areaProblem");if(typeof _100.message!="undefined"){txt+="   "+_100.message+"\n";}txt+=XSP.getMessage("submitPrompt");if(confirm(txt)){var form=XSP.findForm(_f6);if(null==form||typeof form.id=="undefined"){document.forms[0].submit();}else{document.forms[form.id].submit();}}return _100;}});}else{this.allowSubmit();}return false;};this._replaceNode=function x_rn(_104,_105){var _106=null;var _107=null;if(typeof dijit!="undefined"&&typeof dijit.byId!="undefined"){_107=dijit.byId(_104);if(null!=_107){_106=_107.domNode;}}if(null==_106){_106=dojo.byId(_104);}if(null==_106){var msg=XSP.getMessage("noElementId");msg=dojo.string.substitute(msg,[_104]);var ex={message:msg};ex.description=ex.message;throw ex;}var _10a;var _10b=_106.nodeName.toUpperCase();var isTD=_10b=="TD";if(isTD&&dojo.isIE){_10a=XSP._replaceIETableData;}else{if(isTD&&dojo.isSafari){_10a=XSP._replaceSafariTableData;}else{_10a=XSP._replaceNormal;}}_10a.replaceNode(_106,_105,_107);if(typeof dojo.parser!="undefined"){dojo.forEach(_10a.findNewElements(),function xrn_fe1(node){if(null!=node.getAttribute("dojoType")){dojo.parser.instantiate([node]);}dojo.parser.parse(node);});}dojo.forEach(_10a.findNewElements(),function xrn_fe2(node){var _10f=dojo.query("script",node);if(node.nodeName.toLowerCase()=="script"){_10f.push(node);}_10f.forEach(function xrnfe2_fe(_110){if(_110.type="text/javascript"){dojo.eval(_110.innerHTML);}});});this._loaded();_10a.clear();};this._replaceNormal={parent:null,before:null,after:null,replaceNode:function x_rn(_111,_112,_113){dojo.query("[widgetId]",_111).forEach(function xrnl_fe(n){var w=dijit.byNode(n);if(w!=null){w.destroy();}});div=dojo.doc.createElement("div");_111.parentNode.insertBefore(div,_111);if(null!=_113){_113.destroy();}else{_111.parentNode.removeChild(_111);}_111=null;div.innerHTML=_112;this.parent=div.parentNode;this.before=div.previousSibling;this.after=div.nextSibling;while(div.childNodes.length>0){var _116=div.childNodes.item(0);this.parent.insertBefore(_116,div);}this.parent.removeChild(div);div=null;},findNewElements:function xrnl_fne(){return XSP._elementsBetween(this.parent,this.before,this.after);},clear:function xrnl_c(){this.parent=null;this.before=null;this.after=null;}};this._replaceIETableData={tableData:null,replaceNode:function x_rietd(_117,_118,_119){this.tableData=_117;dojo.query("[widgetId]",_117).forEach(function xrietd_fe(n){var w=dijit.byNode(n);if(w!=null){w.destroy();}});while(_117.childNodes.length>0){var _11c=_117.childNodes.item(0);_117.removeChild(_11c);}_117.innerHTML=_118;},findNewElements:function xreietd_fne(){var _11d=new Array();var _11e=this.tableData.childNodes;var len=_11e.length;for(var i=0;i<len;i++){var _121=_11e.item(i);if(_121.nodeType==1){_11d.push(_121);}}return _11d;},clear:function xreitd_c(){this.tableData=null;}};this._replaceSafariTableData={parent:null,before:null,after:null,replaceNode:function xrstd_rn(_122,_123,_124){dojo.query("[widgetId]",_122).forEach(function xrstdrn_fe(n){var w=dijit.byNode(n);if(w!=null){w.destroy();}});while(_122.childNodes.length>0){var _127=_122.childNodes.item(0);_122.removeChild(_127);}_122.innerHTML=_123;this.parent=_122.parentNode;this.before=_122.previousSibling;this.after=_122.nextSibling;while(_122.childNodes.length>0){var _127=_122.childNodes.item(0);this.parent.insertBefore(_127,_122);}this.parent.removeChild(_122);},findNewElements:function xrstd_fne(){return XSP._elementsBetween(this.parent,this.before,this.after);},clear:function xrstd_c(){this.parent=null;this.before=null;this.after=null;}};this._elementsBetween=function x_eb(_128,_129,_12a){var _12b=new Array();var _12c;if(null!=_129){_12c=_129.nextSibling;}else{_12c=_128.firstChild;}while(null!=_12c&&_12c!=_12a){if(_12c.nodeType==1){_12b.push(_12c);}_12c=_12c.nextSibling;}return _12b;};this.attachSimpleConfirmSumbit=function x_ascs(_12d,_12e,_12f,_130){if(_12e==null){_12e=_12d;}var _131=dojo.byId(_12e);dojo.connect(_131,_12f,function xascs_fscs(_132){XSP._fireSimpleConfirmSubmit(_12d,_12e,_130);});};this._fireSimpleConfirmSubmit=function x_fscs(_133,_134,_135){if(!this.canSubmit()){return false;}var form=this.findForm(targetId);if(form!=null){if(confirm(_135)){document.forms[form.id]["$$xspsubmitid"].value=_133;document.forms[form.id]["$$xspsubmitscroll"].value=this._scrollPosition();document.forms[form.id].submit();}}return false;};this.attachClientFunction=function x_acf(_137,_138,_139){var node=dojo.byId(_137);dojo.connect(node,_138,function xacf_cssn(_13b){_139(_13b);});};this.attachClientScript=function x_acs(_13c,_13d,_13e){var node=dojo.byId(_13c);dojo.connect(node,_13d,function xacs_e(_140){eval(_13e);});};this.initSectionScript=function x_iss(_141,_142,_143){var node=dojo.byId(_141);XSP.addOnLoad(function ieFix(){if(dojo.isIE){var _145=dojo.byId(_142+"_lk_open");var _146=dojo.byId(_142+"_lk_close");if(!_143){_146.setAttribute("accessKey",_146.getAttribute("accesskey"));_146.removeAttribute("accesskey");_146.setAttribute("tabIndex",_146.getAttribute("tabindex"));_146.removeAttribute("tabindex");}else{_145.setAttribute("accessKey",_145.getAttribute("accesskey"));_145.removeAttribute("accesskey");_145.setAttribute("tabIndex",_145.getAttribute("tabindex"));_145.removeAttribute("tabindex");}}});dojo.connect(node,"onclick",function xiss_oc(_147){XSP.showSection(_142,_143);});dojo.connect(node,"onkeyup",function xiss_oku(_148){if(_148.keyCode==13||_148.keyCode==32){XSP.showSection(_142,_143);}});};this.addOnLoad=function x_aol(_149){if(!this._listeningForDojoOnload){this._listeningForDojoOnload=true;dojo.addOnLoad(this,"_loaded");}this._onLoadListeners.push(_149);};this._loaded=function x_l(){dojo.forEach(this._onLoadListeners,function xl_l(_14a){_14a();});this._onLoadListeners=[];};this.attachViewColumnCheckboxToggler=function x_avcct(_14b,_14c){var _14d=_14c+":_hdrcbox";var cbox=dojo.byId(_14d);dojo.connect(cbox,"onclick",function xavcct_c(){XSP._toggleViewColumnCheckBoxes(_14b,_14c);});};this._toggleViewColumnCheckBoxes=function x_tvccb(_14f,_150){var form=this.findForm(_14f);if(form!=null){var cbox=this.getElementById(_150+":_hdrcbox");if(cbox==null){return;}for(var i=0;i<form.length;i++){var elt=form.elements[i];var id=elt.id;if(this.startsWith(id,_14f)&&(this.endsWith(id,":_colcbox")||this.endsWith(id,":_hdrcbox"))){elt.checked=cbox.checked;}}}return false;};this.isViewPanelRowSelected=function x_ivprs(_156,_157){var form=this.findForm(_156);if(form!=null){for(var i=0;i<form.length;i++){var elt=form.elements[i];var id=elt.id;if(this.startsWith(id,_156)&&this.endsWith(id,_157)){if(elt.checked){return true;}}}}return false;};this.showSection=function x_ss(_15c,show){var _15e=dojo.byId(_15c+"_open");var _15f=dojo.byId(_15c+"_close");var _160=dojo.byId(_15c+"_lk_open");var _161=dojo.byId(_15c+"_lk_close");var _162=dojo.byId(_15c+"_contents");var form=this.findForm(_15c);if(_15e&&_15f&&_160&&_161&&_162&&form){if(show){_15e.style.display="inline";_15f.style.display="none";_162.style.display="block";form.elements[_15c+"_closed"].value="false";if(dojo.isIE){_160.setAttribute("accessKey",_161.getAttribute("accessKey"));_161.removeAttribute("accessKey");_160.setAttribute("tabIndex",_161.getAttribute("tabIndex"));_161.removeAttribute("tabIndex");}else{_160.setAttribute("accesskey",_161.getAttribute("accesskey"));_161.removeAttribute("accesskey");_160.setAttribute("tabindex",_161.getAttribute("tabindex"));_161.removeAttribute("tabindex");}}else{_15e.style.display="none";_15f.style.display="inline";_162.style.display="none";form.elements[_15c+"_closed"].value="true";if(dojo.isIE){_161.setAttribute("accessKey",_160.getAttribute("accessKey"));_160.removeAttribute("accessKey");_161.setAttribute("tabIndex",_160.getAttribute("tabIndex"));_160.removeAttribute("tabIndex");}else{_161.setAttribute("accesskey",_160.getAttribute("accesskey"));_160.removeAttribute("accesskey");_161.setAttribute("tabindex",_160.getAttribute("tabindex"));_160.removeAttribute("tabindex");}}}};this.findForm=function x_ff(_164){if(typeof _164=="string"){_164=this.getElementById(_164);}while(_164){if(_164.tagName.toLowerCase()=="form"){return _164;}if(_164.tagName.toLowerCase()=="body"){return null;}_164=_164.parentNode;}return null;};this.getElementById=function x_gbi(_165){return dojo.byId(_165);};this.startsWith=function x_sw(s,_167){if(s.length>=_167.length&&s.substring(0,_167.length)==_167){return true;}return false;};this.endsWith=function x_ew(s,_169){if(s.length>=_169.length&&s.substring(s.length-_169.length)==_169){return true;}return false;};this.initTimeZoneCookie=function x_itzc(){var _16a=new Date().getFullYear();var jan1=new Date(_16a,0,1);var jul1=new Date(_16a,6,1);var _16d=jan1.getTimezoneOffset();var _16e=jul1.getTimezoneOffset();var _16f=_16d+" "+_16e;if(_16d!=_16e){var _170=new Date(_16a,11,30);var _171=this._findDSTChangedDate(jan1,jul1);var end=this._findDSTChangedDate(jul1,_170);_16f+=" "+_171.getMonth()+" "+_171.getDate()+" "+(_171.getHours()*3600000+_171.getMinutes()*60000);_16f+=" "+end.getMonth()+" "+end.getDate()+" "+(end.getHours()*3600000+end.getMinutes()*60000);}document.cookie="xspTimeZone="+_16f+"; path=/";};this._findDSTChangedDate=function x_fdcd(_173,end){var _175=_173.getTimezoneOffset();var _176=end.getTimezoneOffset();_173=_173.getTime();end=end.getTime();for(var loop=0;loop<100&&Math.abs(end-_173)>=60000;loop++){var mid=new Date((_173+end)/2);if(mid.getTimezoneOffset()==_175){_173=mid.getTime();}else{end=mid.getTime();}}var date=(_173+end)/2;return new Date(Math.round(date/60000)*60000);};this.log=function x_l(_17a){if(!this.logWindow||this.logWindow.closed){var win=window.open("",null,"width=300,height=600,"+"scrollbars=yes,resizable=yes,status=no,"+"location=no,menubar=no,toolbar=no");if(!win){return;}var doc=win.document;doc.write("<html><head><title>"+"JavaScript Log"+"</title></head>"+"<body></body></html>");doc.close();this.logWindow=win;}var _17d=this.logWindow.document.createElement("div");_17d.appendChild(this.logWindow.document.createTextNode(_17a));this.logWindow.document.body.insertBefore(_17d,this.logWindow.document.body.childNodes[0]);};};dojo.i18n._preloadLocalizations("ibm.xsp.widget.layout.nls.xspClientDojo",["he","nl","tr","no","ko","el","en","en-gb","ROOT","zh-cn","hu","es","fi-fi","pt-br","ca","fi","he-il","xx","ru","it","fr","cs","de-de","fr-fr","it-it","es-es","ja","sk","da","sl","pl","de","sv","pt","pt-pt","nl-nl","zh-tw","ko-kr","ar","en-us","zh","th","ja-jp"]);
