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