/* ***************************************************************** */
/*                                                                   */
/* 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 f=function xrnfe2_fe(_110){if(_110.type="text/javascript"){dojo.eval(_110.innerHTML);}};var _111=dojo.query("script",node);if(node.nodeName.toLowerCase()=="script"){f(node);}_111.forEach(f);});this._loaded();_10a.clear();};this._replaceNormal={parent:null,before:null,after:null,replaceNode:function x_rn(_112,_113,_114){dojo.query("[widgetId]",_112).forEach(function xrnl_fe(n){var w=dijit.byNode(n);if(w!=null){w.destroy();}});div=dojo.doc.createElement("div");_112.parentNode.insertBefore(div,_112);if(null!=_114){_114.destroy();}else{_112.parentNode.removeChild(_112);}_112=null;div.innerHTML=_113;this.parent=div.parentNode;this.before=div.previousSibling;this.after=div.nextSibling;while(div.childNodes.length>0){var _117=div.childNodes.item(0);this.parent.insertBefore(_117,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(_118,_119,_11a){this.tableData=_118;dojo.query("[widgetId]",_118).forEach(function xrietd_fe(n){var w=dijit.byNode(n);if(w!=null){w.destroy();}});while(_118.childNodes.length>0){var _11d=_118.childNodes.item(0);_118.removeChild(_11d);}_118.innerHTML=_119;},findNewElements:function xreietd_fne(){var _11e=new Array();var _11f=this.tableData.childNodes;var len=_11f.length;for(var i=0;i<len;i++){var _122=_11f.item(i);if(_122.nodeType==1){_11e.push(_122);}}return _11e;},clear:function xreitd_c(){this.tableData=null;}};this._replaceSafariTableData={parent:null,before:null,after:null,replaceNode:function xrstd_rn(_123,_124,_125){dojo.query("[widgetId]",_123).forEach(function xrstdrn_fe(n){var w=dijit.byNode(n);if(w!=null){w.destroy();}});while(_123.childNodes.length>0){var _128=_123.childNodes.item(0);_123.removeChild(_128);}_123.innerHTML=_124;this.parent=_123.parentNode;this.before=_123.previousSibling;this.after=_123.nextSibling;while(_123.childNodes.length>0){var _128=_123.childNodes.item(0);this.parent.insertBefore(_128,_123);}this.parent.removeChild(_123);},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(_129,_12a,_12b){var _12c=new Array();var _12d;if(null!=_12a){_12d=_12a.nextSibling;}else{_12d=_129.firstChild;}while(null!=_12d&&_12d!=_12b){if(_12d.nodeType==1){_12c.push(_12d);}_12d=_12d.nextSibling;}return _12c;};this.attachSimpleConfirmSumbit=function x_ascs(_12e,_12f,_130,_131){if(_12f==null){_12f=_12e;}var _132=dojo.byId(_12f);dojo.connect(_132,_130,function xascs_fscs(_133){XSP._fireSimpleConfirmSubmit(_12e,_12f,_131);});};this._fireSimpleConfirmSubmit=function x_fscs(_134,_135,_136){if(!this.canSubmit()){return false;}var form=this.findForm(targetId);if(form!=null){if(confirm(_136)){document.forms[form.id]["$$xspsubmitid"].value=_134;document.forms[form.id]["$$xspsubmitscroll"].value=this._scrollPosition();document.forms[form.id].submit();}}return false;};this.attachClientFunction=function x_acf(_138,_139,_13a){var node=dojo.byId(_138);dojo.connect(node,_139,function xacf_cssn(_13c){_13a(_13c);});};this.attachClientScript=function x_acs(_13d,_13e,_13f){var node=dojo.byId(_13d);dojo.connect(node,_13e,function xacs_e(_141){eval(_13f);});};this.initSectionScript=function x_iss(_142,_143,_144){var node=dojo.byId(_142);XSP.addOnLoad(function ieFix(){if(dojo.isIE){var _146=dojo.byId(_143+"_lk_open");var _147=dojo.byId(_143+"_lk_close");if(!_144){_147.setAttribute("accessKey",_147.getAttribute("accesskey"));_147.removeAttribute("accesskey");_147.setAttribute("tabIndex",_147.getAttribute("tabindex"));_147.removeAttribute("tabindex");}else{_146.setAttribute("accessKey",_146.getAttribute("accesskey"));_146.removeAttribute("accesskey");_146.setAttribute("tabIndex",_146.getAttribute("tabindex"));_146.removeAttribute("tabindex");}}});dojo.connect(node,"onclick",function xiss_oc(_148){XSP.showSection(_143,_144);});dojo.connect(node,"onkeyup",function xiss_oku(_149){if(_149.keyCode==13||_149.keyCode==32){XSP.showSection(_143,_144);}});};this.addOnLoad=function x_aol(_14a){if(!this._listeningForDojoOnload){this._listeningForDojoOnload=true;dojo.addOnLoad(this,"_loaded");}this._onLoadListeners.push(_14a);};this._loaded=function x_l(){dojo.forEach(this._onLoadListeners,function xl_l(_14b){_14b();});this._onLoadListeners=[];};this.attachViewColumnCheckboxToggler=function x_avcct(_14c,_14d){var _14e=_14d+":_hdrcbox";var cbox=dojo.byId(_14e);dojo.connect(cbox,"onclick",function xavcct_c(){XSP._toggleViewColumnCheckBoxes(_14c,_14d);});};this._toggleViewColumnCheckBoxes=function x_tvccb(_150,_151){var form=this.findForm(_150);if(form!=null){var cbox=this.getElementById(_151+":_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,_150)&&(this.endsWith(id,":_colcbox")||this.endsWith(id,":_hdrcbox"))){elt.checked=cbox.checked;}}}return false;};this.isViewPanelRowSelected=function x_ivprs(_157,_158){var form=this.findForm(_157);if(form!=null){for(var i=0;i<form.length;i++){var elt=form.elements[i];var id=elt.id;if(this.startsWith(id,_157)&&this.endsWith(id,_158)){if(elt.checked){return true;}}}}return false;};this.showSection=function x_ss(_15d,show){var _15f=dojo.byId(_15d+"_open");var _160=dojo.byId(_15d+"_close");var _161=dojo.byId(_15d+"_lk_open");var _162=dojo.byId(_15d+"_lk_close");var _163=dojo.byId(_15d+"_contents");var form=this.findForm(_15d);if(_15f&&_160&&_161&&_162&&_163&&form){if(show){_15f.style.display="inline";_160.style.display="none";_163.style.display="block";form.elements[_15d+"_closed"].value="false";if(dojo.isIE){_161.setAttribute("accessKey",_162.getAttribute("accessKey"));_162.removeAttribute("accessKey");_161.setAttribute("tabIndex",_162.getAttribute("tabIndex"));_162.removeAttribute("tabIndex");}else{_161.setAttribute("accesskey",_162.getAttribute("accesskey"));_162.removeAttribute("accesskey");_161.setAttribute("tabindex",_162.getAttribute("tabindex"));_162.removeAttribute("tabindex");}}else{_15f.style.display="none";_160.style.display="inline";_163.style.display="none";form.elements[_15d+"_closed"].value="true";if(dojo.isIE){_162.setAttribute("accessKey",_161.getAttribute("accessKey"));_161.removeAttribute("accessKey");_162.setAttribute("tabIndex",_161.getAttribute("tabIndex"));_161.removeAttribute("tabIndex");}else{_162.setAttribute("accesskey",_161.getAttribute("accesskey"));_161.removeAttribute("accesskey");_162.setAttribute("tabindex",_161.getAttribute("tabindex"));_161.removeAttribute("tabindex");}}}};this.findForm=function x_ff(_165){if(typeof _165=="string"){_165=this.getElementById(_165);}while(_165){if(_165.tagName.toLowerCase()=="form"){return _165;}if(_165.tagName.toLowerCase()=="body"){return null;}_165=_165.parentNode;}return null;};this.getElementById=function x_gbi(_166){return dojo.byId(_166);};this.startsWith=function x_sw(s,_168){if(s.length>=_168.length&&s.substring(0,_168.length)==_168){return true;}return false;};this.endsWith=function x_ew(s,_16a){if(s.length>=_16a.length&&s.substring(s.length-_16a.length)==_16a){return true;}return false;};this.initTimeZoneCookie=function x_itzc(){var _16b=new Date().getFullYear();var jan1=new Date(_16b,0,1);var jul1=new Date(_16b,6,1);var _16e=jan1.getTimezoneOffset();var _16f=jul1.getTimezoneOffset();var _170=_16e+" "+_16f;if(_16e!=_16f){var _171=new Date(_16b,11,30);var _172=this._findDSTChangedDate(jan1,jul1);var end=this._findDSTChangedDate(jul1,_171);_170+=" "+_172.getMonth()+" "+_172.getDate()+" "+(_172.getHours()*3600000+_172.getMinutes()*60000);_170+=" "+end.getMonth()+" "+end.getDate()+" "+(end.getHours()*3600000+end.getMinutes()*60000);}document.cookie="xspTimeZone="+_170+"; path=/";};this._findDSTChangedDate=function x_fdcd(_174,end){var _176=_174.getTimezoneOffset();var _177=end.getTimezoneOffset();_174=_174.getTime();end=end.getTime();for(var loop=0;loop<100&&Math.abs(end-_174)>=60000;loop++){var mid=new Date((_174+end)/2);if(mid.getTimezoneOffset()==_176){_174=mid.getTime();}else{end=mid.getTime();}}var date=(_174+end)/2;return new Date(Math.round(date/60000)*60000);};this.log=function x_l(_17b){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 _17e=this.logWindow.document.createElement("div");_17e.appendChild(this.logWindow.document.createTextNode(_17b));this.logWindow.document.body.insertBefore(_17e,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"]);
