/*
	Copyright (c) 2004-2009, 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 a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

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

