123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: hal
- // (C) Copyright IBM Corp. 2003, 2017.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- var U_DOM={};U_DOM.K_iKeyBackSpace=8;U_DOM.K_iKeyTab=9;U_DOM.K_iKeyEnter=13;U_DOM.K_iKeyEscape=27;U_DOM.K_iKeySpace=32;U_DOM.K_iKeyPgUp=33;U_DOM.K_iKeyPgDn=34;U_DOM.K_iKeyEnd=35;U_DOM.K_iKeyHome=36;U_DOM.K_iKeyArrowLeft=37;U_DOM.K_iKeyArrowUp=38;U_DOM.K_iKeyArrowRight=39;U_DOM.K_iKeyArrowDown=40;U_DOM.K_iKeyInsert=45;U_DOM.K_iKeyDelete=46;U_DOM.K_iKeyA=65;U_DOM.K_iKeyM=77;U_DOM.K_iKeyF5=116;U_DOM.K_iKeyF1=112;U_DOM.K_iKeyF10=121;U_DOM.K_iKeyPlus=107;U_DOM.K_iKeyMinus=109;U_DOM.K_iLeftMouseButton=0;U_DOM.K_iRightMouseButton=2;U_DOM.M_sPrefixedTransform=(G_BrowserInfo.M_bIsWebKit||G_BrowserInfo.M_bIsSafari)?"webkitTransform":"transform";U_DOM.M_sPrefixedTransition=(G_BrowserInfo.M_bIsIOS||G_BrowserInfo.M_bIsAndroid)?"webkitTransition":"transition";U_DOM.M_sPrefixedTransitionProperty=(G_BrowserInfo.M_bIsIE||G_BrowserInfo.M_bIsFirefox)?"transitionProperty":"webkitTransitionProperty";U_DOM.M_sPrefixedTransitionDuration=(G_BrowserInfo.M_bIsIE||G_BrowserInfo.M_bIsFirefox)?"transitionDuration":"webkitTransitionDuration";U_DOM.M_sPrefixedTransitionTimingFunction=(G_BrowserInfo.M_bIsIE||G_BrowserInfo.M_bIsFirefox)?"transitionTimingFunction":"webkitTransitionTimingFunction";U_DOM.F_CancelEvent=function(e){e.preventDefault();e.stopPropagation();};U_DOM.F_CancelBubble=function(e){e.stopPropagation();};U_DOM.F_CancelKeyboardEvent=function(e){e.preventDefault();try{e.keyCode=0;}catch(e){}e.stopPropagation();};U_DOM.F_DeleteTableRows=function(tbl){if(tbl.rows){for(var i=tbl.rows.length-1;i>=0;i--){tbl.deleteRow(i);}}};U_DOM.F_SetActiveOrFocus=function(el){try{if(G_BrowserInfo.M_bIsIE){el.setActive();}else{if(el.focus){el.focus();}else{G_Debug.F_Print('focus not supported on ' + el.tagName);G_Debug.F_Assert(false);}}}catch(e){}};U_DOM.F_RemoveAllChildren=function(_hEW1){if(!_hEW1){return;}var _hLZ1=null;for(var i=_hEW1.childNodes.length-1; i>=0; i--){_hLZ1=_hEW1.childNodes[i];_hEW1.removeChild(_hLZ1);_hLZ1=null;}};U_DOM.F_GetNextSiblingElement=function(el){for(var _hY21=el.nextSibling;_hY21;_hY21=_hY21.nextSibling){if(_hY21.nodeType==U_XML.K_iNODE_ELEMENT){return _hY21;}}return null;};U_DOM.F_GetFirstChildElement=function(el){return el.firstChild?((el.firstChild.nodeType==U_XML.K_iNODE_ELEMENT)?el.firstChild:this.F_GetNextSiblingElement(el.firstChild)):null;};U_DOM.F_HandleContextMenu=function(e){if(!U_DOM.F_IsSelectable(e.target)){U_DOM.F_CancelEvent(e);return false;}return true;};U_DOM.F_HandleSelectStart=function(e){if(!U_DOM.F_IsSelectable(e.target)){U_DOM.F_CancelEvent(e);return false;}return true;};U_DOM.F_IsSelectable=function(el){if(el.getAttribute){switch(el.getAttribute("HAL_isSelectable")){case "true":return true;case "false":return false;}}switch(el.nodeName){case "TEXTAREA":return true;case "INPUT":return(el.type=="text");}return false;};U_DOM.F_HasCaret=function(el){return(((window.s_IdCurrentTextBox!="")&&(window.s_IdCurrentTextBox==el.id))||((document.activeElement==el)&&U_DOM.F_IsTextBoxOrTextArea(el)));};U_DOM.F_GetSelectedTextPosition=function(_hL82){var _hQ52;var _hOC2;_hQ52=_hL82.selectionStart;_hOC2=_hL82.selectionEnd;return {M_iStart:_hQ52,M_iEnd:_hOC2};};U_DOM._hFM=function(_hX82){var i=0;var _hBT1=-1;do{i=_hX82.indexOf("\r\n", i);_hBT1++;}while(i++>=0);return _hBT1;};U_DOM.F_IsTextSelected=function(_hL82){return(_hL82.selectionStart!=_hL82.selectionEnd);};U_DOM.F_GetSelectedText=function(){if(window.getSelection()!=""){return window.getSelection().toString();}var _hWE2=null;if(document.activeElement){_hWE2=document.activeElement;}if(_hWE2){return _hWE2.value.substring(_hWE2.selectionStart, _hWE2.selectionEnd);}return "";};U_DOM.F_ClearSelection=function(){if(window.getSelection){window.getSelection().removeAllRanges();}else if(document.selection){document.selection.empty();}};U_DOM.F_SetSelectionRange=function(_hV12,_h2R,_hZ21){_hV12.selectionStart=_h2R;_hV12.selectionEnd=_hZ21;};U_DOM.F_MoveCaretToMousePos=function(_hL82,e){if(document.caretPositionFromPoint){_hL82.focus();var rng=document.caretPositionFromPoint(e.clientX, e.clientY);_hL82.setSelectionRange(rng.offset, rng.offset); }else if(G_BrowserInfo.M_bIsIE){var rng=_hL82.createTextRange();var _hB42=false;var nl=rng.getClientRects();var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var _hNW=nl.item(i);if(Math.F_PointInRect(e.y, e.x, _hNW.top, _hNW.left, _hNW.right-_hNW.left, _hNW.bottom-_hNW.top)){rng.moveToPoint(e.x, e.y);_hB42=true;break;}}if(!_hB42){rng.moveStart("character", _hL82.value.length);}rng.select();}else{var _h3E2=window.getSelection();if(_h3E2){_h3E2.collapse(_hL82);}}};U_DOM.F_ReplaceTextSelection=function(_hWE2,_hOW,_hPW){var _h2R=_hWE2.selectionStart;var _hZ21=_hWE2.selectionEnd;_hWE2.value=_hWE2.value.substring(0, _h2R)+_hOW+_hWE2.value.substring(_hZ21);var _hC42=_h2R+_hOW.length;if(_hPW){U_DOM.F_SetSelectionRange(_hWE2, _h2R, _hC42);}else{U_DOM.F_SetSelectionRange(_hWE2, _hC42, _hC42);}};U_DOM.F_IsTextBoxOrTextArea=function(el){return Boolean( el )&&((el.tagName=="INPUT"&&el.type=="text" )||( el.tagName=="TEXTAREA" ) ); };U_DOM.F_HandleTab=function(e){this.F_CancelEvent(e);if(this.F_IsTextBoxOrTextArea(e.target)){var _hWE2=e.target;var _h2R=_hWE2.selectionStart;var _hZ21=_hWE2.selectionEnd;_hWE2.value=_hWE2.value.substring(0, _h2R)+String.fromCharCode(e.keyCode)+ _hWE2.value.substring(_hZ21);var _hBZ1=String.fromCharCode(e.keyCode).length;this.F_SetSelectionRange(_hWE2, _hZ21+_hBZ1, _hZ21+_hBZ1);}else{G_Debug.F_Print("U_DOM.F_HandleTab (non IE) only works for text areas and text inputs, not " + e.target.tagName);}};U_DOM.F_IsVisible=function(el){var _hSF1=el.currentStyle.visibility;if(_hSF1=="visible"){return true;}if(_hSF1=="hidden"){return false;}return(!el.parentNode||!el.parentNode.currentStyle||this.F_IsVisible(el.parentNode));};U_DOM.F_IsDisplayNone=function(el){el=U_DOM.F_GetElementNotInShadowDom(el);for(; el&&el.currentStyle; el=el.parentNode){if(el.currentStyle.display=='none'){return true;}}return false;};U_DOM.F_GetElementNotInShadowDom=function(el){if(el){if(el.correspondingUseElement){el=el.correspondingUseElement.parentNode;}if(el.ownerSVGElement){el=el.ownerSVGElement.parentNode;}}return el;};U_DOM.F_Contains=function(el,_hT31){return((el==_hT31)||(!!_hT31&&Boolean(el.compareDocumentPosition(_hT31)& 16)));};U_DOM.F_SetRadioButtonEnabled=function(_h031,_hFU1){_h031.disabled=!_hFU1;var _hEW1=_h031.parentElement;if(_hEW1.tagName=="LABEL"){_hEW1.disabled=!_hFU1;_hEW1.setAttribute("HAL_disabled", _hFU1?"false":"true");}U_Accessibility.F_SetAriaStateAndProperty(_h031, "aria-disabled", !_hFU1);};U_DOM.F_SetCheckboxEnabled=function(_h1N1,_hFU1){_h1N1.disabled=!_hFU1;var _hEW1=_h1N1.parentElement;if(_hEW1.tagName=="LABEL"){_hEW1.disabled=!_hFU1;_hEW1.setAttribute("HAL_disabled", _hFU1?"false":"true");}U_Accessibility.F_SetAriaStateAndProperty(_h1N1, "aria-disabled", !_hFU1);};U_DOM.F_SetTextEnabled=function(_hZE2,_hFU1){_hZE2.disabled=!_hFU1;_hZE2.setAttribute("HAL_disabled", _hFU1?"false":"true");U_Accessibility.F_SetAriaStateAndProperty(_hZE2, "aria-disabled", !_hFU1);if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){var _hTR1=_hZE2.getAttribute("tabIndex");if(_hTR1=="0"&&!_hFU1){U_Accessibility.F_SetTabIndex(_hZE2, "-1");}else if(_hTR1=="-1"&&_hFU1){U_Accessibility.F_RestoreIndex(_hZE2);}}};U_DOM.F_SetTextInputEnabled=function(_hZE2,_hFU1){_hZE2.disabled=!_hFU1;_hZE2.setAttribute("HAL_disabled", _hFU1?"false":"true");U_Accessibility.F_SetAriaStateAndProperty(_hZE2, "aria-disabled", !_hFU1);};U_DOM.F_SetButtonEnabled=function(_hMQ1,_hFU1,_hX52,_hCT1){var btn=document.getElementById(_hMQ1);var _hTF1=!btn.disabled;this.F_SetButtonEnabledFromButton(btn, _hFU1, _hX52, _hCT1);if(G_HAL.M_oTestListener&&G_HAL.M_oTestListener.F_DOM_OnButtonEnabled&&(_hTF1!=Boolean(_hFU1))){G_HAL.M_oTestListener.F_DOM_OnButtonEnabled(_hMQ1, _hFU1);}};U_DOM.F_SetButtonEnabledFromButton=function(btn,_hFU1,_hX52,_hCT1){if(!btn){return;}var _h9P1=!_hFU1;if((_h9P1!=btn.disabled)||(btn.getAttribute("_hX52")!=_hX52)){if(_hX52){btn.setAttribute("_hX52", _hX52);var nl=btn.getElementsByTagName("IMG");if(nl.length>0){var _hGM=btn.disabled;if(_hGM){btn.disabled=false;btn.setAttribute("HAL_disabled", "false");}var _hKD2=( _h9P1?"_disabled":"" ) + (_hCT1||".gif");var _h0Z1=nl.item(0);var _hD42=nl.item(nl.length-1);_h0Z1.src=G_HAL.F_GetImageURL(_hX52+_hKD2);if(_hD42.src.indexOf("dropdown_arrow")!=-1){_hD42.src=U_HighContrast.F_GetHighContrastImgIfNecessary(G_HAL.M_sImagePath+"dropdown_arrow" + _hKD2);}if(btn.getAttribute( "_hPD1" )=="tblDropdown" ){btn.nextSibling.disabled=_h9P1;btn.nextSibling.firstChild.src=U_HighContrast.F_GetHighContrastImgIfNecessary(G_HAL.M_sImagePath+"dropdown_arrow" + _hKD2);}if(_hGM){btn.disabled=true;btn.setAttribute("HAL_disabled", "true");}if(_h9P1&&( btn.getAttribute( "HAL_isCoolButton" )=="true" ) ){btn.className=btn._hH51;}}}btn.disabled=_h9P1;btn.setAttribute( "HAL_disabled", _h9P1?"true":"false");if(btn._h491){var _hH51=btn._hH51;if(btn._hNF||btn._hV2){btn.className=_hH51+(_h9P1?"_disabled":"");}else{btn.className=( _h9P1?_hH51+" " + _hH51 + "_disabled":_hH51 );}}}U_Accessibility.F_SetAriaStateAndProperty(btn, "aria-disabled", !_hFU1);};U_DOM.F_SetFirstClassName=function(el,_hOF){var i=el.className.indexOf( " " );el.className=_hOF+((i==-1)?"":el.className.substring(i));};U_DOM.F_GetFirstClassName=function(el){if(!el.className){return "";}var i=el.className.indexOf( " " );return(i==-1)?el.className:el.className.substr(0, i);};U_DOM.F_ShowChildWindow=function(_hBC2, _hX42, _hZL1, _hHM, _h3R, _h2N1, _h3N1, _hIM){var _h852=_hHM?_hHM.width:700;var _hMZ1=_hHM?_hHM.height:250;var _hJC2=_h3R?_h3R.top:Math.F_NonNeg(screen.availHeight-_hMZ1);var _hB92=_h3R?_h3R.left:Math.F_NonNeg(screen.availWidth-_h852);if(_h2N1){_hB92=(document.body.clientWidth / 2)-(_h852 / 2);_hJC2=(document.body.clientHeight / 2)-(_hMZ1 / 2);}if(_hIM){var _h791="";for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i]&&document.styleSheets[i].href&&document.styleSheets[i].href.indexOf("css")!=-1){_h791 += '<link rel="stylesheet" type="text/css" href="' + document.styleSheets[i].href + '"/>';}}}var _h4N1=_h3N1?"yes":"no";var _hM82=false;if(!_hM82){var _hXE2=window.open( "", "", "directories=no,location=no,status=no,toolbar=no,resizable=" + _h4N1 + ",scrollbars=yes,dependent=yes,height=" + _hMZ1 + ",width=" + _h852 +",top=" + _hJC2 + ",left=" + _hB92 );if(this.F_WindowOpenWasBlocked(_hXE2)){return null;}}var _h9A2=[];_h9A2.push( '<html><head><title>' + _hX42 + ' </title>' );_h9A2.push(_h791);_h9A2.push( '</head><body style="' + ( _hZL1?_hZL1:"" ) + '">' );_h9A2.push(_hBC2);_h9A2.push('</body></html>');_hXE2.document.open();_hXE2.document.write(_h9A2.join(""));_hXE2.document.close();_hXE2.document.title=_hX42+" ";_hXE2.focus();return _hXE2;};U_DOM.F_IsInElement=function(e,el){var _hIC2=this.F_GetRelativeOffset(el, el.ownerDocument.body);return Math.F_PointInRect(e.clientY+el.ownerDocument.body.scrollTop, e.clientX+el.ownerDocument.body.scrollLeft, _hIC2.top, _hIC2.left, el.offsetWidth, el.offsetHeight);};U_DOM.F_GetOffsetTop=function(el){if(G_BrowserInfo.M_bIsIE){return el.offsetTop;}if(el.offsetParent&&el.offsetParent.currentStyle.overflow!="hidden"){return(el.offsetTop-this.F_GetBorderTopWidth(el.offsetParent));}return el.offsetTop;};U_DOM.F_GetOffsetLeft=function(el){if(G_BrowserInfo.M_bIsIE){return el.offsetLeft;}if(el.offsetParent&&el.offsetParent.currentStyle.overflow!="hidden"){return(el.offsetLeft-this.F_GetBorderLeftWidth(el.offsetParent));}return el.offsetLeft;};U_DOM.F_GetHorizontalBorderWidth=function(el){return this.F_GetBorderLeftWidth(el)+this.F_GetBorderRightWidth(el);};U_DOM.F_GetVerticalBorderWidth=function(el){return this.F_GetBorderTopWidth(el)+this.F_GetBorderBottomWidth(el);};U_DOM.F_GetBorderTopWidth=function(el){return this._hQW(el, "Top");};U_DOM.F_GetBorderRightWidth=function(el){return this._hQW(el, "Right");};U_DOM.F_GetBorderBottomWidth=function(el){return this._hQW(el, "Bottom");};U_DOM.F_GetBorderLeftWidth=function(el){return this._hQW(el, "Left");};U_DOM._hQW=function(el,_h3C2){var _hRW=el.ownerDocument.defaultView.getComputedStyle(el);var _hXZ1=_hRW["border" + _h3C2 + "Width"];var _hE42=parseInt(_hXZ1, 10);if(isNaN(_hE42)){return ((_hXZ1=="medium" )&&( _hRW["border" + _h3C2 + "Style"] != "none" ) )?4:0;}return _hE42;};U_DOM.F_GetVerticalPadding=function(el){return parseInt(el.currentStyle.paddingTop, 10)+parseInt(el.currentStyle.paddingBottom, 10);};U_DOM.F_GetHorizontalPadding=function(el){return parseInt(el.currentStyle.paddingLeft, 10)+parseInt(el.currentStyle.paddingRight, 10);};U_DOM.F_GetContentDimensions=function(el){return(new C_Dimension(el.offsetHeight, el.offsetWidth)).F_Subtract(this.F_GetNonContentDimensions(el));};U_DOM.F_GetNonContentDimensions=function(el){return new C_Dimension(this.F_GetVerticalPadding(el)+this.F_GetVerticalBorderWidth(el),this.F_GetHorizontalPadding(el)+this.F_GetHorizontalBorderWidth(el));};U_DOM.F_SetOpacity=function(el,_h1Z1){el.style["opacity"]=_h1Z1 / 100;};U_DOM.F_RemoveOpacity=function(el){el.style.opacity="";};U_DOM.F_GetBasePath=function(d){var re=/^(\/.*?)\//;re.test((d||document).location.pathname);return RegExp.$1;};U_DOM.F_NumbersOnlyOnChange=function(e,_h8D,_h8P1,_h4E2,_h5E2){var txt=e.target;if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){this.F_ValidateNumberInput(txt, _h8P1, _h8D, _h4E2, _h5E2);return;}switch(_h8P1){case "integer":txt.value=txt.value.replace(_h8D?/[^0-9-]/g:/[^0-9]/g, "");break;case "float":txt.value=txt.value.replace(_h8D?/[^0-9.,-eE]/g:/[^0-9.,eE]/g, "");break;case "decimal":default:txt.value=txt.value.replace(_h8D?/[^0-9.,-]/g:/[^0-9.,]/g, "");break;}};U_DOM.F_NumbersOnlyOnKeyPress=function(e,_h8D,_h8P1){if(e.ctrlKey){return;}var _hDT1=e.keyCode;if(!G_BrowserInfo.M_bIsIE){_hDT1=e.charCode;if(_hDT1==0){return;}}switch(_hDT1){case this.K_iKeyEnter:case this.K_iKeyEscape:case 190:return;case 44:case 46:if(_h8P1=="integer"){break;}return;case 69:case 101:if(_h8P1=="float"){return;}break;case 45:if(_h8P1=="float"){return;}if(_h8D){return;}}if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){if((_hDT1<"0".charCodeAt(0))||(_hDT1>"9".charCodeAt(0))){e.preventDefault();if(G_BrowserInfo.M_bIsIE){e.keyCode=0;}e.stopPropagation();}}};U_DOM.F_PercentOnlyOnChange=function(e,_h8D,_h8P1,_h4E2){var txt=e.target;_h4E2=_h4E2||100;if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){this.F_ValidateNumberInput(txt, _h8P1, _h8D, _h4E2);return;}switch(_h8P1){case "integer":txt.value=txt.value.replace(_h8D?/[^0-9-]/g:/[^0-9]/g, "");var _hN82=parseInt(txt.value, 10);if(_hN82>_h4E2){txt.value=_h4E2.toString(10);}break;case "decimal":default:txt.value=txt.value.replace(_h8D?/[^0-9.,-]/g:/[^0-9.,]/g, "");var _h562=parseFloat(txt.value, 10);if(_h562>_h4E2){txt.value=_h4E2.toString(10);}break;}};U_DOM.F_NumbersOnlyOnChangeHandler=function(e){ U_DOM.F_NumbersOnlyOnChange(e); };U_DOM.F_NumbersOnlyOnKeyPressHandler=function(e){ U_DOM.F_NumbersOnlyOnKeyPress(e); };function C_Position(_hB92, _hJC2){this.left=_hB92;this.top=_hJC2;};C_Position.prototype.F_Add=function(_hIC2){return new C_Position(this.left+_hIC2.left, this.top+_hIC2.top);};C_Position.prototype.F_Subtract=function(_hIC2){return new C_Position(this.left-_hIC2.left, this.top-_hIC2.top);};function C_Dimension(_hMZ1, _h852){this.height=_hMZ1?_hMZ1:0;this.width=_h852?_h852:0;};C_Dimension.prototype.F_Add=function(_h5N1){return new C_Dimension(this.height+_h5N1.height, this.width+_h5N1.width);};C_Dimension.prototype.F_Subtract=function(_h5N1){return new C_Dimension(Math.F_NonNeg(this.height-_h5N1.height), Math.F_NonNeg(this.width-_h5N1.width));};function C_Rectangle(_hB92, _hJC2, _hO82, _hF42){this.left=_hB92;this.top=_hJC2;this.right=_hO82;this.bottom=_hF42;this.width=_hO82-_hB92;this.height=_hF42-_hJC2;};C_Rectangle.prototype.F_Subtract=function(_h6N1){return new C_Rectangle(this.left-_h6N1.left, this.top - _h6N1.top, this.right - _h6N1.right, this.bottom-_h6N1.bottom);};C_Rectangle.prototype.F_Add=function(_h6N1){return new C_Rectangle(this.left+_h6N1.left, this.top + _h6N1.top, this.right + _h6N1.right, this.bottom+_h6N1.bottom);};C_Rectangle.prototype.F_GetWidth=function(){return(this.right-this.left);};C_Rectangle.prototype.F_GetHeight=function(){return(this.bottom-this.top);};C_Rectangle.prototype.F_Intersects=function(_h6N1){return(Math.F_PointInRect(this.top, this.left, _h6N1.top, _h6N1.left, _h6N1.width, _h6N1.height)||Math.F_PointInRect(this.top, this.right, _h6N1.top, _h6N1.left, _h6N1.width, _h6N1.height)||Math.F_PointInRect(this.bottom, this.left, _h6N1.top, _h6N1.left, _h6N1.width, _h6N1.height)||Math.F_PointInRect(this.bottom, this.right, _h6N1.top, _h6N1.left, _h6N1.width, _h6N1.height)||Math.F_PointInRect(_h6N1.top, _h6N1.left, this.top, this.left, this.width, this.height)||Math.F_PointInRect(_h6N1.top, _h6N1.right, this.top, this.left, this.width, this.height)||Math.F_PointInRect(_h6N1.bottom, _h6N1.left, this.top, this.left, this.width, this.height)||Math.F_PointInRect(_h6N1.bottom, _h6N1.right, this.top, this.left, this.width, this.height));};function C_Polygon(_hG42){this._hH42=_hG42;};C_Polygon.prototype.F_GetLeft=function(){var _h8D2=Infinity;for(var i=0;i<this._hH42.length;i++){if(this._hH42[i].left<_h8D2){_h8D2=this._hH42[i].left;}}return _h8D2;};C_Polygon.prototype.F_GetTop=function(){var _h8D2=Infinity;for(var i=0;i<this._hH42.length;i++){if(this._hH42[i].top<_h8D2){_h8D2=this._hH42[i].top;}}return _h8D2;};C_Polygon.prototype.F_GetWidth=function(){var _h8D2=Infinity;var _h9D2=-Infinity;for(var i=0;i<this._hH42.length;i++){if(this._hH42[i].left>_h9D2){_h9D2=this._hH42[i].left;}if(this._hH42[i].left<_h8D2){_h8D2=this._hH42[i].left;}}return(_h9D2-_h8D2);};C_Polygon.prototype.F_GetHeight=function(){var _h8D2=Infinity;var _h9D2=-Infinity;for(var i=0;i<this._hH42.length;i++){if(this._hH42[i].top>_h9D2){_h9D2=this._hH42[i].top;}if(this._hH42[i].top<_h8D2){_h8D2=this._hH42[i].top;}}return(_h9D2-_h8D2);};C_Polygon.prototype.F_IsInRect=function(_hBQ1){var _hB92=this.F_GetLeft();if(_hBQ1.left>=_hB92&&_hBQ1.left<=(_hB92+this.F_GetWidth())){var _hJC2=this.F_GetTop();if(_hBQ1.top>=_hJC2&&_hBQ1.top<=(_hJC2+this.F_GetHeight())){return true;}}return false;};C_Polygon.prototype.F_IsInPolygon=function(_hBQ1){if(!this.F_IsInRect(_hBQ1)){return false;}var _h9D=0;var j=this._hH42.length-1;for(var i=0; i<this._hH42.length; i++){var _hP82=(this._hH42[j].top-this._hH42[i].top)/(this._hH42[j].left-this._hH42[i].left);if(isNaN(_hP82)){j=i;continue;}if(_hP82!=0&&Math.abs(_hP82)!=Infinity){var b=this._hH42[i].top-_hP82*this._hH42[i].left;var _hUF1=(_hBQ1.top-b)/ _hP82;if((_hUF1>=this._hH42[i].left&&_hUF1<=this._hH42[j].left)||(_hUF1>=this._hH42[j].left&&_hUF1<=this._hH42[i].left)){if(_hUF1<_hBQ1.left){if(_hBQ1.top==this._hH42[i].top){if(this._hH42[j].top>_hBQ1.top){_h9D++;}}else if(_hBQ1.top==this._hH42[j].top){if(this._hH42[i].top>_hBQ1.top){_h9D++;}}else{_h9D++;}}}}else if(_hP82==0){j=i;continue;}else{var _hUF1=this._hH42[i].left;var _hVF1=_hBQ1.top;if((_hVF1>=this._hH42[i].top&&_hVF1<=this._hH42[j].top)||(_hVF1>=this._hH42[j].top&&_hVF1<=this._hH42[i].top)){if(_hUF1<_hBQ1.left){if(_hVF1==this._hH42[i].top){if(this._hH42[j].top>_hBQ1.top){_h9D++;}}else if(_hVF1==this._hH42[j].top){if(this._hH42[i].top>_hBQ1.top){_h9D++;}}else{_h9D++;}}}}j=i;}return Boolean(_h9D % 2);};U_DOM.F_GetBoundingRect=function(el,_hDG1){var _hIC2=this.F_GetRelativeOffset(el, _hDG1||el.ownerDocument.body);var _h4C2=U_DOM.F_GetElementSize(el);return new C_Rectangle(_hIC2.left, _hIC2.top, _hIC2.left+_h4C2.width, _hIC2.top+_h4C2.height);};U_DOM.F_GetBoundingRectForElements=function(_hET1,_hDG1){var el=_hET1[0];var _hIC2=U_DOM.F_GetRelativeOffset(el, _hDG1);var _h4C2=U_DOM.F_GetElementSize(el);var _hJC2=_hIC2.top;var _hB92=_hIC2.left;var _hF42=_hJC2+_h4C2.height;var _hO82=_hB92+_h4C2.width;var _hBZ1=_hET1.length;for(var i=1;i<_hBZ1;i++){var el=_hET1[i];var _hIC2=U_DOM.F_GetRelativeOffset(el, _hDG1);var _h4C2=U_DOM.F_GetElementSize(el);if(_hIC2.top<_hJC2){_hJC2=_hIC2.top;}if(_hIC2.left<_hB92){_hB92=_hIC2.left;}var _hSW=_hIC2.top+_h4C2.height;if(_hSW>_hF42){_hF42=_hSW;}var _h131=_hIC2.left+_h4C2.width;if(_h131>_hO82){_hO82=_h131;}}return new C_Rectangle(_hB92, _hJC2, _hO82, _hF42);};U_DOM.F_GetElementSize=function(el){var _h852;var _hMZ1;switch(el.nodeName.toUpperCase()){case "SVG":case "POLYLINE":var _h6A2=el.getBoundingClientRect();_h852=_h6A2.width;_hMZ1=_h6A2.height;break;case "BODY":_h852=el.clientWidth;_hMZ1=el.clientHeight;break;default:_h852=el.offsetWidth;_hMZ1=el.offsetHeight;break;}return {width:_h852,height:_hMZ1};};U_DOM.F_GetRelativeOffset=function(el,_hDG1){if(G_BrowserInfo.M_bIsIE||G_BrowserInfo.M_bIsWebKit){var _hWF1=el.getBoundingClientRect();var _hIC2=new C_Position(_hWF1.left, _hWF1.top);if(_hDG1){var _hAD=_hDG1.getBoundingClientRect();_hIC2.top-= _hAD.top;_hIC2.left-= _hAD.left;if(_hDG1.tagName!="BODY"){_hIC2.top-= this.F_GetBorderTopWidth(_hDG1);_hIC2.left-= this.F_GetBorderLeftWidth(_hDG1);}if(_hDG1.scrollLeft){_hIC2.left+= _hDG1.scrollLeft;}if(_hDG1.scrollTop){_hIC2.top+= _hDG1.scrollTop;}}return _hIC2;}var _hC52=el.ownerDocument.body;if(!_hDG1){_hDG1=_hC52;}if(!G_BrowserInfo.M_bIsIE){return this._hL3(el, _hDG1);}};U_DOM._hGI=function(el,_hDG1){var _hD62=el.ownerDocument.body;if ((el==_hD62 )||( el.nodeName=="HTML" )||( el.nodeName=="#document" ) ){return new C_Position(0, 0);}var _h6A2=el.getBoundingClientRect();var _hB92=Math.round(_h6A2.left);var _hJC2=Math.round(_h6A2.top);var _hEW1=el.parentNode;if(G_BrowserInfo.M_bIsFirefox){return new C_Position(_hB92, _hJC2);}var _h4R=(el!=_hDG1);while(_hEW1&&(_hEW1!=_hD62)){if(_hEW1!=_hDG1&&_hEW1.currentStyle.overflow!="visible"){_hB92-= _hEW1.scrollLeft;_hJC2-= _hEW1.scrollTop;}if(_hEW1.currentStyle.overflow!="visible"){_hJC2+= this.F_GetBorderTopWidth(_hEW1);_hB92+= this.F_GetBorderLeftWidth(_hEW1);}_hEW1=_hEW1.parentNode;}if(_h4R){_hB92-= this.F_GetBorderLeftWidth(el);var _h7N1=this.F_GetBorderTopWidth(el);_hJC2-= _h7N1;}return new C_Position(_hB92, _hJC2);};U_DOM._hL3=function(el,_hDG1){var _hFT1=U_DOM._hGI(el, _hDG1);if(_hDG1!=el.ownerDocument.body){var _h891=U_DOM._hGI(_hDG1, _hDG1);var _hB92=_hFT1.left-_h891.left;var _hJC2=_hFT1.top-_h891.top;if(G_BrowserInfo.M_bIsFirefox){_hB92-= this.F_GetBorderLeftWidth(_hDG1);_hJC2-= this.F_GetBorderTopWidth(_hDG1);}}else{var _hB92=_hFT1.left;var _hJC2=_hFT1.top;}if(G_BrowserInfo.M_bIsFirefox){if(_hDG1.scrollLeft){_hB92+= _hDG1.scrollLeft;}if(_hDG1.scrollTop){_hJC2+= _hDG1.scrollTop;}}return new C_Position(_hB92, _hJC2);};U_DOM._hJM=1;U_DOM.F_GetUniqueId=function(_h5C2,d){if(!_h5C2){return("hal__dom__uniqueID__"+this._hJM++);}var _hAE2=_h5C2;if(!d){d=document;}var i=1;while(d.getElementById(_hAE2)){_hAE2=_h5C2+i++;}return _hAE2;};U_DOM.F_GetStyleSheet=function(_hJE2,d){if(!d){d=document;}var _h991=d.getElementById(_hJE2);return _h991?_h991.sheet:null;};U_DOM.F_LoadStyleSheet=function(_hI42){var d=document;if (!d.querySelector("link[href='" + _hI42 + "']")){var _hQ82=d.createElement("link");_hQ82.setAttribute('rel', 'stylesheet');_hQ82.setAttribute('type', 'text/css');_hQ82.setAttribute('href', _hI42);d.getElementsByTagName("head")[0].appendChild(_hQ82);}};U_DOM.F_AddScript=function(_hJ42,d){if(!d){d=document;}var _hXV1=d.getElementsByTagName("HEAD").item(0).appendChild(d.createElement('SCRIPT'));_hXV1.text=_hJ42;return _hXV1;};U_DOM.F_LoadScript=function(_hXF1,_hKM,d){if(!d){d=document;}var _hXV1=d.createElement("script");_hXV1.type="text/javascript";if(_hKM){if(_hXV1.readyState){_hXV1.onreadystatechange=function(){if(_hXV1.readyState=="loaded"||_hXV1.readyState=="complete"){_hXV1.onreadystatechange=null;_hKM();}};}else{_hXV1.onload=_hKM;}}_hXV1.src=_hXF1;d.getElementsByTagName("head")[0].appendChild(_hXV1);};U_DOM.F_ShowEventBlocker=function(_hK42){if(!this._h3N){this._h3N=document.body.appendChild(document.createElement("DIV"));this._h3N.onkeydown=this.F_StopTabKey;this._h3N.className="clsBlocker";}this._h3N.style.zIndex=_hK42;this._h3N.style.visibility="visible";return this._h3N;};U_DOM.F_HideEventBlocker=function(){if(this._h3N){this._h3N.style.visibility="hidden";var _hI32=[ "onmousedown", "onmouseup", "onmousemove", "onclick", "ondblclick", "onmouseover", "onmouseout" ];for(var i=0;i<_hI32.length;i++){this._h3N[_hI32[i]]=null;}}};U_DOM.F_StopTabKey=function(e){if(e.keyCode==U_DOM.K_iKeyTab){U_DOM.F_CancelEvent(e);}};U_DOM.F_EmptyFunction=function(){};U_DOM.F_CreateSvgString=function(_hOA2,_hH71){ var _hNA=_hOA2.getAttribute("smallIconHeight");var _hBD=_hOA2.getAttribute("smallIconWidth"); var _hT91=(_hNA==null)?"19px":_hNA;var _hXG1=(_hBD==null)?"19px":_hBD;var _h8N1='<svg height="' + _hT91 + '" width="' + _hXG1 + '"style="vertical-align: middle;"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#' + _hH71 + '"/></svg>';return _h8N1;};U_DOM.F_GetPropertyInTryCatch=function(o,_hKO1){try{return o[_hKO1];}catch(e){G_Debug.F_Print( "U_DOM.F_GetPropertyInTryCatch caught exception accessing o[" + _hKO1 + "]" );return null;}};U_DOM.F_SetColorButtonColor=function(btn,_hW62,_hA91){if(btn){var div=btn.getElementsByTagName("DIV").item(0);div.className=( _hW62=="transparent" )?"clsColorButtonDIV_transparent":"clsColorButtonDIV_normal";div.style.backgroundColor=_hW62?_hW62:"";if(_hA91){div.innerText=_hA91;}if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]&&_hW62){U_Accessibility.F_AddAriaHiddenSpan(btn, "aria-describedby", this.F_GetColorAriaLabel(_hW62));}}};U_DOM.F_DisplayTDs=function(el){if(!G_BrowserInfo.M_bIsIE){return;}var nl=el.getElementsByTagName("TD");var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var td=nl.item(i);if(td.style.display=="none"){td.style.display="";}}};U_DOM.F_WindowOpenWasBlocked=function(win,_hR82){var b=Boolean(win);if(!b&&(_hR82!=false)){var _hBC2=window["G_ResManager"]?G_ResManager.F_GetOptionalString( "IDS_HAL_POPUP_BLOCKER_ERROR" ):null;alert( _hBC2||"A window could not be opened. This is most likely caused by a popup blocker. Please disable your popup blocker." );}return !b;};U_DOM.F_HookTextInputOnChangeEvent=function(_hYF1,fn_OnChange){_hYF1.onchange=function(e){ fn_OnChange(); };_hYF1.oncut=function(){ setTimeout(fn_OnChange, 0); };_hYF1.onpaste=function(){ setTimeout(fn_OnChange, 0); };_hYF1.onkeyup=function(){ setTimeout(fn_OnChange ,0); };_hYF1.ondrop=function(){ setTimeout(fn_OnChange ,0); };_hYF1.onmouseup=function(){ setTimeout(fn_OnChange, 0); };};U_DOM.F_UnHookTextInputOnChangeEvent=function(_hYF1){_hYF1.onkeypress=null;_hYF1.onchange=null;_hYF1.oncut=null;_hYF1.onpaste=null;_hYF1.onkeyup=null;_hYF1.ondrop=null;_hYF1.onmouseup=null;};U_DOM.F_HookNumericInputOnChangeEvent=function(_hYF1,fn_OnChange,_h8D,_h8P1){_hYF1.onkeypress=function(e){ U_DOM.F_NumbersOnlyOnKeyPress(e, _h8D, _h8P1); };_hYF1.onchange=function(e){ U_DOM.F_NumbersOnlyOnChange(e, _h8D, _h8P1); fn_OnChange(); };_hYF1.oncut=function(){ setTimeout(fn_OnChange, 0); };_hYF1.onpaste=function(){ setTimeout(fn_OnChange, 0); };_hYF1.onkeyup=function(){ setTimeout(fn_OnChange ,0); };_hYF1.ondrop=function(){ setTimeout(fn_OnChange ,0); };_hYF1.onmouseup=function(){ setTimeout(fn_OnChange, 0); };};U_DOM.F_UnHookNumericInputOnChangeEvent=function(_hYF1){_hYF1.onkeypress=null;_hYF1.onchange=null;_hYF1.oncut=null;_hYF1.onpaste=null;_hYF1.onkeyup=null;_hYF1.ondrop=null;_hYF1.onmouseup=null;};U_DOM.F_CreateArgumentsArray=function(_h9N1,_hZF1){var a=[];for(var i=_hZF1||0;i<_h9N1.length;i++){a.push(_h9N1[i]);}return a;};U_DOM.F_GetColorAriaLabel=function(_hW62){var _hSI1=G_ResManager.F_GetOptionalString("IDS_HAL_COLOR_"+_hW62.toUpperCase());return _hSI1?_hSI1:_hW62;};U_DOM.F_ValidateNumber=function(_h552,_h8P1,_h8D,_hGT1,_hHT1){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]||( _h552=="" ) ){return true;}var _h5R;var _h0G1;switch(_h8P1){case "integer":_h5R=_h8D?/[^0-9-]/g:/[^0-9]/g;_h0G1=parseInt(_h552, 10);break;case "float":_h5R=_h8D?/[^0-9.,-eE]/g:/[^0-9.,eE]/g;_h0G1=parseFloat(_h552, 10);break;case "decimal":default:_h5R=_h8D?/[^0-9.,-]/g:/[^0-9.,]/g;_h0G1=parseFloat(_h552, 10);break;}if(_h552.match(_h5R)||isNaN(_h0G1)){F_MsgBox(G_ResManager.F_GetString("IDS_HAL_ERR_INVALID_NUMBER"));return false;}else if(_hGT1!==undefined&&_hGT1!==null&&_h0G1>_hGT1){F_MsgBox(G_ResManager.F_GetString("IDS_HAL_ERR_INVALID_MAX", Number.F_ToLocalizedString(_hGT1)));return false;}else if(_hHT1!==undefined&&_hHT1!==null&&_h0G1<_hHT1){F_MsgBox(G_ResManager.F_GetString("IDS_HAL_ERR_INVALID_MIN", Number.F_ToLocalizedString(_hHT1)));return false;}return true;};U_DOM.F_ValidateNumberInput=function(_h6C2,_h8P1,_h8D,_hGT1,_hHT1){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return true;}var _hS82=this.F_ValidateNumber(_h6C2.value, _h8P1, _h8D, _hGT1, _hHT1);if(!_hS82){_h6C2.value="";}return _hS82;};if(G_BrowserInfo.M_bIsIE){U_DOM.F_CreateClearableTimeout=function(_h7F2,_h2Z1){var _hTW={};_hTW._hAN1=setTimeout(this._hUW.bind(this, _h7F2, _hTW), _h2Z1);return _hTW;};U_DOM.F_ClearTimeout=function(_hTW){if(_hTW._hAN1){var _hBN1=_hTW._hAN1;_hTW._hAN1=null;clearTimeout(_hBN1);}};U_DOM._hUW=function(_h7F2,_hTW){if(_hTW._hAN1!==null){_hTW._hAN1=null;_h7F2();}};}else{U_DOM.F_CreateClearableTimeout=function(_h7F2,_h2Z1){return setTimeout(_h7F2, _h2Z1);};U_DOM.F_ClearTimeout=function(_h1G1){clearTimeout(_h1G1);};}U_DOM._hCN1=function(_h7C2){var _hT82=[];var _hDN1=[];_hDN1=_h7C2.selectorText.split(", ");for(var i=0;i<_hDN1.length;i++){var _h3Z1={};_h3Z1.selectorText=_hDN1[i];for(var s in _h7C2){if(s!="selectorText"){_h3Z1[s]=_h7C2[s];}}_hT82.push(_h3Z1);}return _hT82;};U_DOM.F_GetCssRules=function(_hJF1){if(G_BrowserInfo.M_bIsIE&&_hJF1.rules){return _hJF1.rules;}var _hT82=[];for(var i=0;i<_hJF1.cssRules.length;i++){var _hB91=_hJF1.cssRules.item(i);if(_hB91.type==1){_hT82=_hT82.concat(this._hCN1(_hB91));}else if(_hB91.type==4){var _hVW=_hB91.cssRules.length;for(var j=0;j<_hVW;j++){var _h4Z1=_hB91.cssRules.item(j);if(_h4Z1.type==1){_hT82=_hT82.concat(this._hCN1(_h4Z1));}}}}_hT82.item=this.F_Item;return _hT82;};U_DOM.F_Item=function(i){ return this[i]; };U_DOM.F_CheckForWellFormedDiv=function(_h192,_hL42){if(!this._hM42){this._hM42=U_HtmlDtd.F_CreateHtmlDtd("div");}if(!U_XML.F_LoadStringWithDTD(null, _h192, this._hM42, false, false)){G_HAL.F_AlertError( _hL42+" is not well formed." );}};var U_CssShapeFactory={};U_CssShapeFactory._hCD="0.5s";U_CssShapeFactory.F_CreateCircle=function(d,_hW62,_hQZ1,_hBX1){var _hIT1=(_hQZ1+_hQZ1)+ "px";var div=d.createElement("DIV");div._hJT1=true;var _hA52=div.style;_hA52.width=_hIT1;_hA52.height=_hIT1;_hA52.backgroundColor=_hW62;var _hN42=_hQZ1+"px";_hA52.borderRadius=_hN42;if(_hBX1){_hA52[U_DOM.M_sPrefixedTransitionProperty]="width, height, border-radius";_hA52[U_DOM.M_sPrefixedTransitionDuration]=this._hCD;}if(G_BrowserInfo.M_bIsWebKit){_hA52.webkitBorderRadius=_hN42;}else if(G_BrowserInfo.M_bIsFirefox){_hA52.mozBorderRadius=_hN42;}_hA52.boxShadow="1px 1px 2px 0px hsla(0, 0%, 0%, 0.35)";return div;};U_CssShapeFactory.F_CreateSquare=function(d,_hW62,_h852,_hBX1){return this.F_CreateRectangle(d, _hW62, _h852, _h852, _hBX1);};U_CssShapeFactory.F_CreateRectangle=function(d,_hW62,_h852,_hMZ1,_hBX1){var div=d.createElement("DIV");div._hKT1=true;var _hA52=div.style;_hA52.width=_h852+"px";_hA52.height=_hMZ1+"px";_hA52.backgroundColor=_hW62;_hA52.borderRadius="2px";if(_hBX1){_hA52[U_DOM.M_sPrefixedTransitionProperty]="width, height";_hA52[U_DOM.M_sPrefixedTransitionDuration]=this._hCD;}_hA52.boxShadow="1px 1px 2px 0px hsla(0, 0%, 0%, 0.35)";return div;};U_CssShapeFactory.F_CreateEquilateralTriangle=function(d,_hQE2,_hW62,_h852,_hBX1){var div=d.createElement("DIV");div._hP6=true;var _hA52=div.style;_hA52.width="0px";_hA52.height="0px";_hA52[_hQE2?"borderBottom":"borderTop"] = _h852 + "px solid " + _hW62;var s=Math.floor( _h852 / 2)+ "px solid transparent";_hA52.borderLeft=s;_hA52.borderRight=s;if(_hBX1){_hA52[U_DOM.M_sPrefixedTransitionProperty]=( _hQE2?"border-bottom-width":"border-top-width" ) + ", border-left-width, border-right-width";_hA52[U_DOM.M_sPrefixedTransitionDuration]=this._hCD;}return div;};U_CssShapeFactory.F_CreateUpDownArrow=function(d,_hQE2,_hW62,_h852,_hMZ1){var div=d.createElement("DIV");var _hA52=div.style;_hA52.width="0px";_hA52.height="0px";_hA52.borderStyle="solid";var _hEN1=Math.floor(_h852 / 2)+"px";_hA52.borderWidth=( _hQE2?0:_hMZ1)+ "px " + _hEN1 + " " + ( _hQE2?_hMZ1:0 ) + "px " + _hEN1;_hA52.borderColor=( _hQE2?"transparent":_hW62 ) + " transparent " + ( _hQE2?_hW62:"transparent" ) + " transparent";return div;};
|