/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

if(!dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.common.VCBasic"]){dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.common.VCBasic"]=true;dojo.provide("legacy.afu_v1.af_v1.appc_v1.visc_v2.common.VCBasic");var UES={};UES.XML={};UES.localizedMap={};UES.addLocalization=function(_1,_2){if(typeof _1=="string"&&typeof _2=="string"){UES.localizedMap[_1]=_2;}};UES.localize=function(_3){if(typeof _3=="string"){return UES.localizedMap[_3];}};UES.$=function(_4){if(!_4){return null;}if(typeof _4=="string"){return document.getElementById(_4);}if(typeof _4=="object"){return _4;}return null;};UES.bind=function(_5,_6){var _7=null;if(arguments.length>2){_7=[];for(var i=2;i<arguments.length;++i){_7.push(arguments[i]);}}return function(){return _6.apply(_5,_7!=null?_7:eval("arguments"));};};UES.extend=function(_8,_9,_a){if(!_8||!_a){throw "Wrong usage of extend function - class constructor or super class name is undefined.";}var _b;var _c;if(typeof _a=="string"){_c=_a;_b=eval(_a);}else{_c=_a+"";_b=_a;}if(!_b){throw "Error while inheriting class '"+_9+"'. Super class '"+_c+"' does not exist.";}var _d=_9.match(/^-.*/);var f=function(){};f.prototype=_b.prototype;_8.prototype=new f();_8.prototype.constructor=_8;_8.prototype.clazz=_8;_8.superclass=_b.prototype;_8.className=_9.replace(/^-/,"");if(_b.prototype.toString==Object.prototype.toString){_8.prototype.toString=function(){return "[object "+this.constructor.className+"]";};}if(!_d){var _e=_9.split(".");var _f=window;for(var i=0;i<_e.length-1;++i){var _10=_e[i];if(!(_10 in _f)){_f[_10]={};}_f=_f[_10];}_f[_e[_e.length-1]]=_8;}};UES.deferredNew=function(_11){var a=arguments;var _12={startup:true,className:"",callback:null};var _13;if(typeof _11=="object"){_13=dojo.mixin({},_12,_11);}else{_13=dojo.mixin({},_12,{className:_11});}var _14=_13.callback;var _15=_13.className.match(/^UES/);if(_15){var _16=new (_17)(a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10]);if(_14){_14(_16);}return _16;}var _17=null;try{var _18=dojo.require.call(dojo,_13.className);if(_18){_17=eval(_13.className);}}catch(e){}if(_17){return _19();}else{dojo.addOnLoad(_19);}return null;function _19(){if(!_17){_17=eval(_13.className);}var _1a=new (_17)(a[1],a[2]);if(_13.startup&&_1a.startup){_1a.startup();}if(_14){_14(_1a);}return _1a;};};UES.isReady=function(){return false;};UES.isLoaded=function(){return false;};var objects={};(function(){UES.extend(_1b,"UES.Object","Object");function _1b(_1c){this._UES={};this.id=(_1c&&_1c.id?_1c.id:UES.generateId());objects[this.id]=this;if(this._init&&this._init!==_1b.prototype._init){UES.Event.onReady(this._init,this);}};_1b.prototype.destroy=function(){this._UES=undefined;objects[this.id]=undefined;};_1b.prototype._init=function(){};})();if(!window.Node){window.Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12};}var isValidForm=true;var agt=navigator.userAgent.toLowerCase();var is_major=parseInt(navigator.appVersion);var is_minor=parseFloat(navigator.appVersion);var is_nav=((agt.indexOf("mozilla")!=-1)&&(agt.indexOf("spoofer")==-1)&&(agt.indexOf("compatible")==-1)&&(agt.indexOf("opera")==-1)&&(agt.indexOf("webtv")==-1)&&(agt.indexOf("hotjava")==-1));var is_gecko=(agt.indexOf("gecko")!=-1);var is_ff=is_gecko&&(agt.indexOf("firefox")!=-1);var is_ff0=is_ff&&(agt.indexOf("firefox/0")!=-1);var is_ff1=is_ff&&(agt.indexOf("firefox/1")!=-1);var is_ff2=is_ff&&(agt.indexOf("firefox/2")!=-1);var is_ff3=is_ff&&(agt.indexOf("firefox/3")!=-1);var is_ff35_down=is_ff&&(is_ff0||is_ff1||is_ff2||(agt.indexOf("firefox/3.0")!=-1)||(agt.indexOf("firefox/3.5")!=-1));var is_ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));var is_ie3=(is_ie&&(is_major<4));var is_ie4=(is_ie&&(is_major==4)&&(agt.indexOf("msie 4")!=-1));var is_ie4up=(is_ie&&(is_major>=4));var is_ie5=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.0")!=-1));var is_ie5_5=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.5")!=-1));var is_ie5up=(is_ie&&!is_ie3&&!is_ie4);var is_ie5_5up=(is_ie&&!is_ie3&&!is_ie4&&!is_ie5);var is_ie6=(is_ie&&(is_major==4)&&(agt.indexOf("msie 6.")!=-1));var is_ie6up=(is_ie&&!is_ie3&&!is_ie4&&!is_ie5&&!is_ie5_5);var is_ie7=(is_ie&&agt.indexOf("msie 7.")!=-1);var is_ie7up=(is_ie6up&&!is_ie6);var is_ie8=(is_ie&&agt.indexOf("msie 8.")!=-1);var is_ie8up=(is_ie7up&&!is_ie7);var is_ie9=(is_ie&&agt.indexOf("msie 9.")!=-1);var is_ie9up=(is_ie8up&&!is_ie8);if(is_ie8){is_ie6=is_ie7=false;}if(is_ie7){is_ie6=false;}var is_ieQuirks=is_ie&&(document.compatMode=="BackCompat"||document.documentMode==5);var is_opera=(agt.indexOf("opera")!=-1);var is_opera2=(agt.indexOf("opera 2")!=-1||agt.indexOf("opera/2")!=-1);var is_opera3=(agt.indexOf("opera 3")!=-1||agt.indexOf("opera/3")!=-1);var is_opera4=(agt.indexOf("opera 4")!=-1||agt.indexOf("opera/4")!=-1);var is_opera5=(agt.indexOf("opera 5")!=-1||agt.indexOf("opera/5")!=-1);var is_opera5up=(is_opera&&!is_opera2&&!is_opera3&&!is_opera4);var is_webkit=(agt.indexOf("webkit")!=-1);var is_webkit528up=(is_webkit&&parseFloat(agt.substr(agt.indexOf("webkit/")+7))>=528);var is_chrome=(agt.indexOf("chrome")!=-1);var is_safari=(agt.indexOf("safari")!=-1)&&!is_chrome;var is_khtml=(agt.indexOf(" khtml")!=-1);UES.isIphone=(agt.indexOf("iphone")!=-1);UES.isAndroid=(agt.indexOf("android")!=-1)?parseFloat(agt.split("android ")[1]):undefined;UES.isOperaMini=(agt.indexOf("opera mini")!=-1)?parseFloat(agt.split("opera mini/")[1]):undefined;UES.isIpad=(agt.indexOf("ipad")!=-1);UES.isMobile=(agt.indexOf("mobile")!=-1&&!UES.isIpad);UES.isHandheld=!!(UES.isIphone||UES.isAndroid||UES.isOperaMini||UES.isIpad||UES.isMobile);var is_iphone=UES.isIphone;var is_android=UES.isAndroid;var is_operamini=UES.isOperaMini;var is_handheld=UES.isHandheld;var isSubmitting=false;String.prototype.lTrim=function(){return this.replace(/^\s\s*/,"");};String.prototype.rTrim=function(){return this.replace(/\s\s*$/,"");};String.prototype.trim=function(){var _1d=this;if(_1d.length>0){_1d=_1d.lTrim();_1d=_1d.rTrim();}return _1d;};if(!window.id){window.id="WIN"+Math.floor(Math.random()*10000000000);}Number.prototype.toDecimalString=function(){var str=this.toString();if(!isFinite(this)){if(this>0){str=Number.MAX_VALUE.toString();}else{str=Number.MIN_VALUE.toString();}}var _1e=str.match(/(-?[0-9]+(.[0-9]+)?)e([+-]?[0-9]+)/);if(!_1e){return str;}var _1f=parseFloat(_1e[1]);var exp=parseInt(_1e[3],10);while(_1f>=1){_1f/=10;++exp;}while(_1f<0.1){_1f*=10;--exp;}if(exp>308){exp=308;}else{if(exp<-324){exp=-324;}}var res="";var _20=_1f.toString().substr(2);var _21=_20.length;if(_21-1<=-exp){res+="0.";for(var i=0;i<-exp-_21+1;++i){res+="0";}res+=_20;}else{var _22=exp;var _23=Math.max(exp,_21);for(var i=0;i<_23;++i){if(i==_22){res+=".";}if(i<_21){res+=_20.charAt(i);}else{res+="0";}}}return res;};function blockEvent(_24){return UES.Event.blockEvent(_24);};var createdHiddenInputs=new Array();function submitForm(_25,_26,_27,_28,_29,_2a){isSubmitting=true;var _2b=_25;var _2c=(_28?dojo.byId(_28):null);if(!_2c){_2c=document.forms[1];}if(!_2c){_2c=document.forms[0];}var _2d=validateBeforeSubmit(_2c,_26);if(_2d){var _2e=_2c.elements;var _2f=new Array();for(var i=0;i<_2e.length;i++){if(_2e[i].type=="checkbox"){_2f[_2f.length]=_2e[i];}}for(var i=0;i<_2f.length;i++){var _30=_2f[i];var _31=_2c.name+"-checkbox="+_30.name;if(!_30.disabled&&!_30.checked){if(createdHiddenInputs[_31]==null){hiddenInput=document.createElement("INPUT");hiddenInput.type="hidden";hiddenInput.name=_30.name;hiddenInput.value="off";_2c.insertBefore(hiddenInput,_2c.childNodes[0]);createdHiddenInputs[_31]=hiddenInput;}}else{if(createdHiddenInputs[_31]!=null){_2c.removeChild(createdHiddenInputs[_31]);createdHiddenInputs[_31]=null;}}}for(var i=0;i<_2e.length;i++){if(_2e[i].nodeName=="SELECT"){var _32=_2e[i];var _33=_2c.name+"-select="+_32.name;if(!_32.disabled&&_32.selectedIndex==-1){if(createdHiddenInputs[_33]==null){hiddenInput=document.createElement("INPUT");hiddenInput.type="hidden";hiddenInput.name=_32.name;hiddenInput.value="";_2c.insertBefore(hiddenInput,_2c.childNodes[0]);createdHiddenInputs[_33]=hiddenInput;}}else{if(createdHiddenInputs[_33]!=null){_2c.removeChild(createdHiddenInputs[_33]);createdHiddenInputs[_33]=null;}}}}_2c.action=_2b;if(undefined==_2a||_2a==null){_2a=false;}if(_2a){if(_27==null||_27==""){_27="T"+Math.floor(Math.random()*10000);}_27=_27+"_"+window.id;openInNewWindow("javascript:''",_27,_29,"true",null,null,null,null,_2c);}else{if(_29!=null&&_27!=""){openInNewWindow(null,_27,_29,null,null,null,null,null,_2c);}}if(!_2a){_2c.target=_27;_2c.submit();}if(_27==null||_27==""){disableButtons(_2c);}if(window.refreshFormTasks){refreshFormTasks();}}else{hideProgressCursor();}isSubmitting=false;};function submitAction(_34){document.location.href=_34;};function submitScript(_35){eval(_35);};function validateBeforeSubmit(_36,_37){isValidForm=true;if(_37!=="no"&&_37!==false&&_37!=="false"){try{validateForm(_36);customValidate();}catch(e){isValidForm=false;}}if(!isValidForm&&_37=="ignoreRequired"){isValidForm=onlyRequiredTasks();}return isValidForm;};function resetForm(_38){if(!_38){return;}if(typeof (_38)=="string"){_38=document.getElementById(_38);}if(!_38||_38.tagName!="FORM"){return;}_38.reset();dojo.query("TEXTAREA",_38).forEach(function(_39){var _3a=dijit.byId(_39.id);if(_3a!=null){_3a.reset();}});validateForm(_38);};function setButtonEnabled(_3b,_3c,_3d){var _3e=dojo.byId(_3b);var _3f=dijit.byNode(_3e);if(_3f){_3f.set("disabled",!_3c);}};function setButtonDisabledWithTimeout(_40,_41,_42){setButtonEnabled(_40,false,_41);setTimeout(function(){setButtonEnabled(_40,true,_41);},_42);};function setLinkEnabled(_43,_44){var lnk;function _45(){UES.Event.removeListener(lnk,"keypress",UES.Event.blockEvent);UES.Event.removeListener(lnk,"click",UES.Event.blockEvent);UES.Event.removeListener(lnk,"dblclick",UES.Event.blockEvent);if(_44){if(lnk.origOnclick){lnk.onclick=lnk.origOnclick;lnk.origOnclick=undefined;}if(lnk.origHref){lnk.setAttribute("href",lnk.origHref);lnk.origHref=undefined;}}else{if(lnk.onclick){lnk.origOnclick=lnk.onclick;lnk.onclick="";}if(lnk.href){lnk.origHref=lnk.href;lnk.removeAttribute("href");}UES.Event.addListener(lnk,"keypress",UES.Event.blockEvent);UES.Event.addListener(lnk,"click",UES.Event.blockEvent);UES.Event.addListener(lnk,"dblclick",UES.Event.blockEvent);}};lnk=UES.$(_43);if(!lnk){return;}setTimeout(_45,0);};function setLinkDisabledWithTimeout(_46,_47){setLinkEnabled(_46,false);setTimeout(function(){setLinkEnabled(_46,true);},_47);};function validateForm(_48){disableTasksRefresh();var _49="INPUT, TEXTAREA, SELECT";var _4a=null;if(_48.querySelectorAll){_4a=_48.querySelectorAll(_49);}else{_4a=dojo.query(_49,_48);}for(var i=0;i<_4a.length;++i){var _4b=_4a[i];if(_4b.disabled){continue;}if(_4b.tagName=="SELECT"){validateComboBox(_4b);}else{_4b.fireEvent("onblur");}}enableTasksRefresh();};function selectSelectionTableRow(_4c,_4d){var _4e=document.getElementByName(_4c);if(_4e.value!=_4d){var _4f=UES.$(_4c+"|"+_4e.value);var _50=UES.$(_4c+"|"+_4d);try{_4e.value=_4d;_50.className="Selected";if(_4f){_4f.className="";}}catch(e){alert(e.message);}}};function onMouseOverSelectionTableRow(_51,_52){var _53=document.getElementByName(_51);if(_53.value!=_52){var row=UES.$(_51+"|"+_52);row.className="Over";}};function onMouseOutSelectionTableRow(_54,_55){var _56=document.getElementByName(_54);if(_56.value!=_55){var row=UES.$(_54+"|"+_55);row.className="";}};function onMouseOverMultiSelectionTableRow(_57){var _58=document.getElementByName(_57);if(_58.value!="true"){var row=UES.$(_57+"|ROW");row.className="Over";}};function onMouseOutMultiSelectionTableRow(_59){var _5a=document.getElementByName(_59);if(_5a.value!="true"){var row=UES.$(_59+"|ROW");row.className="";}};function selectMultiSelectionTableRow(_5b){var _5c=document.getElementByName(_5b);var row=UES.$(_5b+"|ROW");if(_5c.value=="true"){_5c.value="false";row.className="";}else{_5c.value="true";row.className="Selected";}};function processHref(_5d){var _5e=document.forms[0];_5e.action=_5d;_5e.submit();};function openInNewWindow(url,_5f,_60,_61,_62,_63,_64,_65,_66){if(url==null){url=webPath+outputType+guiMutation+"/html/afu_v1/af_v1/appc_v1/visc_v2/blank.html";}if(!isValidSession()&&_61=="true"){var _67=url;var _68=dojo.byId("layoutRefreshLink");if(_68){_67=_68.href;}window.location=_67;return;}hideProgressCursor();if((_60!=null)&&(_60!="")){if(_60.toLowerCase().indexOf("resizable")==-1){_60="resizable=yes,"+_60;}}if(_61=="true"){var _69=openDGDialog(webPath+outputType+guiMutation+"/html/afu_v1/af_v1/appc_v1/visc_v2/VCModalWindow.htm",_5f,_60,url,typeof (_65)=="undefined"?null:_65,_66);}else{url=addNewWindowParam(url);if(!_60){newWindow=window.open(url,_5f);}else{newWindow=window.open(url,_5f,_60);}newWindow.focus();}};function addNewWindowParam(_6a){var url=_6a;var add=true;if(url){add=!!url.match(/^\//);if(!add){var _6b=window.location.protocol+"/"+"/"+window.location.host+"/";add=url.substr(0,_6b.length)==_6b;}}if(add){url=addParamToUrl(url,"NEWWINDOW=true");}return url;};function getInputByNameAndView(_6c,_6d){var _6e=_6d.prefix+"$"+_6c;var _6f=document.getElementsByName(_6e);if(_6f==null){return null;}else{if(_6f.length==0){return null;}else{if(_6f.length==1){return _6f[0];}else{return _6f;}}}};function View(_70,_71,_72){this.prefix=_72;this.name=_71;this.code=_70;};var views;function addView(_73,_74,_75){if(views==null){views=new Array();}views[views.length]=new View(_73,_74,_75);};var defaultAction=new Array();function registerDefaultAction(_76,_77){var obj=eval(_77);if(obj&&obj.id){defaultAction[obj.id]=_76.replace(/&amp;/g,"&");}};function performDefaultAction(_78){if((_78)&&(defaultAction[_78.id]!=null)){eval(defaultAction[_78.id]);}};function hotKey(_79){var _7a=(_79.target?_79.target:_79.srcElement);if(_7a.tagName=="INPUT"&&_79.keyCode==13){performDefaultAction(_7a.form);}};function validateComboBox(_7b){var _7c=true;var _7d=[];if(isSubmitting==false){setInputTasks(_7b,_7d);return _7c;}if(_7b.getAttribute("data-ues-required")=="yes"){var _7e=_7b.selectedIndex;var opt=_7b.options[_7e];if(_7e==-1&&_7b.options.length>0){_7d.push(new Task(REQUIRED_COMBOBOX_TASK_CODE,getInputLabel(_7b.name)));isValidForm=_7c=false;}else{if(opt&&opt.getAttribute("data-ues-core-selectitem-submittable")=="0"){_7d.push(new Task(REQUIRED_TASK_CODE,getInputLabel(_7b.name)));isValidForm=_7c=false;}}}setInputTasks(_7b,_7d);return _7c;};function findPosX(obj){if(!obj){return 0;}var _7f=0;if(obj.offsetParent){while(obj.offsetParent){_7f+=obj.offsetLeft;obj=obj.offsetParent;}}else{if(obj.x){_7f+=obj.x;}}return _7f;};function findImpliedOffsetX(obj){if(!obj){return 0;}var _80=0;while(obj.offsetParent){obj=obj.offsetParent;_80+=obj.offsetLeft;}return _80;};function findPosY(obj){if(!obj){return 0;}var _81=0;if(obj.offsetParent){while(obj.offsetParent){_81+=obj.offsetTop;obj=obj.offsetParent;}}else{if(obj.y){_81+=obj.y;}}return _81;};function findImpliedOffsetY(obj){if(!obj){return 0;}var _82=0;while(obj.offsetParent){obj=obj.offsetParent;_82+=obj.offsetTop;}return _82;};function getScrollX(_83){if(_83==null){return 0;}var _84=0;while(_83.parentNode!=null){_83=_83.parentNode;if(_83.tagName=="BODY"){break;}if(typeof (_83.scrollLeft)=="number"){_84+=_83.scrollLeft;}}return _84;};function getScrollY(_85){if(_85==null){return 0;}var _86=0;while(_85.parentNode!=null){_85=_85.parentNode;if(_85.tagName=="BODY"){break;}if(typeof (_85.scrollTop)=="number"){_86+=_85.scrollTop;}}return _86;};function getOptionValue(_87){var _88=_87.value;var _89=_88.indexOf("#",0);if(_89==-1){return _88;}else{return _88.substring(_89+1,_88.length);}};function setOptionValue(_8a,_8b){var _8c=_8a.value;var _8d=_8c.indexOf("#",0);if(_8d==-1){_8a.value=_8b;}else{_8a.value=_8c.substring(0,_8d)+"#"+_8b;}};if(!is_ie){HTMLDocument.prototype.createEventObject=function createEventObject(){return document.createEvent("Events");};HTMLElement.prototype.createEventObject=function createEventObject(){return this.ownerDocument.createEventObject();};HTMLElement.prototype.fireEvent=function fireEvent(_8e,_8f){if(!_8f&&_8e=="onclick"){_8f=this.ownerDocument.createEvent("MouseEvents");_8f.initMouseEvent("click",false,false,window,1,1,1,1,1,false,false,false,false,0,null);}else{if(!_8f){_8f=this.ownerDocument.createEventObject();}_8f.initEvent(_8e.slice(2),false,false);}this.dispatchEvent(_8f);};}function getStyle(_90,_91){return UES.Style.get(_90,_91);};function getWindowHeight(_92){if(!_92){_92=window;}if(UES.Util.isInModalWindow()){var _93=UES.$("modal-win");if(_93){return _93.offsetHeight;}}if(_92.innerHeight){return _92.innerHeight;}else{if(_92.document.documentElement&&_92.document.documentElement.clientHeight){return _92.document.documentElement.clientHeight;}else{if(_92.document.body&&_92.document.body.clientHeight){return _92.document.body.clientHeight;}else{return null;}}}};function getWindowWidth(_94){if(!_94){_94=window;}if(_94.innerWidth){return _94.innerWidth;}else{if(_94.document.documentElement&&_94.document.documentElement.clientWidth){return _94.document.documentElement.clientWidth;}else{if(_94.document.body&&_94.document.body.clientWidth){return _94.document.body.clientWidth;}else{return null;}}}};function getLanguage(_95){var _96=_95.length;if(_96>0){var _97=_95.substring(0,2);return _97;}return "";};(function(){var _98=ues.core.security.SessionPinger;dojo.connect(_98,"onPing",function(_99){var _9a=_99.systemMessage;if(!window.showSystemMessage||!_9a){return;}var _9b=_9a.indexOf(";detailedtext=");var _9c="marqueetext=";var _9d=_9a.indexOf(_9c);if(_9d!=-1){var _9e=_9a.substring(_9d+_9c.length,_9b);}_9c="detailedtext=";var _9f=_9a.indexOf(_9c);if(_9f!=-1){var _a0=_9a.substring(_9f+_9c.length);}if(_9d!=-1){showSystemMessage(_9e,_a0);}});})();function isValidSession(){return ues.core.security.Session.getSession().isActive();};if(is_ff&&"activeElement" in document){addEventListener("load",function(){var el=document.activeElement;el.focus();},false);}var SFT_OK=0,SFT_BAD=1;function setFocusTo(_a1){var _a2=UES.$(_a1);if(!_a2||!_a2.focus){return SFT_BAD;}try{_a2.focus();}catch(e){return SFT_BAD;}return SFT_OK;};function setInputFocus(_a3){if((is_ff||is_ie)&&!UES.isLoaded()&&UES.Util.isInModalWindow()){UES.Event.onLoad(function(){getWindow().ifr.contentWindow.focus();setInputFocus(_a3);});return;}var _a4=UES.$(_a3);if(!_a4){return;}if(is_ie&&UES.Util.isInModalWindow()){getWindow().getHTMLWindow().focus();}for(var i=0;i<_a4.elements.length;++i){var _a5=_a4.elements[i];if((_a5.tagName=="TEXTAREA"||_a5.tagName=="SELECT"||(_a5.tagName=="INPUT"&&(_a5.type=="text"||_a5.type=="password")))&&!_a5.disabled&&!_a5.readOnly&&UES.Util.isVisible(_a5,true)){if(setFocusTo(_a5)==SFT_OK){break;}}}};UES.Keys=new (function(){var _a6={};function _a7(_a8){var _a9="";if(_a8.ctrlKey){_a9+="+ctrl";}if(_a8.altKey){_a9+="+alt";}if(_a8.shiftKey){_a9+="+shift";}_a9+="+";switch(_a8.keyCode){case 8:_a9+="backspace";break;case 37:_a9+="left";break;case 39:_a9+="right";break;default:_a9+=String.fromCharCode(_a8.keyCode).toLowerCase();}_a9=_a9.substr(1);return _a9;};this.registerHotkey=function(_aa,_ab,_ac,_ad,_ae){if(!_aa||!_ab){return;}var _af=_ad||document;var _b0=(_ae&&"blockEvent" in _ae?!!_ae.blockEvent:true);if(!_a6[_aa]){_a6[_aa]=[];}this.unregisterHotkey(_aa,_af);var _b1=function(_b2){if(_a7(_b2)===_aa){_ab(_ac,_b2);if(_b0){return UES.Event.blockEvent(_b2);}}};UES.Event.addListener(_af,"keydown",_b1,true);var _b3={elem:_af,func:_b1};_a6[_aa].push(_b3);};this.unregisterHotkey=function(_b4,_b5){if(!_b4){return;}_b4=_b4.toLowerCase();var _b6=_b5||document;var _b7=_a6[_b4];for(var i=_b7.length-1;i>=0;--i){var _b8=_b7[i];if(_b8.elem===_b5){UES.Event.removeListener(_b6,"keydown",_b8.func,true);_a6[_b4].splice(i,1);}}};});var isInProgress=false;function showProgressCursor(){if(!isInProgress){if(!document.body){return;}isInProgress=true;if(window.disableTooltip){disableTooltip();}}};function hideProgressCursor(){if(isInProgress){if(!document.body){return;}isInProgress=false;if(window.enableTooltip){enableTooltip();}}};if(window.addEventListener){window.addEventListener("beforeunload",showProgressCursor,false);}else{window.attachEvent("onbeforeunload",showProgressCursor);}function getTitleFromPage(_b9){var _ba="";var win=_b9.getHTMLWindow();var _bb=!!win.titleUC&&win.titleUC!="";var _bc=!!win.titleArt&&win.titleArt!="";if(_bb&&_bc){_ba=win.titleArt+" - "+win.titleUC;}else{if(_bc){_ba=win.titleArt;}else{if(_bb){_ba=win.titleUC;}}}return _ba;};if(window.addEventListener){window.addEventListener("load",function(){getWindow().setTitle();},false);}else{if(window.attachEvent){window.attachEvent("onload",function(){getWindow().setTitle();});}}function registerComboWithSeparator(aId){var _bd=document.getElementById(aId);_bd.origSelectedIndex=_bd.selectedIndex;if(_bd.attachEvent){_bd.attachEvent("onchange",suppressComboSeparatorClick);_bd.attachEvent("onfocus",updateComboSelectedIndex);}};function suppressComboSeparatorClick(_be,_bf){if(!_bf&&_be){_bf=(_be.target?_be.target:_be.srcElement);}if(!_bf){return true;}if(_bf.options[_bf.selectedIndex].disabled){_bf.selectedIndex=_bf.origSelectedIndex;if(_be){blockEvent(_be);}return false;}else{_bf.origSelectedIndex=_bf.selectedIndex;}return true;};function updateComboSelectedIndex(_c0){var _c1=(_c0.target?_c0.target:_c0.srcElement);_c1.origSelectedIndex=_c1.selectedIndex;};function scrollBarExist(_c2,_c3){if(UES.isHandheld){return false;}var _c4=_c2;if(typeof (_c2)=="string"){_c4=document.getElementById(_c2);}if(!_c4){return false;}if(_c4==document.body){_c4=document.documentElement;}switch(_c3.toLowerCase()){case "x":if(_c4.scrollLeft||_c4.scrollWidth>_c4.clientWidth){return true;}_c4.scrollLeft=1;if(_c4.scrollLeft>0){_c4.scrollLeft=0;return true;}return false;case "y":if(_c4.scrollTop||_c4.scrollHeight>_c4.clientHeight){return true;}_c4.scrollTop=1;if(_c4.scrollTop>0){_c4.scrollTop=0;return true;}else{return false;}break;case "xy":case "yx":if((_c4.scrollTop||_c4.scrollHeight>_c4.clientHeight)&&(_c4.scrollLeft||_c4.scrollWidth>_c4.clientWidth)){return true;}var _c5=_c4.scrollTop;var _c6=_c4.scrollLeft;_c4.scrollTop=1;_c4.scrollLeft=1;if(_c4.scrollTop>0&&_c4.scrollLeft>0){_c4.scrollTop=_c5;_c4.scrollLeft=_c6;return true;}return false;default:if(_c4.scrollTop||_c4.scrollLeft){return true;}_c4.scrollTop=1;_c4.scrollLeft=1;if(_c4.scrollTop>0||_c4.scrollLeft>0){_c4.scrollTop=0;_c4.scrollLeft=0;return true;}return false;}};function addParamToUrl(_c7,_c8,_c9,_ca){if(arguments.length==2){return addParamToUrl0(_c7,_c8);}if(_ca){return addParamToUrl0(_c7,_c8+"="+_c9);}return addParamToUrl0(_c7,encodeURIComponent(_c8)+"="+encodeURIComponent(_c9));};function addParamToUrl0(_cb,_cc){if(!_cc){return _cb;}if(!_cb){return "?"+_cc;}if(typeof (_cb)!="string"){_cb=_cb.toString();}if(_cb==""){return "?"+_cc;}if(_cb.indexOf(_cc)!=-1){return _cb;}var _cd="";var ind=_cb.indexOf("?");if(ind==-1){_cd="?";}else{if(ind!=_cb.length-1){_cd="&";}}var _ce=_cb.indexOf("#");if(_ce==-1){return _cb+_cd+_cc;}return _cb.substr(0,_ce)+_cd+_cc+_cb.substr(_ce);};function getBoundFunction(_cf,_d0){return UES.bind.apply(this,arguments);};function htmlEscape(_d1){return _d1.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;");};function replaceClass(_d2,_d3,_d4){if(_d2==null||_d3==null||_d4==null){return;}_d3=" "+_d3;_d2=" "+_d2+" ";var _d5=0;var _d6=0;var _d7="";while((_d5=_d2.indexOf(_d3,_d6))!=-1){_d7+=_d2.substring(_d6,_d5);_d6=_d2.indexOf(" ",_d5+1);}_d7+=_d2.substring(_d6);return _d7+_d4;};function selectElementText(_d8){var _d9=UES.$(_d8);if(_d9.setSelectionRange&&_d9.value){_d9.setSelectionRange(0,_d9.value.length);}else{if(window.getSelection&&document.createRange){var _da=window.getSelection();var _db=document.createRange();_db.selectNodeContents(_d9);_da.removeAllRanges();_da.addRange(_db);}else{if(_d9.createTextRange){var _db=_d9.createTextRange();_db.collapse(false);_db.expand("textedit");_db.select();}else{if(document.selection){var _db=document.selection.createRange();_db.moveToElementText(_d9);try{_db.select();}catch(e){}}}}}};UES.Event=(function(){var _dc={};_dc.addListener=function(_dd,_de,_df,_e0){var obj=UES.$(_dd);if(!obj){return null;}if(!(obj instanceof UES.Object)){if(_de=="mouseenter"||_de=="mouseleave"){_e1(obj,_df,(_de=="mouseenter"?"enter":"leave"));}else{if(obj.addEventListener&&_de!="propertychange"){obj.addEventListener(_de,_df,!!_e0);}else{if(obj.attachEvent){obj.attachEvent("on"+_de,_df);}}}}var lis=_e2(_dd,_de,_df,!!_e0);if(!obj._UES){obj._UES={};}if(!obj._UES.listeners){obj._UES.listeners=[];}obj._UES.listeners.push(lis);return lis;};function _e1(_e3,_e4,_e5){if(is_ie){_e3.attachEvent("onmouse"+_e5,_e4);return;}var _e6=UES.Util.getData(_e3,"mouseEnterLeave");if(!_e6){var _e7=function(_e8){var _e9=_e8.currentTarget||_e8.srcElement;var _ea=(UES.Util.getData(_e9,"mouseEnterLeaveInside")=="1");var _eb=[];if(_e8.type=="mouseover"&&!_ea){_eb=_e6.enter;UES.Util.setData(_e9,"mouseEnterLeaveInside","1");}else{if(_e8.type=="mouseout"){var _ec=false;try{var _ed=_e8.relatedTarget||_e8.toElement;var _ee=_ed;while(_ee&&_ee!=_e9){_ee=_ee.parentNode;}_ec=(_ee!=_e9);}catch(e){_ec=true;}if(_ec){UES.Util.setData(_e9,"mouseEnterLeaveInside","0");_eb=_e6.leave;}}}for(var i=0;i<_eb.length;++i){_eb[i](_e8);}};_e6={enter:[],leave:[],fun:_e7};UES.Util.setData(_e3,"mouseEnterLeave",_e6);_e3.addEventListener("mouseover",_e7,false);_e3.addEventListener("mouseout",_e7,false);}_e6[_e5].push(_e4);};function _ef(_f0,_f1,_f2){if(is_ie){_f0.detachEvent("onmouse"+_f2,_f1);return;}var _f3=UES.Util.getData(_f0,"mouseEnterLeave");if(!_f3){return;}var _f4=_f3[_f2];for(var i=0;i<_f4.length;++i){if(_f4[i]===_f1){_f4.splice(i,1);break;}}};_dc.removeListener=function(_f5){};_dc.removeListener=function(_f6,_f7,_f8,_f9){var _fa=_e2.apply(null,arguments);if(!_fa||!_fa.obj){return;}if(_fa.obj._UES&&_fa.obj._UES.listeners){var _fb=_fa.obj._UES.listeners;for(var i=0;i<_fb.length;++i){if(_fb[i].equals(_fa)){_fa.obj._UES.listeners.splice(i,1);break;}}}var obj=_fa.obj;if(!(obj instanceof UES.Object)){if(_fa.eventName=="mouseenter"||_fa.eventName=="mouseleave"){_ef(obj,_fa.handler,(_fa.eventName=="mouseenter"?"enter":"leave"));}else{if(obj.removeEventListener){obj.removeEventListener(_fa.eventName,_fa.handler,_fa.capturing);}else{if(obj.detachEvent){obj.detachEvent("on"+_fa.eventName,_fa.handler);}}}}delete _fa;};function _e2(_fc,_fd,_fe,_ff){if(arguments.length==1){return arguments[0];}var obj=UES.$(_fc);if(!obj){return {};}var _100={obj:obj,eventName:_fd,handler:_fe,capturing:!!_ff,equals:function(aObj){if(!aObj||(typeof aObj!="object")){return false;}return (_100.obj==aObj.obj&&_100.eventName==aObj.eventName&&_100.handler==aObj.handler&&_100.capturing==aObj.capturing);}};return _100;};_dc.getListeners=function(_101,_102,_103,_104){var obj=UES.$(_101);if(!obj||!obj._UES||!obj._UES.listeners){return [];}var _105=obj._UES.listeners;var _106=[];for(var i=0;i<_105.length;++i){var lis=_105[i];var _107=true;if(_102&&lis.eventName!==_102){_107=false;}if(_107&&_103&&lis.handler!==_103){_107=false;}if(_107&&(typeof _104=="boolean")&&lis.capturing!=_104){_107=false;}if(_107){_106.push(lis);}}return _106;};_dc.blockEvent=function(_108,_109,_10a){var _10b=(arguments.length>=2?!!_109:true);var _10c=(arguments.length>=3?!!_10a:true);if(!_108){return !_10c;}if(_10b){if(_108.preventDefault){_108.preventDefault();}else{_108.returnValue=false;}}if(_10c){if(_108.stopPropagation){_108.stopPropagation();}else{_108.cancelBubble=true;}}return !_10c;};_dc.fireCustomEvent=function(_10d,_10e,_10f,_110){if(_110==false){setTimeout(function(){UES.Event.fireCustomEvent(_10d,_10e,_10f,true);},0);return;}var _111;if(typeof (arguments[1])=="object"){if(!(arguments[1] instanceof UES.Event.CustomEvent)){throw "Invalid 2nd parameter - must be either string or instance of CustomEvent, but it's: "+arguments[1];}_111=arguments[1];}else{_111=new UES.Event.CustomEvent(_10e,_10f);}_111.target=_10d;var _112=UES.Event.getListeners(_10d,_111.type);var len=_112.length;for(var i=0;i<len;++i){_112[i].handler.call(_10d,_111);if(_111.stoppedPropagation){break;}}return _111;};var _113=true;var _114=false;var _115=[];_dc.onReady=function(_116,_117){var fun=(_117?UES.bind(_117,_116):_116);if(_114){setTimeout(fun,0);return;}if(!_113){_115.push(fun);return;}_113=false;if(document.addEventListener){_dc.addListener(document,"DOMContentLoaded",_118,false);_dc.addListener(window,"load",_118,false);}else{if(document.attachEvent){(function(){var _119=false;try{_119=window.frameElement==null;}catch(e){}if(!_119){return;}try{document.documentElement.doScroll("left");}catch(e){if(!_114){setTimeout(arguments.callee,20);}return;}_118();})();var _11a=function(){if(document.readyState=="complete"){document.detachEvent("onreadystatechange",_11a);_118();}};document.attachEvent("onreadystatechange",_11a);}}};function _118(){if(_114){return;}_114=true;for(var i=0,len=_115.length;i<len;++i){_115[i]();}_115=undefined;};var _11b=false;var _11c=[];_dc.onLoad=function(_11d,_11e){var fun=(_11e?UES.bind(_11e,_11d):_11d);if(_11b){setTimeout(fun,0);return;}if(UES.Util&&UES.Util.isInModalWindow()){if(_11c.length==0){_dc.addListener(window,"load",function(){setTimeout(_11f,0);});}_11c.push(fun);}else{_dc.addListener(window,"load",fun);}};function _11f(){for(var i=0;i<_11c.length;++i){_11c[i]();}_11c=undefined;};_dc.addListener(window,"load",function(){_11b=true;});_dc.onReady(function(){});UES.isReady=function(){return _114;};UES.isLoaded=function(){return _11b;};return _dc;})();(function(){UES.extend(_120,"UES.Event.CustomEvent","UES.Object");function _120(_121,_122){if(_122&&typeof (_122)=="object"){for(var key in _122){this[key]=_122[key];}}this.type=_121;this.preventedDefault=false;this.stoppedPropagation=false;};_120.prototype.preventDefault=function(){this.preventedDefault=true;};_120.prototype.stopPropagation=function(){this.stoppedPropagation=true;};})();UES.Style={get:function(_123,_124,_125){var elem=UES.$(_123);if(!elem){return;}var prop=_124;if(is_ie||is_opera){prop=prop.replace(/-(.)/g,function(_126,_127){return _127.toUpperCase();});}var y=null;if(elem.currentStyle){y=elem.currentStyle[prop];}else{if(window.getComputedStyle){var _128=document.defaultView.getComputedStyle(elem,null);if(_128){y=_128.getPropertyValue(prop);}}}if(_125){y=parseInt(y,10);if(isNaN(y)){y=0;}}return y;},setHeight:function(_129,_12a,_12b){var elem=UES.$(_129);if(!elem){return;}if(typeof _12a!="number"){elem.style.height=_12a;return _12a;}var _12c=_12a;var BTS=UES.Style.BoxTypes;var _12d=(arguments.length>=3?_12b:BTS.CONTENT_BOX);if(_12b<=BTS.BORDER_BOX&&!is_ieQuirks){_12c-=UES.Style.getBorderWidth(elem,"top+bottom");}if(_12b<=BTS.PADDING_BOX&&!is_ieQuirks){_12c-=UES.Style.getPadding(elem,"top+bottom");}if(_12c<0){_12c=0;}elem.style.height=_12c+"px";return _12c;},setWidth:function(_12e,_12f,_130){var elem=UES.$(_12e);if(!elem){return;}if(typeof _12f!="number"){elem.style.width=_12f;return _12f;}var _131=_12f;var BTS=UES.Style.BoxTypes;var _132=(arguments.length>=3?_130:BTS.CONTENT_BOX);if(_130<=BTS.BORDER_BOX&&!is_ieQuirks){_131-=UES.Style.getBorderWidth(elem,"left+right");}if(_130<=BTS.PADDING_BOX&&!is_ieQuirks){_131-=UES.Style.getPadding(elem,"left+right");}if(_131<0){_131=0;}elem.style.width=_131+"px";return _131;},setMinHeight:function(_133,_134,_135){var elem=UES.$(_133);if(!elem){return;}var _136=_134;if(typeof _136=="number"){var BTS=UES.Style.BoxTypes;var _137=(arguments.length>=3?_135:BTS.CONTENT_BOX);if(_137<=BTS.BORDER_BOX&&!is_ieQuirks){_136-=UES.Style.getBorderWidth(elem,"top+bottom");}if(_137<=BTS.PADDING_BOX&&!is_ieQuirks){_136-=UES.Style.getPadding(elem,"top+bottom");}if(_136<0){_136=0;}}var _138=(typeof _136=="number")?_136+"px":_136;if(is_ieQuirks||is_ie6){var _139=UES.Style.get(elem,"overflow-y")=="visible";if(_139){elem.style.height=_138;}else{throw "Setting minimal height for element with overflow-y: hidden isn't supported for IE6 or IE in quirks mode.";}}else{elem.style.minHeight=_138;}return _136;},getPadding:function(_13a,_13b){var _13c=0;var elem=UES.$(_13a);if(!elem||!_13b){return _13c;}var pads=_13b.split("+");for(var i=0;i<pads.length;++i){switch(pads[i]){case "left":case "right":case "top":case "bottom":_13c+=UES.Style.get(elem,"padding-"+pads[i],true);break;}}return _13c;},getBorderWidth:function(_13d,_13e){var _13f=0;var elem=UES.$(_13d);if(!elem||!_13e){return _13f;}var keys=_13e.split("+");for(var i=0;i<keys.length;++i){switch(keys[i]){case "left":case "right":case "top":case "bottom":var _140=UES.Style.get(elem,"border-"+keys[i]+"-style");if(_140!="none"&&_140!="hidden"){_13f+=UES.Style.get(elem,"border-"+keys[i]+"-width",true);}break;}}return _13f;},BoxTypes:{BORDER_BOX:0,PADDING_BOX:1,CONTENT_BOX:2}};var widgets={};(function(){UES.extend(_141,"UES.Widget","UES.Object");function _141(_142){_141.superclass.constructor.call(this,{id:_142&&_142.id});this.className=(_142&&_142.className?_142.className:null);widgets[this.id]=this;};_141.prototype.show=function(){UES.Util.showElement(this.getMainElement());};_141.prototype.hide=function(_143){UES.Util.hideElement(this.getMainElement(),_143);};_141.prototype.getMainElement=function(){return UES.$(this.id);};_141.prototype.setClassName=function(_144){this.className=_144||null;};_141.prototype.destroy=function(){widgets[this.id]=undefined;_141.superclass.destroy.call(this);};})();UES.executeASAP=(function(){function _145(_146,_147,_148){var _149=(arguments.length>=3?_148:10);_14a(_146,_147,_149);};function _14a(_14b,_14c,_14d){if(!_14b()){setTimeout(function(){_14a(_14b,_14c,_14d);},_14d);}else{_14c();}};return _145;})();UES.generateId=(function(){var _14e=0;function _14f(){var id;do{id="ues_c"+(++_14e);}while(UES.$(id));return id;};return _14f;})();UES.getTextMetrics=(function(){var id=UES.generateId();function _150(_151,_152){var div=UES.$(id);if(!div){div=document.createElement("div");div.id=id;div.style.position="absolute";div.style.left=0;div.style.top=0;div.style.margin=0;div.style.padding=0;div.style.border="0 none";if(is_webkit){div.style["-webkit-text-size-adjust"]="100%";}div.style.visibility="hidden";document.body.appendChild(div);}div.style.fontSize=getStyle(_152,"font-size");div.style.fontFamily=getStyle(_152,"font-family");div.innerHTML=_151;var _153=div.offsetHeight;var _154=div.offsetWidth;div.innerHTML="";return {height:_153,width:_154};};return _150;})();UES.getVisibleText=function(_155){var txt="";var elem=UES.$(_155);function _156(_157){if(UES.Style.get(_157,"display")=="none"||UES.Style.get(_157,"visibility")=="hidden"){return "";}var res="";for(var i=0;i<_157.childNodes.length;++i){var node=_157.childNodes[i];var _158="";if(node.nodeType==Node.ELEMENT_NODE&&node.tagName!="SCRIPT"){_158=_156(node);}else{if(node.nodeType==Node.TEXT_NODE){_158=node.nodeValue?node.nodeValue:"";}}if(_158){res+=_158;}}return res;};if(!elem||(elem.nodeType!=Node.ELEMENT_NODE&&elem.nodeType!=Node.TEXT_NODE)){return "";}if(elem.nodeType==Node.TEXT_NODE){return elem.nodeValue?elem.nodeValue:"";}txt=_156(elem);return txt.trim();};(function(){function _159(){var ua=[];if(is_safari){ua.push("ua-safari");}else{if(is_chrome){ua.push("ua-chrome");}else{if(is_ie){ua.push("ua-ie");if(is_ie6){ua.push("ua-ie6");}else{if(is_ie7){ua.push("ua-ie7");}else{if(is_ie8){ua.push("ua-ie8");}else{if(is_ie9){ua.push("ua-ie9");}}}}}else{if(is_ff){ua.push("ua-ff");if(is_ff35_down){ua.push("ua-ff35-down");}ua.push("ua-ff"+dojo.isFF);if(dojo.isFF>=6){ua.push("ua-ff6-up");}}else{if(is_opera){ua.push("ua-opera");}}}}}if(is_webkit){ua.push("ua-webkit");}if(is_gecko){ua.push("ua-gecko");}var mode="";if(document.compatMode=="BackCompat"||document.documentMode==5){mode="ua-mode-quirks";}else{if(document.documentMode==7){mode="ua-mode-almost-standards";}else{mode="ua-mode-standards";}}var dev="";if(is_iphone){dev="ua-dev-iphone ua-dev-handheld";}else{if(is_android){dev+="ua-dev-android ua-dev-handheld";}else{if(is_operamini){dev+="ua-dev-operamini ua-dev-handheld";}else{dev+="ua-dev-standard";}}}cls=" "+ua.join(" ")+" "+mode+" "+dev;if(is_ie){for(var i=0;i<ua.length;++i){cls+=" "+ua[i]+"_"+mode;}}var elem=document.documentElement;elem.className=elem.className+cls;};function _15a(){if(!is_ff){throw "Function handleBrokenImages isn't ready for browsers other than FF!";}UES.Event.onLoad(function(){var _15b=document.images;for(var i=0,len=_15b.length;i<len;++i){var img=_15b[i];if(img.naturalWidth===0){img.src=UES.Util.getRealImagePath("/images/other/empty.gif");img.className+=" image-missing";if(dojo.style(img,"width")==0){img.style.width="26px";}if(dojo.style(img,"height")==0){img.style.height="26px";}UES.Event.fireCustomEvent(getWindow(),"contentChange");}}});};_159();if(is_ff){UES.Event.onReady(_15a);}})();var OVERLAY_LAYER="overlay-layer";var TRANSPARENT_LAYER="transparent-layer";(function(){UES.extend(_15c,"UES.Window","UES.Object");function _15c(aWin,_15d){_15c.superclass.constructor.call(this,_15d);this._win=aWin?aWin:null;this._parentWin=(_15d&&_15d.parentWin?_15d.parentWin:null);};_15c.prototype.windowStack=[];_15c.prototype.open=function(){return null;};_15c.prototype.close=function(){if(this._win){this._win.close();}};_15c.prototype.resize=function(_15e,_15f){if(_15e&&_15f&&typeof _15e=="number"&&typeof _15f=="number"){this._win.outerWidth=_15e+"px";this._win.outerHeight=_15f+"px";this._win.screenX=(screen.availWidth/2)-(_15e/2)+"px";this._win.screenY=(screen.availHeight/2)-(_15f/2)+"px";}};_15c.prototype.setURL=function(aURL){if(aURL&&typeof aURL=="string"){this._win.location=aURL;}};_15c.prototype.setTitle=function(){var _160=getTitleFromPage(this);if(_160){this.getHTMLWindow().document.title=_160;}};_15c.prototype.getHTMLWindow=function(){return this._win;};_15c.prototype.getParentWindow=function(){return this._parentWin;};_15c.prototype._block=function(){if(this._win.blocked){return;}this._win.blocked=true;this._showTransparentDiv(0);UES.Event.addListener(this._win.document,"keydown",UES.Event.blockEvent,true);UES.Event.addListener(this._win.document,"keypress",UES.Event.blockEvent,true);};_15c.prototype._unblock=function(){if(!this._win.blocked){return;}this._win.blocked=false;this._hideOverlay();this._hideTransparentDiv();UES.Event.removeListener(this._win.document,"keydown",UES.Event.blockEvent,true);UES.Event.removeListener(this._win.document,"keypress",UES.Event.blockEvent,true);};_15c.prototype._showTransparentDiv=function(_161){var _162=UES.$(TRANSPARENT_LAYER);if(!_162){UES.Util.DOM.createLayer(_161,{id:TRANSPARENT_LAYER});}else{UES.Util.DOM.moveLayer(_162,_161);}};_15c.prototype._hideTransparentDiv=function(){UES.Util.DOM.removeLayer(TRANSPARENT_LAYER);};_15c.prototype._showOverlay=function(_163){var _164=UES.$(OVERLAY_LAYER);if(!_164){UES.Util.DOM.createLayer(_163,{id:OVERLAY_LAYER});}else{UES.Util.DOM.moveLayer(_164,_163);}};_15c.prototype._hideOverlay=function(){UES.Util.DOM.removeLayer(OVERLAY_LAYER);};_15c.prototype.getLayout=function(){return getWindow().getHTMLWindow().layout;};})();(function(){UES.extend(_165,"DummyWindow","UES.Window");_165.prototype.open=function(){};_165.prototype.close=function(){};_165.prototype.resize=function(){};_165.prototype.setURL=function(){};_165.prototype.setTitle=function(){};_165.prototype.getHTMLWindow=function(){};_165.prototype.getParentWindow=function(){};_165.prototype.getLayout=function(){};function _165(){_165.superclass.constructor.call(this);};})();function getWindow(){var _166=(parent&&parent!=window?parent:null);if(_166&&_166.UES){var win=_166.UES.Util.getWindowByHTMLInstance(window);if(!win){return new DummyWindow();}return win;}if(!window._win){window._win=new UES.Window(window);}return window._win;};function getParentWindow(){return getWindow()._parentWin||null;};function getBaseWindow(){var win=getWindow();return win._baseWin||win;};(function(){if(!dojo.isOpera){dojo.connect(dojo.doc,"onmouseup",function(_167){if(_167.ctrlKey||_167.shiftKey||dojo.mouseButtons.isMiddle(_167)){_168(_167);}});}else{var _169=function(_16a){return dojo.mouseButtons.isMiddle(_16a);};dojo.connect(dojo.doc,"onmousedown",function(_16b){if(_169(_16b)){_168(_16b);}});dojo.connect(dojo.doc,"onmouseup",function(_16c){if(!_169(_16c)&&(_16c.ctrlKey||_16c.shiftKey)){_168(_16c);}});}function _168(_16d){var elem=_16d.target;for(var i=0;i<5&&elem;++i){if(elem.tagName=="A"){var _16e=elem.getAttribute("href");if(_16e&&_16e.substr(0,11)=="javascript:"){break;}var _16f=addNewWindowParam(_16e);elem.setAttribute("href",_16f);setTimeout(function(){elem.setAttribute("href",_16e);},10);break;}elem=elem.parentNode;}};})();if(dojo.isFF<4){dojo.query("SELECT[onchange]").forEach(function(_170){dojo.connect(_170,"onblur",new Function("event",_170.getAttribute("onchange")));});}}if(!dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.visc_v1.Util"]){dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.visc_v1.Util"]=true;dojo.provide("legacy.ues_v5.core_v1.appc_v1.visc_v1.Util");if(!UES.Util){UES.Util={};}if(!UES.Util.DOM){UES.Util.DOM={};}UES.Util.isInModalWindow=function(){var win=getBaseWindow();if(!win||!win.windowStack||win.windowStack.length<=0){return false;}return true;};UES.Util.isVisible=function(_171,_172){var elem=UES.$(_171);if(!elem){return false;}while(elem&&elem!=document.body){var _173=UES.Util.isDisplayed(elem);if(!_173){return false;}var _174=UES.Style.get(elem,"visibility");if(_174=="hidden"){return false;}if(!_172){return true;}elem=elem.parentNode;}return true;};UES.Util.isDisplayed=function(_175,_176){var elem=UES.$(_175);if(!elem){return false;}if(elem.offsetHeight>0){return true;}while(elem&&elem!=document.body){var _177=UES.Style.get(elem,"display")!="none";if(!_177){return false;}if(!_176){return true;}elem=elem.parentNode;}return true;};UES.Util.getRealImagePath=function(_178){return webPath+outputType+guiMutation+_178;};UES.Util.getWindowByHTMLInstance=function(_179){var _17a=getWindow();if(_17a&&_17a.getHTMLWindow()==_179){return _17a;}var _17b=_17a.windowStack;for(var i=_17b.length-1;i>=0;--i){var win=_17b[i];if(win.getHTMLWindow()==_179){return win;}}return null;};UES.Util.getPosition=function(_17c){var elem=UES.$(_17c);if(!elem){return {x:0,y:0,offsetX:0,offsetY:0,scrollX:0,scrollY:0};}var _17d=0,_17e=0;var _17f=elem;while(_17f.parentNode!=null){_17f=_17f.parentNode;if(_17f.tagName=="BODY"||_17f==document.documentElement){break;}if(typeof (_17f.scrollLeft)=="number"){_17d+=_17f.scrollLeft;}if(typeof (_17f.scrollTop)=="number"){_17e+=_17f.scrollTop;}}var offX=0,offY=0;var _17f=elem;while(_17f){offX+=_17f.offsetLeft;offY+=_17f.offsetTop;_17f=_17f.offsetParent;if(_17f&&!(dojo.isIE>=8)&&!dojo.isOpera){offX+=UES.Style.get(_17f,"border-left-width",true);offY+=UES.Style.get(_17f,"border-top-width",true);}}return {x:offX-_17d,y:offY-_17e,offsetX:offX,offsetY:offY,scrollX:_17d,scrollY:_17e};};UES.Util.setPosition=function(_180,aX,aY){var elem=UES.$(_180);if(!elem){return;}var U=UES.Util;var _181=U.getData(elem,"posTimeout");if(_181){clearTimeout(_181);}var _182=U.getData(elem,"posFix")||{x:0,y:0};var _183=U.getPosition(elem.offsetParent);var _184=(elem.offsetParent!=null?elem.offsetParent.scrollLeft:0);var _185=(elem.offsetParent!=null?elem.offsetParent.scrollTop:0);var _186=aX-_183.x+_184+_182.x;var _187=aY-_183.y+_185+_182.y;elem.style.left=_186+"px";elem.style.top=_187+"px";var tm=setTimeout(function(){var _188=U.getPosition(elem);if(_188.x!=aX||_188.y!=aY){_189();}},0);U.setData(elem,"posTimeout",tm);var _18a=0;var _18b=10;var fix={x:0,y:0};function _189(){if(++_18a>_18b){return;}var _18c=UES.Util.getPosition(elem);if(_18c.x==aX&&_18c.y==aY){U.setData(elem,"posFix",fix);return;}fix.x+=aX-_18c.x;fix.y+=aY-_18c.y;_186+=aX-_18c.x;_187+=aY-_18c.y;elem.style.left=_186+"px";elem.style.top=_187+"px";var tm=setTimeout(_189,5);U.setData(elem,"posTimeout",tm);};};UES.Util.setData=function(_18d,aKey,_18e){if(!_18d){throw "Unable to set data with key '"+aKey+"' into '"+_18d+"'";}if(!_18d._UES){_18d._UES={};}_18d._UES[aKey]=_18e;};UES.Util.getData=function(_18f,aKey){if(!_18f||!_18f._UES){return undefined;}return _18f._UES[aKey];};UES.Util.scrollIntoView=function(_190,_191,_192){var el=UES.$(_190);if(!el){return;}var se=_191;if(!se){se=UES.Util.isInModalWindow()?"modal-win-body":"main-area";}var se=UES.$(se);if(!se){return;}var _193=UES.Util.getPosition(el);var _194=UES.Util.getPosition(se);var _195=_193.y-_194.y;if(!_192||_192.toLowerCase()!="top"){if(_195<0){se.scrollTop+=_195;}else{var dy=_195-se.clientHeight+el.offsetHeight-UES.Style.getPadding(se,"top");if(dy>0){se.scrollTop+=dy;}}}else{se.scrollTop+=_195;}};UES.Util.executeScripts=function(_196,_197){var _198="uesUACapabilityExecScriptOnInsert";if(!(_198 in window)){var _199=document.createElement("div");_199.innerHTML="<script>window."+_198+"=true;</"+"script>";document.body.appendChild(_199);setTimeout(function(){window[_198]=!!window[_198];UES.Util.executeScripts(_196,_197);},1);return;}if(!_197&&window[_198]){return;}for(var i=0;i<_196.length;++i){var scr=_196[i];if(window[_198]){document.body.appendChild(scr);}else{if(window.execScript){window.execScript(scr.text);}else{eval.call(null,scr.innerHTML);}}}};UES.Util.getJSessionId=function(){var KEY="ues.platform.jsessionid";var _19a=UES.Util.getData(window,KEY);if(_19a){return _19a;}var _19b=_19c(window.location.href.toString());if(!_19b){for(var i=0;i<document.links.length;++i){var href=document.links[i].href;if(href){_19b=_19c(href.toString());}if(_19b){break;}}}UES.Util.setData(window,KEY,_19b||"");return _19b;function _19c(_19d){if(_19d.indexOf(";jsessionid=")==-1){return null;}var _19e=_19d.replace(/.*?;jsessionid=([^&#?;]*).*/,"$1");return _19e;};};UES.Util.getSessFree=function(_19f){if(!_19f){return "";}var url=_19f.toString();var _1a0="";url.replace(/(^\?|&)action=([^&#]*)/,function(_1a1,_1a2,_1a3){if(_1a3.match(/^ues(:|%3[aA])/)){_1a0=decodeURIComponent(_1a3);}return _1a1;});if(!_1a0){url.replace(/(^\?|&)SessFree=([^&#]*)/,function(_1a4,_1a5,_1a6){_1a0=decodeURIComponent(_1a6);return _1a4;});}return _1a0;};UES.Util.getAjaxSesmURL=function(aURL){var url=aURL+"";url=addParamToUrl(url,"uesajax","yes");if(url.indexOf(";jsessionid")!=-1){return url;}var _1a7=UES.Util.getJSessionId();if(!_1a7){return url;}var _1a8=";jsessionid="+encodeURIComponent(_1a7);if(url.indexOf("?")!=-1){url=url.replace(/\?/,_1a8+"?");}else{if(url.indexOf("#")!=-1){url=url.replace(/#/,_1a8+"#");}else{url=url+_1a8;}}return url;};(function(){var _1a9=0;UES.Util.globalFunction=function(_1aa){if(!UES.Util._global){UES.Util._global={};}var name="fn"+_1a9++;UES.Util._global[name]=_1aa;return "window.UES.Util._global."+name;};})();UES.Util.takePrintSnapshot=(function(){function _1ab(_1ac){var elem=UES.$(_1ac);if(!elem){return;}if(!elem.id){elem.id=UES.generateId();}var _1ad=elem.id+"_printSnapshot";var _1ae=UES.$(_1ad);if(_1ae){_1ae.parentNode.removeChild(_1ae);}var _1af=elem.cloneNode(true);_1b0(_1af);_1af.id=_1ad;_1af.className+=" print-only";elem.className+=" no-print";elem.parentNode.insertBefore(_1af,elem.nextSibling);return _1af;};function _1b0(_1b1){if(_1b1.id){_1b1.id="";}for(var i=_1b1.childNodes.length-1;i>=0;--i){var node=_1b1.childNodes[i];if(node.nodeType!=Node.ELEMENT_NODE){continue;}if(UES.Style.get(node,"display")=="none"){node.parentNode.removeChild(node);}else{_1b0(node);}}};return _1ab;})();UES.Util.showElement=function(_1b2,_1b3){var elem=UES.$(_1b2);if(!elem){return;}if(_1b3){elem.style.display="block";elem.style.visibility="visible";return;}var cls=elem.className.replace(/[\s]*\b(?:hidden|invisible)\b/g,"");elem.className=cls;};UES.Util.hideElement=function(_1b4,_1b5,_1b6){var elem=UES.$(_1b4);if(!elem){return;}if(_1b6){elem.style.display=(_1b5?"block":"none");if(_1b5){elem.style.visibility="hidden";}return;}var cls=elem.className.replace(/[\s]*\b(?:hidden|invisible)\b/g,"");if(_1b5){cls+=" invisible";}else{cls+=" hidden";}elem.className=cls;};UES.Util.getFormData=function(_1b7){var form=UES.$(_1b7);if(!form){return "";}var data=UES.Util.getSubmitData(form.elements);return data;};UES.Util.getSubmitData=(function(){function _1b8(_1b9){if(!_1b9){return "";}var data=[];if(typeof _1b9=="string"){var _1ba=_1b9.split(/, */);var _1bb={};for(var i=0;i<_1ba.length;++i){var id=_1ba[i];if(id&&!_1bb[id]){if(widgets[id]&&widgets[id].getSubmitData){data.push(widgets[id].getSubmitData());}else{data.push(_1bc(id));}_1bb[id]=true;}}_1bb=_1ba=undefined;}else{if(_1b9.length){data.push(_1bd(_1b9));}else{return "";}}var _1be="";var _1bf=true;for(var i=0;i<data.length;++i){if(data[i]){if(!_1bf){_1be+="&";}else{_1bf=false;}_1be+=data[i];}}data=undefined;return _1be;};function _1bc(_1c0){var _1c1=_1c0.length;var _1c2=[];for(var i=0;i<document.forms.length;++i){var form=document.forms[i];for(var j=0;j<form.elements.length;++j){var elem=form.elements[j];if(elem.id.substr(0,_1c1)==_1c0){_1c2.push(elem);}}}return _1bd(_1c2);};function _1bd(_1c3){function _1c4(_1c5){if(_1c5.type=="checkbox"){return _1c5.checked?"on":"off";}if(_1c5.tagName=="SELECT"&&_1c5.selectedIndex==-1){return "";}return _1c5.value;};var _1c6="";var len=_1c3.length;var _1c7=true;for(var i=0;i<len;++i){var elem=UES.$(_1c3[i]);if(elem.disabled){continue;}if(elem.nodeName.toLowerCase()=="input"&&elem.type=="radio"&&!elem.checked){continue;}if(!_1c7){_1c6+="&";}_1c7=false;_1c6+=encodeURIComponent(elem.name);_1c6+="=";_1c6+=encodeURIComponent(_1c4(elem));}return _1c6;};return _1b8;})();UES.Util.getXML=function(_1c8){var xml=null;if(window.DOMParser){xml=(new DOMParser()).parseFromString(_1c8,"text/xml");}else{if(window.ActiveXObject){xml=new ActiveXObject("MSXML2.DOMDocument");xml.loadXML(_1c8);}}return xml;};UES.Util.addClass=function(_1c9,aCls){var _1ca=UES.$(_1c9);if(!_1ca){return;}if(typeof aCls=="string"||aCls instanceof String){var str=aCls.trim();var _1cb=str.split(" ");var _1cc=" "+_1ca.className.trim()+" ";for(var i=0;i<_1cb.length;++i){if(_1cc.indexOf(" "+_1cb[i]+" ")==-1){_1cc+=_1cb[i]+" ";}}_1ca.className=_1cc.trim();}};UES.Util.removeClass=function(_1cd,aCls){var _1ce=UES.$(_1cd);if(!_1ce){return;}if(typeof aCls=="string"||aCls instanceof String){var str=aCls.trim();var _1cf=str.split(" ");var _1d0=" "+_1ce.className.trim()+" ";for(var i=0;i<_1cf.length;++i){while(_1d0.indexOf(_1cf[i])!=-1){_1d0=_1d0.replace(" "+_1cf[i]+" "," ");}}_1ce.className=_1d0.trim();}};UES.Util.removeFromArray=function(_1d1,_1d2){if(_1d1==null||_1d1.length==0){return _1d1;}var _1d3=new Array();for(var i1=0,i2=0;i2<_1d1.length;i1++,i2++){if(i2==_1d2){i1--;continue;}_1d3[i1]=_1d1[i2];}return _1d3;};UES.Util.regexpEscape=function(_1d4){if(!_1d4){return "";}return _1d4.replace(/([\[\]\\+*?{}()^$.|])/g,"\\$1");};UES.Util.addUCParameter=function(aUrl,_1d5,_1d6){var url=aUrl;url=addParamToUrl(url,_1d5,_1d6);url=url.replace(/([&?]action=[^&#]*?%3[fF](?:[^%&#]|%(?!26))*)/,"$1"+encodeURIComponent("&"+encodeURIComponent(_1d5)+"="+encodeURIComponent(_1d6)));return url;};UES.Util.removeUCParameter=function(aUrl,_1d7){if(!aUrl){return "";}var url=aUrl;var _1d8=UES.Util.regexpEscape(_1d7);url=url.replace(new RegExp("[&?]"+_1d8+"=[^&#]*","g"),"");do{var _1d9=url;url=url.replace(new RegExp("([&?]action=[^&#]*?)%26"+_1d8+"%3[dD].*?(%2[36]|[&#]|$)"),"$1$2");}while(url!=_1d9);return url;};(function(){UES.extend(_1da,"UES.Util.NodePairShortener","Object");function _1da(_1db){this.rowElem=UES.$(_1db.rowElem?_1db.rowElem:_1db.elem1);this.elem1=_1db.elem1?UES.$(_1db.elem1):this.rowElem;this.elem2=UES.$(_1db.elem2);this.maxRowCount=_1db.maxRowCount?_1db.maxRowCount:1;this.rowHeight=_1db.rowHeight?_1db.rowHeight:null;this.elem1Shortener=new UES.Util.NodeShortener(this.rowElem,this.maxRowCount,this.elem1,this.rowHeight);};_1da.prototype.execute=function(){if(this.elem2&&this.elem2.nodeType==Node.ELEMENT_NODE){this.elem2.style.display="inline";}var _1dc=this.elem1Shortener.execute();var _1dd=(_1dc.visibleChars!=_1dc.totalChars||_1dc.rowCount>this.maxRowCount);if(!_1dd&&this.elem2){if(dojo.isIE){this.elem2.style.display="none";}var _1de=this.rowElem.offsetWidth-(UES.Style.getPadding(this.rowElem,"left+right")+UES.Style.getBorderWidth(this.rowElem,"left+right"));if(dojo.isIE){this.elem2.style.display="inline";}if(this.elem2.offsetWidth>_1de){_1dd=true;}}if(_1dd&&this.elem2){this.elem2.style.display="none";_1dc=this.elem1Shortener.execute();_1dc.elem2Visible=false;}else{_1dc.elem2Visible=true;}return _1dc;};})();(function(){UES.extend(_1df,"UES.Util.NodeShortener","Object");function _1df(_1e0,_1e1,_1e2,_1e3,_1e4,_1e5,_1e6){if(arguments.length==1&&typeof _1e0=="object"&&_1e0.elem){dojo.mixin(this,_1e0);}else{this.elem=_1e0;this.maxRowCount=(arguments.length>=2&&_1e1?_1e1:1);this.textElem=_1e2;this.rowHeight=(arguments.length>=4&&_1e3?_1e3:0);this.firstWordMaxChars=(arguments.length>=5&&_1e4>=0?_1e4:30);this.shortenType=_1e5||"ellipsis";this.maxHeight=_1e6;}this.textNode=null;this.text="";this.textShown="";this.elem=UES.$(this.elem);this.textElem=UES.$(this.textElem);this._findText(this.textElem?this.textElem:this.elem);};_1df.prototype.maxRowCount=0;_1df.prototype.maxHeight=0;_1df.prototype.maxWidth=0;_1df.prototype.firstWordMaxChars=30;_1df.prototype.shortenType="ellipsis";_1df.prototype.execute=function(){var res={text:this.text,visibleChars:0,totalChars:0,rowCount:0,height:this.elem.offsetHeight,width:this.elem.offsetWidth};if(!this.text){return res;}this._resetBeforeExecute();this._shortenToFirstWord();var _1e7=this._getConstraint();var l=this.textShown.length+1;var r=this.text.length+1;var s=Math.floor((l+r)/2);while(l<r){this.shortenTo(s);if(this._isInBounds(_1e7)){l=s+1;}else{r=s;}s=Math.floor((l+r)/2);}this.shortenTo(l-1);if(this.shortenType=="fadeout"){this._updateFader();}return {text:this.text,visibleChars:l-1,totalChars:this.text.length,rowCount:this._getRowCount(),height:this.elem.offsetHeight,width:this.elem.offsetWidth,textHeight:this.textNode.parentNode.offsetHeight,textWidth:this.textNode.parentNode.offsetWidth};};_1df.prototype._resetBeforeExecute=function(){if(this._faderId){dojo.addClass(dojo.byId(this._faderId),"hidden");}};_1df.prototype._getConstraint=function(){var _1e8={};var cnt=0;if(this.maxHeight){_1e8.maxHeight=Math.max(this.maxHeight,this.elem.offsetHeight);++cnt;}if(this.maxWidth){_1e8.maxWidth=Math.max(this.maxWidth,this.elem.offsetWidth);++cnt;}if(cnt==0){if(!this.rowHeight){this.rowHeight=_1e9(this.elem);}}if(this.rowHeight){var _1ea=this._getRowCount();if(_1ea<this.maxRowCount){_1ea=this.maxRowCount;}_1e8.rowCount=_1ea;++cnt;}return _1e8;};_1df.prototype._isInBounds=function(_1eb){var _1ec=true;if(_1ec&&"maxHeight" in _1eb){_1ec=this.elem.offsetHeight<=_1eb.maxHeight;}if(_1ec&&"maxWidth" in _1eb){_1ec=this.elem.offsetWidth<=_1eb.maxWidth;}if(_1ec&&"rowCount" in _1eb){_1ec=this._getRowCount()<=_1eb.rowCount;}return _1ec;};_1df.prototype._updateFader=function(){var _1ed=this._faderId;var _1ee=(_1ed?dojo.byId(_1ed):null);if(!_1ee){_1ed=UES.generateId();this._faderId=_1ed;_1ee=dojo.create("span",{id:_1ed},this.textNode,"after");dojo.addClass(_1ee,"ues-core-webui-elementshortener_fadeout");var _1ef=dojo.create("span",{},_1ee);var _1f0=UES.Style.get(this.textNode.parentNode,"line-height",true);if(_1f0==0){_1f0=Math.round(UES.Style.get(this.textNode.parentNode,"font-size",true)*1.17+1);}var _1f1=this.textNode.parentNode.offsetHeight;if(_1f1&&_1f0>_1f1){_1f0=_1f1;}dojo.style(_1ee,"height",_1f0+"px");dojo.style(_1ee.firstChild,"height",_1f0+"px");}if(this.textShown!=this.text){dojo.removeClass(_1ee,"hidden");}else{dojo.addClass(_1ee,"hidden");}};_1df.prototype._shortenToFirstWord=function(){var _1f2;var _1f3=this.text.match(/^\s*\S+\s/);if(!_1f3){_1f2=this.firstWordMaxChars;}else{_1f2=Math.min(_1f3[0].length-1,this.firstWordMaxChars);}this.shortenTo(_1f2);};_1df.prototype.shortenTo=function(_1f4){if(_1f4>=this.text.length||_1f4==-1){this.textShown=this.text;}else{if(_1f4<=3&&this.shortenType=="ellipsis"){this.textShown="";}else{if(this.shortenType=="ellipsis"){this.textShown=this.text.substr(0,_1f4-3)+"...";}else{this.textShown=this.text.substr(0,_1f4);}}}this.textNode.nodeValue=this.textShown;if(dojo.isWebKit){var _1f5=this.textNode.parentNode;var _1f6=this.textNode.nextSibling;_1f5.removeChild(this.textNode);_1f5.insertBefore(this.textNode,_1f6);}};_1df.prototype.reset=function(){return this.shortenTo(-1);};_1df.prototype._getRowCount=function(){return Math.round(_1e9(this.elem)/this.rowHeight);};_1df.prototype._findText=function(_1f7){if(!_1f7){return;}this.textNode=this._searchForNode(_1f7);if(this.textNode){this.text=this.textNode.nodeValue;}};_1df.prototype._searchForNode=function(_1f8){if(_1f8.nodeType==Node.TEXT_NODE){if(_1f8.nodeValue.match(/^\s*$/)){return null;}return _1f8;}if(_1f8.nodeType!=Node.ELEMENT_NODE){return null;}if(_1f8.tagName=="SCRIPT"||!UES.Util.isDisplayed(_1f8)){return null;}for(var i=_1f8.childNodes.length-1;i>=0;--i){var _1f9=this._searchForNode(_1f8.childNodes[i]);if(_1f9){return _1f9;}}return null;};function _1e9(_1fa){var _1fb=_1fa.clientHeight;if(!_1fb){_1fb=_1fa.offsetHeight;}return _1fb;};})();(function(){UES.Util.DOM.newElement=function(_1fc,_1fd){function _1fe(_1ff,_200){if(_200){for(var attr in _200){var _201=_200[attr];if(typeof (_201)=="object"){_1fe(_1ff[attr],_201);}else{if(attr=="class"||attr=="className"){_1ff.className=_201;}else{if(attr=="allowtransparency"){_1ff.allowTransparency=(_201=="allowtransparency");}else{if(attr=="frameborder"){_1ff.frameBorder=_201;}else{if(attr=="float"){_1ff.cssFloat=_201;}else{if(_1ff.setAttribute){_1ff.setAttribute(attr,_201);}else{_1ff[attr]=_201;}}}}}}}}};var elem;elem=document.createElement(_1fc);_1fe(elem,_1fd);return elem;};UES.Util.DOM.newImage=function(_202,_203){var path=webPath+outputType+guiMutation+_202;var _204=(_203?webPath+outputType+guiMutation+_203:null);var img=UES.Util.DOM.newElement("img",{src:path});if(_204){img.onmouseover=function(){img.src=_204;};img.onmouseout=function(){img.src=path;};}return img;};function _205(_206){if(!_206){return [];}if(typeof _206=="string"){return [_206];}if(typeof _206.nodeType=="number"){return [_206];}var res=[];for(var i=0;i<_206.length;++i){var item=_206[i];if(!item){continue;}res=res.concat(_205(item));}return res;};UES.Util.DOM.removeNodes=function(){var args=[];for(var i=0;i<arguments.length;++i){args.push(arguments[i]);}var _207=_205(args);if(_207.length){var len=_207.length;var list=[];for(var i=0;i<len;++i){list.push(UES.$(_207[i]));}for(var i=0;i<len;++i){var node=list[i];if(node&&node.parentNode){node.parentNode.removeChild(node);}}}};UES.Util.DOM.moveNodes=function(_208){if(!_208){throw "Trying to move nodes, but target element is null!";}var args=[];for(var i=1;i<arguments.length;++i){args.push(arguments[i]);}var _209=_205(args);if(_209.length){var _20a=UES.$(_208);var len=_209.length;var list=[];for(var i=0;i<len;++i){list.push(UES.$(_209[i]));}UES.Util.DOM.removeNodes(_209);for(var i=0;i<len;++i){var node=list[i];if(node){_20a.appendChild(node);}}list=null;}};UES.Util.DOM.addNodes=function(_20b){if(!_20b){throw "Trying to add nodes, but target element is null!";}UES.Util.DOM.moveNodes.apply(null,arguments);};UES.Util.DOM.getDescendantElement=function(_20c,_20d){if(!_20c){return null;}var _20e=_20c.getElementsByTagName(_20d);if(_20e.length==0){return null;}return _20e[0];};UES.Util.DOM.getChildNodes=function(_20f,_210){var _211=[];if(!_20f||!_210){return _211;}var _212=_210.toLowerCase();var _213=_20f.childNodes;var len=_213.length;for(var i=0;i<len;++i){var _214=_213[i];if(_214.nodeName.toLowerCase()==_212){_211.push(_214);}}return _211;};UES.Util.DOM.getChildNode=function(_215,_216){if(!_215||!_216){return null;}var _217=_215.childNodes;var len=_217.length;for(var i=0;i<len;++i){var _218=_217[i];if(_218.nodeName==_216){return _218;}}return null;};UES.Util.DOM.getElementText=function(_219){var _21a=_219&&_219.firstChild;if(!_21a||_21a.nodeType!=Node.TEXT_NODE||!_21a.nodeValue){return "";}return _21a.nodeValue;};UES.Util.DOM.createLayer=function(_21b,_21c){var _21d=dojo.mixin({id:UES.generateId()},_21c);var _21e=document.body;var _21f=UES.Util.DOM.newElement("div",_21d);dojo.addClass(_21f,"ues-core_layer");UES.Util.DOM.addNodes(_21e,[_21f]);if(dojo.isIE==6){var _220=UES.Util.DOM.newElement("iframe",{id:_21d.id+"-iframe",src:"javascript:''"});UES.Util.DOM.addNodes(_21e,[_220]);}UES.Util.DOM.moveLayer(_21f,_21b);return _21f;};UES.Util.DOM.moveLayer=function(_221,_222){var _223=UES.$(_221);if(!_223){return;}var _224=947+2*(_222||0);_223.style.zIndex=_224;if(dojo.isIE==6){var _225=UES.$(_223.id+"-iframe");if(_225){_225.style.zIndex=_224;}}};UES.Util.DOM.removeLayer=function(_226){var _227=UES.$(_226);if(!_227){return;}UES.Util.DOM.removeNodes(_227);if(dojo.isIE==6){var _228=UES.$(_227.id+"-iframe");UES.Util.DOM.removeNodes(_228);}};})();(function(){UES.extend(_229,"UES.Util.ProgressByStep","UES.Object");function _229(_22a){_229.superclass.constructor.call(this);this.weights=(_22a.weights?_22a.weights.slice(0,_22a.weights.length):[]);this.stepCount=_22a.stepCount||this.weights.length||10;this.weightDurationFactor=_22a.weightDurationFactor||5000;this.lastStepSkewFactor=_22a.lastStepSkewFactor||0.7;this.timeFunClazz=_22a.timeFunClazz||_229.TF_SMOOTH;this.minIncrementSize=(typeof _22a.minIncrementSize=="number"?_22a.minIncrementSize:0);this.baseTime=null;this.curY=null;this.baseY=null;this.targetY=null;this.stepsComplete=null;this.timeFun=null;var lssf=(this.weights.length<this.stepCount?this.lastStepSkewFactor:1);for(var i=this.weights.length;i<this.stepCount;++i){this.weights.push(1);}if(this.weights.length>this.stepCount){this.weights.splice(0,this.stepCount);}this.weights[this.weights.length-1]*=lssf;this.totalWeight=0;for(var i=0;i<this.stepCount;++i){this.weights[i]=_22b(this.weights[i]*this.weightDurationFactor);this.totalWeight+=this.weights[i];}var _22c=200;this.weights.push(_22b(_22c/this.weightDurationFactor));};_229.TF_SMOOTH=_22d;_229.TF_STEP_DRIVEN_CONSTANT=_22e;_229.TF_STEP_DRIVEN_LINEAR=_22f;_229.prototype.nextStep=function(){if(this.stepsComplete==this.stepCount){return;}var _230=0;if(this.stepsComplete>=0){var curX=this._getXInTime();this._update(curX,true);this.baseY=this.curY;_230=_22b(this.timeFun.dx(curX));}++this.stepsComplete;this.baseTime=new Date().getTime();this.targetY+=this.weights[this.stepsComplete];var _231=this.targetY-this.curY;this.timeFun=new (this.timeFunClazz)({maxY:_231,maxX:this.weights[this.stepsComplete],tangent:_230});};_229.prototype.finish=function(){while(this.stepsComplete<this.stepCount){this.nextStep();}};_229.prototype.getProgress=function(){this._update();var val=this.curY/this.totalWeight;var min=1;if(this.minIncrementSize>=0.00001){val=Math.round(val/this.minIncrementSize*100)*this.minIncrementSize/100;min=(this.stepsComplete==this.stepCount?1:1-this.minIncrementSize/100);}return Math.min(val,min);};_229.prototype.start=function(){this.curY=0;this.baseY=0;this.targetY=0;this.baseTime=null;this.stepsComplete=-1;this.timeFun=null;this.nextStep();};_229.prototype._update=function(_232,_233){var x=(arguments.length>=1?_232:this._getXInTime());var val=this.timeFun.val(x,!!_233);if(!isNaN(val)){this.curY=_22b(this.baseY+val);}};_229.prototype._getXInTime=function(){var now=new Date().getTime();var _234=now-this.baseTime;var x=_234;return _22b(x);};function _22e(_235){var _236=_235||{};this.maxX=_22b(typeof (_236.maxX)=="number"?_236.maxX:1);this.maxY=_22b(typeof (_236.maxY)=="number"?_236.maxY:1);this._lastVal=0;};_22e.prototype.val=function(aX,_237){if(_237){this._lastVal=this.maxY;}return this._lastVal;};_22e.prototype.dx=function(aX){return 0;};function _22f(_238){var _239=_238||{};this.maxX=_22b(typeof (_239.maxX)=="number"?_239.maxX:1);this.maxY=_22b(typeof (_239.maxY)=="number"?_239.maxY:1);this._lastVal=0;};_22f.prototype.val=function(aX,_23a){var x=Math.min(aX,this.maxX);if(_23a){this._lastVal=this.maxY;}else{this._lastVal=Math.max(this._lastVal,x/this.maxX*this.maxY);}return this._lastVal;};_22f.prototype.dx=function(aX){return this.maxY/this.maxX;};function _22d(_23b){var _23c=_23b||{};this.tangent=_23c.tangent||0;this.xf=_22b(typeof (_23c.maxX)=="number"?_23c.maxX:1);this.yf=_22b(typeof (_23c.maxY)=="number"?_23c.maxY:1);this.xe=_22b(this.xf*0.3);this.ye=_22b(this.yf);this.xb=_22b(Math.sqrt(this.xe*this.xe/(1+this.tangent*this.tangent)));this.yb=_22b(this.tangent*this.xb);this.eq2a=this.xf-3*this.xe+3*this.xb;this.eq2b=3*this.xe-6*this.xb;this.eq2c=3*this.xb;this.eq1a=this.yf-3*this.ye+3*this.yb;this.eq1b=3*this.ye-6*this.yb;this.eq1c=3*this.yb;this._lastVal=0;};_22d.prototype.val=function(aX,_23d){var x=Math.min(aX,this.xf);var t=0;if(_23e(x,0)>0){t=_23f(this.eq2a,this.eq2b,this.eq2c,-x);}if(isNaN(t)){this._lastVal=Math.max(this._lastVal,this.yf*(x/this.xf));return this._lastVal;}var y=this.eq1a*t*t*t+this.eq1b*t*t+this.eq1c*t;this._lastVal=Math.max(y,this._lastVal);return this._lastVal;};_22d.prototype.dx=function(aX){var x=Math.min(aX,this.xf);var t=0;if(_23e(x,0)>0){t=_23f(this.eq2a,this.eq2b,this.eq2c,-x);}if(isNaN(t)){return 1;}var nx=3*this.eq2a*t*t+2*this.eq2b*t+this.eq2c;var ny=3*this.eq1a*t*t+2*this.eq1b*t+this.eq1c;if(_23e(nx,0)==0){if(_23e(ny,0)==0){return 1;}return 1;}return Math.max(0,Math.min(100,_22b(ny/nx)));};var EPS=1e-7;function _23e(_240,_241){var diff=_240-_241;if(Math.abs(diff)<EPS){return 0;}return diff;};function _242(_243){if(_243==0){return 0;}if(_243<0){return -Math.pow(-_243,1/3);}return Math.pow(_243,1/3);};function _23f(a,b,c,d){if(_23e(a,0)==0){if(_23e(b,0)==0){if(_23e(c,0)==0){return (_23e(d,0)==0?0:NaN);}return Math.max(0,Math.min(1,-d/c));}var det=c*c-4*b*d;if(det<0){return NaN;}return Math.max(0,Math.min(1,(-c+Math.sqrt(det))/2/b));}var l=0;var r=1;var s=(l+r)/2;while(_23e(l,r)<0){var res=((a*s+b)*s+c)*s+d;var _244=_23e(res,0);if(_244==0){break;}if(_244<0){l=s;}else{r=s;}s=(l+r)/2;}return Math.min(1,s);};function _22b(aNum){return aNum;};})();}if(!dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.visc_v1.Effects"]){dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.visc_v1.Effects"]=true;dojo.provide("legacy.ues_v5.core_v1.appc_v1.visc_v1.Effects");if(!UES.Effects){UES.Effects={};}(function(){UES.extend(_245,"UES.Effects.SlideAnimation","UES.Object");function _245(_246,_247,_248){if(this.clazz.className=="UES.Effects.SlideAnimation"){throw "SlideAnimation is abstract class. It can't be instantiated directly!";}_245.superclass.constructor.call(this);this.elem=UES.$(_246);this.duration=_247||400;this.callback=_248||function(){};this.origHeight=null;this.height=null;};_245.prototype.animationStep=40;_245.prototype.run=function(){if(!this.elem){this.callback();return;}this._initAnimation();var _249=new Date().getTime();var _24a;var _24b=-1;var _24c;var that=this;_24c=function(){var time=new Date().getTime();_24a=Math.round(that._getHeightInTime((time-_249)/that.duration));if(time-_249>=that.duration){that._finishAnimation();that.destroy();return;}if(_24a!=_24b){_24b=_24a;that.elem.style.height=_24a+"px";}setTimeout(_24c,Math.min(that.animationStep,that.duration-(time-_249)));};setTimeout(_24c,this.animationStep);};_245.prototype._finishAnimation=function(){this.elem.style.height=this.origHeight;this.callback();};_245.prototype._initAnimation=function(){if(!UES.Util.isDisplayed(this.elem)){UES.Util.hideElement(this.elem,true,true);}this.origHeight=UES.Style.get(this.elem,"height");this.height=this.elem.offsetHeight;this.elem.style.overflow="hidden";var _24d=UES.Style.get(this.elem,"position");if(_24d!="relative"&&_24d!="absolute"){this.elem.style.position="relative";}};_245.prototype._getHeightInTime=function(_24e){};_245.prototype.destroy=function(){this.elem=undefined;this.callback=undefined;_245.superclass.destroy.call(this);};UES.extend(_24f,"UES.Effects.SlideDownAnimation","UES.Effects.SlideAnimation");function _24f(_250,_251,_252){_24f.superclass.constructor.call(this,_250,_251,_252);};_24f.prototype._initAnimation=function(){_24f.superclass._initAnimation.call(this);this.elem.style.height="0";UES.Util.showElement(this.elem,true);};_24f.prototype._getHeightInTime=function(_253){return _254(_253)*this.height;};function _254(_255){var x1=0.42,x2=0.58;var P=[{x:0,y:0},{x:x1,y:0},{x:x2,y:1},{x:1,y:1}];var t;var a=3*x1-3*x2+1;var b=-6*x1+3*x2;var c=3*x1;var d=-_255;if(a==0){t=(-3*x1-Math.sqrt(9*x1*x1-12*x1*_255))/(-6*x1);}else{var _256=a;a=b/_256;b=c/_256;c=d/_256;var m=2*a*a*a-9*a*b+27*c;var k=a*a-3*b;var n=m*m-4*k*k*k;t=-1/3*(a+_257((m+Math.sqrt(n))/2)+_257((m-Math.sqrt(n))/2));}var tm=1-t;return tm*tm*tm*P[0].y+3*tm*tm*t*P[1].y+3*tm*t*t*P[2].y+t*t*t*P[3].y;function _257(aNum){if(aNum<0){return -Math.pow(-aNum,1/3);}return Math.pow(aNum,1/3);};};UES.extend(_258,"UES.Effects.SlideUpAnimation","UES.Effects.SlideAnimation");function _258(_259,_25a,_25b){_258.superclass.constructor.call(this,_259,_25a,_25b);};_258.prototype._initAnimation=function(){_258.superclass._initAnimation.call(this);UES.Util.showElement(this.elem,true);};_258.prototype._finishAnimation=function(){UES.Util.hideElement(this.elem,false,true);_258.superclass._finishAnimation.call(this);};_258.prototype._getHeightInTime=function(_25c){return this.height-this.height*_254(_25c);};})();UES.Effects.slideDown=function(_25d,_25e,_25f){new UES.Effects.SlideDownAnimation(_25d,_25e,_25f).run();};UES.Effects.slideUp=function(_260,_261,_262){new UES.Effects.SlideUpAnimation(_260,_261,_262).run();};}if(!dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.input.VCContainer"]){dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.input.VCContainer"]=true;dojo.provide("legacy.afu_v1.af_v1.appc_v1.visc_v2.input.VCContainer");(function(){var _263="sizeHandle";var _264="sizeHandleTop";var _265="sizeHandleBottom";var _266=20;var _267=44;var _268=false;UES.extend(_269,"UES.Container","UES.Widget");function _269(_26a){_269.superclass.constructor.call(this,_26a);this.parent=_26a.parent||null;this.resizeX=_26a.resizeX||_26a.resizable||false;this.resizeY=_26a.resizeY||_26a.resizable||false;this.resizable=_26a.resizable||this.resizeX||this.resizeY||false;this.draggable=_26a.draggable||false;this.dragHandle=_26a.dragHandle||null;this.minHeight=_26a.minHeight||0;this._inited=false;};_269.prototype.init=function(_26b){this.cont=UES.$(this.id);if(!this.cont&&UES.$(this.parent)){this.cont=UES.Util.DOM.newElement("div",{id:this.id});UES.Util.DOM.addNodes(this.parent,this.cont);}if(this.cont==null){return;}this._inited=true;this.sizeCorrection=0;this.sizeHandle=UES.Util.DOM.newElement("div",{"class":_263});this.sizeHandleTop=UES.Util.DOM.newElement("div",{"class":_264});this.sizeHandleBottom=UES.Util.DOM.newElement("div",{"class":_265});this.borderWidth=UES.Style.getBorderWidth(this.cont,"top+bottom");this._registerResizeListeners();var _26c=this.resizeY;this.resizeY=undefined;this.setResizeY(_26c);this.resizeY=_26c;this.minX=0;this.maxX=0;this.minY=0;this.maxY=0;if(!this.dragHandle){this.dragHandle=this.cont;}var _26d=this.draggable;this.draggable=undefined;this.setDraggable(_26d);this.draggable=_26d;this.tempListeners=[];this.activeHandle=null;this.setClassName(this.className);};_269.prototype._registerResizeListeners=function(){var that=this;this.resizeMainListener=UES.Event.addListener(this.sizeHandle,"mousedown",function(_26e){that.resizeStart(that.sizeHandle,_26e);});this.resizeTopListener=UES.Event.addListener(this.sizeHandleTop,"mousedown",function(_26f){that.resizeStart(that.sizeHandleTop,_26f);});this.resizeBottomListener=UES.Event.addListener(this.sizeHandleBottom,"mousedown",function(_270){that.resizeStart(that.sizeHandleBottom,_270);});};_269.prototype._unregisterResizeListeners=function(){if(this.resizeMainListener){UES.removeListener(this.resizeMainListener);}if(this.resizeTopListener){UES.removeListener(this.resizeTopListener);}if(this.resizeBottomListener){UES.removeListener(this.resizeBottomListener);}};_269.prototype._registerDragListeners=function(){var that=this;this.dragListener=UES.Event.addListener(this.dragHandle,"mousedown",function(_271){that.dragStart(that.dragHandle,_271);});};_269.prototype._unregisterDragListeners=function(){if(this.dragListener){UES.removeListener(this.dragListener);}};_269.prototype.setResizeY=function(_272){if(_272===undefined||typeof _272!="boolean"){return;}if(this.resizeY===_272){return;}this.resizable=_272;this.resizeY=_272;if(!this._inited){return;}var elem=this.getMainElement();if(_272){UES.Util.DOM.addNodes(this.cont,[this.sizeHandle,this.sizeHandleTop,this.sizeHandleBottom]);elem.className+=" container-resizable";}else{UES.Util.DOM.removeNodes([this.sizeHandle,this.sizeHandleTop,this.sizeHandleBottom]);elem.className=elem.className.replace(new RegExp("\\s*\\b"+"container-draggable"+"\\b\\s*","g"),"");}};_269.prototype.setDraggable=function(_273){if(_273===undefined||typeof _273!="boolean"){return;}if(this.draggable===_273){return;}this.draggable=_273;if(!this._inited){return;}var elem=this.getMainElement();if(_273){if(this.cont!=this.dragHandle){UES.Util.DOM.addNodes(this.cont,[this.dragHandle]);}else{this.dragHandle.style.cursor="move";}this._registerDragListeners();elem.className+=" container-draggable";}else{if(this.cont!=this.dragHandle){UES.Util.DOM.removeNodes([this.dragHandle]);}else{this.dragHandle.style.cursor="default";}this._unregisterDragListeners();elem.className=elem.className.replace(new RegExp("\\s*\\b"+"container-draggable"+"\\b\\s*","g"),"");}};_269.prototype.setClassName=function(_274){_269.superclass.setClassName.call(this,_274);var elem=this.getMainElement();if(elem){var _275=(this.className||"")+" container";if(this.resizable){_275+=" container-resizable";}if(this.draggable){_275+=" container-draggable";}if(elem.className.search(/\bhidden\b/)!=-1){_275+=" hidden";}if(elem.className.search(/\binvisible\b/)!=-1){_275+=" invisible";}elem.className=_275;}};_269.prototype.dragStart=function(_276,_277){this.transparentLayer=UES.Util.DOM.newElement("div",{"class":"transparent-layer"});UES.Util.DOM.addNodes(document.body,[this.transparentLayer]);this.activeHandle=_276;this.tempListeners.push(UES.Event.addListener(document.documentElement,"mouseup",UES.bind(this,this.dragEnd)));this.tempListeners.push(UES.Event.addListener(document.documentElement,"mousemove",UES.bind(this,this.dragMove)));this.tempListeners.push(UES.Event.addListener(document.body,"selectstart",function(){return false;}));this.originX=findPosX(this.cont);this.originY=findPosY(this.cont);var x=("pageX" in _277)?_277.pageX:_277.clientX;var y=("pageY" in _277)?_277.pageY:_277.clientY;this.deltaX=x-this.originX;this.deltaY=y-this.originY;var _278=getBaseWindow().getLayout();var win=getBaseWindow().getHTMLWindow();var _279=_278.getMinSize();var _27a=win.document.documentElement.scrollLeft+win.document.body.scrollLeft;if(getWindowWidth(win)<_279.width){this.minX=(is_webkit)?win.document.documentElement.scrollLeft:win.document.body.scrollLeft;this.maxX=_279.width+win.document.body.scrollLeft;if(is_webkit){this.maxX-=win.document.body.scrollLeft;}}else{this.minX=_27a;this.maxX=getWindowWidth(win)+win.document.documentElement.scrollLeft+win.document.body.scrollLeft;}this.maxY=getWindowHeight()+win.document.documentElement.scrollTop+win.document.body.scrollTop+this.cont.offsetHeight-_267;this._createDragResizeView("container-drag-view");return UES.Event.blockEvent(_277);};_269.prototype.resizeStart=function(_27b,_27c){this.transparentLayer=UES.Util.DOM.newElement("div",{"class":"transparent-layer"});UES.Util.DOM.addNodes(document.body,[this.transparentLayer]);this.activeHandle=_27b;this.tempListeners.push(UES.Event.addListener(document.documentElement,"mouseup",UES.bind(this,this.resizeEnd)));this.tempListeners.push(UES.Event.addListener(document.documentElement,"mousemove",UES.bind(this,this.resizeMove)));this.originX=findPosX(this.cont);this.originY=findPosY(this.cont);this.bottomY=this.originY+this.cont.offsetHeight;this.sizeCorrection=this.borderWidth;this._createDragResizeView("container-resize-view");return UES.Event.blockEvent(_27c);};_269.prototype._createDragResizeView=function(_27d){this.resizeView=UES.Util.DOM.newElement("div",{"class":_27d});this.resizeView.borderWidth=UES.Style.getBorderWidth(this.resizeView,"top+bottom");this.resizeView.style.height=this.cont.offsetHeight-this.sizeCorrection+"px";this.resizeView.style.width=this.cont.offsetWidth-this.sizeCorrection+"px";this.resizeView.style.left=this.originX+"px";this.resizeView.style.top=this.originY+"px";UES.Util.DOM.addNodes(document.body,[this.resizeView]);};_269.prototype.dragEnd=function(){var _27e=findPosY(this.resizeView);var _27f=findPosX(this.resizeView);UES.Util.DOM.removeNodes([this.resizeView,this.transparentLayer]);for(var i=0;i<this.tempListeners.length;++i){UES.Event.removeListener(this.tempListeners[i]);}this.tempListeners=[];if(!_268){this.drag(_27f,_27e);}};_269.prototype.resizeEnd=function(){var _280=this.resizeView.offsetWidth-this.sizeCorrection;var _281=this.resizeView.offsetHeight-this.sizeCorrection;var _282=this.resizeView.style.top;var _283=this.resizeView.style.left;UES.Util.DOM.removeNodes([this.resizeView,this.transparentLayer]);for(var i=0;i<this.tempListeners.length;++i){UES.Event.removeListener(this.tempListeners[i]);}this.tempListeners=[];this.resize(_280,_281);this.move(_283,_282);};_269.prototype.resizeMove=function(_284){if(this.resizeY){var y=("pageY" in _284)?_284.pageY:_284.clientY;var _285;if(this.activeHandle.className==_264){_285=Math.max(this.bottomY-y,this.minHeight);this.resizeView.style.height=_285-this.sizeCorrection+1+"px";if(_285>this.minHeight){this.resizeView.style.top=y+"px";}}else{_285=Math.max(y-this.originY,this.minHeight);this.resizeView.style.height=_285-this.sizeCorrection+1+"px";}}if(this.resizeX){var x=("pageX" in _284)?_284.pageX:_284.clientX;var _286=Math.max(x-this.originX,20);this.resizeView.style.width=_286+"px";}return UES.Event.blockEvent(_284);};_269.prototype.dragMove=function(_287){var x=("pageX" in _287)?(_287.pageX-this.deltaX):(_287.clientX-this.deltaX);var y=("pageY" in _287)?(_287.pageY-this.deltaY):(_287.clientY-this.deltaY);if(!this._isInRange(x,y)){if(y<this.minY){y=this.minY;}if(x<this.minX){x=this.minX;}if(y+this.resizeView.offsetHeight>this.maxY){y=this.maxY-this.resizeView.offsetHeight;}if(x+this.resizeView.offsetWidth>this.maxX){x=this.maxX-this.resizeView.offsetWidth;}}this.resizeView.style.top=y+"px";this.resizeView.style.left=x+"px";return UES.Event.blockEvent(_287);};_269.prototype._isInRange=function(aX,aY){if(aX<this.minX){return false;}if(aY<this.minY){return false;}if(aX+this.resizeView.offsetWidth>this.maxX){return false;}if(aY+this.resizeView.offsetHeight>this.maxY){return false;}return true;};_269.prototype.resize=function(_288,_289){var _28a=this.cont.offsetHeight;var _28b=this.cont.offsetWidth;this.cont.style.height=_289+"px";UES.Event.fireCustomEvent(this,"heightChange",{prevWidth:_28b,prevHeight:_28a,newWidth:_288,newHeight:_289});};_269.prototype.move=function(_28c,_28d){if(this.activeHandle.className==_264){(typeof _28c!="number")?(this.cont.style.left=_28c):(this.cont.style.left=_28c+"px");(typeof _28d!="number")?(this.cont.style.top=_28d):(this.cont.style.top=_28d+"px");}};_269.prototype.drag=function(_28e,_28f){this.cont.style.left=_28e+"px";this.cont.style.top=_28f+"px";};_269.prototype.setMinHeight=function(_290){if(_290==null){return;}if(typeof _290=="number"){this.minHeight=_290;}};_269.prototype.setPosition=function(_291,_292){this.move(_291,_292);};})();(function(){var _293=webPath+outputType+guiMutation+"/images/buttons/expand_on.gif";var _294=webPath+outputType+guiMutation+"/images/buttons/expand_off.gif";var _295="expanded-on";var _296="expanded-off";UES.extend(_297,"UES.FormContainer","UES.Widget");function _297(_298){_297.superclass.constructor.call(this,_298);this.head=UES.$(this.id+"_head");this.body=UES.$(this.id+"_body");this.checkbox=UES.$(this.id+"_checkbox");this.disableContent=_298.disableContent||false;};_297.prototype._init=function(){this.expandImg=UES.Util.DOM.newElement("img");this.expandImg.setAttribute("src",this.checkbox.checked?_293:_294);this.expandImg.className=this.checkbox.checked?_295:_296;UES.Util.DOM.addNodes(this.head,[this.expandImg]);UES.Event.addListener(this.head,"click",UES.bind(this,this._checkboxHandler));UES.Event.addListener(window,"showContainer",UES.bind(this,this._showContainerHandler));};_297.prototype.changeVisibility=function(){if(this.checkbox.checked){UES.Util.removeClass(this.id,"form-container-closed");setVisible(this.body);if(this.disableContent){enableContainer(this.body);}if(this.expandImg){this.expandImg.src=_293;this.expandImg.className=_295;}UES.Event.fireCustomEvent(this,"open");}else{UES.Util.addClass(this.id,"form-container-closed");setHidden(this.body);if(this.disableContent){disableContainer(this.body);}if(this.expandImg){this.expandImg.src=_294;this.expandImg.className=_296;}UES.Event.fireCustomEvent(this,"close");}UES.Event.onLoad(function(){UES.Event.fireCustomEvent(getWindow(),"contentChange");});};_297.prototype._checkboxHandler=function(){this.checkbox.checked=!this.checkbox.checked;this.changeVisibility();};_297.prototype._showContainerHandler=function(_299){var _29a=UES.$(_299.input);if(_29a==null){return;}var _29b=UES.$(this.id).getElementsByTagName("INPUT");for(var i=0;i<_29b.length;i++){if(_29b[i].id==_29a.id){this.checkbox.checked=true;this.changeVisibility();break;}}};_297.prototype.isVisible=function(){return this.checkbox.checked;};})();function setEnable(_29c){_29c.className=_29c.className.replace(/\bvcDisabled\b/g,"");if(_29c.setDisableMethodWasUsed){enableElements(_29c.getElementsByTagName("INPUT"));enableElements(_29c.getElementsByTagName("SELECT"));enableElements(_29c.getElementsByTagName("TEXTAREA"));enableHREF(_29c.getElementsByTagName("A"));enableIMGlinks(_29c.getElementsByTagName("IMG"));}};function setDisable(_29d){UES.Util.addClass(_29d,"vcDisabled");_29d.setDisableMethodWasUsed=true;disableElements(_29d.getElementsByTagName("INPUT"));disableElements(_29d.getElementsByTagName("SELECT"));disableElements(_29d.getElementsByTagName("TEXTAREA"));disableHREF(_29d.getElementsByTagName("A"));disableIMGlinks(_29d.getElementsByTagName("IMG"));};function disableElements(_29e){for(var i=0;i<_29e.length;i++){var _29f=_29e[i];if(_29f.getAttribute("widgetid")){var _2a0=dijit.byId(_29f.getAttribute("widgetid"));if(_2a0){_2a0.set("disabled",true);continue;}}if(_29f.disabled){if(typeof (_29f.originalDisabled)=="undefined"){_29f.originalDisabled=true;disableCheckboxLabel(_29f);}}else{if(typeof (_29f.originalDisabled)=="undefined"){_29f.originalDisabled=false;}_29e[i].disabled=true;setInputTasks(_29e[i],new Array());disableCheckboxLabel(_29f);disableGenericInput(_29f);}}};function enableElements(_2a1){for(var i=0;i<_2a1.length;i++){var _2a2=_2a1[i];if(_2a2.getAttribute("widgetid")){var _2a3=dijit.byId(_2a2.getAttribute("widgetid"));if(_2a3){_2a3.set("disabled",false);continue;}}if(typeof (_2a2.originalDisabled)=="undefined"){_2a2.originalDisabled=_2a2.disabled;}if(!_2a2.originalDisabled){_2a2.disabled=false;if((_2a2.type=="checkbox"||_2a2.type=="radio")&&_2a2.id){var _2a4=document.getElementById(_2a2.id+"_label");if(_2a4!=null){var _2a5=_2a4.getAttribute("for");if(_2a5&&_2a5==_2a2.getAttribute("id")){UES.Util.removeClass(_2a4,"vcDisabled");}}}enableGenericInput(_2a2);}}};function disableCheckboxLabel(_2a6){if((_2a6.type=="checkbox"||_2a6.type=="radio")&&_2a6.id){var _2a7=document.getElementById(_2a6.id+"_label");if(_2a7!=null){var _2a8=_2a7.getAttribute("for");if(_2a8&&_2a8==_2a6.getAttribute("id")){UES.Util.addClass(_2a7,"vcDisabled");}}}};function enableCheckboxLabel(_2a9){if((_2a9.type=="checkbox"||_2a9.type=="radio")&&_2a9.id){var _2aa=document.getElementById(_2a9.id+"_label");if(_2aa!=null){var _2ab=_2aa.getAttribute("for");if(_2ab&&_2ab==_2a9.getAttribute("id")){UES.Util.removeClass(_2aa,"vcDisabled");}}}};function disableGenericInput(_2ac){if(_2ac.type=="checkbox"||_2ac.type=="radio"){return;}if(_2ac.tagName=="INPUT"||_2ac.tagName=="SELECT"||_2ac.tagName=="TEXTAREA"){dojo.addClass(_2ac,"vcDisabledGenericInput");}};function enableGenericInput(_2ad){if(_2ad.type=="checkbox"||_2ad.type=="radio"){return;}if(_2ad.tagName=="INPUT"||_2ad.tagName=="SELECT"||_2ad.tagName=="TEXTAREA"){dojo.removeClass(_2ad,"vcDisabledGenericInput");}};function disableHREF(_2ae){for(var i=0;i<_2ae.length;i++){var _2af=_2ae[i];if(typeof (_2af.oldHREF)=="undefined"){_2af.oldHREF=_2af.href;}_2af.removeAttribute("href");if(typeof (_2af.old_onclick)=="undefined"){_2af.old_onclick=_2af.onclick;}_2af.onclick="";}};function enableHREF(_2b0){for(var i=0;i<_2b0.length;i++){var _2b1=_2b0[i];if(typeof (_2b1.oldHREF)!="undefined"&&_2b1.oldHREF!=""){_2b1.setAttribute("href",_2b1.oldHREF);}if(typeof (_2b1.old_onclick)!="undefined"&&_2b1.old_onclick!=""){_2b1.onclick=_2b1.old_onclick;}}};function disableIMGlinks(_2b2){for(var i=0;i<_2b2.length;i++){var _2b3=_2b2[i];if(_2b3.onclick){if(typeof (_2b3.old_onclick)=="undefined"){_2b3.old_onclick=_2b3.onclick;}_2b3.onclick="";}}};function enableIMGlinks(_2b4){for(var i=0;i<_2b4.length;i++){var _2b5=_2b4[i];if(typeof (_2b5.old_onclick)!="undefined"){_2b5.onclick=_2b5.old_onclick;}}};function setVisible(_2b6){_2b6.className=_2b6.className.replace(/\bvcNonVisible\b/g,"");};function setHidden(_2b7){_2b7.className+=" vcNonVisible";};function changeVisibility(_2b8){var _2b9=UES.$(_2b8);if(_2b9.className.match(/\bvcNonVisible\b/)){setEnable(_2b9);setVisible(_2b9);}else{setHidden(_2b9);setDisable(_2b9);}UES.Event.fireCustomEvent(getWindow(),"contentChange");};function changeEnability(_2ba){var _2bb=UES.$(_2ba);if(_2bb.className.match(/\bvcDisabled\b/)){setEnable(_2bb);}else{setDisable(_2bb);}};function showContainer(_2bc){var _2bd=UES.$(_2bc);if(_2bd.className.match(/\bvcNonVisible\b/)){setVisible(_2bd);}};function hideContainer(_2be){var _2bf=UES.$(_2be);if(!_2bf.className.match(/\bvcNonVisible\b/)){setHidden(_2bf);}};function enableContainer(_2c0){var _2c1=UES.$(_2c0);if(_2c1.className.match(/\bvcDisabled\b/)){setEnable(_2c1);}};function disableContainer(_2c2){var _2c3=UES.$(_2c2);setDisable(_2c3);};function changeRadioEnability(_2c4,_2c5){var _2c6=UES.$(_2c5);if(_2c4.checked){setEnable(_2c6);}else{if(!_2c6.className.match(/\bvcDisabled\b/)){setDisable(_2c6);}}};function changeRadioVisibility(_2c7,_2c8){var _2c9=UES.$(_2c8);if(_2c7.checked){setVisible(_2c9);}else{if(!_2c9.className.match(/\bvcNonVisible\b/)){setHidden(_2c9);}}};function desibledOnStart(_2ca){var _2cb=UES.$(_2ca);setDisable(_2cb);};var CSS_BOX_SHADOW="box-shadow";function setShadow(_2cc,_2cd){var elem=UES.$(_2cc);if(!elem){return;}var _2ce=elem.className.indexOf(CSS_BOX_SHADOW)!=-1;if(!_2cd&&_2ce){var _2cf=elem.className;var _2d0=_2cf.replace(new RegExp("\\s*\\b"+CSS_BOX_SHADOW+"\\b\\s*","g")," ");elem.className=_2d0;}else{if(_2cd&&!_2ce){elem.className+=" "+CSS_BOX_SHADOW;}}};}if(!dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.input.VCAFUBT"]){dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.input.VCAFUBT"]=true;dojo.provide("legacy.afu_v1.af_v1.appc_v1.visc_v2.input.VCAFUBT");var vtChar=(dojo.isIE<9?String.fromCharCode(11):"\v");var specCharReadableNames=new Array();specCharReadableNames["\b"]="BS";specCharReadableNames["\f"]="FF";specCharReadableNames["\n"]="LF";specCharReadableNames["\r"]="CR";specCharReadableNames["\t"]="Tab";specCharReadableNames[vtChar]="VT";var deniedCharName="\b\f\n\r\t"+vtChar;var deniedCharCode=deniedCharName+" '{}[]()%?*&:@=;,#<>\"\\";var deniedCharShortData="\b\f\t"+vtChar;var deniedCharRegExp="<>\b\f\n\r\t";var deniedCharPass="<>\b\f\n\r\t\"\\'";function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTExternalFile(_2d1){var lts=new Array();testEmpty(_2d1,lts);setInputTasks(_2d1,lts);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTFile(_2d2){var lts=new Array();testEmpty(_2d2,lts);setInputTasks(_2d2,lts);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTBoolean(_2d3){};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTCurrency(_2d4){};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTTimestamp(_2d5){validTimestampType(_2d5,SHOW_ALL);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTTime(_2d6){validTimestampType(_2d6,SHOW_TIME);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTTimeFrom(_2d7){validTimestampType(_2d7,SHOW_TIME,TIME_FROM);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTTimeTo(_2d8){validTimestampType(_2d8,SHOW_TIME,TIME_TO);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTDate(_2d9){validTimestampType(_2d9,SHOW_DATE);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTUnknown(_2da){};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTDouble(_2db){var lts=new Array();var _2dc=_2db.value.trim();_2dc=normalizeNumber(_2dc);_2db.value=_2dc;testEmpty(_2db,lts);if((_2dc.length>0)&&(!isDouble(_2dc))){lts[lts.length]=new Task("ERROR_BTDOUBLE_E001",getInputLabel(_2db.name)+"|"+_2db.value+"|"+"+-999.99e+-99");isValidForm=false;}if(!isNumberLengthOK(_2dc,MAX_DOUBLE_DIGITS)){lts[lts.length]=new Task("ERROR_BTDOUBLE_E002",getInputLabel(_2db.name)+"|"+MAX_DOUBLE_DIGITS);isValidForm=false;}setInputTasks(_2db,lts);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTLong(_2dd){var lts=new Array();var _2de=_2dd.value.trim();_2de=normalizeNumber(_2de);_2dd.value=_2de;testEmpty(_2dd,lts);if((_2de.length>0)&&(!isNumber(_2de))){lts[lts.length]=new Task("ERROR_BTDOUBLE_E001",getInputLabel(_2dd.name)+"|"+_2dd.value+"|"+"+-999999");isValidForm=false;}if(!isNumberLengthOK(_2de,MAX_LONG_DIGITS)){lts[lts.length]=new Task("ERROR_BTDOUBLE_E002",getInputLabel(_2dd.name)+"|"+MAX_LONG_DIGITS);isValidForm=false;}setInputTasks(_2dd,lts);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTName(_2df){var _2e0=250;var _2e1=validateString(_2df,_2e0,deniedCharName);setInputTasks(_2df,_2e1);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTCode(_2e2){_2e2.value=_2e2.value.trim();var _2e3=250;var _2e4=validateString(_2e2,_2e3,deniedCharCode);setInputTasks(_2e2,_2e4);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTPassword(_2e5){var _2e6=250;var _2e7=validateString(_2e5,_2e6,deniedCharPass);setInputTasks(_2e5,_2e7);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTContentType(_2e8){};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTShortData(_2e9){var _2ea=2000;var _2eb=validateString(_2e9,_2ea,deniedCharShortData);setInputTasks(_2e9,_2eb);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTLongData(_2ec){var _2ed=2000000000;var _2ee=validateString(_2ec,_2ed);setInputTasks(_2ec,_2ee);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTPersonalID(_2ef){var text=_2ef.value.trim();_2ef.value=text;var _2f0=11;var _2f1=validateString(_2ef,_2f0);if(text.length>0&&!isPersonalID(text)){_2f1.push(new Task("ERROR_BTPERSONALID_E001",getInputLabel(_2ef.name)+"|"+text+"|"+"999999[/-]999[9]"));isValidForm=false;}setInputTasks(_2ef,_2f1);};function testEmpty(_2f2,_2f3){if(isSubmitting==false){return true;}if(_2f2.value.trim().length<1&&_2f2.getAttribute("data-ues-required")=="yes"){_2f3.push(new Task(REQUIRED_TASK_CODE,getInputLabel(_2f2.name)));isValidForm=false;return false;}return true;};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_custom_bt_v1_BTDate(_2f4){var lts=new Array();var _2f5=_2f4.value.trim();testEmpty(_2f4,lts);returnFormat="";setInputTasks(_2f4,lts);};function valid_cz_unicorn_afu_v1_af_v1_busc_v1_bt_v1_BTRegExp(_2f6){var _2f7=250;var _2f8=validateString(_2f6,_2f7,deniedCharRegExp);setInputTasks(_2f6,_2f8);};function valid_(){};function validateUID(_2f9){var _2fa="- /_";var _2fb="0123456789"+_2fa;var _2fc=new Array();var s=_2f9.value;testEmpty(_2f9,_2fc);var _2fd=false;var _2fe=false;for(var i=0;i<s.length;++i){var c=s.charAt(i);if(_2fb.indexOf(c)==-1&&!_2fe){_2fc.push(new Task("ERROR_UID_E001",getInputLabel(_2f9.name)));_2fe=true;}if(_2fa.indexOf(c)!=-1){_2fd=true;}}setInputTasks(_2f9,_2fc);isValidForm=isValidForm&&_2fc.length==0;};function validateString(_2ff,_300,_301){var _302=new Array();var text=_2ff.value;testEmpty(_2ff,_302);if(_301){for(var i=0;i<_301.length;++i){var chr=_301.charAt(i);if(text.indexOf(chr)!=-1){_302.push(new Task("ERROR_E003",getInputLabel(_2ff.name)+"|"+getReadableCharName(chr)+"|"+_301));}}}if((typeof _300=="number")&&text.length>_300){_302.push(new Task("ERROR_E002",getInputLabel(_2ff.name)+"|"+text.length+"|"+_300));}isValidForm=isValidForm&&(_302.length==0);return _302;};function getReadableCharName(_303){var _304=specCharReadableNames[_303];return _304==null?_303:"["+_304+"]";};}if(!dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.input.BTTests"]){dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.input.BTTests"]=true;dojo.provide("legacy.afu_v1.af_v1.appc_v1.visc_v2.input.BTTests");var defaultDatePattern="dd.MM.yyyy";var defaultTimePattern="HH:mm";var defaultSeparator=" ";var SHOW_DATE=1<<0;var SHOW_TIME=1<<1;var SHOW_ALL=SHOW_DATE|SHOW_TIME;var TIME=0;var TIME_FROM=1;var TIME_TO=2;var FILL_OMIT_SEP=new Array(":"," ",".","/");var timeStampFilledUp=false;var CONST_YEAR=0;var CONST_MONTH=1;var CONST_DAY=2;var CONST_AMPM=3;var parseDate=new Date(0);var returnFormat;function getDecimalSeparators(){var _305=locale.toLowerCase().substr(0,2);switch(_305){case "cs":return [","," "," "];case "ru":return [","," "," "];case "en":return [".",",",","];case "es":return [",",".","."];case "de":return [",",".","."];case "sk":return [","," "," "];}return [".",",",","];};function isNumber(_306){var _307=getDecimalSeparators();var _308=_307[1];var _309=_307[2];var _30a=(_306?_306.trim():"");if(_308!=_309){_30a=_30a.replace(new RegExp("\\"+_309,"g"),_308);}if(_30a.length==0){return true;}var reg=new RegExp("^-?\\d+(["+_308+"]?\\d{3})*$","");var _30b=_30a.match(reg);if(!_30b){return false;}return _30b[0]==_30a;};function normalizeNumber(_30c){var num=getDouble(_30c);if(isNaN(num)){return _30c;}return getLocalizedNumber(num);};function getLocalizedNumber(_30d){var sep=getDecimalSeparators();var num=_30d.toDecimalString();num=num.replace(/\./,sep[0]);var i=num.lastIndexOf(sep[0]);if(i==-1){i=num.length;}var sign=(num.length>0&&(num.charAt(0)=="-"||num.charAt(0)=="+"));while(i-3>sign){i-=3;num=num.substr(0,i)+sep[1]+num.substr(i);}return num;};function isAccordingPattern(aStr,_30e){aStr=aStr.trim();for(i=0;i<aNumber.length;i++){if((aNumber.charAt(i)>="0")&&(aNumber.charAt(i)<="9")&&(aNumPattern.charAt(i)=="#")){continue;}if(aNumber.charAt(i)==aNumPattern.charAt(i)){continue;}return false;}return true;};function isPersonalID(str){regular="/(d{6})[/-]?(d{3,4})/g";var arr;if((arr=regular.exec(str))==null){return false;}if(arr[0]!=str){return false;}numericID=arr[1]+arr[2];var year=new Number(str.substring(0,2));var _30f=new Number(str.substring(2,4));var day=new Number(str.substring(4,6));if(_30f>50){_30f-=50;}if(numericID.length==9){if(year<=53){year+=1900;}else{return false;}}else{if(year>=54){year+=1900;}else{year+=2000;}}if(!testDate(day,_30f,year)){return false;}if(numericID.length==10){if((numericID%11)!=0){return false;}}return true;};var MAX_DOUBLE_DIGITS=15;var MAX_LONG_DIGITS=19;function isNumberLengthOK(_310,_311){var _312=0;for(var i=_310.length;--i>=0;){var chr=_310.charAt(i);if(chr>="0"&&chr<="9"){++_312;}}return _312<=_311;};function isDouble(_313){_313=_313.trim();var _314=getDecimalSeparators();if(_314==null){return true;}newNumber=_313;if(_314[2]!=_314[1]){while(newNumber.indexOf(_314[2])!=-1){newNumber=newNumber.replace(_314[2],_314[1]);}}var reg=new RegExp("^-?\\d+(["+_314[1]+"]?\\d{3})*(["+_314[0]+"]\\d+)?$");var _315=new Array();_315=newNumber.match(reg);return _315!=null&&_315[0]==newNumber;};function getDouble(_316){var sep=getDecimalSeparators(),i;_316=_316.trim();_316=_316.replace(new RegExp("\\"+sep[2],"g"),"");_316=_316.replace(new RegExp("\\"+sep[1],"g"),"");if(sep[0]!="."&&_316.indexOf(".")!=-1){return Number.NaN;}_316=_316.replace(new RegExp("\\"+sep[0],"g"),".");if(isNaN(_316)||_316.match(/^0x/i)){return Number.NaN;}return parseFloat(_316);};function validTimestampType(_317,_318,_319){var lts=new Array();var _31a=_317.value.trim();testEmpty(_317,lts);returnFormat="";if(_31a.length>0){var _31b=true;if(!isTimestamp(_31a,_318,_319)){if(!timeStampFilledUp){lts[lts.length]=new Task("ERROR_BTDATE_E001",getInputLabel(_317.name)+"|"+_317.value+"|"+returnFormat);isValidForm=false;_31b=false;}}if(_31b){if(_317.getAttribute("omitMidnightTime")=="true"&&isMidnight(parseDate)){returnFormat=date_format;}_317.value=timeToString(parseDate,returnFormat,_319);}}else{_317.value="";}setInputTasks(_317,lts);};function isMidnight(_31c){if(_31c.getHours()+_31c.getMinutes()+_31c.getSeconds()+_31c.getMilliseconds()==0){return true;}return false;};function isTimestamp(_31d,_31e,_31f){regular=/ {2,}/g;_31d=_31d.replace(regular," ");if((time_format!=null)&&(time_format!="")){timeformat=time_format;}else{timeformat="";}if((date_format!=null)&&(date_format!="")){dateformat=date_format;}else{dateformat="";}defaultTimestampPattern="";if((_31e&SHOW_DATE)==SHOW_DATE){defaultTimestampPattern+=dateformat;}if((_31e&SHOW_TIME)==SHOW_TIME){if(defaultTimestampPattern!=""){defaultTimestampPattern+=" ";}defaultTimestampPattern+=timeformat;}if((timestamp_format!=null)&&(timestamp_format!="")){timestampformat=timestamp_format;}else{timestampformat="";}if(_31e==SHOW_ALL){returnFormat=timestampformat;}else{if((_31e&SHOW_DATE)==SHOW_DATE){returnFormat=dateformat;}else{if((_31e&SHOW_TIME)==SHOW_TIME){returnFormat=timeformat;}else{returnFormat="";}}}if(returnFormat==""){return true;}return (isDateTime(_31d,returnFormat,_31f));};function patternToRegexLastOptional(_320){return patternToRegex(_320,true);};function patternToRegex(_321,_322){var reg=deleteMultipleChars(_321);reg=reg.replace("d","(\\d{1,2})");reg=reg.replace("M","(\\d{1,2})");reg=reg.replace("y","(\\d{2,4})");reg=reg.replace(/H:m/g,"(\\d{1,2}(?=:)|\\d\\d(?=\\d\\d)|(?:[01]\\d|2[0-3])(?=\\d)|24(?=0)|\\d(?=\\d\\d)|[3-9](?=\\d)|2(?=[5-9])):?(\\d{1,2})");reg=reg.replace(/h:m/g,"(\\d{1,2}(?=:)|\\d\\d(?=\\d\\d)|(?:0\\d|1[0-2])(?=\\d)|\\d(?=\\d\\d)|[2-9](?=\\d)|1(?=[3-9])):?(\\d{1,2})");reg=reg.replace("H","(\\d{1,2})");reg=reg.replace("h","(\\d{1,2})");reg=reg.replace("m","(\\d{1,2})");reg=reg.replace("s","(\\d{1,2})");reg=reg.replace("S","(\\d{1,2})");reg=reg.replace("a","(am|pm)");reg=reg.replace(/\./g,"\\.");if(_322){reg=reg+"?";}return new RegExp(reg,"ig");};function fillInDefault(_323){var _324;if(typeof (timeOnServer)!="undefined"&&timeOnServer!=null){_324=timeOnServer;}else{_324=new Date();}switch(_323){case CONST_DAY:return _324.getDate();case CONST_MONTH:return _324.getMonth()+1;case CONST_YEAR:return _324.getFullYear();case CONST_AMPM:return _324.getHours()>=12?"PM":"AM";default:return 0;}};function processRegex(str,arr,_325,_326){if(arr[0]!=str){return false;}_325=deleteMultipleChars(_325);var day=-1,_327=-1,year=-1;var hour=0,_328=0,_329=0,_32a=0,_32b=true,ampm=null;var _32c=1;for(var i=0;i<_325.length;i++){switch(_325.charAt(i)){case "M":_327=arr[_32c];_32c++;break;case "d":day=arr[_32c];_32c++;break;case "y":year=arr[_32c];_32c++;break;case "H":hour=arr[_32c];_32b=true;_32c++;break;case "h":hour=arr[_32c];_32b=false;_32c++;break;case "m":_328=arr[_32c];if(_328.length==1&&Number(_328)<6){_328=Number(_328)*10;}_32c++;break;case "s":_329=arr[_32c];_32c++;break;case "S":_32a=arr[_32c];_32c++;break;case "a":ampm=arr[_32c];_32c++;break;default:break;}}if(year==-1){year=fillInDefault(CONST_YEAR);}if(_327==-1){_327=fillInDefault(CONST_MONTH);}if(day==-1){day=fillInDefault(CONST_DAY);}if(ampm==null){ampm=fillInDefault(CONST_AMPM);}if(!testDate(day,_327,year)){return false;}if(!testTime(hour,_328,_329,_32a,_32b,_326)){return false;}if(year<100){var _32d=fillInDefault(CONST_YEAR);_32d=_32d-_32d%100;year=year*1+_32d*1;}parseDate.setYear(year);parseDate.setMonth(new Number(_327)-1);parseDate.setDate(day);if((ampm.toLowerCase()=="pm")&&!_32b){parseDate.setHours(new Number(hour)+12);}else{parseDate.setHours(hour);}parseDate.setMinutes(_328);parseDate.setSeconds(_329);parseDate.setMilliseconds(_32a);return true;};function isDateTime(str,_32e,_32f){timeStampFilledUp=false;if(typeof (_32f)=="undefined"||_32f==null){_32f=TIME;}parseDate=new Date(0);var _330=patternToRegex(_32e);var arr;if((arr=_330.exec(str))!=null){return processRegex(str,arr,_32e,_32f);}else{return autoFillTimestamp(str,_32e,_32f);}};function testDate(day,_331,year){if((_331<1)||(_331>12)){return false;}if(day<1){return false;}if((year<0)||(year>9999)){return false;}if(_331==2){limit=28;if(year%4==0){limit=29;if(year%100==0){limit=28;}if(year%400==0){limit=29;}}if(day>limit){return false;}}else{if(_331==4||_331==6||_331==9||_331==11){if(day>30){return false;}}else{if(day>31){return false;}}}return true;};function testTime(hour,_332,_333,_334,_335,_336){if(_336==TIME_TO&&_335&&_332==0&&_333==0&&_334==0){if(hour==24){return true;}if(hour==0){return false;}}if(_335&&((hour<0)||(hour>23))){return false;}if(!_335&&((hour<1)||(hour>12))){return false;}if((_332<0)||(_332>59)){return false;}if((_333<0)||(_333>59)){return false;}if((_334<0)||(_334>999)){return false;}return true;};function autoFillTimestamp(str,_337,_338){for(var j=0;j<FILL_OMIT_SEP.length;j++){var sep=FILL_OMIT_SEP[j];if(_337.indexOf(sep)>0){var _339=_337.substring(0,_337.lastIndexOf(sep)+1);var reg=patternToRegexLastOptional(_339);var arr;if((arr=reg.exec(str))!=null){if(processRegex(str,arr,_339,_338)){timeStampFilledUp=true;break;}}}}return false;};function deleteMultipleChars(str){newstr="";i=0;while(i<str.length){newstr=newstr+str.charAt(i);character=str.charAt(i);i++;while(str.charAt(i)==character){i++;}}return newstr;};function twoDigits(s){str=new String(s);if(str.length==1){return new String("0"+str);}else{return str;}};function timeToString(date,_33a,_33b){result="";newPattern=deleteMultipleChars(_33a);for(i=0;i<newPattern.length;i++){switch(newPattern.charAt(i)){case "M":result+=twoDigits(date.getMonth()+1);break;case "d":result+=twoDigits(date.getDate());break;case "y":result+=date.getFullYear();break;case "H":hour=date.getHours();if(_33b==TIME_TO&&hour==0&&date.getMinutes()==0&&date.getSeconds()==0){hour=24;}result+=twoDigits(hour);break;case "h":hour=date.getHours();if(hour>12){hour-=12;}result+=hour;break;case "m":result+=twoDigits(date.getMinutes());break;case "s":result+=twoDigits(date.getSeconds());break;case "a":hour=date.getHours();if(hour>12){result+="PM";}else{result+="AM";}break;default:result+=newPattern.charAt(i);break;}}return result;};}if(!dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.component.VCDynamicLink"]){dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.component.VCDynamicLink"]=true;dojo.provide("legacy.afu_v1.af_v1.appc_v1.visc_v2.component.VCDynamicLink");var selectedBDO=null;var selectedUESURI=null;var dynamicParams=null;var BDO_PARAM="afu_v1.af_v1.appc_v1.ucm_v2.BDO";function performDynamicAction(_33c,_33d,_33e,_33f,_340,_341,_342){var _343="&SessFree=";var _344=encodeURIComponent(selectedBDO);var _345=encodeURIComponent(_344);var href="";if(_33c.indexOf(_343)!=-1){var _346=_33c.indexOf(_343)+_343.length;var _347=_33c.indexOf("&",_346);if(_347==-1){href=_33c.substring(0,_346)+_345;}else{href=_33c.substring(0,_346)+_345+_33c.substring(_347,_33c.length);}}else{href=addParamToUrl(_33c,"SessFree",_345,true);}if(dynamicParams&&_342){for(var i=0;i<dynamicParams.length;i++){if(dynamicParams[i][0]==_342){_344=encodeURIComponent(dynamicParams[i][1]);dynamicParams.splice(i,1);break;}}}url=self.location.protocol+"/"+"/"+self.location.host+href+"&"+BDO_PARAM+"="+_344;if(dynamicParams){for(var i=0;i<dynamicParams.length;i++){url=addParamToUrl(url,dynamicParams[i][0],dynamicParams[i][1],false);}}if(_33d=="true"){openInNewWindow(url,_33e,_340,_33f,null,null,null,(_341=="null"?null:_341));}else{if(_33e!=""){var ifr=document.getElementById(_33e);if(ifr){ifr.src=url;}}else{window.location=url;}}if(document.openedmenu){m.findMenuById(document.openedmenu).closeWholeMenu();}};function performDynamicRetAction(_348,_349){var _34a=selectedBDO;if(dynamicParams&&_349){for(var i=0;i<dynamicParams.length;i++){if(dynamicParams[i][0]==_349){_34a=dynamicParams[i][1];break;}}}var href=addParamToUrl(_348,BDO_PARAM,_34a,false);location=href;};}if(!dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.component.VCModalWindow"]){dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.component.VCModalWindow"]=true;dojo.provide("legacy.afu_v1.af_v1.appc_v1.visc_v2.component.VCModalWindow");dojo.require.call(dojo,"ues.core.webui.Dialog");function openDGDialog(aURL,_34b,_34c,_34d,_34e,_34f){if(!isValidSession()){location=location.pathname;return;}if(_34f){_34f.target=_34b;}if(_34d==null||_34d==""){_34d=aURL;aURL=webPath+outputType+guiMutation+"/html/afu_v1/af_v1/appc_v1/visc_v2/VCModalWindow.htm";}var _350=new (getBaseWindow().getHTMLWindow().UES.ModalWindow)(getWindow(),getBaseWindow(),_34c);_350.setReturnAction(_34e);_350.open(_34d,{features:_34c,form:_34f});};(function(){var _351=2000;var _352=0;var _353=35;var _354=2*_353;var _355=669;var _356=349;var _357=150;var _358=19;var _359=14;var _35a="modal-win-loading";var _35b="/images/other/loading_large.gif";var _35c="ues_v5.core_v1.appc_v1.visc_v1.pagecomponents.Progress_TEXT";var _35d=0;var _35e=5;var _35f=6;var _360=7;UES.extend(_361,"UES.ModalWindow","UES.Window");function _361(_362,_363,_364){_361.superclass.constructor.call(this,null,_364);this._parentWin=_362;this._baseWin=_363;this._level=(_362._level)?(_362._level+1):dijit._dialogStack.length;this.features={};this.afterLoadList=[];this.returnAction=null;this.minWidth=null;this.maxHeight=null;this.pageDesiredHeight=null;this.loadCounter=0;this.pageResizeCount=0;this.initHeight=null;this.initWidth=null;this.loaded=false;this._state=_35d;};_361.prototype.open=function(aURL,_365){var that=this;dojo.addOnLoad(dojo.hitch(that,that._open0,aURL,_365));};_361.prototype._open0=function(aURL,_366){var _367=getBaseWindow();var _368=_367.getHTMLWindow();UES.Event.fireCustomEvent(_367,"modalWindowOpen",{modalWin:this});this.windowStack.push(this);this._setParams(_366);this._createModalWindow(aURL);if(dojo.isOpera){this._win=getBaseWindow().getHTMLWindow().document.frames[this.ifr.id];}else{this._win=this.ifr.contentWindow;if(dojo.isWebKit&&!this._win){var that=this;var c=0;var _369=setInterval(function(){++c;that._win=that.ifr.contentWindow;if(that._win||c==500){clearInterval(_369);}},1);}}if(dojo.isIE){this._win.focus();}UES.Event.addListener(this.ifr,"load",UES.bind(this,this._processPageLoad));UES.Event.addListener(this.ifr,"unload",UES.bind(this,this._processPageUnload));if(this.form!=null){this.form.submit();}this._parentWin._block();this.dialog.set("_active",true);setTimeout(UES.bind(this,this._showLoading),_351);};_361.prototype._hideProgress=function(){this.progress.style.display="none";};_361.prototype._hide=function(){this.ifr.style.visibility="hidden";this.mainDiv.style.visibility="hidden";};_361.prototype._show=function(){if(dojo.isIE){this.mainDiv.offsetHeight;this.ifr.offsetHeight;}this.ifr.style.visibility="visible";this.mainDiv.style.visibility="visible";};_361.prototype._createModalWindow=function(aURL){var _36a=(this.form)?this.form.target:("modal-iframe"+this._level);var _36b="modal-iframe"+this._level;var that=this;var _36c=this._baseWin.getHTMLWindow().document.body.offsetHeight-_354;if(UES.isHandheld){_36c=65536;}this.initWidth=this.features.width||_355;this.initHeight=Math.max(Math.min(this.features.height||_356,_36c),_357);this.progress=UES.Util.DOM.newElement("div",{"class":"loadingProgress"});var _36d=UES.Util.DOM.newElement("img",{"class":"progressIcon",src:webPath+outputType+guiMutation+_35b});var _36e=UES.Util.DOM.newElement("span",{"class":"progressTitle"});_36e.innerHTML=UES.localize(_35c);UES.Util.DOM.addNodes(this.progress,[_36d,_36e]);this.dialog=new ues.core.webui.Dialog({id:"modal-win"+this._level,"class":"modal-win "+_35a,resizeY:false,draggable:false,underlay:false,autoPosition:false,content:this.progress});this.mainDiv=this.dialog.domNode;if(dojo.isIE&&dojo.isIE<9){this.ifr=document.createElement("<iframe class=\"modal-win-iframe\" src=\""+aURL+"\" name=\""+_36a+"\" id=\""+_36b+"\" frameborder=\"0\" scrolling=\"no\" />");}else{this.ifr=UES.Util.DOM.newElement("iframe",{"class":"modal-win-iframe",id:_36b,name:_36a,src:aURL,frameborder:0,scrolling:"no"});}this.ifr.style.position="absolute";this.ifr.style.left="-3000px";this.dialog.containerNode.appendChild(this.ifr);dojo.connect(this.dialog,"onResize",this,function(){this.resize(this.dialog.domNode.clientWidth,this.dialog.domNode.clientHeight);});dojo.connect(this.dialog,"onCancel",function(){that.close();});this.dialog.show();this._hide();};_361.prototype._setParams=function(_36f){if(_36f==null&&_36f.features==null){return;}var _370=_36f.features.split(",");var _371=new Array();var i,_372="",key;var map=new Array();for(i=0;i<_370.length;++i){_371=_371.concat(_370[i].split(";"));}for(i=0;i<_371.length;++i){var _373=_371[i].indexOf(":");if(_373==-1){_373=_371[i].indexOf("=");}key=_371[i].substr(0,_373).trim();value=_371[i].substr(_373+1).trim();if(key=="dialogWidth"){key="width";}else{if(key=="dialogHeight"){key="height";}}this.features[key]=value;}if(_36f.form!=null){this.form=_36f.form;}if(this.features.height&&(typeof this.features.height!="number")){this.features.height=parseInt(this.features.height.replace("px",""),10);}if(this.features.width&&(typeof this.features.width!="number")){this.features.width=parseInt(this.features.width.replace("px",""),10);}};_361.prototype.close=function(_374){if(dojo.config.isDebug&&window.console){}this._state=_35e;var _375=getBaseWindow();_375.getHTMLWindow().UES.Event.fireCustomEvent(_375,"modalWindowClose",{modalWin:this});if(typeof this.getHTMLWindow()!="object"){return;}var _376=false;if(typeof _374=="boolean"){_376=_374;}else{if(typeof _374=="string"){_376=true;this.returnAction=_374;}}if(dojo.isIE){var lis=UES.Event.getListeners(this.ifr);for(var i=0;i<lis.length;++i){UES.Event.removeListener(lis[i]);}this.ifr.src=webPath+outputType+guiMutation+"/html/afu_v1/af_v1/appc_v1/visc_v2/blank.html";UES.Util.DOM.removeNodes(this.ifr);}this.dialog.hide();this.windowStack.pop();this._parentWin._unblock();this._parentWin.setTitle();if(this._parentWin.dialog){this._parentWin.dialog.set("_active",true);}if(_376&&this.returnAction){var loc=this._parentWin.getHTMLWindow().location;var url=this.returnAction.toString();if(url.match(/^https?:/)){loc.href=url;}else{if(url.match(/^\//)){loc.href=""+loc.protocol+"//"+loc.host+url;}else{loc.href=url;}}}this._state=_35f;var that=this;var _377=(!UES.isOperaMini)?500:10;setTimeout(function(){that.dialog.destroyRecursive();that.destroy();},_377);};_361.prototype.resize=function(_378,_379){if(dojo.config.isDebug&&window.console){}this._resize0(_378,_379,(this.pageResizeCount==0&&this.loadCounter==0));};_361.prototype._resize0=function(_37a,_37b,_37c){var _37d=(this.pageResizeCount==0);var _37e=(_37d&&this.loadCounter==0);var win=this.getHTMLWindow();var _37f=0;if(_37e){_37f={width:this.initWidth,height:this.initHeight};}else{_37f=this._getCurrentSize();}var _380=this._getContentSizer();var _381=_37a||0;if(!_381){_381=_380.getSuitableWidth(_37f.width);}this.mainDiv.style.width=_381+"px";this._getContentSizer().setSize(_381,null);var _382=_37b||0;if(_37d||!this.pageDesiredHeight){this.pageDesiredHeight=_382||_380.getSuitableHeight(_37f.height);}if(!_382){var posY=(_37c?_353:this._baseWin.getHTMLWindow().findPosY(this.mainDiv));var _383;if(!UES.isHandheld){_383=getWindowHeight(this._baseWin.getHTMLWindow())-_353-posY;}else{_383=65536;}_382=Math.min(_383,this.pageDesiredHeight);}_382=Math.max(_382,_380.getMinHeight());if(_382+"px"!=this.mainDiv.style.height){this.mainDiv.style.height=_382+"px";}_380.setSize(null,_382);++this.pageResizeCount;};_361.prototype._getCurrentSize=function(){var _384=UES.Style.get(this.mainDiv,"width",true);var _385=UES.Style.get(this.mainDiv,"height",true);var res={width:_384,height:_385};return res;};_361.prototype._getContentSizer=function(){var win=this.getHTMLWindow();var res;try{res=win.modalWinSizer;}catch(e){res=this._modalWinSizer;}if(!res){try{var doc=this.getHTMLWindow().document;var UES2=this.getHTMLWindow().UES;if(UES2&&UES2.Util&&UES2.Util.DOM&&UES2.$&&UES2.Util.DOM.getChildNodes){if(UES2.$("modal-win")){res=new _386(this);}if(!res){var _387=UES2.$("body-div");if(_387){var DOM2=UES2.Util.DOM;var divs=DOM2.getChildNodes(_387,"div");for(var i=0,len=divs.length;i<len;++i){var div=divs[i];if(div.className.search(/\bS000105[^ ]*dlg\b/)!=-1){res=new _388(this);break;}}}}}}catch(e){}if(!res){res=new _389(this);}try{win.modalWinSizer=res;}catch(e){this._modalWinSizer=res;}}return res;};_361.prototype._showLoading=function(){if(this._state>=_35e){return;}if(dojo.config.isDebug&&window.console){}this._processBeforePageLoad();this._show();};_361.prototype._processBeforePageLoad=function(){if(dojo.config.isDebug&&window.console){}if(this._beforeLoadProcessed){return;}this._showOverlay(this._level);this._beforeLoadProcessed=true;};_361.prototype._processPageLoad=function(){if(this._state>=_35e){return;}if(dojo.config.isDebug&&window.console){}if(this.loaded){this._processPageUnload();}if(dojo.isChrome&&!this._win){this._win=this.ifr.contentWindow;}var _38a=true;try{if(this._win.isLogin){_38a=!this._win.isLogin();}if(_38a){_38a=!this._win.document.getElementById("layout");}}catch(e){_38a=false;}if(!_38a){getBaseWindow().getHTMLWindow().location.href=this.ifr.src;return;}var _38b=(this.loadCounter==0);this.loaded=true;if(_38b){this._hideProgress();this._hideTransparentDiv();this._hide();}this._processBeforePageLoad();dojo.removeClass(this.dialog.domNode,_35a);this.ifr.style.position="static";if(this._parentWin.dialog){this._parentWin.dialog.set("_active",false);}this._customizeWinByPage();this.resize();if(_38b){this.center();if(dojo.isIE&&dojo.isIE<9){this.ifr.style.filter=(dojo.isIE>6?"alpha(opacity=100)":"");}else{this.ifr.style.opacity="1";}try{if(this.resizeCount==1&&this.getHTMLWindow().document.forms.length>0){this.getHTMLWindow().scrollTo(0,0);}}catch(e){}this._show();}this.dialog.set("minHeight",this._getContentSizer().getMinHeight());this.loadCounter++;try{var that=this;var win=this.getHTMLWindow();win.UES.Event.addListener(this,"contentChange",function(){var _38c=that._getContentSizer();_38c.reset();that.pageDesiredHeight=null;that.resize();that.dialog.set("minHeight",_38c.getMinHeight());});}catch(e){}};_361.prototype._processPageUnload=function(){if(!this.loaded){return;}this.loaded=false;this.pageResizeCount=0;this.pageDesiredHeight=null;};_361.prototype.update=function(){if(this._state>=_35e){return;}if(dojo.config.isDebug&&window.console){}if(!this.loaded){return;}this._resize0(null,null,true);this.center();};_361.prototype.center=function(){if(this._state>=_35e){return;}if(dojo.config.isDebug&&window.console){}if(!this.mainDiv){return;}var _38d=this._baseWin.getHTMLWindow();var _38e=this.mainDiv.offsetHeight;var _38f=this.mainDiv.offsetWidth;var _390=getWindowHeight(_38d);var _391=getWindowWidth(_38d);var _392=getBaseWindow().getLayout();var _393=(_392?_392.getSize().w:_391);if(_392&&_392.getPosition()=="left"){_391=Math.min(_391,_393);}var _394=(_391-_38f)/2;this.mainDiv.style.left=(_394<_352)?_352+"px":_394+"px";var _395=(_390-_38e)/2;if(UES.isHandheld){_395=Math.max((getWindowHeight(_38d)-_38e)/2,0);_395+=(_38d.pageYOffset!==undefined)?_38d.pageYOffset:0;}this.mainDiv.style.top=(_395<_353)?_353+"px":_395+"px";};_361.prototype._block=function(){this._showTransparentDiv(this._level);UES.Event.addListener(this.getHTMLWindow().document,"keypress",UES.Event.blockEvent,true);UES.Event.addListener(this.getHTMLWindow().document,"keydown",UES.Event.blockEvent,true);};_361.prototype._unblock=function(){UES.Event.removeListener(this.getHTMLWindow().document,"keypress",UES.Event.blockEvent,true);UES.Event.removeListener(this.getHTMLWindow().document,"keydown",UES.Event.blockEvent,true);this._showOverlay(this._level);this._hideTransparentDiv();};_361.prototype._customizeWinByPage=function(){var that=this;function _396(_397,_398){var wc;try{wc=that._win.windowConstraints;}catch(e){}if(wc&&_397 in wc){return wc[_397];}return _398;};var _399=_396("resizable",true);var _39a=_396("draggable",true);var _39b=_396("winType","standard");if(this._lastWinType){dojo.removeClass(this.dialog.domNode,"modal-win_"+this._lastWinType);}this._lastWinType=_39b;this.dialog.set("resizeY",_399);this.dialog.set("draggable",_39a);dojo.addClass(this.dialog.domNode,"modal-win_"+_39b);};_361.prototype.setReturnAction=function(_39c){this.returnAction=(typeof (_39c)=="undefined"?null:_39c);};_361.prototype.setTitle=function(){var _39d=getTitleFromPage(this);if(_39d){this._baseWin.getHTMLWindow().document.title=_39d;}};_361.prototype.getMinHeight=function(){return this.minHeight;};_361.prototype.destroy=function(){if(dojo.config.isDebug&&window.console){}this._parentWin=undefined;this._baseWin=undefined;this._level=undefined;this.dialog=undefined;this.features=undefined;this.afterLoadList=undefined;this.returnAction=undefined;this.minHeight=undefined;this.maxHeight=undefined;this.loadCounter=undefined;this.initHeight=undefined;this.initWidth=undefined;this._state=_360;_361.superclass.destroy.call(this);};UES.extend(_386,"-UES.ModalWindow.StandardLayoutSizer","UES.Object");function _386(aWin){this.win=aWin.getHTMLWindow();};_386.MIN_BODY_HEIGHT=34;_386.STANDARD_MIN_HEIGHT=349;_386.prototype.setSize=function(_39e,_39f){if(_39e){}if(_39f){var _3a0=this.win.document.getElementById("modal-win-body");var _3a1=this.win.document.getElementById("modal-win-head");var _3a2=this.win.findPosY(_3a1)+_3a1.offsetHeight;var _3a3=this.win.document.getElementById("modal-win-bar").offsetHeight;var _3a4=this.win.dojo._getPadBorderExtents("modal-win");var _3a5=_39f-_3a2-_3a3-_3a4.h;var _3a6=(_3a0.scrollHeight||_3a5)+(dojo.isIE<=7?1:0);if(this.win.windowConstraints.buttonBarFollowsEdge){_3a6=65536;}if(_3a5>_3a6){_3a5=_3a6;}if(_3a5<_386.MIN_BODY_HEIGHT){_3a5=_386.MIN_BODY_HEIGHT;}if(!dojo.isIE||dojo.isIE>6){_3a0.style.maxHeight="none";}if(_3a5+"px"!=_3a0.style.height){_3a0.style.height=_3a5+"px";}}};_386.prototype.getSuitableWidth=function(_3a7){return this.suitableWidth||(this.suitableWidth=this.win.windowConstraints.desiredWidth||_355);};_386.prototype.getSuitableHeight=function(_3a8){if(!this.suitableHeight){this.suitableHeight=this.win.windowConstraints.desiredHeight;if(!this.suitableHeight){this.suitableHeight=this._getFullHeight();}}return this.suitableHeight;};_386.prototype.getMinHeight=function(){if(this.minHeight){return this.minHeight;}var _3a9=this._getFullHeight();this.minHeight=Math.min(_3a9,_386.STANDARD_MIN_HEIGHT);return this.minHeight;};_386.prototype._getFullHeight=function(){var _3aa=this.win.document.getElementById("modal-win-head");var _3ab=this.win.findPosY(_3aa)+_3aa.offsetHeight;var _3ac=this.win.document.getElementById("modal-win-bar").offsetHeight;var _3ad=this.win.document.getElementById("modal-win-body");if(dojo.isIE){_3ad.scrollTop=_3ad.scrollTop;}var _3ae=_3ab+(dojo.isOpera?Math.max(dojo.contentBox(_3ad).h,_3ad.scrollHeight):_3ad.scrollHeight)+_3ac;if(dojo.isIE&&dojo.isIE<=7){_3ae+=1;}return _3ae;};_386.prototype.reset=function(){this.minHeight=null;this.suitableHeight=null;this.suitableWidth=null;var _3af=this.win.document.getElementById("modal-win-body");if(!dojo.isIE||dojo.isIE>6){_3af.style.maxHeight=_3af.style.height;}_3af.style.height="auto";};UES.extend(_388,"-UES.ModalWindow.DialogSizer","UES.Object");function _388(aWin){this.win=aWin.getHTMLWindow();};_388.prototype.setSize=function(_3b0,_3b1){};_388.prototype.getSuitableWidth=function(_3b2){return this.suitableWidth||(this.suitableWidth=(window.DIALOG_WIDTH||_3b2));};_388.prototype.getSuitableHeight=function(_3b3){return this.suitableHeight||(this.suitableHeight=this.win.document.body.offsetHeight);};_388.prototype.getMinHeight=function(){return this.minHeight||(this.minHeight=(window.DIALOG_MIN_HEIGHT||30));};_388.prototype.reset=function(){this.minHeight=null;this.suitableHeight=null;this.suitableWidth=null;};UES.extend(_389,"-UES.ModalWindow.UnknownLayoutSizer","UES.Object");function _389(aWin){this.win=aWin.getHTMLWindow();};_389.prototype.setSize=function(_3b4,_3b5){};_389.prototype.getSuitableWidth=function(_3b6){return Math.min(650,_3b6);};_389.prototype.getSuitableHeight=function(_3b7){if(this.suitableHeight){return this.suitableHeight;}try{this.suitableHeight=this.win.document.body.offsetHeight;}catch(e){this.suitableHeight=300;}return this.suitableHeight;};_389.prototype.getMinHeight=function(){return 30;};_389.prototype.reset=function(){this.suitableHeight=null;};})();function getWindowHeightCorrection(){var _3b8=80;if(window.outerHeight&&window.innerHeight){_3b8=window.outerHeight-window.innerHeight;if(_3b8<=0){_3b8=80;}}else{if(dojo.isIE){_3b8=80;}}return _3b8;};function getWindowWidthCorrection(){var _3b9=8;if(window.outerWidth&&window.innerWidth){_3b9=window.outerWidth-window.innerWidth;if(_3b9<8){_3b9=8;}}else{if(dojo.isIE){_3b9=12;}}return _3b9;};function resizeIframeWindowNoReduction(_3ba,_3bb){var _3bc=65535;resizeIframeWindow(_3ba,_3bb,_3bc);};function resizeIframeWindow(_3bd,_3be,_3bf){var _3c0="bottom-div";var _3c1=(_3bf!=null?_3bf:330);var _3c2=650;if(!_3bd){_3bd=findPosY(document.getElementById(_3c0));}if(!_3bd){_3bd=_3c1;}if(!_3be){_3be=_3c2;}getWindow().resize(_3be,_3bd);};function centerDialog(_3c3,_3c4,_3c5,_3c6,_3c7){var _3c8=_3c3||window;var win=_3c8.getWindow();if(win instanceof UES.ModalWindow){win.center();return;}var _3c9=(_3c8.opener.screenX!=undefined?_3c8.opener.screenX:(_3c8.opener.screenLeft!=undefined?_3c8.opener.screenLeft:0));var _3ca=(_3c8.opener.screenY!=undefined?_3c8.opener.screenY:(_3c8.opener.screenTop!=undefined?_3c8.opener.screenTop:0));var _3cb=_3c4?_3c4:getWindowWidth(_3c8);var _3cc=_3c5?_3c5:getWindowHeight(_3c8);var _3cd=getWindowWidth(_3c8.opener);var _3ce=getWindowHeight(_3c8.opener);if(_3c8.opener.outerHeight){_3ca+=(_3c8.opener.outerHeight-_3ce)-20;}var _3cf=(_3cd/2)-(_3cb/2)+_3c9;var _3d0=(_3ce/2)-(_3cc/2)+_3ca;if(_3c7&&_3d0+_3c7>screen.availHeight){_3d0=screen.availHeight-_3c7;}if(_3c6&&_3cf+_3c6>screen.availWidth){_3cf=screen.availWidth-_3c6;}if(_3cf<0){_3cf=0;}if(_3d0<0){_3d0=0;}_3c8.moveTo(_3cf,_3d0);};var modalHeightCorrection=null;var modalWidthCorrection=null;var winOrigWidth=null;var winOrigHeight=null;function resizeWindowDim(_3d1,_3d2,_3d3){if(_3d1.outerWidth==null){if(modalWidthCorrection==null){modalWidthCorrection=12;}if(modalHeightCorrection==null){modalHeightCorrection=38;}}else{modalWidthCorrection=_3d1.outerWidth-_3d1.innerWidth;if(modalWidthCorrection<0){modalWidthCorrection=8;}modalHeightCorrection=_3d1.outerHeight-_3d1.innerHeight;}if(_3d1.outerWidth==null){var _3d4=getWindowWidth(_3d1);var _3d5=getWindowHeight(_3d1);var _3d6=_3d1.resizeTo(_3d3+modalWidthCorrection,_3d2+modalHeightCorrection);if(_3d6){modalHeightCorrection=_3d2+modalHeightCorrection-getWindowHeight(_3d1);modalWidthCorrection=_3d3+modalWidthCorrection-getWindowWidth(_3d1);}else{_3d1.resizeTo(_3d4+modalWidthCorrection,_3d5+modalHeightCorrection);modalHeightCorrection=_3d5+modalHeightCorrection-getWindowHeight(_3d1);modalWidthCorrection=_3d4+modalWidthCorrection-getWindowWidth(_3d1);}}_3d1.resizeTo(_3d3+modalWidthCorrection,_3d2+modalHeightCorrection);var _3d7=(getWindowWidth(_3d1)==_3d3&&getWindowHeight(_3d1)==_3d2);if(_3d7){if(winOrigWidth==null){winOrigWidth=getWindowWidth(_3d1);}if(winOrigHeight==null){winOrigHeight=getWindowHeight(_3d1);}}return _3d7;};}if(!dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.form.VCForm"]){dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.form.VCForm"]=true;dojo.provide("legacy.afu_v1.af_v1.appc_v1.visc_v2.form.VCForm");dojo.require.call(dojo,"ues.core.form.Textarea");UES.Form={};UES.FORM_BUTTON_MIN_WIDTH=85;(function(){var qhs=null;UES.extend(_3d8,"UES.QuickHelp","UES.Widget");function _3d8(_3d9){_3d8.superclass.constructor.call(this,_3d9);this.showingHelp=true;this.showingSwitch=false;qhs=this;};_3d8.CSS_SHOWING_SWITCH="quick-help-showing-switch";_3d8.CSS_SHOWING_HELP="quick-help-showing-help";_3d8.CSS_SHOWING_TASKS="quick-help-showing-tasks";_3d8.getInstance=function(){return qhs;};_3d8.prototype._init=function(){UES.Event.addListener(this.id+"_switch","click",UES.bind(this,this._switchClick));};_3d8.prototype.showTasks=function(){if(!this.showingHelp){return;}this.showingHelp=false;var cls=UES.$(this.id).className;cls=cls.replace(_3d8.CSS_SHOWING_HELP,"");cls=cls.replace(_3d8.CSS_SHOWING_TASKS,"");cls+=" "+_3d8.CSS_SHOWING_TASKS;UES.$(this.id).className=cls;};_3d8.prototype.showHelp=function(){if(this.showingHelp){return;}this.showingHelp=true;var cls=UES.$(this.id).className;cls=cls.replace(_3d8.CSS_SHOWING_HELP,"");cls=cls.replace(_3d8.CSS_SHOWING_TASKS,"");cls+=" "+_3d8.CSS_SHOWING_HELP;UES.$(this.id).className=cls;};_3d8.prototype.setTasks=function(_3da){var _3db=UES.TaskUtil.getTasksByImportance(_3da);var _3dc=_3db.length;if(_3dc==0&&!this.showingSwitch){return;}if(_3dc==0){this._hideSwitch();}else{this._showSwitch();}var _3dd=UES.$(this.id+"_tasks");_3dd.innerHTML="";for(var i=0;i<_3db.length;++i){var _3de=_3db[i];var _3df=this._createTaskHTML(_3de);UES.Util.DOM.addNodes(_3dd,_3df);var that=this;UES.Event.addListener(_3df,"mousedown",UES.bind(this,this._setClickPosition));UES.Event.addListener(_3df,"click",function(_3e0){that._taskClick(_3e0,_3de);});}var type=Message.ERROR;if(_3dc>0){type=UES.TaskUtil.getTaskMessageType(_3db[0].task);}UES.$(this.id+"_taskIcon").src=UES.Util.getRealImagePath("/images/other/form_task_"+type+"_big.gif");if(_3dc>0){this.showTasks();}else{this.showHelp();}};_3d8.prototype._hideSwitch=function(){if(!this.showingSwitch){return;}this.showingSwitch=false;var elem=UES.$(this.id);elem.className=elem.className.replace(_3d8.CSS_SHOWING_SWITCH,"");};_3d8.prototype._showSwitch=function(){if(this.showingSwitch){return;}this.showingSwitch=true;var cls=UES.$(this.id).className;if(cls.indexOf(_3d8.CSS_SHOWING_SWITCH)==-1){UES.$(this.id).className=cls+" "+_3d8.CSS_SHOWING_SWITCH;}};_3d8.prototype._switchClick=function(_3e1){if(this.showingHelp){this.showTasks();}else{this.showHelp();}};_3d8.prototype._taskClick=function(_3e2,_3e3){var curX=_3e2.clientX;var curY=_3e2.clientY;var type=_3e2.type;if(curX==this._clickPos.x&&curY==this._clickPos.y){try{_3e3.input.focus();}catch(e){}}};_3d8.prototype._setClickPosition=function(_3e4){var posX=_3e4.clientX;var posY=_3e4.clientY;this._clickPos={x:posX,y:posY};};_3d8.prototype._createTaskHTML=function(_3e5){var DOM=UES.Util.DOM;var elem=DOM.newElement("div",{"class":"quick-help-task hasLayout"});var _3e6=_3e5.input;if(_3e6){var _3e7=getInputLabel(_3e6.name);if(_3e7){var _3e8=DOM.newElement("span");var _3e9=document.createTextNode(_3e7);var _3ea=document.createTextNode(" - ");DOM.addNodes(_3e8,_3e9);DOM.addNodes(elem,_3e8,_3ea);}}var text=UES.TaskUtil.getMessageText(_3e5.task);DOM.addNodes(elem,document.createTextNode(text));return elem;};var _3eb=290;UES.FormUtil={};UES.FormUtil.adjustItemTextBlockSize=function(_3ec){var elem=UES.$(_3ec);if(!elem){return;}var _3ed=false;if(is_ie6){var _3ee=(arguments.length>=2?arguments[1]:45);_3ed=elem.offsetHeight>_3ee;if(elem.offsetHeight>_3ee){elem.style.height=_3ee+"px";}}else{_3ed=elem.scrollHeight>elem.clientHeight;}if(_3ed){if(elem.className.indexOf("state-comment")!=-1){elem=elem.parentNode;}UES.Style.setWidth(elem,_3eb,UES.Style.BoxTypes.BORDER_BOX);}};var _3ef=UES.Util.getRealImagePath("/images/other/form_task_error_big.gif");var _3f0=UES.Util.getRealImagePath("/images/other/form_task_information_big.gif");var _3f1=UES.Util.getRealImagePath("/images/other/form_task_warning_big.gif");var _3f2=UES.Util.getRealImagePath("/images/other/form_task_error.gif");var _3f3=UES.Util.getRealImagePath("/images/other/form_task_information.gif");var _3f4=UES.Util.getRealImagePath("/images/other/form_task_warning.gif");var _3f5=UES.Util.getRealImagePath("/images/other/input_bg_error.gif");var _3f6=UES.Util.getRealImagePath("/images/other/input_bg_information.gif");var _3f7=UES.Util.getRealImagePath("/images/other/input_bg_warning.gif");dojo.addOnLoad(function(){dojox.image.preload([_3ef,_3f0,_3f1,_3f2,_3f3,_3f4,_3f5,_3f6,_3f7]);});UES.Form.getFormButtons=function(_3f8,_3f9){var form=dojo.byId(_3f8);if(!form){return [];}var _3fa=[];var done={};var bar=dojo.byId((form.id||"")+"_bar");if(bar){_3fa=_3fa.concat(dojo.filter(dojo.map(bar.childNodes,dijit.byNode),function(_3fb){return !!_3fb;}));}if(!_3f9&&form.buttons){for(var i=_3fa.length-1;i>=0;--i){done[_3fa[i].id]=true;}for(var i=frm.buttons.length;i>=0;--i){var _3fc=dijit.byId(form.buttons[i]);if(_3fc&&!done[_3fc.id]){_3fa.push(_3fc);}}}return _3fa;};UES.Form.submitFormAjax=function(_3fd,_3fe,_3ff){isSubmitting=true;var form=dojo.byId(_3fd);var _400=validateBeforeSubmit(form,_3fe);if(!_400){hideProgressCursor();isSubmitting=false;return;}var _401=[];var _402=UES.Form.getFormButtons(form);for(var i=0;i<_402.length;++i){_401.push(_402[i].get("disabled"));_402[i].set("disabled",true);}var _403=_3ff||form.getAttribute("action")||"";var data=UES.Util.getFormData(form);var _404=ues.core.Ajax.DEFAULT_RESPONSE_HANDLER;var _405=dojo.mixin({},ues.core.Ajax.XHR_POST_SETTINGS,{url:UES.Util.getAjaxSesmURL(_403),postData:data,load:dojo.hitch(_404,"success"),error:dojo.hitch(_404,"failure"),handle:function(){_404.handle.apply(_404,arguments);setTimeout(function(){for(var i=0;i<_402.length;++i){_402[i].set("disabled",_401[i]);}delete _402;delete _401;},50);}});dojo.xhrPost(_405);if(window.refreshFormTasks){refreshFormTasks();}isSubmitting=false;};})();function initShowTextArea(_406){var _407=UES.$(_406);var _408=77;if(_407.scrollHeight<=_408){_407.className="vcInputShow vcInputShowTextArea";}else{_407.className="vcInputShow vcInputShowTextArea_long";UES.FormUtil.adjustItemTextBlockSize(_407,_408);}};function disableButtons(_409){var _40a=UES.Form.getFormButtons(_409);for(var i=0;i<_40a.length;++i){_40a[i].set("disabled",true);}};}if(!dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.component.VCTask"]){dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.component.VCTask"]=true;dojo.provide("legacy.afu_v1.af_v1.appc_v1.visc_v2.component.VCTask");var ERROR_MESSAGE_NOT_FOUND="";var TASK_MANAGER_JS_ID="taskManager";var inputLabels=new Array();var messages=new Array();var inputTasks=new Array();var INPUT_TAG="%INPUT%";var ERROR_MESSAGE=null;var quickfindTasksOpen=false;var QF_INNER_BOX_MARGIN=2;var afterPageLoad=false;function Message(_40b,_40c,_40d){this.code=_40b;this.type=_40c;this.text=_40d;};Message.ERROR="error";Message.WARNING="warning";Message.INFO="information";var REQUIRED_TASK_CODE="ERROR_E001";var REQUIRED_COMBOBOX_TASK_CODE="ERROR_COMBOBOX_E001";function Task(_40e,_40f,_410){this.code=_40e;this.params=_40f||"";this.type=_410||TASK_TYPE_USECASE;};function InputTask(_411,_412){this.input=_411;this.task=_412;};var TASK_TYPE_USECASE=0;var TASK_TYPE_PAGE=1;function InputTasks(_413,_414){this.input=_413;this.tasks=_414;};function addMessage(_415,_416,_417){messages[_415]=new Message(_415,_416,_417);};function getInputTasks(_418){for(var i=0;i<inputTasks.length;i++){if(inputTasks[i].input==_418){return inputTasks[i].tasks;}}};UES.TaskUtil={getInputTasks:function(){var res=[];var _419=arguments[0]||inputTasks;for(var i=0,len=_419.length;i<len;++i){var item=_419[i];for(var j=0,len2=item.tasks.length;j<len2;++j){res.push(new InputTask(item.input,item.tasks[j]));}}return res;},getTasksByImportance:function(_41a){var res=[];var _41b=UES.TaskUtil.getGroupedTasks(_41a);res=res.concat(_41b[Message.ERROR]);res=res.concat(_41b[Message.WARNING]);res=res.concat(_41b[Message.INFO]);return res;},getGroupedTasks:function(_41c){var res={};res[Message.ERROR]=[];res[Message.WARNING]=[];res[Message.INFO]=[];if(!_41c||!_41c.length){return res;}var _41d=!(_41c[0] instanceof InputTask);var _41e=_41c;if(_41d){var _41f=(_41c[0] instanceof InputTasks?_41c:[new InputTasks(null,_41c)]);_41e=UES.TaskUtil.getInputTasks(_41f);}for(var j=0;j<_41e.length;++j){var task=_41e[j].task;var _420=UES.TaskUtil.getTaskMessageType(task);res[_420].push(_41d?task:_41e[j]);}return res;},getTaskCount:function(_421,_422){var _423;if(!_422){_423=function(){return true;};}else{if(typeof _422=="string"){_423=function(_424){return UES.TaskUtil.getTaskMessageType(_424.task)==_422;};}else{if(_422 instanceof Function){_423=_422;}else{throw ("Invalid parameter for UES.TaskUtil.getTaskCount() - '"+_422+"'!");}}}if(!_421||_421.length==0){return 0;}var _425=_421[0] instanceof InputTasks;var _426=0;for(var i=0;i<_421.length;++i){var _427=(_425?_421[i].input:null);var _428=(_425?_421[i].tasks:[_421[i]]);for(var j=0;j<_428.length;++j){var _429={input:_427,task:_428[j]};if(_423(_429)){++_426;}}}return _426;},getTaskMessageType:function(_42a){var task;if(_42a instanceof InputTask){task=_42a.task;}else{task=_42a;}return messages[task.code].type;},getMessageText:function(_42b){var task;if(_42b instanceof InputTask){task=_42b.task;}else{task=_42b;}var msg=messages[task.code];var res;if(msg){res=fillParams(msg.text,task.params);}else{res=ERROR_MESSAGE_NOT_FOUND.text||"";}return res;},getIconPath:function(_42c){var _42d=null;switch(_42c){case Message.ERROR:_42d="form_task_error.gif";break;case Message.WARNING:_42d="form_task_warning.gif";break;case Message.INFO:_42d="form_task_information.gif";break;default:throw "Unable to get icon path for the task type '"+aTaskType+"' - unknown task type!";}return webPath+outputType+guiMutation+"/images/other/"+_42d;},getErrorMessage:function(){if(!ERROR_MESSAGE&&window.UES.Message){ERROR_MESSAGE=new UES.Message(UES.localize("ues_v5.core_v1.appc_v1.visc_v1.pagecomponents.LTasksPresent"),{type:UES.Message.ERROR});}return ERROR_MESSAGE;}};function onlyRequiredTasks(){for(var i=0;i<inputTasks.length;i++){var _42e=inputTasks[i].tasks;for(var j=0;j<_42e.length;j++){if((_42e[j].code!=REQUIRED_TASK_CODE)||(_42e[j].code!=REQUIRED_COMBOBOX_TASK_CODE)){return false;}}}return true;};function setInputTasksString(_42f,_430){var _431=null;if(_42f!=null&&_42f!=""){_431=document.getElementById(_42f);if(_431==null){var _432=document.getElementsByName(_42f);if(_432.length>0){_431=_432[0];}}}setInputTasks(_431,_430);};function setInputTasks(_433,_434){if(!UES.isReady()){UES.Event.onReady(function(){setInputTasks(_433,_434);});return;}var _435=false;var _436=true;var _437=(_434.length>0)?true:false;for(var i=0;i<_434.length;i++){var _438=_434[i].params;var _439=0;var _43a=_433?getInputLabel(_433.name):"";while((_439=_438.indexOf(INPUT_TAG,_439))!=-1){_438=_438.substring(0,_439)+_43a+_438.substring(_439+INPUT_TAG.length);}_434[i].params=_438;}for(var i=0;i<inputTasks.length;i++){if(inputTasks[i].input==_433){_435=true;_436=_434.length>0||_434.length!=inputTasks[i].tasks.length;inputTasks[i].tasks=_434;}}if(!_435){inputTasks[inputTasks.length]=new InputTasks(_433,_434);}highlightInput(_433,_434);if(isLogin()){refreshLoginTasks(_433,_434);return;}var _43b=getTaskType(_433);if(_43b=="quickfind"){showQFTasks(_433,_434);}else{if(_433||isForm()){if(_434&&_434.length>0){UES.Event.fireCustomEvent(window,"showContainer",{input:_433});}var tii=TaskInputInfo.getInstance(_433);tii.setTasks(_434);if(_436&&_433&&_433.form){var tfi=TaskFormInfo.getInstance(_433.form);tfi.setTasks(inputTasks);}refreshFormTasks();}else{showStatusbarTasks();}}};function getTaskType(_43c){if(_43c==null){return;}var _43d=getForm(_43c);if(_43d==null){return null;}var _43e=UES.$("tasktype_"+_43d.id);if(_43e==null){return null;}return _43e.innerHTML;};function getForm(_43f){if(!_43f){return null;}if(_43f.form){return _43f.form;}var elem=_43f;while(elem&&elem.tagName!="BODY"){if(elem.tagName=="FORM"){return elem;}elem=elem.parentNode;}return null;};function showQFTasks(_440,_441){var _442;var _443;var _444;if(document.getElementById("QFTaskBlock")==null){_442=document.createElement("div");_442.setAttribute("id","QFTaskBlock");_442.className="QFTaskBlock";_443=document.createElement("div");_443.setAttribute("id","QFTaskBlockIn");_443.className="QFTaskBlockIn";_444=document.createElement("table");_444.setAttribute("cellpadding","0");_444.setAttribute("cellspacing","0");_444.setAttribute("id","taskTableElement");_444.className="vcTaskTable";}else{_442=document.getElementById("QFTaskBlock");_443=document.getElementById("QFTaskBlockIn");_444=document.getElementById("taskTableElement");var _445=_444.childNodes;for(i=0;i<_445.length;i++){_444.removeChild(_445[i]);}_442.style.visibility="visible";_442.style.display="block";}if(_441==null||_441.length<1){_442.style.display="none";if(document.removeEventListener){document.removeEventListener("click",closeQFTask,false);}else{if(document.detachEvent){document.detachEvent("onclick",closeQFTask);}}return;}if(_440==null){return;}if(_441!=null&&_441.length>0){for(var j=0;j<_441.length;j++){var msg=messages[_441[j].code];var _446=document.createElement("tr");_446.className="vcTableRow";if(_440!=null){_446.input=_440;_446.onclick=taskClick;}var _447=document.createElement("td");_447.className="vcTaskTableCell vcTaskTableCellWidth";var type="error";if(msg!=null){type=msg.type;}_447.innerHTML="<img src=\""+webPath+outputType+guiMutation+"/images/other/form_task_"+type+".gif\">";var _448=document.createElement("td");_448.className="vcTaskTableCell";var _449=ERROR_MESSAGE_NOT_FOUND;if(msg!=null){_449=msg.text;}_448.innerHTML=fillParams(_449,_441[j].params);_446.appendChild(_447);_446.appendChild(_448);_444.appendChild(_446);}_442.appendChild(_443);_443.appendChild(_444);quickfindTasksOpen=true;var _44a=_440.parentNode;_442.style.left=findPosX(_440)-QF_INNER_BOX_MARGIN-findImpliedOffsetX(_440)+"px";_442.style.top=findPosY(_440)+_440.offsetHeight+"px";_442.style.position="absolute";_44a.appendChild(_442);if(is_ie){var _44b=_44a.innerHTML;_44a.innerHTML=_44b;}}if(is_gecko){document.addEventListener("click",closeQFTask,false);}else{document.attachEvent("onclick",closeQFTask);}};function closeQFTask(_44c){var _44d=document.getElementById("QFTaskBlock");if(_44d==null){return;}var _44e=findPosX(_44d);var _44f=findPosY(_44d);var _450=_44d.offsetWidth;var _451=_44d.offsetHeight;var _452;var _453;quickfindTasksOpen=false;if(is_gecko){_452=_44c.pageX;_453=_44c.pageY;}else{_452=_44c.x;_453=_44c.y;}if((_452>=_44e)&&(_452<=(_44e+_450))&&(_453>=_44f)&&(_453<=(_44f+_451))){}else{_44d.style.visibility="hidden";_44d.style.display="none";_44d=null;if(is_gecko){document.removeEventListener("click",closeQFTask,false);}else{document.detachEvent("onclick",closeQFTask);}}};function isLogin(){var _454=document.getElementById("tasktype_login");if((_454!=null)&&(_454.firstChild!=null)&&(_454.firstChild.nodeValue=="logintasks")){return true;}else{return false;}};var serverSideTaskCount=0;function refreshLoginTasks(_455,_456){var _457=document.getElementById("tasks");if(getTaskCount()-serverSideTaskCount==0){_457.style.display="none";return;}if(!_455){serverSideTaskCount+=_456.length;}if(_456==null||_456.length==0){return;}var _458=document.getElementById("task_cell");var msg=messages[_456[0].code];if(msg==null){_458.innerHTML=fillParams(ERROR_MESSAGE_NOT_FOUND,_456[0].params);}else{var _459=false;_459=(msg&&msg.type=="information");if(_459){var _45a=_457.childNodes[0];if(_45a!=null){_45a.className="logintasks_logout";}}else{var _45a=_457.childNodes[0];if(_45a!=null){_45a.className="logintasks_in";}}_458.innerHTML=fillParams(msg.text,_456[0].params);}_457.style.display="block";_457.style.visibility="visible";};function refreshFormTasks(){if(isLogin()){return;}if(!refreshTasksEnabled){return;}if(quickfindTasksOpen){return;}var _45b=UES.QuickHelp.getInstance();if(!_45b){return;}_45b.setTasks(UES.TaskUtil.getInputTasks());};function highlightInput(_45c,_45d){if(_45c==null){return;}var _45e="";if(_45d==null||_45d.length<1){_45e="";}else{var _45f=false,_460=false,_461=false,_462=false;for(var i=0;i<_45d.length;++i){var msg=messages[_45d[i].code];_45f=(msg==null||msg.type=="error");_460=(msg&&msg.type=="warning");_462=(msg&&msg.type=="information");_461=(msg&&msg.type=="disabled");}if(_45f){_45e="task-error";}else{if(_460){_45e="task-warning";}else{if(_462){_45e="task-information";}else{if(_461){_45e="task-disabled";}}}}}var cls=_45c.className;cls=cls.replace(/\btask-[^ ]*/g,"");_45c.className=cls+" "+_45e;};function addInputLabel(_463,_464){inputLabels[_463]=_464;};function getInputLabel(_465){return inputLabels[_465];};function getTaskCount(_466){return UES.TaskUtil.getTaskCount(inputTasks,_466);};function taskClick(){try{this.input.focus();}catch(e){}};var refreshTasksEnabled=true;function disableTasksRefresh(){refreshTasksEnabled=false;};function enableTasksRefresh(){refreshTasksEnabled=true;if(isForm()){refreshFormTasks();}};function fillParams(_467,_468){if(_468==null){return _467;}var _469=_468.split("|");var _46a;for(var i=0;i<_469.length;i++){_46a=new RegExp("%"+(i+1),"g");_467=_467.replace(_46a,_469[i]);}return _467;};function isForm(){return UES.QuickHelp.getInstance()!=null;};function showStatusbarTasks(){var _46b=getStatusbarTasks();for(i=0;i<_46b.length;i++){window.status+="     !!! "+_46b[i]+" !!!";}};function getStatusbarTasks(){var _46c=new Array();for(var i=0;i<inputTasks.length;i++){var _46d=inputTasks[i].tasks;var _46e=inputTasks[i].input;if(_46d==null){continue;}for(var j=0;j<_46d.length;j++){var msg=messages[_46d[j].code];if(msg==null){fillParams(ERROR_MESSAGE_NOT_FOUND,_46d[j].params);}else{fillParams(msg.text,_46d[j].params);}var type="error";if(msg!=null){type=msg.type;}var _46f=ERROR_MESSAGE_NOT_FOUND;if(msg!=null){_46f=msg.text;}var _470=fillParams(_46f,_46d[j].params);_46c.push(_470);}}return _46c;};UES.XML.getTasks=function(aXML,_471,_472){var _473=(_472?{}:[]);var elem=_471||aXML;if(!elem){return _473;}var _474=elem;if(_474.nodeName!="tasks"){_474=elem.getElementsByTagName("tasks");if(_474.length>0){_474=_474[0];}else{return _473;}}var DOM=UES.Util.DOM;var _475=DOM.getChildNodes(_474,"task");for(var i=0;i<_475.length;++i){var _476=_475[i];var _477=DOM.getChildNode(_476,"message");var _478=DOM.getElementText(DOM.getChildNode(_477,"code"));var _479=DOM.getElementText(DOM.getChildNode(_477,"type"));var _47a=DOM.getElementText(DOM.getChildNode(_477,"text"));addMessage(_478,_479,_47a);var _47b=DOM.getElementText(DOM.getChildNode(_476,"code"));var _47c=DOM.getElementText(DOM.getChildNode(_476,"params"));var _47d=DOM.getElementText(DOM.getChildNode(_476,"field"));var task=new Task(_47b,_47c,TASK_TYPE_USECASE);if(_472){if(!_47d){throw "Missing field id for task with code '"+_47b+"'!";}if(!_473[_47d]){_473[_47d]=[];}_473[_47d].push(task);}else{_473.push(task);}}return _473;};(function(){UES.extend(_47e,"UES.TaskManager","UES.Object");function _47e(_47f){_47e.superclass.constructor.call(this,_47f);};_47e.prototype.doPartialUpdate=function(_480){var _481=UES.XML.getTasks(null,_480,true);for(var id in _481){setInputTasksString(id,_481[id]);}};})();var taskManager=new UES.TaskManager({id:TASK_MANAGER_JS_ID});function TaskInputInfo(_482){this.input=_482;this.tooltip=null;this.icon=null;this.task=null;this.listeners=[];this.inputOrigWidth=null;this.inited=false;};TaskInputInfo.instances=[];TaskInputInfo.getInstance=function(_483){if(!_483){return new TaskEmptyInfo();}if(!_483.id){_483.id=UES.generateId();}var _484=TaskInputInfo.instances[_483.id];if(!_484){_484=new TaskInputInfo(_483);TaskInputInfo.instances[_483.id]=_484;_484.init();}return _484;};TaskInputInfo.prototype.tooltipPins={};TaskInputInfo.prototype.init=function(){if(!UES.isReady()){return;}if(!this.input.offsetParent){return;}this.inited=true;var _485=(is_ie6||is_ie7||dojo.isChrome?this.input.form:this.input.parentNode);this.tooltip=new UES.TaskInputInfoContainer({parent:_485});this.tooltip.init();this.tooltip.hide();this.positioningHelper=new TaskInputInfoPosHelper({relativeElem:this.input,mainElem:this.tooltip.getMainElement()});this.tooltip.setPositionHelper(this.positioningHelper);if(this.tooltipPins[this.input.form.id]===undefined){this._pin(false);}this.icon=UES.Util.DOM.newElement("img",{"class":"task-input-icon hidden"});this.input.parentNode.appendChild(this.icon);var that=this;var lis;lis=UES.Event.addListener(this.icon,"mouseover",function(){if(!that.task){return true;}if(!that._isPinWithTask()){that.tooltip.show();}});this.listeners.push(lis);lis=UES.Event.addListener(this.icon,"mouseout",function(){if(!that.task){return true;}if(!that._isPinWithTask()){that.tooltip.hide();}});this.listeners.push(lis);lis=UES.Event.addListener(this.input,"mouseover",function(){if(!that.task){return true;}if(!that._isPinWithTask()){that.tooltip.show();}});this.listeners.push(lis);lis=UES.Event.addListener(this.input,"mouseout",function(){if(!that.task){return true;}if(!that._isPinWithTask()){that.tooltip.hide();}});this.listeners.push(lis);lis=UES.Event.addListener(this.input,"focus",function(){if(!that.task){return true;}that._pin(true);that.tooltip.show();});this.listeners.push(lis);lis=UES.Event.addListener(this.input,"blur",function(){if(!that.task){return true;}that._pin(false);that.tooltip.hide();});this.listeners.push(lis);};TaskInputInfo.prototype.setTasks=function(_486){if(!this.inited){this.init();}if(!this.inited){return;}if(!_486||!_486.length){if(!this.task){return;}this.task=null;if(this.tooltipPins[this.input.form.id]===this){this._pin(false);}UES.Util.hideElement(this.icon);this.tooltip.hide();this.input.style.paddingLeft="3px";dojo.marginBox(this.input,{w:this.inputOrigWidth});this._fixInputBugs();return;}if(this.task==null){this.inputOrigWidth=dojo.marginBox(this.input).w;if(!this.inputOrigWidth){this.inputOrigWidth=this.input.offsetWidth;}}this.task=this._getMainTask(_486);var _487=UES.TaskUtil.getTaskMessageType(this.task);var msg=messages[this.task.code];var _488=(msg?msg.text:ERROR_MESSAGE_NOT_FOUND);var _489=fillParams(_488,this.task.params);this.icon.src=UES.TaskUtil.getIconPath(_487);UES.Util.hideElement(this.icon,true);var that=this;UES.Event.onLoad(function(){that._setIconPosition();UES.Util.showElement(that.icon);});this.input.style.paddingLeft="18px";dojo.marginBox(this.input,{w:this.inputOrigWidth});this._fixInputBugs();this.tooltip.setClassName("task-info-container-"+_487);this.tooltip.setText(_489);if(document.activeElement==this.input&&this.tooltipPins[this.input.form.id]!==this){this._pin(true);UES.Event.onLoad(function(){that.tooltip.show();});}};TaskInputInfo.prototype._pin=function(_48a){this.tooltipPins[this.input.form.id]=(_48a?this:null);};TaskInputInfo.prototype._isPinWithTask=function(){var _48b=this.tooltipPins[this.input.form.id];if(!_48b){return false;}return !!_48b.task;};TaskInputInfo.prototype._getMainTask=function(_48c){return UES.TaskUtil.getTasksByImportance(_48c)[0];};TaskInputInfo.prototype._setIconPosition=function(){var DX=2,DY=2;var _48d=UES.Util.getPosition(this.input);_48d.x+=DX;_48d.y+=DY;UES.Util.setPosition(this.icon,_48d.x,_48d.y);};TaskInputInfo.prototype._fixInputBugs=function(_48e){if(dojo.isIE||dojo.isChrome){var _48f=(document.activeElement==this.input);var _490=this.input.nextSibling;var _491=this.input.parentNode;var _492=null;if(this.input.hasAttribute("onblur")){_492=this.input.getAttribute("onblur");this.input.removeAttribute("onblur");}_491.removeChild(this.input);_491.insertBefore(this.input,_490);if(_492!=null){this.input.setAttribute("onblur",_492);}var that=this;if(_48f){setTimeout(function(){that.input.focus();},0);}}};function TaskInputInfoPosHelper(_493){this.vertical=typeof (_493.vertical)=="boolean"?_493.vertical:true;if(!this.vertical){throw "TaskInputInfoPosHelper can be only set to do vertical position alignments!";}this.scrollListener=null;this.setScrollElem(_493.scrollElem);this.setRelativeElem(_493.relativeElem);this.setMainElem(_493.mainElem);this.setOffsetParent(_493.offsetParent);this.setPositionChangeCallback(null);};TaskInputInfoPosHelper.prototype.setScrollElem=function(_494){if(this.scrollListener){UES.Event.removeListener(this.scrollListener);}this.scrollListener=null;this.scrollElem=_494||UES.$("main-area")||UES.$("modal-win-body")||null;if(this.scrollElem){this.scrollListener=UES.Event.addListener(this.scrollElem,"scroll",UES.bind(this,this._handleScroll));}};TaskInputInfoPosHelper.prototype.setRelativeElem=function(_495){this.relativeElem=_495||null;};TaskInputInfoPosHelper.prototype.setMainElem=function(_496){this.mainElem=_496||null;};TaskInputInfoPosHelper.prototype.setOffsetParent=function(_497){this.offsetParent=_497||null;};TaskInputInfoPosHelper.prototype.setPositionChangeCallback=function(_498){this.positionChangeCallback=_498||null;};TaskInputInfoPosHelper.prototype._handleScroll=function(_499){this.updatePosition();};TaskInputInfoPosHelper.prototype.updatePosition=function(){if(UES.Util.isDisplayed(this.mainElem)){if(is_ie){UES.Util.showElement(this.mainElem);}var pos=this._getPosition();if(this.positionChangeCallback){this.positionChangeCallback(pos.x,pos.y);}else{UES.Util.setPosition(this.mainElem,pos.x,pos.y);}}};TaskInputInfoPosHelper.prototype._getPosition=function(){var resX=0,resY=0;var _49a=UES.$(this.scrollElem);var _49b=UES.$(this.mainElem);var _49c=UES.$(this.relativeElem);if(!this.mainElem||!this.relativeElem){return {x:0,y:0};}var that=this;function _49d(_49e,_49f){var _4a0=_49b[_49f];var _4a1=_49c[_49f];if(!_49a){return _4a2[_49e]-_4a0;}var _4a3=0;if(UES.MessageManager){_4a3=(UES.MessageManager.getInstance().isShowingMessage()?UES.Message.MSG_HEIGHT:0);}var _4a4=dojo.getObject("ues.core.webui.Pinner");if(_4a4&&_4a4.isPinnerFor(_49a.id)){var _4a5=_4a4.getPinnerFor(_49a.id);var h=_4a5.getPinStackHeight();_4a3=Math.max(_4a3,h);}if(_4a6[_49e]+(_49e=="y"?_4a3:0)+_4a0<=_4a2[_49e]){return _4a2[_49e]-_4a0;}return _4a2[_49e]+_4a1;};var _4a6=UES.Util.getPosition(_49a);var _4a2=UES.Util.getPosition(_49c);var _4a7=UES.Util.getPosition(_49b);var _4a8=UES.Util.getPosition(_49b.offsetParent);if(this.vertical){resY=_49d("y","offsetHeight");resX=_4a2.x-2;if(_49a&&resX+(_4a7.scrollX-_4a8.scrollX)-_4a6.x+_49b.offsetWidth>_49a.clientWidth){resX+=_49c.offsetWidth-_49b.offsetWidth+4;}}else{}return {x:resX,y:resY};};function TaskEmptyInfo(){};TaskEmptyInfo.prototype.setTasks=function(){};(function(){UES.extend(_4a9,"UES.TaskInputInfoContainer","UES.Container");function _4a9(_4aa){_4aa.className=(_4aa.className||"")+" task-info-container";_4a9.superclass.constructor.call(this,_4aa);this.positioningHelper=null;this.iframe=null;};_4a9.prototype.setClassName=function(_4ab){_4a9.superclass.setClassName.call(this,(_4ab||"")+" task-info-container");};_4a9.prototype.setText=function(_4ac){var _4ad=this._getSubElement();_4ad.innerHTML="";_4ad.appendChild(document.createTextNode(_4ac));};_4a9.prototype.show=function(){this.hide(true);if(this.iframe){UES.Util.showElement(this.iframe);}if(this.positioningHelper){this.positioningHelper.updatePosition();}_4a9.superclass.show.call(this);};_4a9.prototype.hide=function(_4ae){_4a9.superclass.hide.call(this,_4ae);if(this.iframe){UES.Util.hideElement(this.iframe,_4ae);}};_4a9.prototype._setPosition=function(aX,aY){var elem=this.getMainElement();UES.Util.setPosition(elem,aX,aY);if(this.iframe){this.iframe.style.width=elem.offsetWidth+"px";this.iframe.style.height=elem.offsetHeight+"px";UES.Util.setPosition(this.iframe,aX,aY);}};_4a9.prototype.setPositionHelper=function(_4af){if(this.positioningHelper){this.positioningHelper.setPositionChangeCallback(null);}this.positioningHelper=_4af||null;if(this.positioningHelper){this.positioningHelper.setPositionChangeCallback(UES.bind(this,this._setPosition));}};_4a9.prototype._getSubElement=function(){if(!UES.$(this.id+"_text")){var el=document.createElement("div");el.id=this.id+"_text";this.getMainElement().appendChild(el);}return UES.$(this.id+"_text");};_4a9.prototype.getMainElement=function(){var _4b0=_4a9.superclass.getMainElement.call(this);if(is_ie6&&!this.iframe){var DOM=UES.Util.DOM;this.iframe=DOM.newElement("iframe",{"class":"invisible",frameBorder:0,scrolling:0,style:{zIndex:1,position:"absolute",left:0,top:0}});this.iframe.src="javascript:''";_4b0.parentNode.appendChild(this.iframe);}return _4b0;};})();function TaskFormInfo(_4b1){this.canShow=false;this.messageShown=true;this.scrollElem=_4b1.scrollElem;this.tasks=null;this.visibilityFilter=new (TaskFormInfo.VisibilityFilter)(this.scrollElem);UES.Event.addListener(this.scrollElem,"scroll",UES.bind(this,this._updateDisplay));};UES.extend(TaskFormInfo,"-UES.TaskFormInfo","UES.Object");TaskFormInfo.instances=[];TaskFormInfo.getInstance=function(_4b2){if(!_4b2){return new TaskEmptyInfo();}if(!_4b2.id){_4b2.id=UES.generateId();}var _4b3=TaskFormInfo.instances[_4b2.id];if(!_4b3){if(!UES.$("main-area")||!UES.MessageManager){_4b3=new TaskEmptyInfo();}else{_4b3=new TaskFormInfo({scrollElem:"main-area"});}TaskFormInfo.instances[_4b2.id]=_4b3;}return _4b3;};TaskFormInfo.prototype.setTasks=function(_4b4){this.tasks=_4b4;var _4b5=UES.TaskUtil.getTaskCount(this.tasks,function(_4b6){return _4b6.input&&UES.TaskUtil.getTaskMessageType(_4b6.task)==Message.ERROR;});this.canShow=_4b5!=0;if(_4b5==0){if(this.messageShown){this._closeMessage();}return;}this._updateDisplay();};TaskFormInfo.prototype._updateDisplay=function(){this.canShow=this.canShow&&this.visibilityFilter.doFilter(this.tasks);if(!this.canShow&&this.messageShown){this._closeMessage();}else{if(this.canShow&&!this.messageShown){this._showMessage();}}};TaskFormInfo.prototype._closeMessage=function(){UES.MessageManager.getInstance().closeMessage(UES.TaskUtil.getErrorMessage());this.messageShown=false;};TaskFormInfo.prototype._showMessage=function(){UES.MessageManager.getInstance().addMessage(UES.TaskUtil.getErrorMessage());this.messageShown=true;};TaskFormInfo.VisibilityFilter=function(_4b7){this.scrollElem=UES.$(_4b7);};TaskFormInfo.VisibilityFilter.prototype.doFilter=function(_4b8){if(!this.scrollElem){return true;}var _4b9={};var _4ba=UES.QuickHelp.getInstance();if(_4ba){_4b9[_4ba.id]=true;}for(var i=0;i<_4b8.length;++i){var _4bb=_4b8[i].input;var _4bc=_4b8[i].tasks;if(!_4bb){continue;}if(!_4bb.id){_4bb.id=UES.generateId();}var _4bd=UES.TaskUtil.getGroupedTasks(_4bc)[Message.ERROR].length;if(_4bd==0){continue;}_4b9[_4bb.id]=true;}var _4be=0;if(UES.MessageManager.getInstance().isShowingMessage()){_4be=UES.Message.MSG_HEIGHT;}var _4bf=dojo.getObject("ues.core.webui.Pinner");if(_4bf&&_4bf.isPinnerFor(this.scrollElem.id)){var _4c0=_4bf.getPinnerFor(this.scrollElem.id);var h=_4c0.getPinStackHeight();_4be=Math.max(_4be,h);}var _4c1=UES.Util.getPosition(this.scrollElem);for(var id in _4b9){var elem=UES.$(id);if(!elem){continue;}var _4c2=UES.Util.getPosition(elem);var _4c3=_4c2.x<_4c1.x+this.scrollElem.clientWidth&&_4c2.x+elem.offsetWidth>_4c1.x;if(!_4c3){continue;}_4c3=_4c2.y<_4c1.y+this.scrollElem.clientHeight&&_4c2.y+elem.offsetHeight>_4c1.y+_4be;if(!_4c3){continue;}return false;}return true;};}if(!dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.dialog.VCDialog"]){dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.dialog.VCDialog"]=true;dojo.provide("legacy.afu_v1.af_v1.appc_v1.visc_v2.dialog.VCDialog");var DIALOG_WIDTH=450;var DIALOG_HEIGHT=163;var DIALOG_MIN_HEIGHT=134;function showDialog(href){openInNewWindow(href,"","width="+DIALOG_WIDTH+"px,height="+DIALOG_HEIGHT+"px,status=no,scroll=no","true");};function attachDialog(_4c4){dojo.addOnLoad(_4c4);};function showDetailInfo(){var lwin=window.open("","","width=600,height=500,status=0,toolbar=0,menubar=1,resizable=1,scrollbars=1");var _4c5=document.getElementById("tempDIV");var s=_4c5.innerHTML;lwin.document.open();lwin.document.writeln(s);lwin.document.close();};function resizeDialog(){};function confirmAndClose(_4c6,_4c7){if(_4c7&&_4c7.length){for(i=0;i<_4c7.length;++i){_4c6=addParamToUrl(_4c6,_4c7[i][0],_4c7[i][1],false);}}getWindow().close(_4c6||true);};}if(!dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.visc_v1.VCFormPrefiller"]){dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.visc_v1.VCFormPrefiller"]=true;dojo.provide("legacy.ues_v5.core_v1.appc_v1.visc_v1.VCFormPrefiller");var PREFILLER_CONTAINER_DIV_ID_PREFIX="PrefillInput_";var PREFILLER_CONTAINER_DIV_CLASS="PrefillerContainer";var PREFILLER_OPTIONS_DIV_ID_PREFIX="PrefillerOptions_";var PREFILLER_OPTIONS_DIV_CLASS="PrefillerOptions";var PREFILLER_OPTION_DIV_CLASS="PrefillerOption";var PREFILLER_OPTION_DIV_SELECTED_CLASS="PrefillerOptionSelected";var PREFILLER_IFRAME_ID_PREFIX="PrefillerFrame_";var PREFILLER_INPUT_INDENTATION=0;var PREFILLER_WINDOW_INDENTATION=5;var PREFILLER_ADJUST=2;var PREFILLER_OPTION_HEIGHT=17;var PREFILLER_MAX_HEIGHT=10*PREFILLER_OPTION_HEIGHT;var PREFILLER_MIN_HEIGHT=99;var KEYCODE_ARROW_DOWN=40;var KEYCODE_ARROW_UP=38;var KEYCODE_ESCAPE=27;var KEYCODE_ENTER=13;var KEYCODE_SPACE=32;var formPrefillerInputs={};function getFormPrefiller(_4c8){return formPrefillerInputs[PREFILLER_CONTAINER_DIV_ID_PREFIX+_4c8];};function FormPrefiller(){FormPrefiller.superclass.constructor.call(this,null);this.valueMap={};this._iframes={};this._prefillDivs={};};UES.extend(FormPrefiller,"UES.FormPrefiller","UES.Widget");FormPrefiller.getInstance=function(){if(!FormPrefiller._instance){FormPrefiller._instance=new FormPrefiller();}return FormPrefiller._instance;};FormPrefiller.prototype.destroy=function(){if(FormPrefiller._instance==this){delete FormPrefiller._instance;}FormPrefiller.superclass.destroy.apply(this,arguments);};FormPrefiller.prototype.clearValues=function(_4c9){if(!this.valueMap[_4c9]){return;}var pdid=this._prefillDivs[_4c9].id;dojo.destroy(this._prefillDivs[_4c9]);dojo.destroy(this._iframes[_4c9]);delete this._prefillDivs[_4c9];delete this._iframes[_4c9];delete this.valueMap[_4c9];formPrefillerInputs[pdid].destroy();delete formPrefillerInputs[pdid];};FormPrefiller.prototype.init=function(){this.createContainerDivs();};FormPrefiller.prototype.createContainerDivs=function(){function _4ca(_4cb){var _4cc=document.createElement("div");_4cc.setAttribute("id",PREFILLER_CONTAINER_DIV_ID_PREFIX+_4cb.id);_4cc.className=PREFILLER_CONTAINER_DIV_CLASS;return _4cc;};function _4cd(_4ce){var _4cf=document.createElement("iframe");_4cf.setAttribute("id",PREFILLER_IFRAME_ID_PREFIX+_4ce);_4cf.setAttribute("src","javascript:false;");_4cf.setAttribute("scrolling","no");_4cf.setAttribute("frameborder","0");_4cf.className="PrefillerIframe";return _4cf;};dojo.addOnLoad(UES.bind(this,_4d0));function _4d0(){for(var id in this.valueMap){var _4d1=document.getElementById(id);if(!_4d1){continue;}_4d1.setAttribute("autocomplete","off");var _4d2=_4ca(_4d1);this._prefillDivs[id]=_4d2;document.body.appendChild(_4d2);var _4d3=_4cd(_4d1.id);this._iframes[id]=_4d3;document.body.appendChild(_4d3);var _4d4=this.valueMap[id];formPrefillerInputs[_4d2.id]=new FormPrefillerInput({inputId:_4d1.id,values:_4d4});}};};FormPrefiller.prototype.addInput=function(id,_4d5){var list=this.valueMap[id];if(!list){list=[];this.valueMap[id]=list;}list.push(_4d5);};FormPrefiller.prototype.getValuesForInput=function(_4d6){return this.valueMap[_4d6]||[];};var shownInputValues=null;var inputValuesJustClosed=false;var lSelectedValueIdx=-1;var focusOpenAllowed=true;function FormPrefillerInput(_4d7){FormPrefillerInput.superclass.constructor.call(this,_4d7);this.inputId=_4d7.inputId;this.values=_4d7.values;this.listeners=[];this._connects=[];this._valueConnects=[];};UES.extend(FormPrefillerInput,"UES.FormPrefillerInput","UES.Widget");FormPrefillerInput.prototype._init=function(){var _4d8=this.getMainElement();this._connects.push(dojo.connect(_4d8,"onmouseover",this,function(){this.wasMovedByKey=false;this.wasScrolled=false;}));this._connects.push(dojo.connect(_4d8,"onscroll",this,function(){this.wasScrolled=true;}));this._initValuesDOM();var _4d9=new PosHelper({mainElem:_4d8,relativeElem:this.inputId});this._setPositionHelper(_4d9);};FormPrefillerInput.prototype.destroy=function(_4da){if(this.positioningHelper&&this.positioningHelper.destroy){this.positioningHelper.destroy();}dojo.forEach(this._connects,dojo.disconnect);dojo.forEach(this._valueConnects,dojo.disconnect);this.removeListeners();dojo.destroy(this.getMainElement());delete this.positioningHelper;delete this._connects;delete this._valueConnects;delete this._prefillOptionsDiv;FormPrefillerInput.superclass.destroy.apply(this,arguments);};FormPrefillerInput.prototype._initValuesDOM=function(_4db){if(this._prefillOptionsDiv){dojo.forEach(this._valueConnects,dojo.disconnect);this._valueConnects=[];dojo.empty(this._prefillOptionsDiv);}else{this._prefillOptionsDiv=this._createPrefillOptionsDiv();this.getMainElement().appendChild(this._prefillOptionsDiv);}for(var j=0;j<this.values.length;j++){var _4dc=this._createOptionDiv(this.values[j]);this._prefillOptionsDiv.appendChild(_4dc);}};FormPrefillerInput.prototype._setPositionHelper=function(_4dd){if(this.positioningHelper){this.positioningHelper.setPositionChangeCallback(null);}this.positioningHelper=_4dd||null;if(this.positioningHelper){this.positioningHelper.setPositionChangeCallback(UES.bind(this,this.setPosition));}};FormPrefillerInput.prototype._createPrefillOptionsDiv=function(){var _4de=document.createElement("div");_4de.setAttribute("id",PREFILLER_OPTIONS_DIV_ID_PREFIX+this.inputId);_4de.className=PREFILLER_OPTIONS_DIV_CLASS;return _4de;};FormPrefillerInput.prototype._createOptionDiv=function(_4df){var _4e0=document.createElement("div");_4e0.className=PREFILLER_OPTION_DIV_CLASS;_4e0.setAttribute("fillValue",_4df);if(is_gecko){_4e0.setAttribute("onmousedown","formPrefillerInputs['"+PREFILLER_CONTAINER_DIV_ID_PREFIX+this.inputId+"'].fillValue('"+_4e0.getAttribute("fillValue")+"')");_4e0.setAttribute("onmouseout","this.className = \""+PREFILLER_OPTION_DIV_CLASS+"\"");}else{if(is_ie||is_opera){_4e0.onmousedown=new Function("formPrefillerInputs['"+PREFILLER_CONTAINER_DIV_ID_PREFIX+this.inputId+"'].fillValue('"+_4e0.getAttribute("fillValue")+"')");_4e0.onmouseout=new Function("this.className = \""+PREFILLER_OPTION_DIV_CLASS+"\"");}}this._valueConnects.push(dojo.connect(_4e0,"onmouseover",this,"_mouseOverHandler"));_4e0.appendChild(document.createTextNode(_4df));return _4e0;};FormPrefillerInput.prototype._mouseOverHandler=function(_4e1){if(this.wasMovedByKey===true&&this.wasScrolled){this.wasMovedByKey=false;this.wasScrolled=false;}else{var _4e2=_4e1.target;var _4e3=_4e2.parentNode;for(var i=0;i<_4e3.childNodes.length;i++){if(_4e3.childNodes[i]==_4e2){var _4e4=this.getMainElement();_4e4.childNodes[0].childNodes[lSelectedValueIdx].className=PREFILLER_OPTION_DIV_CLASS;_4e4.childNodes[0].childNodes[i].className=PREFILLER_OPTION_DIV_SELECTED_CLASS;lSelectedValueIdx=i;break;}}}};FormPrefillerInput.prototype.getMainElement=function(){return document.getElementById(PREFILLER_CONTAINER_DIV_ID_PREFIX+this.inputId);};FormPrefillerInput.prototype.registerListeners=function(_4e5,_4e6){if(this.listeners.length>0){this.listeners=[];return;}this.listeners.push(UES.Event.addListener(getWindow().getHTMLWindow().document,"click",UES.bind(this,this.hide)));};FormPrefillerInput.prototype.removeListeners=function(){for(var i=0;i<this.listeners.length;i++){UES.Event.removeListener(this.listeners[i]);}this.listeners=[];};FormPrefillerInput.prototype._truncateTextValues=function(_4e7){var _4e8=_4e7.offsetWidth;for(var i=0;i<_4e7.childNodes.length;i++){var _4e9=_4e7.childNodes[i];var _4ea=_4e9.scrollWidth;if(_4ea>_4e8){var text=_4e9.textContent?_4e9.textContent:_4e9.innerHTML;_4e9.setAttribute("title",text);}}};FormPrefillerInput.prototype._selectPrefillValue=function(aIdx){var _4eb=this.getMainElement();var _4ec=lSelectedValueIdx+aIdx;if(_4ec<0||_4ec>=_4eb.childNodes[0].childNodes.length){return;}_4eb.childNodes[0].childNodes[lSelectedValueIdx].className=PREFILLER_OPTION_DIV_CLASS;_4eb.childNodes[0].childNodes[_4ec].className=PREFILLER_OPTION_DIV_SELECTED_CLASS;lSelectedValueIdx=_4ec;var _4ed=_4eb.childNodes[0].childNodes[lSelectedValueIdx];UES.Util.scrollIntoView(_4ed,_4eb);};FormPrefillerInput.prototype.show=function(_4ee){var _4ef=this.getMainElement();if((_4ee.keyCode==KEYCODE_ARROW_DOWN&&_4ee.altKey)||(_4ee.keyCode==KEYCODE_ARROW_DOWN&&!shownInputValues)||(_4ee.type=="focus"&&focusOpenAllowed)){if(_4ef&&shownInputValues!=this.inputId){if(shownInputValues){this.hide();}_4ef.style.position="absolute";_4ef.style.display="block";if(this.positioningHelper){this._setPrefillerSizes();this.positioningHelper.updatePosition();}this._truncateTextValues(_4ef.childNodes[0]);if(is_ie6){this.showIframe();}shownInputValues=this.inputId;inputValuesJustClosed=false;lSelectedValueIdx=0;this._selectPrefillValue(lSelectedValueIdx);}this.registerListeners();return false;}focusOpenAllowed=true;if((_4ee.keyCode==KEYCODE_ARROW_DOWN||_4ee.type=="focus")&&shownInputValues){if(lSelectedValueIdx!=_4ef.childNodes[0].childNodes.length-1){this.wasMovedByKey=true;}this._selectPrefillValue(1);if(_4ee.preventDefault){_4ee.preventDefault();}else{_4ee.returnValue=false;}return false;}if(_4ee.keyCode==KEYCODE_ARROW_UP&&shownInputValues){if(lSelectedValueIdx!=0){this.wasMovedByKey=true;}this._selectPrefillValue(-1);if(_4ee.preventDefault){_4ee.preventDefault();}else{_4ee.returnValue=false;}}if(((_4ee.keyCode==KEYCODE_ESCAPE||_4ee.type=="blur")&&shownInputValues)||(_4ee.keyCode==KEYCODE_ARROW_UP&&_4ee.altKey)){this.hide();dojo.stopEvent(_4ee);return false;}if(_4ee.keyCode==KEYCODE_ENTER&&shownInputValues){this.fillValue(_4ef.childNodes[0].childNodes[lSelectedValueIdx].getAttribute("fillValue"));_4ee.cancelBubble=true;return false;}};FormPrefillerInput.prototype.showIframe=function(){var _4f0=UES.$(PREFILLER_IFRAME_ID_PREFIX+this.inputId);var _4f1=this.getMainElement();_4f0.style.width=_4f1.offsetWidth+"px";_4f0.style.height=_4f1.offsetHeight+"px";_4f0.style.top=_4f1.style.top;_4f0.style.left=_4f1.style.left;_4f0.style.display="block";};FormPrefillerInput.prototype.resetValues=function(){var _4f2=this.getMainElement();for(i=0;i<_4f2.childNodes[0].childNodes.length;i++){_4f2.childNodes[0].childNodes[i].className=PREFILLER_OPTION_DIV_CLASS;}};FormPrefillerInput.prototype.fillValue=function(_4f3){this.hide();var _4f4=document.getElementById(this.inputId);_4f4.value=_4f3;_4f4.blur();_4f4.fireEvent("onchange");focusOpenAllowed=false;_4f4.focus();var _4f5=_4f4.getAttribute("prefill-handler");if(_4f5!=null&&typeof (eval("window."+_4f5))=="function"){eval(_4f5+"(\""+this.inputId+"\", \""+_4f3+"\")");}};function keyUpHandler(_4f6){if((shownInputValues||inputValuesJustClosed)&&(_4f6.keyCode==KEYCODE_ENTER||_4f6.keyCode==KEYCODE_ESCAPE)){inputValuesJustClosed=false;_4f6.cancelBubble=true;return false;}inputValuesJustClosed=false;return true;};FormPrefillerInput.prototype.hide=function(){this.resetValues();this.getMainElement().style.display="none";if(is_ie6){document.getElementById(PREFILLER_IFRAME_ID_PREFIX+this.inputId).style.display="none";}shownInputValues=null;inputValuesJustClosed=true;this.removeListeners();};function truncatePx(_4f7){return Number(_4f7.substr(0,_4f7.length-2));};FormPrefillerInput.prototype._setPrefillerSizes=function(){var _4f8=UES.$(this.inputId);var _4f9=this.getMainElement();_4f9.style.height="auto";_4f9.style.width=_4f8.clientWidth+"px";};FormPrefillerInput.prototype.setPosition=function(aX,aY){var pref=this.getMainElement();var _4fa=UES.$(this.inputId);if(pref==null||_4fa==null){return;}var _4fb=UES.Util.getPosition(pref);var _4fc=UES.Util.getPosition(_4fa);var _4fd=getWindowHeight();if(_4fc.y+_4fa.offsetHeight+pref.clientHeight+PREFILLER_WINDOW_INDENTATION+PREFILLER_INPUT_INDENTATION>_4fd||aY<0){var _4fe=_4fd-_4fc.y-_4fa.offsetHeight-PREFILLER_ADJUST-PREFILLER_WINDOW_INDENTATION-PREFILLER_INPUT_INDENTATION;var _4ff=_4fc.y-PREFILLER_WINDOW_INDENTATION-PREFILLER_INPUT_INDENTATION;if(_4fe>=PREFILLER_MAX_HEIGHT){aY=_4fc.y+_4fa.offsetHeight+PREFILLER_INPUT_INDENTATION;pref.style.height=Math.min(PREFILLER_MAX_HEIGHT,pref.clientHeight)+"px";}else{if(_4fe>=_4ff||_4ff-_4fe<4*PREFILLER_OPTION_HEIGHT){aY=_4fc.y+_4fa.offsetHeight+PREFILLER_INPUT_INDENTATION;pref.style.height=_4fe+"px";}else{if(_4ff>=PREFILLER_MAX_HEIGHT){pref.style.height=Math.min(PREFILLER_MAX_HEIGHT,pref.clientHeight)+"px";aY=_4fc.y-Math.min(PREFILLER_MAX_HEIGHT,pref.clientHeight)-PREFILLER_INPUT_INDENTATION;}else{aY=_4fc.y-Math.min(_4ff,pref.clientHeight)-PREFILLER_INPUT_INDENTATION;pref.style.height=_4ff+"px";}}}}else{pref.style.height=Math.min(PREFILLER_MAX_HEIGHT,pref.clientHeight)+"px";aY+=PREFILLER_INPUT_INDENTATION;}pref.style.overflowY="auto";pref.style.overflowX="hidden";pref.style.top=aY+"px";pref.style.left=aX+"px";if(is_ie6){this.showIframe(_4fa.id,pref);}};function addPrefillHandler(_500,_501){var _502=document.getElementById(_500);_502.setAttribute("prefill-handler",_501);};function handleBasicPrefiller(_503,_504){};function PosHelper(_505){PosHelper.superclass.constructor.call(this,_505);this.vertical=typeof (_505.vertical)=="boolean"?_505.vertical:true;this.position=(_505.position&&(_505.position=="above"||_505.position=="below"))?_505.position:"below";if(!this.vertical){throw "PosHelper can be only set to do vertical position alignments!";}this.scrollListener=null;this.resizeListener=null;this.setScrollElem(_505.scrollElem);this.setRelativeElem(_505.relativeElem);this.setMainElem(_505.mainElem);this.setOffsetParent(_505.offsetParent);this.setPositionChangeCallback(null);};UES.extend(PosHelper,"UES.PosHelper","UES.Object");PosHelper.prototype._init=function(){var that=this;this.resizeListener=UES.Event.addListener(window,"resize",function(){that.updatePosition();});};PosHelper.prototype.setScrollElem=function(_506){if(this.scrollListener){UES.Event.removeListener(this.scrollListener);}this.scrollListener=null;this.scrollElem=_506||UES.$("main-area")||UES.$("modal-win-body")||null;if(this.scrollElem){this.scrollListener=UES.Event.addListener(this.scrollElem,"scroll",UES.bind(this,this._handleScroll));}};PosHelper.prototype.setRelativeElem=function(_507){this.relativeElem=_507||null;};PosHelper.prototype.setMainElem=function(_508){this.mainElem=_508||null;};PosHelper.prototype.setOffsetParent=function(_509){this.offsetParent=_509||null;};PosHelper.prototype.setPositionChangeCallback=function(_50a){this.positionChangeCallback=_50a||null;};PosHelper.prototype._handleScroll=function(_50b){this.updatePosition();};PosHelper.prototype.updatePosition=function(){if(UES.Util.isDisplayed(this.mainElem)){var pos=this._getPosition();if(this.positionChangeCallback){this.positionChangeCallback(pos.x,pos.y);}else{UES.Util.setPosition(this.mainElem,pos.x,pos.y);}}};PosHelper.prototype._getPosition=function(){var resX=0,resY=0;var _50c=UES.$(this.scrollElem);var _50d=UES.$(this.mainElem);var _50e=UES.$(this.relativeElem);if(!this.mainElem||!this.relativeElem){return {x:0,y:0};}var that=this;function _50f(_510,_511){var _512=_50d[_511];var _513=_50e[_511];var _514=(_510=="y")?getWindowHeight():getWindowWidth();if(!_50c){return _515[_510]+_513;}if(_515[_510]+_513+_512-2<_514){return _515[_510]+_513;}return _515[_510]-_512;};var _516=UES.Util.getPosition(_50c);var _515=UES.Util.getPosition(_50e);var _517=UES.Util.getPosition(_50d);var _518=UES.Util.getPosition(_50d.offsetParent);if(this.vertical){resY=_50f("y","offsetHeight");resX=_515.x;if(_50c&&resX+(_517.scrollX-_518.scrollX)-_516.x+_50d.offsetWidth>_50c.clientWidth){resX+=_50e.offsetWidth-_50d.offsetWidth;}}else{}return {x:resX,y:resY};};PosHelper.prototype.destroy=function(){if(this.scrollListener){UES.Event.removeListener(this.scrollListener);}if(this.resizeListener){UES.Event.removeListener(this.resizeListener);}this.scrollListener=null;this.resizeListener=null;PosHelper.superclass.destroy.apply(this,arguments);};}if(!dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.menu.VCMenu"]){dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.menu.VCMenu"]=true;dojo.provide("legacy.afu_v1.af_v1.appc_v1.visc_v2.menu.VCMenu");dojo.require.call(dojo,"ues.core.encoding.UTF8");dojo.require.call(dojo,"ues.core.Ajax");UES.Menu={};var MENU_TYPE_ITEM="menu_type_item";var MENU_TYPE_SUBITEM="menu_type_subitem";var MENU_TYPE_SEPARATOR="menu_type_separator";var MENU_UPDATE_TIMEOUT=500;var MENU_TRANSITION_DELAY=200;function AbstractMenu(_519){AbstractMenu.superclass.constructor.call(this,_519);this.menuCache=new Object();this.menuParentId=null;this.opened=false;this.menuElements=new Array();this.disabled=false;this.openedMenus=[];this.selectedItems=[];this.delayedOpenTimeouts=[];this.delayedCloseTimeouts=[];this.positioningLevel=1;this.submenuOverlap=[0,0,4];this.fixedVPosition=[true,true,false];this.sizePosStrategy=[];this.regListeners=[];this.openDirection="right";this._scrollListenerInited=false;this._transitionOps=[];};UES.extend(AbstractMenu,"-AbstractMenu","UES.Widget");AbstractMenu.prototype.MENU_MAX_DEPTH=3;AbstractMenu.prototype.zIndexBase=1000;AbstractMenu.prototype._autoCloseElem=null;AbstractMenu.prototype.__debugShowTransitionArea=false;AbstractMenu.prototype._init=function(){for(var i=0;i<this.MENU_MAX_DEPTH;++i){this.openedMenus.push(null);this.selectedItems.push(null);this.delayedOpenTimeouts.push(null);this.delayedCloseTimeouts.push(null);}};AbstractMenu.prototype.findItemById=function(aId,_51a){if(this.menuCache[aId]!=null){return this.menuCache[aId];}if(aId==this.id){return this;}if(aId==null){return null;}if(aId==""&&_51a.menuType==MENU_TYPE_SEPARATOR){return _51a;}var e=_51a;if(!e){e=document.getElementById("li_"+aId);}if(!e){e=document.getElementById(aId);}if(!e){return null;}e.menuElements=this.getElements(e);e.menuParentId=this.getParentId(e);e.menuType=this.getType(e);e.menuId=this.id;e.menuItemId=aId;if(!("menuHref" in e)){e.menuHref=(e.firstChild?e.firstChild.getAttribute("href"):"")||"";}e.menuTarget=(e.firstChild?e.firstChild.getAttribute("target"):"")||"";e.menuDisabled=dojo.hasClass(e,"menuDisabled");if(e.menuType==MENU_TYPE_SUBITEM){e.menuSubDisabled=dojo.hasClass(e,"menuSubDisabled");}e.menuParent=this.getParent(e);e.menuLevel=1;var _51b=e;while((_51b=this.getParent(_51b))){++e.menuLevel;}e.menuWidth=null;e.menuSubmenuHeight=null;var _51c=e.getAttribute("data-ues-platform-title");if(_51c){e.removeAttribute("data-ues-platform-title");Tooltip.connectTo(e,_51c,{visibilityFilter:dojo.hitch(this,"_tooltipVisibilityFilter"),allowWithOpenedMenu:true});}this.menuCache[aId]=e;return e;};AbstractMenu.prototype.getParent=function(_51d){if(_51d.menuParent!=null){return _51d.menuParent;}var _51e=_51d.parentNode;if(_51e!=null){_51e=_51e.parentNode;}if(_51e!=null&&_51e.tagName!="LI"){_51e=null;}return _51e;};AbstractMenu.prototype.getParentId=function(_51f){var _520=this.getParent(_51f),_521;if(_520!=null){_521=_520.id.substr(3);}else{_521=this.id;}return _521;};AbstractMenu.prototype.getElements=function(_522){var _523=new Array();var ul=null;var _524=_522.getAttribute("data-ues-platform-menusubid");if(_524){ul=dojo.byId(_524);}else{for(var i=0;i<_522.childNodes.length;++i){if(_522.childNodes[i].tagName=="UL"){ul=_522.childNodes[i];break;}}}if(!ul){return _523;}_522.menuType=MENU_TYPE_SUBITEM;var _525=ul.childNodes;for(var j=0;j<_525.length;++j){if(_525[j].tagName=="LI"){_525[j].menuParent=_522;var lid;if(!this.isSeparator(_525[j])){lid=_525[j].id.substr(3);}else{lid="";}_523.push(this.findItemById(lid,_525[j]));}}this._initChildren(_523);return _523;};AbstractMenu.prototype._initChildren=function(_526){if(!_526||!_526.length){return;}var self=this;for(var i=0,len=_526.length;i<len;++i){var _527=_526[i];if(_527.menuHandlingAttached){continue;}_527.menuHandlingAttached=true;if(!this.isSeparator(_527)){dojo.connect(_527,"onmouseover",_527,function(_528){var menu=self;var item=menu.findItemById(this.id.substr(3));menu.hoverOn(item);if(dojo.isIE){dojo.stopEvent(_528);}});dojo.connect(_527,"onmouseout",_527,function(_529){self.hoverOff(this);});dojo.connect(_527,"onmouseleave",_527,function(_52a){self._itemMouseLeave(this,_52a);});}var _52b=dojo.query(">a",_527)[0];if(_52b){var _52c=dojo.query(">.menuArrow",_52b)[0];if(_52c){dojo.connect(_52c,"onclick",_52c,function(_52d){var menu=self;var item=this.parentNode.parentNode;menu.hoverOn(item);menu.clickArrow(item,_52d);});}(function(){var _52e=dojo.hitch(_52b,function(e){var menu=self;var item=this.parentNode;var _52f=(this._ieMouseEvent?this._ieMouseEvent.btn==dojo.mouseButtons.LEFT:dojo.mouseButtons.isLeft(e));var _530=(this._ieMouseEvent?this._ieMouseEvent.btn==dojo.mouseButtons.MIDDLE:dojo.mouseButtons.isMiddle(e));var _531=(this._ieMouseEvent?this._ieMouseEvent.ctrl:e.ctrlKey);var _532=(this._ieMouseEvent?this._ieMouseEvent.shift:e.ctrlKey);var _533=(_52f&&(_532||_531))||_530;var isJS=(item.menuHref&&item.menuHref.match(/^javascript:/i));var _534=!!item.getAttribute("data-ues-platform-menuallowoint");var _535=(item.menuDisabled||menu.disabled||((_533||item.menuTarget)&&isJS)||(_533&&!_534));if(_535){this.removeAttribute("href");var _536=this;if(!isJS){setTimeout(function(){_536.setAttribute("href",item.menuHref);},0);}dojo.stopEvent(e);return false;}var _537=item.id.substr(3);var _538=menu.findItemById(_537,this);menu.click(_538,e);});if(!dojo.isWebKit){dojo.connect(_52b,(dojo.isOpera?"onmousedown":"onmouseup"),_52b,function(_539){if(dojo.isIE){this._ieMouseEvent={btn:_539.button,ctrl:_539.ctrlKey,shift:_539.shiftKey};var _53a=this;setTimeout(function(){_53a._ieMouseEvent=null;},5);return true;}if(dojo.mouseButtons.isMiddle(_539)){return _52e.apply(this,[_539]);}});}dojo.connect(_52b,"onclick",_52e);})();}}};AbstractMenu.prototype.getType=function(_53b){if(!_53b){return null;}if(this.isSeparator(_53b)){return MENU_TYPE_SEPARATOR;}var link=dojo.query(">a",_53b)[0];if(!link){return null;}var _53c=dojo.query(">.menuArrow",link)[0];if(_53c){return MENU_TYPE_SUBITEM;}return MENU_TYPE_ITEM;};AbstractMenu.prototype.isSeparator=function(_53d){return _53d&&dojo.hasClass(_53d,"separator");};AbstractMenu.prototype.setEnabled=function(_53e){if(!this.disabled===_53e){return;}this.disabled=!_53e;var elem=document.getElementById(this.id);if(this.disabled){dojo.addClass(elem,"menuDisabled");}else{dojo.removeClass(elem,"menuDisabled");}if(this.opened){this.closeWholeMenu();}};AbstractMenu.prototype.hoverOn=function(_53f){if(this.disabled||_53f.menuDisabled){return;}var _540=_53f.menuLevel;var par=_53f;for(var i=_540;i>=0&&par!=null;--i){if(this.openedMenus[i]==par){clearTimeout(this.delayedCloseTimeouts[i]);this._removeTransitionOp(this.delayedCloseTimeouts[i]);}par=this.getParent(par);}var _541=_540-1;for(var par=this.getParent(_53f);par&&this.selectedItems[_541]!=par;par=this.getParent(par),--_541){this.hoverOff(this.selectedItems[_541],true);this.doVisualHover(par,true);this.selectedItems[_541]=par;}var _542=this.selectedItems[_540];if(_542==_53f){return;}for(var i=0;i<=this.MENU_MAX_DEPTH;++i){clearTimeout(this.delayedOpenTimeouts[i]);this._removeTransitionOp(this.delayedOpenTimeouts[i]);}this.hoverOff(_542,true);if(_540==1&&this.opened){if(_542&&_542.menuType==MENU_TYPE_SUBITEM){if(!this._hasTransitionOp(this.delayedCloseTimeouts[_540])){var g=getBoundFunction(this,this.closeMenu,_542);var _543=this._addTransitionOp(g,MENU_TRANSITION_DELAY,"close");this.delayedCloseTimeouts[_540]=_543;}}else{this.closeMenu(_542);}}else{if(_540!=1&&_542&&_542.menuType==MENU_TYPE_SUBITEM&&this.openedMenus[_540]==_542){var f=getBoundFunction(this,this.closeMenu,_542);var tmt=setTimeout(f,MENU_UPDATE_TIMEOUT);this.delayedCloseTimeouts[_540]=tmt;}}this.doVisualHover(_53f,true);this.selectedItems[_540]=_53f;if(_53f.menuType==MENU_TYPE_SUBITEM&&this.openedMenus[_540]!=_53f&&!_53f.menuSubDisabled){if(_540==1){function _544(_545){if(this.opened){if(_542&&_542.menuType==MENU_TYPE_SUBITEM&&!_545){var g=dojo.hitch(this,function(){_544.call(this,true);});var _546=this._addTransitionOp(g,MENU_TRANSITION_DELAY,"open");this.delayedOpenTimeouts[_540]=_546;}else{this.openMenu(_53f);}}else{var _547=_53f.menuHref;if(_547){this.openWholeMenu(_53f);if(!UES.isHandheld&&(!dojo.isIE||dojo.isIE>=8)){this._autoCloseElem=_53f;}}}};_544.call(this,false);}else{var f=getBoundFunction(this,this.openMenu,_53f);var tmt=setTimeout(f,MENU_UPDATE_TIMEOUT);this.delayedOpenTimeouts[_540]=tmt;}}};AbstractMenu.prototype.hoverOff=function(_548,_549){if(this.disabled||!_548||_548.menuDisabled){return;}var _54a=_548.menuLevel;if(this.selectedItems[_54a]!=_548){return;}if(_549||_548.menuType!=MENU_TYPE_SUBITEM||(!this.opened&&_54a==1)){this.doVisualHover(_548,false);this.selectedItems[_54a]=null;}};AbstractMenu.prototype._addTransitionOp=function(aFn,_54b,_54c){var id=null;var fn=dojo.hitch(this,function(){this._removeTransitionOp(id);aFn();});id=setTimeout(fn,_54b);this._transitionOps.push({id:id,fn:fn,info:_54c});return id;};AbstractMenu.prototype._hasTransitionOp=function(aId){for(var j=this._transitionOps.length-1;j>=0;--j){var tc=this._transitionOps[j];if(tc.id==aId){return true;}}return false;};AbstractMenu.prototype._removeTransitionOp=function(aId){for(var j=this._transitionOps.length-1;j>=0;--j){var tc=this._transitionOps[j];if(tc.id==aId){clearTimeout(tc.id);this._transitionOps.splice(j,1);break;}}};AbstractMenu.prototype._itemMouseLeave=function(_54d,_54e){if(this.opened&&this._autoCloseElem){var el=_54d;while(el&&el!=this._autoCloseElem){el=this.getParent(el);}if(el&&_54e){var _54f=_54e.relatedTarget||_54e.toElement;var i=0;while(_54f&&_54f.tagName!="LI"&&i<8){_54f=_54f.parentNode;++i;}if(_54f&&_54f.menuId==this.id){while(_54f&&_54f!=this._autoCloseElem){_54f=this.getParent(_54f);}}if(_54f!=this._autoCloseElem){var _550=this._addTransitionOp(dojo.hitch(this,this._autoCloseFn),MENU_TRANSITION_DELAY,"auto-close");this.delayedCloseTimeouts[this._autoCloseElem.menuLevel]=_550;}}}};AbstractMenu.prototype._autoCloseFn=function(){this._clearAutoClose();this.closeWholeMenu();};AbstractMenu.prototype._clearAutoClose=function(){this._autoCloseElem=null;};AbstractMenu.prototype.doVisualHover=function(_551,_552){if(_552){dojo.addClass(_551,"hover");}else{dojo.removeClass(_551,"hover");}};AbstractMenu.prototype.openMenu=function(_553){if(!_553){return;}var _554=_553.menuLevel;if(this.openedMenus[_554]==_553){return;}this.closeMenu(this.openedMenus[_554]);for(var i=_554+1;i<=this.MENU_MAX_DEPTH;++i){this.hoverOff(this.selectedItems[i],true);}this._markLastVisibleItem(_553);this.showMenu(_553,true);this.openedMenus[_554]=_553;};AbstractMenu.prototype.closeMenu=function(_555){if(!_555){return;}var _556=_555.menuLevel;if(this.openedMenus[_556]!=_555){return;}for(var i=_556;i<=this.MENU_MAX_DEPTH;++i){this.showMenu(this.openedMenus[i],false);this.openedMenus[i]=null;}};AbstractMenu.prototype.showMenu=function(_557,_558){if(!_557){return;}var _559=_557.menuLevel;var _55a=this._getSubmenuContainer(_557);if(!_558){_55a.style.display="none";_55a.style.visibility="hidden";dojo.removeClass(_55a,"ues-platform-menuPoppedUp");dojo.removeClass(_557,"opened");}else{_55a.style.display="none";_55a.style.visibility="hidden";dojo.style(_55a,"zIndex",this.zIndexBase+2*_559);var _55b=scrollBarExist(document.body,"x")||scrollBarExist(document.documentElement,"x");var _55c=scrollBarExist(document.body,"y")||scrollBarExist(document.documentElement,"y");var _55d=getWindowHeight();var _55e=getWindowWidth();dojo.addClass(_557,"opened");_55a.style.left="-10000px";_55a.style.top="-10000px";_55a.style.display="block";this.showInPosition(_557,_55b,_55c,_55d,_55e);dojo.addClass(_55a,"ues-platform-menuPoppedUp");_55a.style.visibility="visible";}this.showIframe(_557,_558);if(_559==1){if(!this._docCnt){this._docCnt={};}if(!_558){dojo.disconnect(this._docCnt[_557.id]);delete this._docCnt[_557.id];}else{var _55f=dojo.position(_557);var _560=dojo.position(_55a);var dnx=(_560.x<_55f.x&&_55f.x<_560.x+_560.w?-1:1);var x=(dnx==-1?_55f.x:_55f.x+_55f.w);var y=_560.y;var _561=1/(0.65*_55f.h);var _562=1/(1/5*(_560.w-_55f.w));if(this.__debugShowTransitionArea){if(!this.__debugShowTransitionAreaShown){var d=dojo.create("div");dojo.style(d,{position:"absolute",width:Math.round(1/_562)+"px",height:Math.round(1/_561)+"px",zIndex:20000,overflow:"hidden",pointerEvents:"none"});var d2=dojo.create("div");dojo.place(d2,d);dojo.style(d2,{"-webkit-transform-origin":(dnx==-1?"100% 0%":"0 0"),"-webkit-transform":(dnx==-1?"translate(-50%, 0%) ":"")+"rotate("+(dnx==-1?"-":"")+Math.atan(_562/_561)+"rad)",width:"200%",height:"200%",backgroundColor:"red"});dojo.place(d,document.body);var t={x:Math.round(x+(dnx==-1?-1/_562:0)),y:Math.round(y-1/_561)};dojo.style(d,{left:t.x+"px",top:t.y+"px"});var dpos=dojo.position(d);dojo.style(d,{left:(2*t.x-dpos.x)+"px",top:(2*t.y-dpos.y)+"px"});}this.__debugShowTransitionAreaShown=true;}var cnt=dojo.connect(document.body,"onmousemove",this,function(_563){if(this.selectedItems[_559]==_557){return;}var _564={x:_563.pageX-x,y:_563.pageY-y};var smd=Math.abs(_564.y*_561)+Math.abs(_564.x*_562);if(smd>1){var _565=10;while(this._transitionOps.length&&_565>0){this._transitionOps[0].fn();--_565;}if(this._transitionOps.length){if(window.console){console.error("Bad implementation of menu mouse-transition handling!");}dojo.disconnect(cnt);}}});this._docCnt[_557.id]=cnt;}}};AbstractMenu.prototype.update=function(){function _566(_567){for(var i=_567.length-1;i>=0;--i){_568(_567[i]);}};function _568(e){e.menuWidth=null;e.menuSubmenuHeight=null;e.menuSubmenuWidth=null;if(e.menuElements){_566(e.menuElements);}};if(!this.opened){return;}var _569=[].concat(this.openedMenus);this.closeMenu(_569[1]);_568(_569[1]);for(var i=1;i<_569.length&&_569[i];++i){this.hoverOn(_569[i]);this._markLastVisibleItem(_569[i]);this.openMenu(_569[i]);}};AbstractMenu.prototype._markLastVisibleItem=function(_56a){var _56b=this.getElements(_56a);var _56c=dojo.query(".ues-platform-uwt-menuitem-lastvisible",dojo.byId(_56a.id));if(_56c.length>0){dojo.removeClass(_56c[0],"ues-platform-uwt-menuitem-lastvisible");}for(var i=_56b.length-1;i>=0;i--){if(!dojo.hasClass(_56b[i],"ues-platform-uwt-menuitem-hidden")){_56c=_56b[i];dojo.addClass(_56c,"ues-platform-uwt-menuitem-lastvisible");break;}}};AbstractMenu.prototype._getSubmenuContainer=function(_56d){var _56e=_56d.getAttribute("data-ues-platform-menusubid");var _56f=(_56e?dojo.byId(_56e):null);if(!_56f){for(var i=_56d.childNodes.length-1;i>=0;--i){if(_56d.childNodes[i].nodeType==1){_56f=_56d.childNodes[i];break;}}this._initSubmenuContainer(_56f);_56d.setAttribute("data-ues-platform-menusubid",_56f.id);}var _570=(dojo.isIE<=6?document.body:(this._openToElem||document.body));if(_56f.parentNode!=_570){_570.appendChild(_56f);}var _571=this._openedOnElem||dojo.byId(this.id);var _572=true;for(var elem=_571;elem&&elem.tagName!="BODY";elem=elem.parentNode){if(elem.id=="main-area"){_572=false;break;}}if(_572){dojo.addClass(_56f,"ues-platform-menu-systemwide");}else{dojo.removeClass(_56f,"ues-platform-menu-systemwide");}return _56f;};AbstractMenu.prototype._initSubmenuContainer=function(_573){dojo.addClass(_573,"ues-platform-menu");dojo.style(_573,"height","auto");if(!_573.id){_573.id=UES.generateId();}};AbstractMenu.prototype.showInPosition=function(_574,_575,_576,_577,_578){if(!_574){return;}var _579=_574.menuLevel;var _57a=this.fixedVPosition[_579];var _57b=this._getSubmenuContainer(_574);var _57c=this.getSubmenuWidth(_574);var _57d=_57c-2;var _57e=_57d;if(_57a){var _57f=_574.offsetWidth-2;if(_57e<_57f){_57e=_57f;}}_57b.style.width=_57e+"px";dojo.style(_57b,"height","auto");if(_579<this.positioningLevel){return;}var _580=dojo.position(_574,true).y;var _581;var _582=this.getSubmenuHeight(_574);var _583=_577+(window.layout?layout.scrollElem.scrollTop:0);var _584=ues.core.webui.Util.getScrollBarWidth();if(!is_ie6){_583-=(_575?_584:0);}var _585=_583-_577+(_575?_584:0);if(_585<0){_585=0;}if(dojo.isFF<4){_583-=8;}if(_57a){var _586=(_579==1?dojo.query(".menuDesc",_574.firstChild)[0]:null);if(_586){_581=dojo.position(_586,true).y+_586.offsetHeight-1;}else{_581=_580+_574.offsetHeight;}}else{var _587=-1;if(_580+_587+_582>_583){_587=_583-(_580+_582);}if(_580+_587<_585){_587=_585-_580;}_581=_580+_587;}if(_581+_582>_583){_57d+=_584;if(_57e<_57d){_57e=_57d;}_57b.style.width=_57e+"px";var _588=_583-_581-2;dojo.style(_57b,"height",_588+"px");_582=this.getSubmenuHeight(_574);}var _589;var _58a=dojo.position(_574,true).x;var _58b=this.submenuOverlap[_579];var _58c=_578-(_576?_584:0)+(window.layout?layout.scrollElem.scrollLeft:0);var _58d=_58c-_578+(_576?_584:0);if(_58d<0){_58d=0;}if(dojo.isFF<4){_58c-=3;}var _58e=_574.offsetWidth;var _58f=(_579==1?0:_58e-_58b);var _590=(_579==1?_58e-_57e-2:_58b-_57e-2);var _591={"default":_58f};if(_58a+_58f+_57e+2<=_58c){_591["right"]=_58f;}if(_58a+_590>=_58d){_591["left"]=_590;}var dirs=(this.openDirection||"").split(",");var dir=dojo.trim((dirs&&dirs.length>=_579?dirs[_579-1]:dirs[dirs.length-1])||"");var _592=["left","right"];for(var i=0;i<_592.length;++i){if(_592[i]==dir){break;}}var _593=null;if(i<_592.length){for(var j=0;j<_592.length;++j,i=(i+1)%_592.length){if(_592[i] in _591){_593=_592[i];break;}}}if(_593===null){_593="default";}var _594=_591[_593];_589=_58a+_594;var left=_589;var top=_581;if(_57b.offsetParent&&_57b.offsetParent!=document.body){var _595=dojo.position(_57b.offsetParent,true);left-=_595.x;top-=_595.y;}_57b.style.left=left+"px";_57b.style.top=top+"px";};AbstractMenu.prototype.showIframe=function(_596,_597){if(UES.isHandheld||!_596||!_596.getAttribute("data-ues-platform-menusubid")){return;}var _598=_596.menuLevel;if(_598>=this.positioningLevel-1){var _599=this._getSubmenuContainer(_596);var ifr=document.getElementById("menuIfr"+_598);if(!ifr){ifr=document.createElement("iframe");if(is_ie){ifr.src="javascript:''";}ifr.className="mnu-ifr";ifr.id="menuIfr"+_598;}var _59a=_599.parentNode;if(_59a!=ifr.parentNode){_59a.appendChild(ifr);}if(_597){var _59b=dojo.position(_599);var cs=dojo.getComputedStyle(_599);ifr.style.top=cs.top;ifr.style.left=cs.left;ifr.style.width=_59b.w+"px";ifr.style.height=_59b.h+"px";ifr.style.display="block";ifr.style.visibility="visible";dojo.style(ifr,"zIndex",this.zIndexBase+2*_598-1);}else{ifr.style.width=0+"px";ifr.style.height=0+"px";ifr.style.top=0+"px";ifr.style.left=0+"px";if(!is_ff){ifr.style.display="none";}ifr.style.visibility="hidden";}}};AbstractMenu.prototype.getSubmenuHeight=function(_59c){if(!_59c){return 0;}var _59d=this._getSubmenuContainer(_59c);if(_59d.offsetHeight){return _59d.offsetHeight;}if(_59c.menuSubmenuHeight){return _59c.menuSubmenuHeight;}var _59e=10;var _59f=_59c.menuElements;var _5a0=findPosY(_59c);var _5a1=_59c.clientHeight;var _5a2=0;for(var i=0;i<_59f.length;i++){_5a2+=(_59f[i].menuType!=MENU_TYPE_SEPARATOR?_5a1:_59e);}_5a2+=2;_59c.menuSubmenuHeight=_5a2;return _59c.menuSubmenuHeight;};AbstractMenu.prototype.getSubmenuWidth=function(_5a3){if(!_5a3){return 0;}if(_5a3.menuSubmenuWidth){return _5a3.menuSubmenuWidth;}var _5a4=350;var _5a5=_5a3.menuElements;var ul=_5a5.length?_5a5[0].parentNode:null;if(ul){ul.style.width=2*_5a4+"px";}var _5a6=0;for(var i=0;i<_5a5.length;++i){var _5a7=_5a5[i].offsetWidth;_5a7=Math.min(_5a7,_5a4);if(_5a7>_5a6){_5a6=_5a7;}}if(_5a6<180){_5a6=180;}if(ul){ul.style.width="auto";}_5a6+=2;_5a3.menuSubmenuWidth=_5a6;return _5a3.menuSubmenuWidth;};AbstractMenu.prototype.click=function(_5a8,_5a9){if(this.disabled||!_5a8||_5a8.menuDisabled){return;}this._clearAutoClose();var _5aa=_5a8.menuHref;var _5ab=UES.isHandheld&&_5aa&&_5a8.menuType==MENU_TYPE_SUBITEM;if(!_5aa||_5ab){this.hoverOn(_5a8);var _5ac=_5a8.menuLevel;if(_5ac==1){this.openWholeMenu(_5a8);}else{if(_5a8.menuType==MENU_TYPE_SUBITEM){this.clickArrow(_5a8);}}if(_5a9){dojo.stopEvent(_5a9);}return;}if(_5aa.match(/^javascript:/i)){var _5ad=dojo.query(">a",_5a8)[0];if(_5ad){_5ad.removeAttribute("href");}var _5ae=unescape(_5aa.substr(11));var _5af=[];for(var i=0;i<_5ae.length;i++){_5af.push(_5ae.charCodeAt(i));}var _5b0=ues.core.encoding.UTF8.encode(_5af);var fun=new Function("event",_5b0);if(fun.apply(_5a8,[_5a9])===false){UES.Event.blockEvent(_5a9,false,true);}return;}};AbstractMenu.prototype.clickArrow=function(_5b1,_5b2){if(this.disabled||!_5b1||_5b1.menuDisabled){return;}if(!_5b1.menuSubDisabled){var _5b3=_5b1.menuLevel;clearTimeout(this.delayedOpenTimeouts[_5b3]);clearTimeout(this.delayedCloseTimeouts[_5b3]);this.openMenu(_5b1);}if(_5b2){dojo.stopEvent(_5b2);}};AbstractMenu.prototype.clickItem=function(_5b4){if(this.disabled||!_5b4||_5b4.menuDisabled){return;}switch(this.getType(_5b4)){case MENU_TYPE_SUBITEM:case MENU_TYPE_ITEM:this.click(_5b4);var href=_5b4.menuHref||_5b4.href;if(href){window.location=href;}break;case MENU_TYPE_SEPARATOR:default:}};AbstractMenu.prototype.onOpenWholeMenu=function(){};AbstractMenu.prototype.openWholeMenu=function(_5b5){if(this.disabled){return;}if(document.openedmenu&&document.openedmenu!=this.id){m.findMenuById(document.openedmenu).closeWholeMenu();}else{if(document.openedmenu==this.id){return;}}this._initScrollListener();this.onOpenWholeMenu.apply(this,arguments);this.opened=true;document.openedmenu=this.id;this.openMenu(_5b5);this.addCloseListeners();};AbstractMenu.prototype.closeWholeMenu=function(){if(!this.opened){return;}this.opened=false;if(document.openedmenu==this.id){document.openedmenu=null;}for(var i=0;i<=this.MENU_MAX_DEPTH;++i){clearTimeout(this.delayedOpenTimeouts[i]);}this._transitionOps=[];this._clearAutoClose();this.closeMenu(this.openedMenus[1]);this.hoverOff(this.selectedItems[1],true);this.removeCloseListeners();this.onCloseWholeMenu();};AbstractMenu.prototype.onCloseWholeMenu=function(){};AbstractMenu.prototype._initScrollListener=function(){if(this._scrollListenerInited){return;}this._scrollListenerInited=true;var _5b6=dojo.byId("main-area");if(_5b6){dojo.connect(_5b6,"onscroll",this,"closeWholeMenu");}dojo.connect(window,"onscroll",this,"closeWholeMenu");};AbstractMenu.prototype.addCloseListeners=function(){if(!this.closeFuncB){this.closeFuncB=getBoundFunction(this,this.closeWholeMenu);}this.regListeners.push(UES.Event.addListener(document,"click",this.closeFuncB));};AbstractMenu.prototype.removeCloseListeners=function(){for(var i=0;i<this.regListeners.length;++i){UES.Event.removeListener(this.regListeners[i]);}this.regListeners=[];};AbstractMenu.prototype._tooltipVisibilityFilter=function(_5b7,_5b8,_5b9){var elem=_5b7;var _5ba=_5b8;while(_5ba&&_5ba!=elem){if(_5ba.tagName=="UL"){break;}_5ba=_5ba.parentNode;}if(_5ba&&_5ba!=elem){return false;}return true;};function MenuStore(){this.menus=new Object();this.register=function(_5bb){this.menus[_5bb.id]=_5bb;};this.findMenuById=function(aId){return this.menus[aId];};};var m=new MenuStore();function hover_off(_5bc,_5bd){var menu=m.findMenuById(_5bd);menu.hoverOff(_5bc);};function hover_on(_5be,_5bf,id,_5c0){var mb=m.findMenuById(_5bf);if(mb.disabled){return;}var _5c1=mb.findItemById(id);mb.hoverOn(_5c1);if(is_ie&&window.event){window.event.cancelBubble=true;return false;}return true;};function liclick(_5c2,_5c3,id,_5c4){var menu=m.findMenuById(id);var _5c5=menu.findItemById(_5c4);hover_on(_5c3,id,_5c4);menu.click(_5c5,null);if(!_5c2){_5c2=window.event;}_5c2.cancelBubble=true;if(_5c2.stopPropagation){_5c2.stopPropagation();}return false;};function MenuBar(aId,_5c6){MenuBar.superclass.constructor.call(this,{id:aId});this._scrollConnected=false;var _5c7=dojo.byId(_5c6);this._initChildren(_5c7.childNodes);};UES.extend(MenuBar,"UES.MenuBar",AbstractMenu);function registerMenuBar(_5c8,_5c9){bar=new MenuBar(_5c8,_5c9);m.register(bar);};MenuBar.prototype.isSeparator=function(_5ca){return _5ca&&(dojo.hasClass(_5ca,"separator")||dojo.hasClass(_5ca,"menubar_sep"));};function MenuToolBar(aId){MenuToolBar.superclass.constructor.call(this,{id:aId});};UES.extend(MenuToolBar,"UES.MenuToolBar",AbstractMenu);function registerMenuToolBar(id,_5cb){bar=new MenuToolBar(id);m.register(bar);if(_5cb){var _5cc=bar.findItemById(_5cb);var _5cd=dojo.query("a",_5cc)[0];if(_5cd){(function(){var href=_5cd.getAttribute("href")||"";var _5ce=_5cd.getAttribute("target");if(!href){dojo.connect(_5cd,(dojo.isOpera?"onmousedown":"onmouseup"),_5cd,function(_5cf){this.setAttribute("href",window.location.href.toString());});}var _5d0=dojo.hitch(_5cd,function(e){var _5d1=(this._ieMouseEvent?this._ieMouseEvent.btn==dojo.mouseButtons.LEFT:dojo.mouseButtons.isLeft(e));var _5d2=(this._ieMouseEvent?this._ieMouseEvent.btn==dojo.mouseButtons.MIDDLE:dojo.mouseButtons.isMiddle(e));var _5d3=(this._ieMouseEvent?this._ieMouseEvent.ctrl:e.ctrlKey);var _5d4=(this._ieMouseEvent?this._ieMouseEvent.shift:e.ctrlKey);var _5d5=(_5d1&&(_5d4||_5d3))||_5d2;var isJS=href.match(/^javascript:/i);var _5d6=((_5d5||_5ce)&&isJS);if(_5d6){this.removeAttribute("href");var _5d7=this;if(!isJS){setTimeout(function(){_5d7.setAttribute("href",href);},0);}dojo.stopEvent(e);return false;}if(!_5d5){if(isJS){eval(href);}else{openInNewWindow(href||this.getAttribute("href"),"_blank");}dojo.stopEvent(e);return false;}});if(!dojo.isWebKit){dojo.connect(_5cd,(dojo.isOpera?"onmousedown":"onmouseup"),_5cd,function(_5d8){if(dojo.isIE){this._ieMouseEvent={btn:_5d8.button,ctrl:_5d8.ctrlKey,shift:_5d8.shiftKey};var _5d9=this;setTimeout(function(){_5d9._ieMouseEvent=null;},5);return true;}if(dojo.mouseButtons.isMiddle(_5d8)){return _5d0.apply(this,[_5d8]);}});}dojo.connect(_5cd,"onclick",_5d0);})();}}};function ContextMenu(aId){ContextMenu.superclass.constructor.call(this,{id:aId});this.positioningLevel=1;this.displayCount=0;this.fixedVPosition=[true,false,false];};UES.extend(ContextMenu,"UES.ContextMenu",AbstractMenu);ContextMenu.WRAPPER_ID="context-menu";ContextMenu.prototype.openWholeMenu=function(_5da,aX,aY,_5db,_5dc,_5dd){if(this.disabled){return;}if(document.openedmenu){m.findMenuById(document.openedmenu).closeWholeMenu();}++this.displayCount;this._initScrollListener();this._openToElem=dojo.byId(_5dc||document.body);this._openedOnElem=dojo.byId(_5db||null);this.onOpenWholeMenu.apply(this,arguments);if(this._openedOnElem){dojo.addClass(this._openedOnElem,"menuOpen");}var _5de=document.getElementById(ContextMenu.WRAPPER_ID);if(_5de==null){_5de=document.createElement("DIV");_5de.id=ContextMenu.WRAPPER_ID;_5de.className="ctxmenu";_5de.style.position="absolute";}if(_5de.parentNode!=this._openToElem){this._openToElem.appendChild(_5de);}var x=aX;var y=aY;if(this._openToElem!=document.body){var pos=dojo.position(this._openToElem,true);x-=pos.x;y-=pos.y;}_5de.style.top=y+"px";_5de.style.left=x+"px";_5de.innerHTML="<DIV class=\"menu\"><UL><LI id=\"li_"+ContextMenu.WRAPPER_ID+"\" class=\"hover\"><DIV></DIV></LI></UL></DIV>";var _5df=document.getElementById(this.id);this._initSubmenuContainer(_5df);this.menuCache[ContextMenu.WRAPPER_ID]=null;var _5e0=dojo.byId("li_"+ContextMenu.WRAPPER_ID);_5e0.setAttribute("data-ues-platform-menusubid",_5df.id);var _5e1=this.findItemById(ContextMenu.WRAPPER_ID);if(_5dd){_5dd({wrapper:_5de,menu:this,rootMenuItem:_5e1});}this.opened=true;document.openedmenu=this.id;this.openMenu(_5e1);this.addCloseListeners();};ContextMenu.prototype.closeWholeMenu=function(_5e2){if(!this.opened){return;}this.opened=false;for(var i=0;i<=this.MENU_MAX_DEPTH;++i){clearTimeout(this.delayedOpenTimeouts[i]);}this._transitionOps=[];this._clearAutoClose();this.closeMenu(this.openedMenus[1]);this.hoverOff(this.selectedItems[1],true);this.removeCloseListeners();if(document.openedmenu==this.id){document.openedmenu=null;}if(this._openedOnElem){dojo.removeClass(this._openedOnElem,"menuOpen");delete this._openedOnElem;}this.onCloseWholeMenu();};ContextMenu.prototype.findItemById=function(aId,_5e3){var e=ContextMenu.superclass.findItemById.call(this,aId,_5e3);if(e!=null&&e.menuDisplayCount!=this.displayCount){this.menuCache[aId]=null;e=ContextMenu.superclass.findItemById.call(this,aId,_5e3);e.menuDisplayCount=this.displayCount;}return e;};function registerContextMenu(id){cmenu=new ContextMenu(id);m.register(cmenu);};function enableContextMenu(_5e4){contextMenuEnabled=_5e4;};var contextMenuEnabled=false;if(window.addEventListener){window.addEventListener("load",function(){enableContextMenu(true);},false);}else{if(window.attachEvent){window.attachEvent("onload",function(){enableContextMenu(true);});}}var menuBarEnabled;function enableMenuBar(){};function disableMenuBar(){};function setOpenInNewWinHref(_5e5,_5e6,_5e7){var mb=m.findMenuById(_5e7);var _5e8=mb.findItemById(_5e5);if(!_5e8){return;}var anch=findAnchor(_5e6.target||_5e6.srcElement);if(!anch){return;}var href=anch.href;var _5e9=function(){if(href.substr(0,11).toLowerCase()=="javascript:"){if(is_ie6){href=encodeURI(href);}location.href=href;}else{openInNewWindow(href,"",null,"","","","","");}};var _5ea=UES.Event.getListeners(_5e8,"click");for(var i=_5ea.length-1;i>=0;--i){UES.Event.removeListener(_5ea[i]);}UES.Event.addListener(_5e8,"click",_5e9);};function findAnchor(_5eb){var _5ec=_5eb;if(_5ec.nodeName.toUpperCase()=="SPAN"){_5ec=_5ec.firstChild;}while(_5ec!=null&&_5ec.nodeName.toUpperCase()!="A"&&_5ec.nodeName.toUpperCase()!="AREA"){_5ec=_5ec.parentNode;}return _5ec;};function showContextMenu(_5ed,aBDO,_5ee,_5ef,_5f0,_5f1){if(is_opera){if(!_5ef.ctrlKey&&_5ef.type!="click"){return true;}}if(_5ef){var _5f2=_5ef.target||_5ef.srcElement;var _5f3=_5ef.currentTarget||_5ef.srcElement;var _5f4=UES.Menu.isParentContextMenuAllowed(_5f2,_5f3);if(!_5f4){return true;}}if(!contextMenuEnabled){if(_5ef){blockEvent(_5ef);}return false;}if(_5f0){setOpenInNewWinHref(_5f0,_5ef,_5ed);}if(_5ef.clientX!==undefined&&_5ef.clientY!==undefined){var x=_5ef.clientX;var y=_5ef.clientY;}else{var x=_5ef.pageX;var y=_5ef.pageY;}if(!UES.isHandheld){x+=(window.layout?layout.scrollElem.scrollLeft:document.documentElement.scrollLeft);y+=(window.layout?layout.scrollElem.scrollTop:document.documentElement.scrollTop);}var _5f5=m.findMenuById(_5ed);_5f5.openWholeMenu(null,x,y,_5ef.currentTarget||_5ef.srcElement);selectedBDO=aBDO;selectedUESURI=_5ee;dynamicParams=_5f1;return UES.Event.blockEvent(_5ef);};var CTX_MNU_CUR_DEFAULT=0;var CTX_MNU_CUR_LINK=1;var CSS_CURSOR_PREFIX="cursor-";var CSS_CTX_MNU_CUR_DEFAULT=CSS_CURSOR_PREFIX+"ctx-default";var CSS_CTX_MNU_CUR_LINK=CSS_CURSOR_PREFIX+"ctx-link";function showContextMenuCursor(_5f6,_5f7){if(!isInProgress&&!_5f6.cursorChanged){var _5f8=CSS_CTX_MNU_CUR_DEFAULT;if(_5f7==CTX_MNU_CUR_LINK){_5f8=CSS_CTX_MNU_CUR_LINK;}var _5f9=_5f6.target||_5f6.srcElement;if(_5f9.cursorType&&_5f9.cursorType!=_5f8){return;}var _5fa=replaceClass(_5f9.className,CSS_CURSOR_PREFIX,_5f8);_5f9.className=_5fa;_5f6.cursorChanged=true;if(dojo.isIE<=8){_5f9.cursorType=_5f8;}}};function hideContextMenuCursor(){};UES.Menu.addCtxMenu=function(_5fb,_5fc,_5fd,_5fe,_5ff,_600,_601){var elem=UES.$(_5fb);if(!elem){return;}if(_5fc=="ImageMap_IMG"||_5fc=="ImageMap_AREA"){if(_5fc=="ImageMap_IMG"){if(is_ie){var fun=function(_602){return UES.Menu.ImageMapCtxMenu.imageCtxMenu(_602,elem);};UES.Event.addListener(elem,"contextmenu",fun);}return;}if(is_ie){var _603=function(_604){return UES.Menu.ImageMapCtxMenu.areaFocus(_604,elem);};var _605=function(_606){return UES.Menu.ImageMapCtxMenu.areaBlur(_606,elem);};UES.Event.addListener(elem,"focus",_603);UES.Event.addListener(elem,"blur",_605);}}var _607=function(_608){return showContextMenu(_5fd,_5fe,null,_608,_5ff,_600);};var _609=showContextMenuCursor;if(_601){_609=function(_60a){return showContextMenuCursor(_60a,CTX_MNU_CUR_LINK);};}if(dojo.isOpera){elem.setAttribute("oncontextmenu",";");UES.Event.addListener(elem,"mousedown",_607);}else{UES.Event.addListener(elem,"contextmenu",_607);}UES.Event.addListener(elem,"mouseover",_609);};UES.Menu.ImageMapCtxMenu={areaFocus:function(_60b,_60c){if(!is_ie){return true;}var area=UES.$(_60c);var map=area.parentNode;map.selectedArea=area;return true;},areaBlur:function(_60d,_60e){if(!is_ie){return true;}var area=UES.$(_60e);var map=area.parentNode;map.selectedArea=undefined;return true;},imageCtxMenu:function(_60f,_610){if(!is_ie){return true;}var _611=UES.$(_610);var _612=_611.useMap;if(_612&&_612.length>0&&_612.charAt(0)=="#"){_612=_612.substr(1);}if(!_612){return true;}var map=UES.$(_612);var area=(map?map.selectedArea:null);if(area){if(is_opera){area.fireEvent("onclick",_60f);}else{area.fireEvent("oncontextmenu",_60f);}return UES.Event.blockEvent(_60f);}return true;}};UES.Menu.isParentContextMenuAllowed=function(_613,_614){var elem=_613;while(elem&&elem!=_614){var _615=dijit.byNode(elem);if(_615){if(typeof _615.get=="function"){if(_615.get("allowParentContextMenu")===true){return true;}return false;}}elem=elem.parentNode;}return true;};UES.MenuHelper={toggleLists:function(_616,_617,_618){var mi=_617;if(!mi.menuId){return;}var menu=m.findMenuById(mi.menuId);dojo.query("."+_616).toggleClass("ues-platform-uwt-menuitem-hidden");menu.update();UES.Event.blockEvent(_618,false,true);}};function toggleHiddenSheets(_619,_61a,aUrl,_61b,_61c){UES.MenuHelper.toggleLists(_619,_61a,_61c);var url=UES.Util.getAjaxSesmURL(aUrl);url=addParamToUrl(url,"toggled",_61b);var _61d=dojo.mixin({},ues.core.Ajax.XHR_GET_SETTINGS,{url:url});dojo.xhrGet(_61d);};if(is_iphone||is_android||UES.isIpad){var simulateCtxMenu=function(){var _61e=800;UES.Event.addListener(document.body,"touchstart",_61f);UES.Event.addListener(document.body,"touchend",_620);var _621=null;var _622=false;function _61f(_623){var _624=_623.touches.length;if(_624!=1){return true;}var elem=_623.touches[0].target;while(elem){if((elem.getAttribute&&elem.getAttribute("oncontextmenu"))||UES.Event.getListeners(elem,"contextmenu").length>0){break;}elem=elem.parentNode;}if(!elem){return true;}elem.style["-webkit-touch-callout"]="none";_621=setTimeout(getBoundFunction(elem,_625,_623),_61e);};function _620(_626){if(_621){clearTimeout(_621);_621=null;}if(_622){_622=false;var tm=new Date().getTime();var fun=function(_627){_628(_627,tm);UES.Event.removeListener(document,"click",arguments.callee,true);};UES.Event.addListener(document,"click",fun,true);}};function _625(_629){_621=null;var _62a=this.ownerDocument.createEvent("HTMLEvents");_62a.initEvent("contextmenu",true,true);_62a.pageX=_629.touches[0].pageX;_62a.pageY=_629.touches[0].pageY;this.dispatchEvent(_62a);_622=true;};function _628(_62b,_62c){var _62d=new Date().getTime();if(_62d-_62c<=2000){UES.Event.blockEvent(_62b);}};};UES.Event.addListener(window,"load",simulateCtxMenu);}if(is_opera){UES.Opera=(function(){var _62e={};_62e.replaceContextmenuAttribute=function(){var _62f;if(document.querySelectorAll){_62f=document.querySelectorAll("[oncontextmenu]");}else{_62f=document.getElementsByTagName("*");}for(var i=_62f.length-1;i>=0;--i){if(_62f[i].getAttribute("oncontextmenu")!=null){UES.Event.addListener(_62f[i],"mousedown",new Function("event",_62f[i].getAttribute("oncontextmenu")));}}};_62e.checkClick=function(_630){if(!_630.ctrlKey){return true;}var elem=_630.target;var i=0;while(elem&&i<5){if(elem.getAttribute("oncontextmenu")){_630.preventDefault();return true;}elem=elem.parentNode;++i;}return true;};return _62e;})();if(window.addEventListener){window.addEventListener("load",UES.Opera.replaceContextmenuAttribute,false);window.addEventListener("click",UES.Opera.checkClick,false);}}}if(!dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.visc_v1.RoleContextMenu"]){dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.visc_v1.RoleContextMenu"]=true;dojo.provide("legacy.ues_v5.core_v1.appc_v1.visc_v1.RoleContextMenu");var BRO10B800_NO_ROLE;var BRO10B800_PERSONAL_ROLE;var BRO10B800_MORE_ROLE;var BRO10B800_REFERENCED_PCARD_ARTIFACT;var BRO10B800_NOT_AUTHORIZED_TO_SHOW_CONTENT_OF_ACCESS_ROLE;function pcardClick(_631){var href=document.getElementById(_631).href;href+="&afu_v1.af_v1.appc_v1.ucm_v2.BDO="+encodeURIComponent(selectedBDO);href+="&UESURI="+encodeURIComponent(selectedUESURI);var _632=xmlHttpManager.newXmlHttpObj(href,pcardClickHandler);_632.loadXmlDoc();};function pcardClickHandler(_633,_634){if(_634!=XML_HTTP_OK){return;}var _635=_633.text;var uri;var _636;var link=null;if(_635==BRO10B800_NO_ROLE){link=document.getElementById("NoRole");}else{if(_635==BRO10B800_PERSONAL_ROLE){link=document.getElementById("PersRole");}else{if(_635==BRO10B800_MORE_ROLE){link=document.getElementById("MoreRoles");}else{if(_635.substr(0,1)==BRO10B800_REFERENCED_PCARD_ARTIFACT){link=document.getElementById("PersRole");uri=_635.substr(_635.indexOf(";")+1);}else{if(_635.substr(0,1)==BRO10B800_NOT_AUTHORIZED_TO_SHOW_CONTENT_OF_ACCESS_ROLE){link=document.getElementById("NotAuthorized");_636=_635.substr(_635.indexOf(";")+1);}}}}}if(link!=null&&link.href!=null){var _637=dynamicParams;if(uri){dynamicParams=[{0:"PAR_C10800_REFERENCED_PCARD_ARTIFACT_DEFAULT_SHEET_URI",1:uri}];}if(_636){dynamicParams=[{0:"PAR_C10800_ACCESS_ROLE_NO_RIGHTS_NAME",1:_636}];}window.location=link.href;setTimeout(function(){dynamicParams=_637;},1);}};}if(!dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.component.VCTable"]){dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.component.VCTable"]=true;dojo.provide("legacy.afu_v1.af_v1.appc_v1.visc_v2.component.VCTable");function trapKeyDownOnTable(_638){table=UES.$(_638);curr=UES.$(_638+"_hidden_rownum").value;splitCurr=curr.split(".");curr=splitCurr[splitCurr.length-1]/1+1;switch(event.keyCode){case 13:curr=curr%(table.rows.length-1);if(curr==0){curr=table.rows.length-1;}table.rows[curr].fireEvent("ondblclick");event.returnValue=false;break;case 35:table.rows[table.rows.length-1].fireEvent("onclick");break;case 36:table.rows[1].fireEvent("onclick");break;case 38:prev=curr%(table.rows.length-1)-1;if(prev<0){prev=table.rows.length-2;}if(prev==0){prev=table.rows.length-1;}table.rows[prev].fireEvent("onclick");break;case 40:next=curr%(table.rows.length-1)+1;table.rows[next].fireEvent("onclick");break;}};function trapKeyUpOnTable(_639){switch(event.keyCode){case 17:ctrl=false;break;case 16:shift=false;break;}event.returnValue=false;};function openItem(_63a,_63b){table=UES.$(_63a);row_num_old=UES.$(_63a+"_hidden_rownum").value;if(row_num_old==_63b){UES.$(_63a+"_submitSelectionLink").fireEvent("onclick");}};var hexDigits=new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F");function toHex(str){var res="";var k=0;var j=0;for(i=0;i<str.length;i++){k=str.charCodeAt(i);res+=hexDigits[(k>>>12)&15];res+=hexDigits[(k>>>8)&15];res+=hexDigits[(k>>>4)&15];res+=hexDigits[k&15];}return res;};var tableFilters={};var activeTableFilter=null;(function(){var _63c="ues_v5.core_v1.ueswt_v1.list_v1.pagecomponents.LFilterTool";var _63d=webPath+outputType+guiMutation+"/images/buttons/confirm_check.gif";var _63e=webPath+outputType+guiMutation+"/images/buttons/confirm_check_o.gif";UES.extend(_63f,"UES.TableFilter","UES.Object");function _63f(aUrl,_640,_641){this.url=aUrl;this.paramName=_641;this.callbackFunc=null;this.callbackObj=null;this.filterListeners=[];this.opened=false;};_63f.prototype.init=function(){var _642=this.id+"-txt";var _643=this.id+"-txtcell";var _644=this.id+"-filterButton";this.filterPanel=UES.Util.DOM.newElement("div",{id:this.id+"flt","class":"vcTable_filterPanel",style:{visibility:"hidden"}});this.filterPanel.innerHTML+="<TABLE class='vcTable_drag'><TR><TD class='filter_code'>"+UES.localize(_63c)+"</TD><TD id='"+_643+"'></TD><TD><DIV class='vcTable_buttonOK'><A id='"+_644+"' class='vcReference' href='javascript:UES.TableFilter.getInstance(\""+this.id+"\").apply();'><img src='"+_63d+"' onmouseover=\"this.src='"+_63e+"'\" onmouseout=\"this.src='"+_63d+"'\"></img></A></DIV></TD></TR></TABLE>";this.filterInput=UES.Util.DOM.newElement("input",{id:_642,name:"paramName",type:"text"});UES.Util.DOM.addNodes(document.body,this.filterPanel);var _645=document.getElementById(_643);UES.Util.DOM.addNodes(_645,this.filterInput);return this;};_63f.prototype._registerCloseListeners=function(){this.filterListeners.push(UES.Event.addListener(document,"click",UES.bind(this,this.hide)));if(is_ie){this.filterListeners.push(UES.Event.addListener(document,"keypress",UES.bind(this,this._processInputKeypress)));this.filterListeners.push(UES.Event.addListener(this.filterInput,"keypress",UES.bind(this,this._processInputKeypress)));}else{this.filterListeners.push(UES.Event.addListener(document,"keydown",UES.bind(this,this._processInputKeypress)));this.filterListeners.push(UES.Event.addListener(this.filterInput,"keydown",UES.bind(this,this._processInputKeypress)));}this.filterListeners.push(UES.Event.addListener(this.filterPanel,"click",function(_646){_646.cancelBubble=true;}));};_63f.prototype._unregisterCloseListeners=function(){for(var i=0;i<this.filterListeners.length;i++){UES.Event.removeListener(this.filterListeners[i]);}this.filterListeners=[];};_63f.prototype._processInputKeypress=function(_647){var key=_647.keyCode?_647.keyCode:_647.which;if(key==13){this.apply();}else{if(key==27){this.hide();}}};_63f.getInstance=function(aId){if(!aId){return;}var _648=tableFilters[aId];if(_648==null){var tf=new UES.TableFilter();tf.id=aId;tf.init();tableFilters[aId]=tf;return tf;}else{return _648;}};_63f.prototype.apply=function(){var text=this.filterInput.value;if(this.callbackFunc!=null){if(this.callbackObj!=null){this.callbackFunc.call(this.callbackObj,this.url,text,this.paramName);}else{this.callbackFunc(this.url,text,this.paramName);}return;}var _649="&"+this.paramName+"="+toHex(text);if(this.url.indexOf("javascript:submitForm")==0){var _64a=this.url;var _64b=_64a.indexOf("'",_64a.indexOf("'")+1);_64a=_64a.substring(0,_64b)+_649+_64a.substring(_64b);eval(_64a);}else{document.location.href=this.url+_649;}this.opened=false;};_63f.prototype.hide=function(){if(!this.opened){return;}this.opened=false;this.filterPanel.style.visibility="hidden";this._unregisterCloseListeners();};_63f.prototype.show=function(_64c,aUrl,_64d,_64e,_64f,_650,_651){if(activeTableFilter!=null){activeTableFilter.hide();}activeTableFilter=this;var _652=UES.Util.getPosition(_64f);this.filterPanel.style.left=_652.x-2+"px";this.filterPanel.style.top=_652.y-this.filterPanel.offsetHeight+"px";this.filterInput.value=_64d;this.filterInput.name=_64e;this.url=aUrl;this.paramName=_64e;this.callbackFunc=_650;this.callbackObj=_651;this.opened=true;this._registerCloseListeners();this.filterPanel.style.visibility="visible";this.filterInput.select();this.filterInput.focus();if(document.openedmenu){m.findMenuById(document.openedmenu).closeWholeMenu();}UES.Event.blockEvent(_64c);};_63f.prototype.clear=function(_653,aUrl,_654,_655,_656,_657,_658){this.url=aUrl;this.paramName=_655;this.callbackFunc=_657;this.callbackObj=_658;activeTableFilter=null;this.filterInput.value="";this.apply();};})();}if(!dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.common.Cookie"]){dojo._hasResource["legacy.afu_v1.af_v1.appc_v1.visc_v2.common.Cookie"]=true;dojo.provide("legacy.afu_v1.af_v1.appc_v1.visc_v2.common.Cookie");function getCookie(_659){var _65a=document.cookie.indexOf(_659+"=");if(_65a!=-1){_65a+=_659.length+1;var end=document.cookie.indexOf("; ",_65a);if(end==-1){end=document.cookie.length;}return document.cookie.substring(_65a,end);}};function setCookie(_65b,_65c){var _65d=30;var exp=new Date();exp.setTime(exp.getTime()+(_65d*24*60*60*1000));var c=_65b+"="+_65c+"; expires="+exp.toGMTString();document.cookie=c;};}if(!dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.layout_v2.Layout"]){dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.layout_v2.Layout"]=true;dojo.provide("legacy.ues_v5.core_v1.appc_v1.layout_v2.Layout");var UNITOR="myUnitor_div";function initializeLayout(){UES.Layout.getInstance().init();UES.Keys.registerHotkey("backspace",backspaceAsBackAction,null,null,{blockEvent:false});UES.Keys.registerHotkey("alt+left",goBackFromToolbar,null,null,{blockEvent:false});};function goBackFromToolbar(_65e,e){var _65f=document.getElementById("a_toolBar-system-back");if(_65f){document.location.replace(_65f.href);}else{return;}return UES.Event.blockEvent(e);};function backspaceAsBackAction(_660,e){var _661="";if(e.target){_661=e.target.tagName;}else{if(e.srcElement){_661=e.srcElement.tagName;}}if(_661!="INPUT"&&_661!="TEXTAREA"&&_661!="SELECT"){return goBackFromToolbar(null,e);}};function setStatusBarText(_662){window.status=_662;};function getDimensionsForUnitor(){var _663=UES.$(UNITOR);if(_663!=null&&layout.mainArea){var _664=findPosY(layout.mainArea)+layout.mainArea.offsetHeight-findPosY(_663);var _665=layout.mainArea.clientWidth;return new Array(_665,_664);}return new Array(683,500);};function writeJavaVersion(){try{var info=document.JREInfo;info.onload=document.write(info.getProperty("java.vm.version"));info.setMems();}catch(e){document.write("NA");}};function writeTotalMem(){try{var info=document.JREInfo;info.onload=document.write(info.getTotalMem());}catch(e){document.write("NA");}};function writeUsedMem(){try{var info=document.JREInfo;info.onload=document.write(info.getUsedMem());}catch(e){document.write("NA");}};function writeFreeMem(){try{var info=document.JREInfo;info.onload=document.write(info.getFreeMem());}catch(e){document.write("NA");}};var timeDifference=0;var isTimeDifferenceSet=false;var previousCurrLocalTime=new Date();var timeOnServer;function showTime(){var _666=new Date();var _667;if(!isTimeDifferenceSet){var _668=parseInt(document.getElementById("currentServerTime").value,10);timeDifference=_668-_666.getTime()+1500;isTimeDifferenceSet=true;}localTimeDifference=previousCurrLocalTime.getTime()-_666.getTime();if(Math.abs(localTimeDifference)>5000){timeDifference+=localTimeDifference+1000;}timeOnServer=new Date(_666.getTime()+timeDifference);previousCurrLocalTime=new Date();self.setTimeout("showTime()",1000);};function RefreshHandler(){if(is_gecko){window.addEventListener("keydown",this.keyHandler,true);}else{window.document.attachEvent("onkeydown",this.keyHandler);}};RefreshHandler.prototype.registerRefreshURL=function(aUrl){refreshHandler.url=aUrl;};RefreshHandler.prototype.keyHandler=function(e){if(!refreshHandler.url){return true;}if(!e){e=window.event;}if(e.keyCode==116){e.cancelBubble=true;e.returnValue=false;if(!is_gecko){e.keyCode=0;}if(e.stopPropagation){e.stopPropagation();}if(e.preventDefault){e.preventDefault();}window.location=refreshHandler.url;return false;}return true;};var refreshHandler=new RefreshHandler();(function(){var _669=ues.core.security.Session;var _66a=null;var _66b=null;dojo.addOnLoad(function(){_66a=dojo.byId("pingState");if(!_66a){return;}dojo.connect(_669.getSession(),"onStateChange",null,function(_66c,_66d){_66e(_66c);});dojo.connect(_66a,"onmouseenter",function(){_66e();});dojo.require.call(dojo,"dijit.Tooltip");_66b=new dijit.Tooltip({connectId:[_66a],position:["below"]});_66b.startup();});function _66e(_66f,_670){if(!_66a){return;}var _671=_66f||_669.getSession().attr("state");var time=_670||timeOnServer;dojo.removeClass(_66a,"ues-platform-session-expired ues-platform-session-unknown");var _672="";if(_671==_669.ST_UNKNOWN){_672="unknown";}else{if(_671==_669.ST_EXPIRED){_672="expired";}}if(_672){dojo.addClass(_66a,"ues-platform-session-"+_672);}else{_672="connected";}var _673=timeToString(time,timestamp_format);var _674=dojo.byId("pingState-"+_672).firstChild.nodeValue;_66b.set("label",_673+"<br>"+_674);};})();UES.Layout=(function(){var _675="layout-type-";var _676="center";var _677="left";_678.LAYOUT_TYPE_STANDARD={className:null};_678.LAYOUT_TYPE_MAIN_BIG={className:_675+"main-big"};_678.LAYOUT_TYPE_CONTINUOUS={className:_675+"continuous"};var _679="layout-pos-";var _67a=_679+"left";var _67b=_679+"left-no-img";var _67c=_679+"center-img";var _67d=_679+"center-no-img";var _67e=33;var _67f=666;var _680=(!UES.isHandheld?17:0);var _681=_67f+_680;var _682=332;var _683=1020;var _684=_683;_684+=20;var _685=200;var _686;var _687=16;var _688=_67f;function _678(_689){dojo.mixin(this,_689||{});this.layout=null;this.mainArea=null;this.portletArea=null;this.inited=false;this.initedPage=false;this.handleResizeB=getBoundFunction(this,this._handleResize);this.minHeight=0;this.minWidth=0;};_678.prototype.type=_678.LAYOUT_TYPE_STANDARD;_678.prototype.position=_676;_678.prototype.contentWidth=650;_678.prototype.useScrollOnBody=false;_678.prototype.hasRightArea=true;_678.prototype.pinControlBar=true;_678.prototype.scrollElem=document.documentElement;_678.prototype._contentStretched=false;_678.prototype._controlBarId="";_678.prototype._controlBarChecked=false;_678.prototype._controlBarAttached=false;_678.prototype.getSize=function(){if(!this.layout){return {w:0,h:0};}return {w:_683,h:this.layout.offsetHeight};};_678.prototype.init=function(){if(this.inited){return;}UES.Event.addListener(window,"resize",this.handleResizeB);var _68a=function(){var _68b=getBaseWindow().windowStack;if(_68b.length>0){var _68c=_68b[_68b.length-1];_68c.update();}};UES.Event.addListener(getBaseWindow().getHTMLWindow(),"resize",UES.bind(this,_68a));this.inited=true;this.update();if(dojo.isChrome){setTimeout(dojo.hitch(this,"update"),10);}};_678.prototype._initVariables=function(){this.layout=UES.$("layout");this.layoutHeaderMain=UES.$("layout-header-main");this.layoutHeaderRight=UES.$("layout-header-right");this.mainArea=UES.$("main-area");this.leftArea=UES.$("layout-leftArea");this.rightArea=UES.$("layout-rightArea");this.systemMenuArea=UES.$("layout-systemMenuArea");this.navToolbarArea=UES.$("layout-navigationToolbarArea");this.portletArea=UES.$("portlet-area");this.messagePanel=UES.$("messagePanel");};_678.prototype._initPage=function(){function _68d(a,b){var c=Math.abs(a-b);if(c<0.000001){return 0;}return a-b;};if(this.initedPage){return;}if(typeof this.contentWidth!="number"||isNaN(this.contentWidth)||this.contentWidth<650){this.contentWidth=650;}_67f=this.contentWidth+_687;_681=_67f+(this.useScrollOnBody?0:_680);_686=(UES.isHandheld?0:ues.core.webui.Util.getScrollBarWidth());_688=_67f+(this.useScrollOnBody?0:_686);if(this.hasRightArea){_683=_681+_682+5;}else{_683=_688;}_684=_683;if(!dojo.isIE){_684+=4;}if(UES.isHandheld&&("orientation" in window)){var head=document.getElementsByTagName("head");var meta=document.createElement("meta");meta.setAttribute("name","viewport");var _68e=_67f;if(UES.isIpad){meta.setAttribute("content","width="+_683);head[0].appendChild(meta);}else{if(!UES.isAndroid){var _68f=(window.orientation==0?320/_68e:480/_68e);meta.setAttribute("content","width="+_683+", initial-scale="+_68f);head[0].appendChild(meta);}else{var _690=(window.orientation==0?320:480);var _691=0;var _692=6;if("devicePixelRatio" in window){if(_68d(devicePixelRatio,0.75)==0){_691=(window.orientation==0?-19:74);}else{if(_68d(devicePixelRatio,1)==0){_691=-6;}else{if(_68d(devicePixelRatio,1.5)==0){_691=(window.orientation==0?-9:-83.85);}else{_691=_68e-_68e/(_690*devicePixelRatio-_692)*(_690*devicePixelRatio);}}}}var _693=_68e+_691;var _68f=_690/_693;var _694="width="+_683+", initial-scale="+_68f;meta.setAttribute("content",_694);head[0].appendChild(meta);}}}dojo.addClass(this.layout,this.type.className);this.scrollElem=dojo.isWebKit?document.body:document.documentElement;this.initedPage=true;};_678.prototype._initOnUpdate=function(){if(this.systemMenuArea&&this.layoutHeaderRight&&this.systemMenuArea.parentNode!=this.layoutHeaderRight){this.layoutHeaderRight.appendChild(this.systemMenuArea);}if(this.navToolbarArea&&this.layoutHeaderMain&&this.navToolbarArea.parentNode!=this.layoutHeaderMain){this.layoutHeaderMain.insertBefore(this.navToolbarArea,this.layoutHeaderMain.firstChild);}if(!this._controlBarChecked&&this.mainArea){var _695=true;var self=this;dijit.registry.byClass("ues.core.webui.ControlBar").forEach(function(_696){if(!_695){return;}self._controlBarId=_696.id;});if(this._controlBarId){this._controlBarChecked=true;function _697(){return self.pinControlBar&&self.type!=_678.LAYOUT_TYPE_MAIN_BIG;};var cbar=dijit.byId(this._controlBarId);this._controlBarAttached=_697();if(this._controlBarAttached){cbar.attachPinningTo("main-area");}dojo.connect(window,"onresize",this,function(){var _698=_697();if(this._controlBarAttached!=_698){var cbar=dijit.byId(this._controlBarId);if(_698){cbar.attachPinningTo("main-area");}else{cbar.detachPinningFrom("main-area");}this._controlBarAttached=_698;}});cbar.connect(cbar,"onPin",function(){self.update();});cbar.connect(cbar,"onUnpin",function(){self.update();});cbar.connect(cbar,"onHeightChange",function(){self.update();});}if(this.mainArea.nextSibling||this.rightArea||this.inited){this._controlBarChecked=true;}}};_678.prototype.setLayoutType=function(_699){if(_699==this.type){return;}if(!this.inited){this._initVariables();}this.type=_699;var cls=this.layout.className.replace(new RegExp("(^| )"+_675+"[^ ]*","g"),"");this.layout.className=cls+" "+_699.className;this._setSizes();};_678.prototype.setContentStretched=function(_69a){this._contentStretched=_69a;};_678.prototype.setPosition=function(_69b){if(this.position==_69b){return;}this.position=_69b;this._updateSideImages();};_678.prototype._updateDecorationImages=function(){var _69c=dojo.byId("leftSideImage");var _69d=dojo.byId("rightSideImage");var main=dojo.byId("main");if(main&&_69c&&_69d){var _69e=dojo.position(main);var that=this;function _69f(){var y=0;var cbar=dijit.byId(that._controlBarId);if(cbar){y+=cbar.domNode.offsetHeight-(cbar.getUCArea()!=null?dojo.marginBox(cbar.getUCArea()).h:0);}return y;};if(_681!=_69e.w+(this.useScrollOnBody?0:_686)){var _6a0=(_681-_69e.w-_686)/2;var posY=_69f();dojo.style(_69c,"width",_6a0+"px");dojo.style(_69c,"top",posY+"px");dojo.style(_69d,"width",_6a0+"px");dojo.style(_69d,"top",posY+"px");dojo.style(_69c,"display","block");dojo.style(_69d,"display","block");}else{dojo.style(_69c,"display","none");dojo.style(_69d,"display","none");}}};_678.prototype.getPosition=function(){return this.position;};_678.prototype._setSizes=function(){var main=dojo.byId("main");if(main){dojo.style(main,"minHeight","0");}if(this.type==_678.LAYOUT_TYPE_MAIN_BIG){this._setWidths(_681);}else{this._setWidths(_688);}if(this.type==_678.LAYOUT_TYPE_CONTINUOUS){var _6a1=getWindowHeight();dojo.style(this.layout,"minHeight",_6a1+"px");this._setMainAreaHeight("auto");this._setPortletAreaHeight("auto");}else{var _6a2=this._getMainAreaHeight();this._setMainAreaHeight(_6a2);this._setPortletAreaHeight(_6a2+-this._getActualSysMessageHeight());}if(main){var _6a3=dojo.byId("banner");var _6a4=0;if(_6a3){_6a4+=_6a3.offsetHeight+1;}if(!this.useScrollOnBody&&!UES.isHandheld){dojo.style(main,"minHeight",this.mainArea.offsetHeight-_6a4+"px");}else{dojo.style(main,"minHeight",getWindowHeight()-_6a4+"px");}}if(this.systemMenuArea&&(!this.hasRightArea||this.systemMenuArea.parentNode!=this.layoutHeaderRight)){dojo.style(this.systemMenuArea,{right:"0px",left:"auto"});}if(this.navToolbarArea&&this.navToolbarArea.parentNode!=this.layoutHeaderMain){var pos=dojo.position(this.layout);var _6a5={x:pos.x-this.navToolbarArea.offsetWidth,y:pos.y,w:this.navToolbarArea.offsetWidth,h:this.navToolbarArea.offsetHeight};if(_6a5.x<0){_6a5.x=0;}dojo.style(this.navToolbarArea,"left",_6a5.x+"px");}};_678.prototype._setWidths=function(_6a6){if(dojo.byId("body-div")){dojo.style(dojo.byId("body-div"),"minWidth",_683+"px");}if(this.layout){dojo.style(this.layout,"width",_683+"px");}if(this.layoutHeaderMain){dojo.style(this.layoutHeaderMain,"width",_6a6+"px");}if(this.leftArea){var wl=parseFloat(dojo.getComputedStyle(this.leftArea).width);if(wl!=_6a6){dojo.style(this.leftArea,"width",_6a6+"px");}if(this.mainArea){var _6a7=_6a6-(this.type!=_678.LAYOUT_TYPE_MAIN_BIG&&!this.useScrollOnBody?ues.core.webui.Util.getScrollBarWidth():0);var _6a8=dojo.byId("banner");if(_6a8){dojo.style(_6a8,"width",_6a7+"px");}if(this.messagePanel){dojo.style(this.messagePanel,"width",_6a7+"px");}var main=dojo.byId("main");if(main){var _6a9=this._contentStretched||this.type==_678.LAYOUT_TYPE_MAIN_BIG;var _6aa=(_6a9?_6a7:650+_687);var _6ab=this.type!=_678.LAYOUT_TYPE_MAIN_BIG?-_687:0;dojo.style(main,"width",(_6aa+_6ab)+"px");var cbar=dijit.byId(this._controlBarId);if(cbar){var _6ac=(_6a7-(_6aa+_6ab))/2;dojo.style(cbar.id,"marginLeft",-_6ac+"px");dojo.style(cbar.id,"width",_6a7+"px");var _6ad=cbar.getUCArea();if(_6ad){dojo.style(_6ad,"paddingLeft",_6ac+"px");dojo.style(_6ad,"paddingRight",_6ac+"px");}}}}}if(this.rightArea){if(this.layoutHeaderRight){var _6ae=_681+_682-_6a6;var wr=parseFloat(dojo.getComputedStyle(this.rightArea).width);if(wr!=_6ae){dojo.style(this.rightArea,"width",_6ae+"px");}var _6af=0;if(this.portletArea){_6af=parseFloat(dojo.getComputedStyle(this.portletArea).paddingLeft);}dojo.style(this.layoutHeaderRight,"width",(_6ae-_6af)+"px");}}else{if(this.layoutHeaderRight&&!this._layoutHRInited){var _6b0=_681-_6a6;if(_6b0){var _6b1=parseFloat(dojo.getComputedStyle(this.layoutHeaderRight).width);var _6b2=_6b1+Math.floor(_6b0/2+0.8);dojo.style(this.layoutHeaderRight,"width",_6b2+"px");}this._layoutHRInited=true;}}};_678.prototype._hideSideImages=function(){if(!this.layout){return;}if(this.position==_677){return;}this.layout.className=replaceClass(this.layout.className,_679,_67d);};_678.prototype._updateSideImages=function(){if(!this.layout){return;}var ww=getWindowWidth();if(this.position==_677){if(ww>_684){this.layout.className=replaceClass(this.layout.className,_679,_67a);}else{this.layout.className=replaceClass(this.layout.className,_679,_67b);}return;}if(ww>_684){this.layout.className=replaceClass(this.layout.className,_679,_67c);}else{this.layout.className=replaceClass(this.layout.className,_679,_67d);}};_678.prototype._handleResize=function(_6b3){this._hideSideImages();this.update();};_678.prototype.update=function(){this._initVariables();this._initPage();this._initOnUpdate();dojo.toggleClass(document.documentElement,"layout-type-continuous",this.type==_678.LAYOUT_TYPE_CONTINUOUS);this._updateOverlaylayer();if(this.type!=_678.LAYOUT_TYPE_CONTINUOUS){document.body.scrollTop=0;}this._updateSideImages();this._setSizes();this._updateDecorationImages();if(this.type!=_678.LAYOUT_TYPE_CONTINUOUS){if(window.resizeUnitorToFit){resizeUnitorToFit();}}if(this.layout){dojo.toggleClass(this.layout,"layout-headerless",!this.layoutHeaderMain);}};_678.prototype._updatePortlets=function(_6b4){var _6b5=_6b4;if(!_6b5||!this.portletArea){return;}_6b5=_6b6(_6b5,this.portletArea,"padding");function _6b6(_6b7,_6b8,_6b9){var _6ba=_6b7;if(_6b7==0){return _6ba;}var el=dojo.byId(_6b8);if(!el){return _6ba;}var cs=dojo.getComputedStyle(el);var left=Math.max(0,parseFloat(cs[_6b9+"Left"]));var _6bb=Math.max(0,parseFloat(cs[_6b9+"Right"]));if(left<0||_6bb<0){return _6ba;}var _6bc;var _6bd;var est=left+_6bb-_6b7;if(est>=0){_6bc=Math.floor(est/2);_6bd=est-_6bc;_6ba=0;}else{_6ba-=left+_6bb;_6bc=_6bd=0;}dojo.style(el,_6b9+"Left",_6bc+"px");dojo.style(el,_6b9+"Right",_6bd+"px");return _6ba;};};_678.prototype._updateOverlaylayer=function(){};_678.prototype._setPortletAreaHeight=function(_6be){if(!this.portletArea){return;}this.portletArea.style.height=_6be+"px";};_678.prototype._setMainAreaHeight=function(_6bf){if(!this.mainArea){return;}this.mainArea.style.height=(_6bf!="auto"?_6bf+"px":_6bf);};_678.prototype.setMinSize=function(_6c0,_6c1){if(!_6c1){_6c1=0;}if(!_6c0){_6c0=0;}this.minHeight=_6c1;this.minWidth=_6c0;this.update();};_678.prototype.getMinSize=function(){return {width:this.minWidth,height:this.minHeight};};_678.prototype._getMainAreaHeight=function(){if(!this.mainArea){return "auto";}var _6c2=Math.max(getWindowHeight(),this.minHeight)-dojo.position(this.mainArea,true).y;if(!is_ie6&&(scrollBarExist(document.body,"x")||scrollBarExist(document.documentElement,"x"))){_6c2-=_686;}return _6c2;};_678.prototype._getActualSysMessageHeight=function(){var _6c3=UES.$("system-message");if(_6c3){return _6c3.offsetHeight;}return 0;};var _6c4;_678.getInstance=function(_6c5){if(_6c4&&!_6c5){return _6c4;}if(UES.isHandheld){_6c4=new _678(dojo.mixin(_6c5||{},{type:_678.LAYOUT_TYPE_CONTINUOUS,position:"left"}));}else{_6c4=new _678(_6c5||{});}return _6c4;};return _678;})();}if(!dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.portlet_v1.VCTileContainer"]){dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.portlet_v1.VCTileContainer"]=true;dojo.provide("legacy.ues_v5.core_v1.appc_v1.portlet_v1.VCTileContainer");var PORTLET_DRAGGABLE=false;var PORTLET_COOKIE_NAME="PORTLET_SETTINGS";var PORTLET_COOKIE_PART_HEIGHT="HEIGHT";var PORTLET_COOKIE_PART_WIDTH="WIDTH";var PORTLET_COOKIE_PART_VISIBLE="VISIBLE";var PORTLET_COOKIE_DELIM_PORT="@";var PORTLET_COOKIE_DELIM_ATTR="#";var SIZE_AUTO=-1;var SIZE_100P=-2;var PORTLET_NORMAL_SIZE=136;var PORTLET_HALF_SIZE=PORTLET_NORMAL_SIZE/2;var PORTLET_BIG_SIZE=2*PORTLET_NORMAL_SIZE;var PORTLET_DEFAULT_HEIGHT=PORTLET_NORMAL_SIZE;var PORTLET_DEFAULT_WIDTH=SIZE_AUTO;var PORTLET_DEFAULT_VISIBILITY=true;var PORTLET_MAX_COUNT=5;(function(){UES.extend(_6c6,"UES.PortletManager","UES.Object");pm=new UES.PortletManager();function _6c6(){_6c6.superclass.constructor.call(this);if(window.pm){return window.pm;}window.pm=this;this.portlets=new Array(PORTLET_MAX_COUNT);this.draggableInited=false;this.dragArea=null;this.dragElem=null;};_6c6.prototype.S_dragMove=new Function("aEvent","pm.dragMove(aEvent)");_6c6.prototype.S_dragDrop=new Function("aEvent","pm.dragDrop(aEvent)");_6c6.prototype.addPortlet=function(aId,_6c7,_6c8,_6c9,_6ca){var _6cb=new UES.Portlet(aId,_6c7,_6c8,_6ca);_6cb.setManager(this);_6cb.init();this.portlets[_6c9]=_6cb;var that=this;UES.Event.addListener(_6cb,"heightChange",function(){that.updateCookie();});UES.Event.addListener(_6cb,"visibilityChange",function(){that.updateCookie();});if(PORTLET_DRAGGABLE){if(!this.draggableInited){this.draggableInit(document.getElementById(aId).parentNode);}}};_6c6.prototype.getPortlet=function(aId){for(var i=0;i<this.portlets.length;++i){if(this.portlets[i]&&this.portlets[i].id==aId){return this.portlets[i];}}return null;};_6c6.prototype.updateCookie=function(){function _6cc(_6cd,_6ce,_6cf,_6d0){if(_6ce!=_6cf){_6cd.push(_6d0+"="+_6cf);}};var i,_6d1="";for(i=0;i<this.portlets.length;++i){var _6d2=[];if(this.portlets[i]){_6cc(_6d2,this.portlets[i].origHeight,this.portlets[i].height,PORTLET_COOKIE_PART_HEIGHT);_6cc(_6d2,this.portlets[i].origIsVisible?1:0,this.portlets[i].isVisible?1:0,PORTLET_COOKIE_PART_VISIBLE);}if(i>0){_6d1+=PORTLET_COOKIE_DELIM_PORT;}if(_6d2.length>0){_6d1+=_6d2.join(PORTLET_COOKIE_DELIM_ATTR);}}setCookie(PORTLET_COOKIE_NAME,_6d1);};_6c6.prototype.draggableInit=function(_6d3){this.dragArea=_6d3;this.dragShape=_6d3.firstChild;this.dragScroller=document.getElementById("right-area-body");this.draggableInited=true;};_6c6.prototype.dragStart=function(_6d4,_6d5,_6d6){if(this.isDragging){return;}this.isDragging=true;this.dragElem=_6d6;this.dragObject=_6d5;this.dragArea.style.height=this.dragArea.offsetHeight+"px";_6d5.dragStart(_6d4,this.dragShape);this.dragStartX=_6d4.clientX;this.dragStartY=_6d4.clientY;this.dragOrigX=parseInt(this.dragElem.style.left);this.dragOrigY=parseInt(this.dragElem.style.top);this.dragScrollerTop=findPosY(this.dragScroller);this.dragScrollerBottom=this.dragScrollerTop+this.dragScroller.offsetHeight;this.dragArea.draggable=[];for(var i=0;i<this.dragArea.childNodes.length;++i){if(this.dragArea.childNodes[i].dragObject){if(this.dragArea.childNodes[i].id==this.dragElem.id){this.dragShapePos=i;}else{this.dragArea.draggable.push(this.dragArea.childNodes[i]);}}}this.dragArea.removeChild(this.dragShape);this.dragArea.insertBefore(this.dragShape,this.dragElem);this.dragElem.style.zIndex=1;this.dragElem.style.position="absolute";this.dragPrepareHeights();this.dragShape.style.display="block";this.dragArea.style.height="auto";UES.Event.addListener(document.body,"mousemove",this.S_dragMove,true);UES.Event.addListener(document.body,"mouseup",this.S_dragDrop,true);if(_6d4.preventDefault){_6d4.preventDefault();}};_6c6.prototype.dragPrepareHeights=function(){var objs=this.dragArea.draggable;this.dragHeights=[];for(var i=0;i<objs.length;++i){this.dragHeights[i]=objs[i].offsetTop+objs[i].offsetHeight;}this.dragHeights.push(65536);};var _6d7=30;var _6d8=15;var _6d9=150;_6c6.prototype.dragScrollCheck=function(_6da){var _6db=null;if(_6da.clientY-this.dragScrollerTop<_6d7){_6db=-_6d8;}else{if(this.dragScrollerBottom-_6da.clientY<_6d7){_6db=_6d8;}}if(_6db===null&&this.dragIsScrolling){this.dragIsScrolling=false;clearInterval(this.dragScrollInterval);this.dragScrollInterval=null;}else{if(_6db!==null&&!this.dragIsScrolling){this.dragIsScrolling=true;this.dragScrollInterval=window.setInterval("pm.dragDoScroll("+_6db+");",_6d9);}}};_6c6.prototype.dragDoScroll=function(_6dc){var _6dd=this.dragScroller.scrollTop;this.dragScroller.scrollTop+=_6dc;_6dd=this.dragScroller.scrollTop-_6dd;this.dragOrigY+=_6dd;this.dragMove(null);};_6c6.prototype.dragMove=function(_6de){if(_6de){this.dragScrollCheck(_6de);}var y=this.dragOrigY+(_6de?_6de.clientY:this.dragLastMouseY)-this.dragStartY;this.dragElem.style.top=y+"px";for(var i=0;i<this.dragArea.draggable.length&&y>this.dragHeights[i];++i){}if(this.dragShapePos!=i){this.dragArea.removeChild(this.dragShape);if(i<this.dragArea.draggable.length){this.dragArea.insertBefore(this.dragShape,this.dragArea.draggable[i]);}else{this.dragArea.appendChild(this.dragShape);}this.dragShapePos=i;}if(_6de){this.dragLastMouseY=_6de.clientY;}if(_6de){_6de.returnValue=false;}};_6c6.prototype.dragDrop=function(_6df){this.dragArea.insertBefore(this.dragElem,this.dragShape);this.dragShape.style.display="none";this.dragElem.style.position="static";this.dragElem.style.zIndex=0;if(this.dragScrollInterval){clearInterval(this.dragScrollInterval);}UES.Event.removeListener("mousemove",this.S_dragMove,true);UES.Event.removeListener("mouseup",this.S_dragDrop,true);this.dragObject.dragEnd(_6df);this.isDragging=false;};})();(function(){UES.extend(_6e0,"UES.Portlet","UES.Object");function _6e0(aId,_6e1,_6e2,_6e3){_6e0.superclass.constructor.call(this,{id:aId});_6e3=PORTLET_DEFAULT_WIDTH;if(_6e2==null){_6e2=PORTLET_DEFAULT_VISIBILITY;}if(_6e1==null){_6e1=PORTLET_DEFAULT_HEIGHT;}this.origHeight=this.height=_6e1;this.origWidth=this.width=_6e3;this.origIsVisible=this.isVisible=_6e2;this.manager=null;};_6e0.prototype.init=function(){if(PORTLET_DRAGGABLE){var _6e4=document.getElementById(this.id);var _6e5=document.getElementById(this.id+"header");_6e5.className="portlet-header-draggable";_6e4.dragObject=_6e5.dragObject=this;if(_6e5.addEventListener){_6e5.addEventListener("mousedown",this.S_dragStart,false);}else{if(_6e5.attachEvent){_6e5.attachEvent("onmousedown",this.S_dragStart);}}}if(dojo.isChrome){var _6e6=document.getElementById(this.id+"body");dojo.connect(_6e6,"onscroll",function(e){var scT=this.scrollTop;var f=this.firstChild;if(f){this.removeChild(f);this.insertBefore(f,this.firstChild);this.scrollTop=scT;}});}this.repaint();};_6e0.prototype.setManager=function(_6e7){this.manager=_6e7;};_6e0.prototype.setHeight=function(_6e8){var _6e9=this.height;this.height=_6e8;if(_6e9!=_6e8){UES.Event.fireCustomEvent(this,"heightChange",{prevHeight:_6e9,newHeight:_6e8});}this.repaint();};_6e0.prototype.setHalfSize=function(){this.setVisible(true);this.setHeight(PORTLET_HALF_SIZE);};_6e0.prototype.setNormalSize=function(){this.setVisible(true);this.setHeight(PORTLET_NORMAL_SIZE);};_6e0.prototype.setBigSize=function(){this.setVisible(true);this.setHeight(PORTLET_BIG_SIZE);};_6e0.prototype.toggleVisibility=function(){this.setVisible(!this.isVisible);this.repaint();};_6e0.prototype.setVisible=function(_6ea){var _6eb=this.isVisible;this.isVisible=_6ea;if(_6eb!=_6ea){UES.Event.fireCustomEvent(this,"visibilityChange",{prevVisibility:_6eb,newVisibility:_6ea});}};_6e0.prototype.repaint=function(){var _6ec=document.getElementById(this.id+"body");if(this.isVisible){document.getElementById(this.id+"openButton").style.display="none";document.getElementById(this.id+"closeButton").style.display="inline";_6ec.style.height=_6ed(this.height);_6ec.style.width=_6ed(this.width);_6ec.style.display="block";}else{document.getElementById(this.id+"openButton").style.display="inline";document.getElementById(this.id+"closeButton").style.display="none";_6ec.style.display="none";}};_6e0.prototype.dragStart=function(_6ee,_6ef){var cont=document.getElementById(this.id);cont.style.top=cont.offsetTop+"px";cont.style.left=cont.offsetLeft+"px";cont.style.width=cont.offsetWidth+"px";_6ef.style.height=cont.offsetHeight-4+"px";this.bodyContent=document.getElementById(this.id+"body");this.bodyContent.parentNode.removeChild(this.bodyContent);};_6e0.prototype.dragEnd=function(_6f0){var cont=document.getElementById(this.id);cont.appendChild(this.bodyContent);cont.style.width="auto";};_6e0.prototype.S_dragStart=function(_6f1){if(!_6f1){_6f1=window.event;}var obj=(_6f1.target?_6f1.target:_6f1.srcElement);var _6f2=obj.dragObject;if(_6f2&&_6f2.manager){var _6f3=document.getElementById(_6f2.id);_6f2.manager.dragStart(_6f1,_6f2,_6f3);}};function _6ed(_6f4){if(_6f4==SIZE_AUTO&&is_ie6){return "297px";}if(_6f4==SIZE_AUTO){return "auto";}if(_6f4==SIZE_100P){return "100%";}return _6f4+"px";};})();}if(!dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.visc_v1.VCHeader"]){dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.visc_v1.VCHeader"]=true;dojo.provide("legacy.ues_v5.core_v1.appc_v1.visc_v1.VCHeader");(function(){UES.extend(_6f5,"UES.Header","UES.Widget");var _6f6=17;function _6f5(_6f7){_6f5.superclass.constructor.call(this,_6f7);this.marId=this.id+"_mar_wrap";this.competentId=this.id+"_competent_wrap";this.marShortener=null;this.competentShortener=null;};_6f5.prototype.show=function(){if(!this.marShortener||!this.competentShortener){this.hide(true);}if(!this.marShortener&&dojo.byId(this.marId)){this.marShortener=new UES.Util.NodeShortener(this.marId,null,null,_6f6);this.marShortener.execute();}if(!this.competentShortener&&dojo.byId(this.competentId)){this.competentShortener=new UES.Util.NodeShortener(this.competentId,null,null,_6f6);this.competentShortener.execute();}_6f5.superclass.show.call(this);};})();(function(){UES.extend(_6f8,"UES.ArtifactTitle","Object");var _6f9=19;function _6f8(_6fa){this.id=_6fa.id;this.linkId=_6fa.linkId;this.maxRows=_6fa.maxRows;};_6f8.prototype.init=function(){if(this.maxRows==2){var _6fb=UES.Util.takePrintSnapshot(this.id);UES.Util.showElement(_6fb);}new UES.Util.NodePairShortener({elem1:this.linkId,elem2:this.linkId+"_code_wrap",maxRowCount:this.maxRows,rowHeight:_6f9}).execute();UES.Util.showElement(this.id);titleArt=UES.getVisibleText(this.linkId+"_link_name");};})();}if(!dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.visc_v1.VCGroupPath"]){dojo._hasResource["legacy.ues_v5.core_v1.appc_v1.visc_v1.VCGroupPath"]=true;dojo.provide("legacy.ues_v5.core_v1.appc_v1.visc_v1.VCGroupPath");(function(){UES.extend(_6fc,"UES.GroupPath","UES.Widget");function _6fc(_6fd){_6fc.superclass.constructor.apply(this,arguments);this.shortened=false;};_6fc.prototype.show=function(){if(!this.shortened){this._performShortening();this.shortened=true;}_6fc.superclass.show.call(this);};_6fc.prototype._performShortening=function(){return new _6fe({groupPath:this.id}).execute();};function _6fe(_6ff){this.groupPath=_6ff.groupPath;this.maxRowCount=_6ff.maxRowCount||1;var _700=UES.Style.get(this.groupPath,"line-height",true);if(_700==0){_700=Math.round(UES.Style.get(this.groupPath,"font-size",true)*1.17+1);}this.rowHeight=_700;};_6fe.prototype.execute=function(){var gp=UES.$(this.groupPath);if(!gp||gp.childNodes.length==0||this._getRowCount()<=this.maxRowCount){return;}var _701=gp.childNodes.length;var _702=(_701+1)/2;var _703=[];for(var i=2;i<_701-2;i+=2){_703.push(i);}_703.push(0);if(_701>1){_703.push(_701-1);}var _704=new Array(_702);for(var i=0;i<_703.length;++i){var _705=gp.childNodes[_703[i]];var _706=new UES.Util.NodeShortener(gp,this.maxRowCount,_705,this.rowHeight);_704[_703[i]/2]=_706;var res=_706.execute();if(res.rowCount<=this.maxRowCount){break;}if(i==0&&_702>=3){var dots=document.createElement("span");var _707=document.createTextNode("...");dots.appendChild(_707);gp.insertBefore(dots,_705);gp.removeChild(_705);}else{if(i<_703.length-1){var sep=gp.childNodes[_703[i]+1];UES.Util.hideElement(_705);UES.Util.hideElement(sep);}}}if(i<_703.length-1||_702==1){return;}var sep=gp.childNodes[1];UES.Util.showElement(gp.childNodes[0]);UES.Util.showElement(sep);_704[0].shortenTo(30);_704[_702-1].execute();delete _704;delete _703;};_6fe.prototype._getRowCount=function(){return Math.round(UES.$(this.groupPath).offsetHeight/this.rowHeight);};})();}if(!dojo._hasResource["legacy.scripts"]){dojo._hasResource["legacy.scripts"]=true;dojo.provide("legacy.scripts");var merged=!!dojo._hasResource["legacy.scripts"];if(dojo.isIE&&dojo.isIE<=8&&!merged){var path=dojo.moduleUrl("legacy").toString();document.write("<script src=\""+path+"afu_v1/af_v1/appc_v1/visc_v2/common/VCBasic.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"ues_v5/core_v1/appc_v1/visc_v1/Util.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"ues_v5/core_v1/appc_v1/visc_v1/Effects.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"afu_v1/af_v1/appc_v1/visc_v2/input/VCContainer.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"afu_v1/af_v1/appc_v1/visc_v2/input/VCAFUBT.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"afu_v1/af_v1/appc_v1/visc_v2/input/BTTests.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"afu_v1/af_v1/appc_v1/visc_v2/component/VCDynamicLink.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"afu_v1/af_v1/appc_v1/visc_v2/component/VCModalWindow.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"afu_v1/af_v1/appc_v1/visc_v2/form/VCForm.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"afu_v1/af_v1/appc_v1/visc_v2/component/VCTask.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"afu_v1/af_v1/appc_v1/visc_v2/dialog/VCDialog.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"ues_v5/core_v1/appc_v1/visc_v1/VCFormPrefiller.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"afu_v1/af_v1/appc_v1/visc_v2/menu/VCMenu.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"ues_v5/core_v1/appc_v1/visc_v1/RoleContextMenu.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"afu_v1/af_v1/appc_v1/visc_v2/component/VCTable.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"afu_v1/af_v1/appc_v1/visc_v2/common/Cookie.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"ues_v5/core_v1/appc_v1/layout_v2/Layout.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"ues_v5/core_v1/appc_v1/portlet_v1/VCTileContainer.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"ues_v5/core_v1/appc_v1/visc_v1/VCHeader.js\" charset=\"utf-8\"></script>");document.write("<script src=\""+path+"ues_v5/core_v1/appc_v1/visc_v1/VCGroupPath.js\" charset=\"utf-8\"></script>");}else{}}
/* UES7-01-R1-HF3 */
