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.
- function C_Dialog(_hPO1, _hSF, _h092){if(_hSF){C_Dialog._h741[_hSF]=_hPO1;}C_Dialog._hLX.push(_hPO1);this._hVR=false;this._hQO1=_hPO1;this._hYA=_h092?_h092:"dialogs/";this._hFE2=document.getElementById(this._hQO1);this.M_fnSuper_Show=this.F_Show;this.M_fnSuper_OnOK=this.F_OnOK;this.M_fnSuper_OnApply=this.F_OnApply;this.M_fnSuper_OnCancel=this.F_OnCancel;this.M_fnSuper_OnKeyPress=this.F_OnKeyPress;this.M_fnSuper_OnKeyDown=this.F_OnKeyDown;this.M_oInst={};};C_Dialog._hRO1=true;C_Dialog._hIA1=true;C_Dialog._hWR=2000;C_Dialog._hT8=30000;C_Dialog._h72=0;C_Dialog._hU8=[];C_Dialog._hXR=[];C_Dialog._hMX=0;C_Dialog._hNX=0;C_Dialog._h3N=null;C_Dialog._hX=null;C_Dialog._h741={};C_Dialog.F_GetDialogByExternalId=function(_h7G){var _hSO1=this._h741[_h7G];return _hSO1?window[_hSO1]:null;};C_Dialog.F_SetDefaultTitle=function(_hOX){this.prototype._hPX=_hOX;};C_Dialog.F_GetActiveDialogHandle=function(){return C_Dialog._h8G.F_Top();};C_Dialog.F_AddVisibilityListener=function(_hLN1){this._hU8.F_PushUnique(_hLN1);};C_Dialog.F_RemoveVisibilityListener=function(_hLN1){this._hU8.F_RemoveItem(_hLN1);};C_Dialog.F_AddHelpListener=function(_hLN1){this._hXR.F_PushUnique(_hLN1);};C_Dialog.F_RemoveHelpListener=function(_hLN1){this._hXR.F_RemoveItem(_hLN1);};C_Dialog.F_SetCaching=function(_hTO1){this._hRO1=_hTO1;};C_Dialog.F_SetUseXmlHttp=function(_hJA1){this._hIA1=_hJA1;};C_Dialog._hLX=[];C_Dialog.F_Detach=function(){this._hZA=null;this.F_DetachDialogs();};C_Dialog.F_DetachDialogs=function(){var _hBZ1=this._hLX.length;for(var i=0;i<_hBZ1;i++){var _h402=window[this._hLX[i]];if(_h402){if(_h402.F_Detach){_h402.F_Detach();}this._h17(_h402);if(!G_HAL.M_oBuiltInDialogs[_h402._hQO1]&&_h402._hFE2){_h402._h541=false;if(_h402._hFE2.parentNode){_h402._hFE2.parentNode.removeChild(_h402._hFE2);}_h402._hFE2=null;_h402._h27=false;G_HAL.F_RemoveFileFromLoadedList(_h402._hYA+_h402._hQO1+".xml");G_HAL.F_RemoveFilesFromLoadedList(_h402._hLD);}_h402._h4N=null;}}};C_Dialog.F_HideAnimationIsPlaying=function(){return this._h3G&&Boolean(this._h3G.M_bIsDialogHideTransfer)&&!this._h3G.F_IsComplete();};C_Dialog.F_SetHideAnimationOnComplete=function(_h931){this._h3G.F_SetOnComplete(_h931);};C_Dialog._hMH1=function(dlgid,_h8R,_hX42){G_Debug.F_Print("showDialog:"+dlgid);var doc=document;var _hC52=doc.body;if(this._h3G){this._h3G.F_Stop();this._h3G=null;}if(C_Dialog.F_IsActiveDialog(dlgid)){G_Debug.F_Print( "ERROR: Trying to show dialog that is already active [" + dlgid + "]" );G_Debug.F_Assert(false);return;}if(!_h8R){_h8R=_hC52;}var div=doc.getElementById(dlgid);var _h402=window[dlgid];if(_h402.F_Dialog_OnAvailable){_h402.F_Dialog_OnAvailable(div);}var _hQ6=div.getAttribute("HAL_visualParentRelation");var _hRU1=Boolean(_hQ6&&(_hQ6!="center"));if(!this.F_GetActiveDialogHandle()){this._h15(true, _hRU1);}var _hNH1=div.parentNode.removeChild(div);if(!this._hZA){this._hZA=doc.getElementById("divHALModalDlgTemplate");this._hZA.removeAttribute("role");this._hZA.removeAttribute("aria-label");var img=this._hZA.getElementsByTagName( "BUTTON" ).item( 0 ).getElementsByTagName( "IMG" ).item( 0 );img.setAttribute("alt", window["G_ResManager"]?G_ResManager.F_GetOptionalString( "IDS_HAL_BTN_CLOSE" ):"");}var _hKA1=this._hZA.cloneNode(true);if(div.getAttribute( "HAL_enableTabEvent" ) != "true"&&!G_HAL.M_oLibraries["hal"]["enableAccessibility"] ){_hKA1.onkeydown=U_DOM.F_StopTabKey;}_hKA1.id="";_hKA1.className="clsModalDlgWin" + ( _hRU1?"":" clsModalDlgNotPopup" );_hC52.appendChild(_hKA1);var _hLA1=G_BrowserInfo.M_bIsIE?(_hKA1.lastElementChild?_hKA1.lastElementChild:_hKA1.lastChild):_hKA1.selectSingleNode("*[last()]");_hLA1.dlgid=dlgid;_hLA1._h5N=_h8R.uniqueID;_hLA1._hQ6=_hQ6;_hLA1._hRU1=_hRU1;if(!_hRU1||G_HAL.M_oLibraries["hal"]["enableAccessibility"]){_hLA1._h37="";try{if(doc.activeElement){_hLA1._h37=doc.activeElement.uniqueID;}}catch(e){}}var _hMD=_hLA1.rows.item(0);var _h0B=_hLA1.rows.item(1);if(!_hX42&&(_hX42!=="")){_hX42=_hNH1.getAttribute("HAL_dialogTitle");if(!_hX42){var _hYR=_hNH1.getAttribute("HAL_idsDialogTitle");_hX42=_hYR?G_ResManager.F_GetString(_hYR):this.prototype._hPX;}if(!_hX42){_hX42=window["G_ResManager"]?G_ResManager.F_GetOptionalString( "IDS_HAL_APP_TITLE" ):null;}if(!_hX42){_hX42="";}}var _h502=_hMD.cells.item(0).lastChild;_h502.innerText=_hX42;_hMD.cells.item(1).firstChild.style.display="none";var btn=_hLA1.getElementsByTagName("BUTTON").item(0);btn._h402=_h402;btn.style.visibility=( _hNH1.getAttribute( "HAL_showX" )=="false" )?"hidden":"";_h0B.cells.item(0).appendChild(_hNH1);var _h841=_hNH1.getAttribute("HAL_borderStyle");if(_h841){_hLA1._h841=_h841;switch(_h841){case "none":_hMD.style.display="none";_h0B.cells.item( 0 ).style.padding="0px 0px 0px 0px";_hLA1.rows.item(_hLA1.rows.length-2).style.display="none";break;case "sizable":_hLA1.rows.item(_hLA1.rows.length-2).style.display="none";_hLA1.rows.item(_hLA1.rows.length-1).style.display="";_hLA1.className=_hLA1.className+' clsDialogAltBackgroundForResize';var _hMA1=_h402.F_GetDimensions();_hLA1.style.height=_hMA1.height+"px";_hLA1.style.width=_hMA1.width+"px";_h402._hFE2.style.height=_h402._h25(_hMA1.height)+"px";_h402._hFE2.style.width=_h402._h47(_hMA1.width)+"px";break;}}var _hSU1=_h402.F_GetIconUrl();if(!_hSU1){_hSU1=_hNH1.getAttribute("HAL_dialogIcon");}if(_hSU1){var _hAZ1=_hMD.cells.item(0).firstChild;_hAZ1.src=G_HAL.F_GetImageURL(_hSU1);_hAZ1.style.display="";}_hNH1.style.display="block";var _h941=null;if(!_h402._h541){if(window["G_ResManager"]){G_ResManager.F_ApplyResStrings(_hNH1);}U_Button.F_InitButtons(_hNH1);_h402._h541=true;_h402._h6N();_h941=_h402.F_Dialog_OnInit();}var _hNA1=this._hOA1.bind(this, dlgid, _h8R, _hX42, _h402, _hC52, _hKA1, _hLA1, _hNH1, _hRU1, _hQ6);if(_h941){_h941.then(_hNA1);}else{_hNA1();}};C_Dialog._hOA1=function(dlgid, _h8R, _hX42, _h402, _hC52, _hKA1, _hLA1, _hNH1, _hRU1, _hQ6){_h402.F_Dialog_OnBeforeVisible();if(_h402._hQX){_h402._h57=this._hPA1.bind(this, dlgid, _h8R, _hX42, _h402, _hC52, _hKA1, _hLA1, _hNH1, _hRU1, _hQ6);return;}this._hPA1(dlgid, _h8R, _hX42, _h402, _hC52, _hKA1, _hLA1, _hNH1, _hRU1, _hQ6);_h402._hHD(_hX42);};C_Dialog._hPA1=function(dlgid, _h8R, _hX42, _h402, _hC52, _hKA1, _hLA1, _hNH1, _hRU1, _hQ6){var _hTU1=_h402.F_GetDimensions();var _hUO1=(_hTU1.width>_hC52.clientWidth)?Math.F_NonNeg(_hC52.clientWidth):_hTU1.width;var _hOH1=(_hTU1.height>_hC52.clientHeight)?Math.F_NonNeg(_hC52.clientHeight):_hTU1.height;if((_hUO1!=_hTU1.width)||(_hOH1!=_hTU1.height)){_hLA1.style.height=_hOH1+"px";_hLA1.style.width=_hUO1+"px";_h402._hFE2.style.height=_h402._h25(_hOH1)+"px";_h402._hFE2.style.width=_h402._h25(_hOH1)+"px";_h402.F_SetDimensions(_hUO1, _hOH1);var _hY2=true;_h402.F_Dialog_OnResize(_h402.F_GetDialogBodyHeight(), _h402.F_GetDialogBodyWidth(), _hY2);}var _hIC2=U_DOM.F_GetRelativeOffset(_h8R, _h8R.ownerDocument.body);if(_h8R.ownerDocument!=document){var _hGE2=_h8R.ownerDocument.defaultView.frameElement;var _hVO1=U_DOM.F_GetRelativeOffset(_hGE2, _hGE2.ownerDocument.body);_hIC2.top+= _hVO1.top;_hIC2.left+= _hVO1.left;}if(_hRU1){switch(_hQ6){case "top":_hIC2.top=_hIC2.top-_hLA1.offsetHeight;break;case "bottom":_hIC2.top=_hIC2.top+_h8R.offsetHeight;break;case "right":_hIC2.left=_hIC2.left+_h8R.offsetWidth;break;case "left":_hIC2.left=_hIC2.left-_h8R.offsetWidth;break;}var _h35=_hNH1.getAttribute("HAL_visualParentOffsetTop");var _hP3=_hNH1.getAttribute("HAL_visualParentOffsetLeft");if(_h35){_hIC2.top=_hIC2.top+parseInt(_h35, 10);}if(_hP3){_hIC2.left=_hIC2.left+parseInt(_hP3, 10);}_hKA1.style.left=_hIC2.left+"px";_hKA1.style.top=_hIC2.top+"px";}else{var _h1B=(_h8R==_hC52)?_h8R.clientHeight:_h8R.offsetHeight;var _hND=(_h8R==_hC52)?_h8R.clientWidth:_h8R.offsetWidth;if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){_h1B=Math.min(_h1B, window.innerHeight);_hND=Math.min(_hND, window.innerWidth);}_hKA1.style.left=_hIC2.left+((_hND / 2)-(_hLA1.offsetWidth / 2))+ "px";_hKA1.style.top=_hIC2.top+((_h1B / 2)-(_hLA1.offsetHeight / 2))+ "px";}var _h602=U_DOM.F_GetRelativeOffset(_hKA1, _hC52);if(_h602.left<0){_hKA1.style.left=0;}else if((_h602.left+_hKA1.offsetWidth)>(_hC52.clientWidth+_hC52.scrollLeft)){_hKA1.style.left=Math.F_NonNeg((_hC52.clientWidth+_hC52.scrollLeft)-_hKA1.offsetWidth)+ "px";}if(_h602.top<0){_hKA1.style.top=0;}if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){_hKA1.style.maxHeight=window.innerHeight+"px";_hKA1.style.maxwidth=window.innerWidth+"px";_hKA1.style.overflow="auto";}var _h5J=_hNH1.getAttribute("HAL_initiallyHidden");_hKA1.style.visibility="hidden";if(!this._h3N){this._h3N=_hC52.appendChild(document.createElement("DIV"));this._h3N.onkeydown=U_DOM.F_StopTabKey;this._h3N.className="clsDialogBlocker";}var _hZR=U_Dialog.F_GetHighestZIndex();C_Dialog._h8G.F_SetActiveDialog(_hLA1);this._h3N.style.zIndex=Math.max(1000, _hZR+1);_hKA1.style.zIndex=parseInt(this._h3N.currentStyle.zIndex)+1;this._hQA1( _h402._hWO1||( _hNH1.getAttribute( "HAL_useLightBox" )=="true" ) );this.F_SetBlockerCursor(_h402._h0S);this._h3N[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"onmousedown"]=null;if(G_BrowserInfo.M_bIsTouchDevice){_hLA1[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"ontouchstart"]=this._hA41;}else{_hLA1[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"onmousedown"]=this._hP91;}var _h6J=this._h1S.bind(this, _h402, _hLA1._hRU1);if(this._h71(_hLA1, _hNH1)){if(this._h3G){this._h3G.F_Stop();}var fn=this._hW4.bind(this, _hKA1, _h6J);var _hRX=C_Transfer.K_iFromRelationCenter;var _hRA1=C_Transfer.K_iToRelationDefault;switch(_hQ6){case "top":_hRX=C_Transfer.K_iFromRelationTop;break;case "bottom":_hRX=C_Transfer.K_iFromRelationBottom;break;case "right":_hRX=C_Transfer.K_iFromRelationRight;break;case "left":_hRX=C_Transfer.K_iFromRelationLeft;break;}var _hOD=null;var _hSA1=C_Dialog._h8G.F_GetLength();var _hS52=_h8R||((_hSA1>1)?C_Dialog._h8G.F_Get(_hSA1-2).parentNode:document.body);var _h9G=G_HAL.M_oLibraries["hal"][ (_hRU1?"transferPopupDialogFrameborderClass":"transferDialogFrameborderClass") ];this._h3G=new C_Transfer(_hS52, _hKA1, _hRX, _hRA1, true, "clsDialogTransferProxy", _h9G, _hOD, fn, _hLA1._hRU1?100:200);this._h3G.F_Play();}else{_hKA1.style.visibility=( _h5J!="true" )?"visible":"hidden";setTimeout(_h6J, 0);}if(G_HAL.M_oLibraries["hal"]["iframeUnderlay"]){var _hUU1=_hC52.appendChild(document.createElement("IFRAME"));_hUU1.src=G_HAL.F_GetFileURL("hal/blank.htm");_hUU1.style.position="absolute";_hUU1.id=dlgid+"__IFRAME__";_hUU1.frameBorder="no";_hUU1.style.border="none";_hUU1.style.backgroundColor="white";this.F_UpdateIFramePositions();}if(_h402._h45){_h402._h45();_h402._h45=null;}};C_Dialog._h1S=function(_h402,_hRU1){_h402._hPD();if(_hRU1){this._h3N[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"onmousedown"]=this._h7J.bind(this);if(_h402.F_Dialog_OnAutoHide){this._h3N[G_BrowserInfo.M_bIsPointerEnabled?"onpointermove":"onmousemove"]=_h402.F_Dialog_OnAutoHide.bind(this);}}};C_Dialog._hW4=function(_hKA1,_hV8){_hKA1.style.visibility="visible";setTimeout(_hV8, 0);};C_Dialog.prototype.F_WaitOnMultipleEvents=function(_hSX,_hPH1){this._h45=_hPH1;this._hQX=_hSX;for(var i=0;i<this._hQX.length;i++){this._hQX[i].F_SetListener(this);}};C_Dialog.prototype.F_Notify=function(_hT52){this._hQX.F_RemoveItem(_hT52);if(this._hQX.length==0){this._hQX=null;this._h57();}};C_Dialog.prototype.F_ResizeTo=function(_hQH1,_hTA1){if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}var tbl=this._hFE2.parentNode.parentNode.parentNode.parentNode;var _hB41=this._hQ3(_hQH1);var _hTX=this._hZ2(_hTA1);this.F_SetDimensions(_hB41, _hTX);tbl.style.height=_hTX+"px";tbl.style.width=_hB41+"px";this._hFE2.style.height=_hTA1+"px";this._hFE2.style.width=_hQH1+"px";};C_Dialog.F_UpdateIFramePositions=function(){if(G_HAL.M_oLibraries["hal"]["iframeUnderlay"]){var _hSA1=C_Dialog._h8G.F_GetLength();for(var i=0;i<_hSA1;i++){var _hLA1=C_Dialog._h8G.F_Get(i);var _hKA1=_hLA1.parentNode;var _hUU1=document.getElementById(_hLA1.dlgid+"__IFRAME__");_hUU1.style.top=_hKA1.style.top;_hUU1.style.left=_hKA1.style.left;_hUU1.height=_hKA1.offsetHeight;_hUU1.width=_hKA1.offsetWidth;}}};C_Dialog._h7J=function(){var doc=document;var _hLA1=C_Dialog._h8G.F_Top();if(!_hLA1){G_Debug.F_Print( "ERROR: C_Dialog._h7J - no active dialog to hide." );return;}if((_hLA1.dlgid=="D_Progress")&&D_Progress.M_bHalDialogLoadingProgress){G_HAL.F_AlertError( "You are trying to hide the progress dialog displayed by C_Dialog." );}var _hKA1=_hLA1.parentNode;_hLA1[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"onmousedown"]=null;var _h2S=_hLA1.rows.item(1).cells.item(0);_hLA1.getElementsByTagName("BUTTON").item(0)._h402=null;var _h402=window[_hLA1.dlgid];var _hRU1=Boolean(_hLA1._hRU1);var _hNH1=_h2S.firstChild;if(this._h71(_hLA1, _hNH1)){if(this._h3G){this._h3G.F_Stop();}var _hRX=C_Transfer.K_iFromRelationDefault;var _hRA1=C_Transfer.K_iToRelationCenter;switch(_hLA1._hQ6){case "top":_hRA1=C_Transfer.K_iToRelationTop;break;case "bottom":_hRA1=C_Transfer.K_iToRelationBottom;break;case "right":_hRA1=C_Transfer.K_iToRelationRight;break;case "left":_hRA1=C_Transfer.K_iToRelationLeft;break;}var _hPC2=_hLA1._h5N?document.getElementById(_hLA1._h5N):null;if(!_hPC2){var _hSA1=C_Dialog._h8G.F_GetLength();_hPC2=(_hSA1>1)?C_Dialog._h8G.F_Get(_hSA1-2).parentNode:_hKA1;}var _h9G=G_HAL.M_oLibraries["hal"][ (_hRU1?"clsDisplayNone":"transferDialogFrameborderClass") ];this._h3G=new C_Transfer(_hKA1, _hPC2, _hRX, _hRA1, true, "clsDialogTransferProxy", _h9G, null, null, 100);this._h3G.M_bIsDialogHideTransfer=true;this._h3G.F_Play();}_h402.F_Dialog_OnBeforeHide();_hKA1.style.visibility="hidden";if(G_HAL.M_oLibraries["hal"]["iframeUnderlay"]){var _hUU1=doc.getElementById(_hLA1.dlgid+"__IFRAME__");_hUU1.parentNode.removeChild(_hUU1);}var _hNH1=_h2S.firstChild;_hNH1.style.display="none";doc.body.appendChild(_h2S.removeChild(_hNH1));doc.body.removeChild(_hKA1);if(!_hRU1||G_HAL.M_oLibraries["hal"]["enableAccessibility"]){var _h7N=C_Dialog._h8G.F_Top()._h37;C_Dialog._h8G.F_Top()._h37="";var _h8J=_h7N?doc.getElementById(_h7N):null;if(_h8J&&_h8J.focus){if ( _h8J.style&&((_h8J.style.display=="none" )||( _h8J.style.visibility=="hidden" ) ) ){U_DOM.F_SetActiveOrFocus(doc.body);}else{try{U_DOM.F_SetActiveOrFocus(_h8J);}catch(e){}}}_h8J=null;}this._hAG(_h402, _hRU1);};C_Dialog._h71=function(_hLA1,_hNH1){return(G_HAL.M_oLibraries["hal"]["enableDialogShowAnimation"] &&( _hNH1.getAttribute( "HAL_enableDialogShowAnimation" ) != "false" ) &&( _hNH1.getAttribute( "HAL_initiallyHidden" ) != "true" ) );};C_Dialog._h15=function(_hBG,_hRU1,_hUX){this._hU8.F_CallEach("F_Dialog_OnVisibilityChange", Boolean(_hBG), Boolean(_hRU1), _hUX);};C_Dialog._h9J=function(_hC41,_hRU1,_hUX){var _hRH1=_hC41?window[_hC41.dlgid]:null;this._hU8.F_CallEach("F_Dialog_OnDialogHide", _hRH1, Boolean(_hRU1), _hUX);};C_Dialog._hAG=function(_h402,_hRU1){this.F_SetBlockerCursor("default");C_Dialog._h8G.F_RemoveTopMostModal();var _hC41=C_Dialog._h8G.F_Top();if(_hC41){this._h3N[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"onmousedown"]=null;this._h3N[G_BrowserInfo.M_bIsPointerEnabled?"onpointermove":"onmousemove"]=null;this._h3N.style.zIndex=(parseInt(_hC41.parentNode.currentStyle.zIndex,10)-1);}else{this._h15(false, _hRU1, _h402);this._h3N.parentNode.removeChild(this._h3N);this._h3N=null;}if ((_h402._hQO1!="D_Progress" )&&( _h402._hQO1 != "D_ScriptLoader" ) ){this._h9J(_hC41, _hRU1, _h402);}if(this._hX){if(this._hX.F_Dialog_OnCommit){this._hX.F_Dialog_OnCommit(_h402);}this._hX=null;}if(G_HAL.M_oTestListener&&G_HAL.M_oTestListener.F_Dialog_OnAfterHide){G_HAL.M_oTestListener.F_Dialog_OnAfterHide(_h402._hQO1);}_h402.F_Dialog_OnAfterHide();if(_hC41){var _hRH1=window[_hC41.dlgid];_hRH1.F_Dialog_UpdateTopDialogAfterHide();}this._h17(_h402);};C_Dialog._h17=function(_h402){var _hJ92=_h402.M_oInst;for(var s in _hJ92){var v=_hJ92[s];if(v&&v.F_Detach){v.F_Detach();}}_h402.M_oInst={};};C_Dialog._hXO1=function(e){var el=e.target;el=U_DOM.F_GetElementNotInShadowDom(el);while(el){if(el.classList&&( el.classList.contains( "clsModalDlg" )||el.classList.contains( "clsModalDlgHeader_active" )||el.classList.contains( "clsModalDlgHeader_inactive" ) ) ){break;}el=el.parentNode;}return el;};C_Dialog._hP91=function(e){if(G_HAL.M_oTestListener&&G_HAL.M_oTestListener.F_Dialog_OnMouseDown){G_HAL.M_oTestListener.F_Dialog_OnMouseDown(e, this);}var el=C_Dialog._hXO1(e);if(el&&(this==C_Dialog.F_GetActiveDialogHandle())){var tbl=C_Dialog.F_GetActiveDialogHandle();var _h402=C_Dialog.F_GetDialogInstance(tbl);var _hU52=_h402.F_IsFixedPosition();if(!_hU52&&(e.button==U_DOM.K_iLeftMouseButton)&&(U_DOM.F_GetFirstClassName(el)=="clsModalDlgHeader_active")){var div=tbl.parentNode;var _hC52=div.ownerDocument.body;C_Dialog._hMX=e.clientX+_hC52.scrollLeft-div.offsetLeft;C_Dialog._hNX=e.clientY+_hC52.scrollTop-div.offsetTop;G_HAL.F_VerifyDependencies("G_DragDrop");var o={};o.tbl=tbl;o._h702=C_Dialog;G_DragDrop.F_Start(null, G_DialogMover, o, G_DragDrop.eEffectMove, e.button, null, null, null, null);}}};C_Dialog._hA41=function(e){var el=C_Dialog._hXO1(e);if(el&&(this==C_Dialog.F_GetActiveDialogHandle())){if(U_DOM.F_GetFirstClassName(el)=="clsModalDlgHeader_active"){e.preventDefault();var tbl=C_Dialog.F_GetActiveDialogHandle();var div=tbl.parentNode;var _hC52=div.ownerDocument.body;C_Dialog._hMX=e.touches[0].clientX+_hC52.scrollLeft-div.offsetLeft;C_Dialog._hNX=e.touches[0].clientY+_hC52.scrollTop-div.offsetTop;var _hIC2=U_DOM.F_GetRelativeOffset(div, document.body);C_Dialog._hD41=_hIC2.left;C_Dialog._hE41=_hIC2.top;G_HAL.F_VerifyDependencies("G_DragDrop");var o={};o.tbl=tbl;o._h702=C_Dialog;G_DragDrop.F_Start(null, G_DialogMover, o, G_DragDrop.eEffectMove, e.button, null, null, null, null);}}};C_Dialog._hW8=function(tbl,_hYO1){var nl=tbl.getElementsByTagName("BUTTON");if((nl.length>0)&&(nl.item(0).className.indexOf("clsXButton")!=-1)){var _hQC2=nl.item(0);_hQC2.className=_hYO1?"clsXButton_active":"clsXButton_inactive";var tr=_hQC2.parentNode.parentNode;U_DOM.F_SetFirstClassName(tr, _hYO1?"clsModalDlgHeader_active":"clsModalDlgHeader_inactive");tr.cells.item( 0 ).className=_hYO1?"clsModalDlgHeaderTitle_active clsModalDlgHeaderTitleFirstCell_active":"clsModalDlgHeaderTitle_inactive clsModalDlgHeaderTitleFirstCell_inactive";tr.cells.item( 1 ).className=_hYO1?"clsModalDlgHeaderTitle_active clsModalDlgHeaderTitleLastCell_active":"clsModalDlgHeaderTitle_inactive clsModalDlgHeaderTitleLastCell_inactive";}};C_Dialog._h3S=function(_hPO1){C_Dialog._hX.F_Dialog_OnCommit(window[_hPO1]);C_Dialog._hX=null;};C_Dialog._h8N=function(e,_h802){var tbl=_h802.parentNode.parentNode.parentNode.parentNode;var div=tbl.parentNode;var o={};o.tbl=tbl;o.clientX=(div.offsetTop+div.offsetHeight)-((G_BrowserInfo.M_bIsTouchDevice&&!G_BrowserInfo.M_bIsPointerEnabled)?e.touches[0]:e).clientY;o.clientY=(div.offsetLeft+div.offsetWidth)-((G_BrowserInfo.M_bIsTouchDevice&&!G_BrowserInfo.M_bIsPointerEnabled)?e.touches[0]:e).clientX;o._h702=C_Dialog;G_HAL.F_VerifyDependencies("G_DragDrop");G_DragDrop.F_Start(null, G_DialogResizeHandler, o, G_DragDrop.eEffectMove, e.button, null, null, null, null);};C_Dialog.F_GetDialogInstance=function(tbl){return window[ tbl.dlgid ];};C_Dialog.prototype.F_Show=function(_h8R,_hOM,_hX42,_h4S,_hZO1){var _h402=this;_h402._hWO1=Boolean(_hZO1);_h402._h0S=_h4S?_h4S:"default";this._h9N=_hOM;if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}if(!this._hFE2){G_HAL.F_VerifyDependencies("G_ResManager");if(!C_Dialog._hVU1){C_Dialog._hVU1=G_ResManager.F_GetOptionalString("IDS_HAL_DLG_LOADING");if(!C_Dialog._hVU1){C_Dialog._hVU1="Loading dialog...";}}var _h902=this._hAN?this.F_GetResource(this._hQO1):G_ResManager.F_GetResource(this._hQO1);if(!_h902){if(this._h27){G_HAL.F_AlertError( "Dialog resource not found:" + this._hQO1 );C_Dialog._h82();return;}this._h27=true;C_Dialog._h55=true;C_Dialog._h03=this._hQO1;C_Dialog._h92();C_Dialog._hCG=_h402.M_fnSuper_Show.bind(_h402, _h8R, _hOM, _hX42, _h4S, _hZO1);G_ResManager.F_LoadResources([ this._hYA+this._hQO1+".xml" ], C_Dialog);return false;}var _h5S=_h902.getAttribute("progressDelay");var _hX8=_h902.getAttribute("progressCancelDelay");var _hUA1=_h902.getAttribute("idsLoading");var _hK92=_h902.selectSingleNode("dialogHtml");if(!_hK92){G_HAL.F_AlertError( "Dialog [" + this._hQO1 + "] missing required dialogHtml element." );}var div=document.body.appendChild(document.createElement('DIV'));var _h192=_hK92.text.replace( / (?:HAL_dlgItemId|HAL_testId)=['"]([^'"]*)['"]/g, ' id="' + this._hQO1 + '_$1"' );_h192=_h192.replace( / HAL_dlgItemFor=['"]([^'"]*)['"]/g, ' for="' + this._hQO1 + '_$1"' );_h192=_h192.replace( / HAL_dlgItemName=['"]([^'"]*)['"]/g, ' name="' + this._hQO1 + '_$1"' );_h192=_h192.replace( / HAL_src=['"]([^'"]*)['"]/g,function(s1,s2){ return ' src="' + G_HAL.F_GetImageURL( s2 ) + '"'; } );_h192=this._h6(_h192);U_DOM.F_CheckForWellFormedDiv( _h192.replace( / xlink\:/g, " " ), this._hQO1 );div.innerHTML=_h192;var _h0P1=div.getElementsByTagName("DIV").item(0);_h0P1.id=this._hQO1;if(_h0P1.className!="clsDialog"){_h0P1.className="clsDialog";}var nl=_h902.selectNodes( "@borderStyle | @idsDialogTitle | @dialogTitle | @dialogIcon | @visualParentRelation | @visualParentOffsetTop | @visualParentOffsetLeft | @startupHeight | @startupWidth | @helpId | @helpUrl | @showX | @initiallyHidden | @enableDialogShowAnimation | @useLightBox | @enableTabEvent" );var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var _hL92=nl.item(i);_h0P1.setAttribute("HAL_"+_hL92.name, _hL92.value);}U_Dialog.F_TemporaryFixForDblClickInStandardsMode(_h0P1);if(window["U_CoolButton"]){U_CoolButton.F_InitCoolButtons(_h0P1);}_h0P1.tabIndex=-1;this._hFE2=_h0P1;var _hVX=_h902.selectSingleNode("inlineScript");if(_hVX){U_DOM.F_AddScript(_hVX.text);}var nl=_h902.selectNodes( "externalScripts/externalScript/@src | externalScripts/externalScript/src" );if(nl.length>0){var _hSH1=this._hY8(nl);if(_hSH1.length>0){C_Dialog._h92(_h5S, _hX8, _hUA1);if(!C_Dialog._hCG){C_Dialog._hCG=_h402.M_fnSuper_Show.bind(_h402, _h8R, _hOM, _hX42, _h4S, _hZO1);}C_Dialog._h72++;G_HAL.F_VerifyDependencies("C_MultiScriptRequest");C_Dialog._h81=new C_MultiScriptRequest(C_Dialog, _hSH1, null, C_Dialog._hRO1, C_Dialog._hIA1);setTimeout(C_Dialog._h81.F_Send.bind(C_Dialog._h81), 0);}}var nl=_h902.selectNodes( "externalResources/externalResource/@src | externalResources/externalResource/src" );if(nl.length>0){this._hLD=this._hY8(nl);var _hSH1=G_HAL.F_GetFilesNotLoaded(this._hLD);if(_hSH1.length>0){C_Dialog._h92(_h5S, _hX8, _hUA1);if(!C_Dialog._hCG){C_Dialog._hCG=_h402.M_fnSuper_Show.bind(_h402, _h8R, _hOM, _hX42, _h4S, _hZO1);}C_Dialog._h72++;setTimeout(G_ResManager.F_LoadResources.bind(G_ResManager, _hSH1, C_Dialog), 0);}}var nl=_h902.selectNodes( "externalStringTables/externalStringTable/@src | externalStringTables/externalStringTable/src" );if(nl.length>0){var _hSH1=this._hY8(nl);if(_hSH1.length>0){C_Dialog._h92(_h5S, _hX8, _hUA1);if(!C_Dialog._hCG){C_Dialog._hCG=_h402.M_fnSuper_Show.bind(_h402, _h8R, _hOM, _hX42, _h4S, _hZO1);}C_Dialog._h72++;setTimeout(G_ResManager.F_LoadStrings.bind(G_ResManager, _hSH1, C_Dialog), 0);}}if(C_Dialog._h72>0){return false;}G_ResManager.F_ApplyResStrings(this._hFE2);}if(!G_HAL.M_oBuiltInDialogs[this._hQO1]){C_Dialog._h82();}C_Dialog._hMH1(this._hQO1, _h8R, _hX42);};C_Dialog.prototype._hY8=function(nl){var a=[];for(var i=0;i<nl.length;i++){var n=nl.item(i);a.push((n.nodeType==U_XML.K_iNODE_ELEMENT)?this._h2B(n):n.value);}return G_HAL.F_GetFilesNotLoaded(a);};C_Dialog.prototype._h2B=function(_hRC2){var s="";for(var n=_hRC2.firstChild;n;n=n.nextSibling){if(n.nodeName=="#text"){s+= n.nodeValue;}else if(n.nodeName=="srcParam"){var fn=new Function( "_hPO1", "return " + n.getAttribute( "value" ) );s+= fn(this._hQO1);}}return s;};C_Dialog._h67=function(){if(this._h81){this._h81.F_Abort();}this._h81=null;G_ResManager.F_AbortLoadStrings();G_ResManager.F_AbortLoadResources();this._h72=0;this._hCG=null;window[this._h03]._h27=false;this._h03=null;this._h82();};C_Dialog._h92=function(_h5S,_hX8,_hUA1){if(!D_Progress.F_IsActiveDialog()){D_Progress.M_bHalDialogLoadingProgress=true;D_Progress.F_Show(null, _hUA1?G_ResManager.F_GetString(_hUA1):this._hVU1, this._h67.bind(this), _h5S?parseInt(_h5S, 10):this._hWR, _hX8?parseInt(_hX8, 10):this._hT8);}};C_Dialog._h82=function(){var b=D_Progress.M_bHalDialogLoadingProgress;D_Progress.M_bHalDialogLoadingProgress=false;if(D_Progress.F_IsActiveDialog()){if(!b){G_HAL.F_AlertError( "C_Dialog is hiding a progress dialog that it didn't show." );}D_Progress.F_Hide();}else if(b){G_HAL.F_AlertError( "C_Dialog progress dialog was not hidden by C_Dialog." );}};C_Dialog.F_IsActiveDialog=function(_hPO1){var _hHE2=this.F_GetActiveDialogHandle();return(Boolean(_hHE2)&&(_hHE2.dlgid==_hPO1));};C_Dialog.F_ResManager_OnStringsLoaded=function(_hV52){if(!(--C_Dialog._h72)){this._hBN();}};C_Dialog.F_ResManager_OnResourcesLoaded=function(_hV52){if(this._h55){this._h55=false;this._hBN();}else if(!(--C_Dialog._h72)){this._hBN();}};C_Dialog.F_Request_OnComplete=function(_hWU1){switch(_hWU1.constructor){case C_MultiScriptRequest:var _hW52=_hWU1.F_GetError();if(_hW52){G_HAL.F_AlertError( "External script file load failed:\r\n\r\n" + _hW52.F_GetErrorSummary() + "\r\n" + _hW52.F_GetErrorDetails() );}if(!(--C_Dialog._h72)){this._hBN();}break;}};C_Dialog._hBN=function(){if(this._hCG()!==false){this._hCG=null;}};C_Dialog.F_ShowDetailedMsgWindow=function(_hBC2,_hX42,_hXU1,_hZ82){if(!_hX42){_hX42=window["G_ResManager"]?G_ResManager.F_GetOptionalString( "IDS_HAL_APP_TITLE" ):"";}if(!_hZ82){_hZ82=D_MsgBox.K_iWarning;}var _h292="";switch(_hZ82){case D_MsgBox.K_iInformation:_h292=G_HAL.M_sImagePath+"icon_information.gif";break;case D_MsgBox.K_iWarning:_h292=G_HAL.M_sImagePath+"icon_warning.gif";break;case D_MsgBox.K_iError:_h292=G_HAL.M_sImagePath+"icon_error.gif";break;}var _hIE2=window["G_ResManager"]?G_ResManager.F_GetOptionalString( "IDS_HAL_BTN_OK" ):null;var _hTH1='';if(_hXU1!=""){_hTH1='<tr><td style="padding:7px; height:100%">' +'<textarea class="clsDetailMsgTextarea" readOnly="true">' + _hXU1.F_HTMLEncode() + '</textarea>' +'</td></tr>';}var _hA02 ='<div class="clsDialog" style="height:100%; width:100%; display:block">' +'<table role="presentation" class="clsDialogText" style="height:100%; width:100%; padding:4px" cellpadding="0" cellspacing="0">' +'<tr>'+'<td style="padding:7px 7px 0px 7px">' +'<table role="presentation" class="clsDialogText" style="width:100%" cellpadding="0" cellspacing="0">' +'<tr style="vertical-align:top">' +'<td>'+'<img style="height:32px; width:32px" src="' + _h292 + '"/>' +'</td>'+'<td style="width:100%; padding-left:7px; padding-top:7px">' +_hBC2.F_HTMLEncode()+'</td>'+'</tr>'+'</table>'+'</td>'+'</tr>'+_hTH1+'<tr>'+'<td style="padding:0px 7px 7px 0px">' +'<div class="clsDlgMsgBoxButtonBar" style="text-align:right">' +('<button class="clsDlgButton" onclick="window.close()">' + ( _hIE2?_hIE2.F_HTMLEncode():"OK") + '</button>') +'</div>'+'</td>'+'</tr>'+'</table>'+'</div>';var _hMZ1=_hXU1==""?150:350;U_DOM.F_ShowChildWindow(_hA02, _hX42, "", new C_Dimension(_hMZ1, 500), null, true, true, true);};C_Dialog.prototype._hQ3=function(_hQH1){if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}var tbl=this._hFE2.parentNode.parentNode.parentNode.parentNode;var td1=tbl.rows.item(1).cells.item(0);var _hQD =_hQH1+parseInt(td1.currentStyle.paddingLeft)+parseInt(td1.currentStyle.paddingRight)+U_DOM.F_GetHorizontalBorderWidth(tbl)+U_DOM.F_GetHorizontalPadding(tbl);return _hQD;};C_Dialog.prototype._h47=function(_hB41){if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}var tbl=this._hFE2.parentNode.parentNode.parentNode.parentNode;var td1=tbl.rows.item(1).cells.item(0);var _hAJ =Math.F_NonNeg(_hB41-parseInt(td1.currentStyle.paddingLeft)-parseInt(td1.currentStyle.paddingRight)-U_DOM.F_GetHorizontalBorderWidth(tbl)-U_DOM.F_GetHorizontalPadding(tbl));return _hAJ;};C_Dialog.prototype.F_GetDialogBodyWidth=function(){var _hB41=this.F_GetDimensions().width;return this._h47(_hB41);};C_Dialog.prototype.F_GetMinimumDialogBodyWidth=function(){return 0;};C_Dialog.prototype._hZ2=function(_hTA1){if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}var tbl=this._hFE2.parentNode.parentNode.parentNode.parentNode;var td0=tbl.rows.item(0).cells.item(0);var td1=tbl.rows.item(1).cells.item(0);var td2=tbl.rows.item(2).cells.item(0);var td3=tbl.rows.item(3).cells.item(0);var _h3B =_hTA1+U_DOM.F_GetVerticalBorderWidth(tbl)+U_DOM.F_GetVerticalPadding(tbl)+td0.offsetHeight+parseInt(td1.currentStyle.paddingTop)+parseInt(td1.currentStyle.paddingBottom)+td2.offsetHeight+td3.offsetHeight;return _h3B;};C_Dialog.prototype._h25=function(_hTX){if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}var tbl=this._hFE2.parentNode.parentNode.parentNode.parentNode;var td0=tbl.rows.item(0).cells.item(0);var td1=tbl.rows.item(1).cells.item(0);var td2=tbl.rows.item(2).cells.item(0);var td3=tbl.rows.item(3).cells.item(0);var _hDG=Math.F_NonNeg(_hTX-U_DOM.F_GetVerticalBorderWidth(tbl)-U_DOM.F_GetVerticalPadding(tbl)-td0.offsetHeight-parseInt(td1.currentStyle.paddingTop)-parseInt(td1.currentStyle.paddingBottom)-td2.offsetHeight-td3.offsetHeight);return _hDG;};C_Dialog.prototype.F_GetDialogBodyHeight=function(){var _hTX=this.F_GetDimensions().height;return this._h25(_hTX);};C_Dialog.prototype.F_GetMinimumDialogBodyHeight=function(){return 0;};C_Dialog.prototype.F_Hide=function(){if(this.F_IsActiveDialog()){C_Dialog._h7J();}else{G_HAL.F_AlertError( "Hiding inactive dialog:" + this._hQO1 );}};C_Dialog.prototype.F_SetIconUrl=function(s){this._hYU1=s;};C_Dialog.prototype.F_GetIconUrl=function(){return this._hYU1;};C_Dialog.prototype.F_SetFixedPosition=function(_h6S){this._hVR=_h6S;};C_Dialog.prototype.F_IsFixedPosition=function(){return this._hVR;};C_Dialog.prototype.F_Dialog_OnInit=function(){return null;};C_Dialog.prototype.F_Detach=function(){};C_Dialog.prototype.F_Dialog_OnBeforeVisible=function(){};C_Dialog.prototype.F_SetFocusToDefaultButton=function(){if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}var nl=this._hFE2.getElementsByTagName("BUTTON");var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var btn=nl.item(i);if(btn.getAttribute( "HAL_isDefault" )=="true"&&!btn.disabled ){setTimeout(U_DOM.F_SetActiveOrFocus.bind(U_DOM, document.getElementById(btn.uniqueID)), 0);return;}}if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]&&this._hQO1 != "D_Explorer" ){if(!this._hFE2.contains(document.activeElement)){setTimeout(U_DOM.F_SetActiveOrFocus.bind(U_DOM, U_Accessibility.F_GetFirstFocus(this._hFE2)||this._hFE2), 0);}}};C_Dialog.prototype._hPD=function(){if(!this.F_IsActiveDialog()){return;}this.F_Dialog_OnAfterVisible();this.F_SetFocusToDefaultButton();if(G_HAL.M_oTestListener&&G_HAL.M_oTestListener.F_Dialog_OnAfterVisible){G_HAL.M_oTestListener.F_Dialog_OnAfterVisible(this._hQO1);}};C_Dialog.prototype.F_Dialog_OnAfterVisible=function(){};C_Dialog.prototype.F_Dialog_OnBeforeHide=function(){};C_Dialog.prototype.F_Dialog_OnAfterHide=function(){};C_Dialog.prototype.F_OnOK=function(){var _hOM=this._h9N;if(_hOM){if(_hOM.F_Dialog_OnOK&&(_hOM.F_Dialog_OnOK(window[this._hQO1])==false)){return;}this._h9N=null;if(_hOM.F_Dialog_OnCommit){C_Dialog._hX=_hOM;}}this.F_Hide();};C_Dialog.prototype.F_OnApply=function(){if(this._h9N&&this._h9N.F_Dialog_OnCommit){this._h9N.F_Dialog_OnCommit(window[this._hQO1]);}};C_Dialog.prototype.F_OnCancel=function(){var _hOM=this._h9N;this._h9N=null;if(_hOM&&_hOM.F_Dialog_OnCancel){_hOM.F_Dialog_OnCancel(window[this._hQO1]);}this.F_Hide();};C_Dialog._hUH1=function(_hB02){var _hNH1=this.F_GetActiveDialogHandle().rows.item(1).cells.item(0).firstChild;if(_hNH1.getAttribute("HAL_helpUrl")){this._hXR.F_CallEach( "F_Dialog_OnHelpUrl", _hNH1.getAttribute( "HAL_helpUrl" ) );return;}this._hXR.F_CallEach("F_Dialog_OnHelp", _hB02);};C_Dialog.prototype.F_FireOnHelp=function(_hB02){C_Dialog._hUH1(_hB02?_hB02:this.F_GetHelpId());};C_Dialog.prototype.F_GetHelpId=function(){if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}return this._hFE2.getAttribute("HAL_helpId");};C_Dialog.prototype.F_GetHelpUrl=function(){if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}return this._hFE2.getAttribute("HAL_helpUrl");};C_Dialog.prototype.F_OnKeyPress=function(e){if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return;}e.stopPropagation();switch(e.keyCode){case U_DOM.K_iKeyEnter:e.preventDefault();var _hM92=this.F_GetDlgItem("btnOK");if(!_hM92||!_hM92.disabled){setTimeout(this._hQO1+".F_OnOK()", 0);}break;case U_DOM.K_iKeyEscape:e.preventDefault();this.F_OnCancel(e);break;}};C_Dialog.prototype.F_OnKeyDown=function(e){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return;}switch(e.keyCode){case U_DOM.K_iKeyEscape:U_DOM.F_CancelEvent(e);this.F_OnCancel(e);break;case U_DOM.K_iKeyTab:var _hF41=U_Accessibility.F_GetFirstFocus(this._hFE2);var _hVA1=U_Accessibility.F_GetLastFocus(this._hFE2);if(!e.shiftKey&&e.target==_hVA1){U_DOM.F_CancelEvent(e);_hF41.focus();if(_hF41.nodeName=="INPUT"&&_hF41.getAttribute( "type" )=="text" ){_hF41.select();}}else if(e.shiftKey&&e.target==_hF41){U_DOM.F_CancelEvent(e);_hVA1.focus();if(_hVA1.nodeName=="INPUT"&&_hVA1.getAttribute( "type" )=="text" ){_hVA1.select();}}break;case U_DOM.K_iKeySpace:case U_DOM.K_iKeyEnter:if(e.target.nodeName!="INPUT"&&e.target.nodeName != "BUTTON"&&e.target.nodeName != "TEXTAREA" ){U_DOM.F_CancelEvent(e);U_Accessibility.F_SimulateMouseClick(e.target, U_DOM.K_iLeftMouseButton, e.ctrlKey, e.shiftKey);}break;}};C_Dialog.prototype.F_Dialog_OnResize=function(_h7S,_hWX,_hY2){};C_Dialog.prototype.F_GetDimensions=function(){if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}return new C_Dimension( this._hFE2.getAttribute( "HAL_startupHeight" ), this._hFE2.getAttribute( "HAL_startupWidth" ) );};C_Dialog.prototype.F_SetDimensions=function(_h852,_hMZ1){if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}this._hFE2.setAttribute("HAL_startupHeight", _hMZ1);this._hFE2.setAttribute("HAL_startupWidth", _h852);};C_Dialog.prototype.F_GetResource=function(_hJE2){return this._hAN ?this._hAN.selectSingleNode( ".//*[@id='" + _hJE2 + "'][not(ancestor::xmlFragment)]" ):G_ResManager.F_GetResource(this._hQO1+"_" + _hJE2);};C_Dialog.prototype.F_SetDialogResource=function(n){this._hAN=n;};C_Dialog.prototype.F_SetButtonEnabled=function(_hAE2,_hFU1,_hX52){U_DOM.F_SetButtonEnabledFromButton(this.F_GetDlgItem(_hAE2), _hFU1, _hX52);};C_Dialog.prototype.F_SetRadioButtonEnabled=function(_hAE2,_hFU1){U_DOM.F_SetRadioButtonEnabled(this.F_GetDlgItem(_hAE2), _hFU1);};C_Dialog.prototype.F_SetCheckboxEnabled=function(_hAE2,_hFU1){U_DOM.F_SetCheckboxEnabled(this.F_GetDlgItem(_hAE2), _hFU1);};C_Dialog.prototype.F_SetTextEnabled=function(_hAE2,_hFU1){U_DOM.F_SetTextEnabled(this.F_GetDlgItem(_hAE2), _hFU1);};C_Dialog.prototype.F_SetTextInputEnabled=function(_hAE2,_hFU1){U_DOM.F_SetTextInputEnabled(this.F_GetDlgItem(_hAE2), _hFU1);};C_Dialog.prototype.F_GetDlgItem=function(_hAE2){return document.getElementById(this.F_GetDlgItemHtmlId(_hAE2));};C_Dialog.prototype.F_GetDlgItemHtmlId=function(_hAE2){if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}return this._hFE2.id+"_" + _hAE2;};C_Dialog.prototype.F_GetDlgItemId=function(el){return el.id.substr((this._hQO1+"_").length);};C_Dialog.prototype.F_GetDialogWindow=function(){if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}return this._hFE2.parentNode.parentNode.parentNode.parentNode.parentNode;};C_Dialog.prototype.F_GetDialogClientArea=function(){if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}return this._hFE2;};C_Dialog.prototype.F_DialogIsLoaded=function(){return Boolean(this._hFE2);};C_Dialog.prototype.F_EnsureDialogIsVisible=function(){if(!this._hFE2){this._hFE2=document.getElementById(this._hQO1);}U_Dialog.F_KeepDialogVisible(this._hFE2.parentNode.parentNode.parentNode.parentNode);};C_Dialog.prototype.F_IsActiveDialog=function(){return C_Dialog.F_IsActiveDialog(this._hQO1);};C_Dialog.prototype.F_HideDialogElements=function(_hCN){this._h4N=_hCN;};C_Dialog.prototype._h6N=function(){if(this._h4N){for(var i=0; i<this._h4N.length;++i){var _hZE2=this.F_GetDlgItem(this._h4N[i]);if(_hZE2){_hZE2.style.display="none";}}}};C_Dialog._hQA1=function(b){if(this._h3N){var _hY52=b?"clsDialogBlocker clsLightBox":"clsDialogBlocker";if(this._h3N.className!=_hY52){this._h3N.className=_hY52;}}};C_Dialog.F_SetBlockerCursor=function(_hC02){if(this._h3N&&(this._h3N.style.cursor!=_hC02)){this._h3N.style.cursor=_hC02;}};C_Dialog.prototype.F_SetBlockerCursor=function(_hC02){if(this.F_IsActiveDialog()){C_Dialog.F_SetBlockerCursor(_hC02);}};C_Dialog.F_GetModalDialogTemplateHtml=function(){var _h4B=G_HAL.M_oLibraries["hal"]["enableDialogChrome"];var _h8S=U_HighContrast.F_GetHighContrastImgIfNecessary("hal/images/x.gif");return('<div id="divHALModalDlgTemplate" role="region" aria-label="Dialog Template" class="clsModalDlgWin clsModalDlgNotPopup">' +'<table role="presentation" class="clsModalDlg" cellspacing="0" cellpadding="0">' +'<tr class="clsModalDlgHeader_active clsModalDlgRow">' +'<td class="clsModalDlgHeaderTitle_active clsModalDlgHeaderTitleFirstCell_active" style="white-space:nowrap; ' + ( _h4B?'padding-left: 8px;':'' ) + '"><img class="clsImg16x16" style="display:none" alt=""/><span style="padding-left:2px">Title</span></td>' +'<td class="clsModalDlgHeaderTitle_active clsModalDlgHeaderTitleLastCell_active" style="white-space:nowrap; text-align:right; vertical-align:middle;"><span style="vertical-align:middle; font-weight:normal; text-decoration:underline; cursor:pointer" HAL_ids="IDS_HAL_HELP_DLG_LINK" role="link" aria-label="help" onclick="this.nextSibling._h402.F_FireOnHelp()" class=\'clsHelpLink\' onmouseover="this.className=\'clsHelpLink_hover\'" onmouseout="this.className=\'clsHelpLink\'">Help</span>' +'<button tabIndex="-1" class="clsXButton_active" role="button" aria-label="close" ' + ( G_BrowserInfo.M_bIsPointerEnabled?"onpointerover":"onmouseover" ) + '="this.className=\'clsXButton_hover\'" ' + ( G_BrowserInfo.M_bIsPointerEnabled?"onpointerout":"onmouseout" ) + '="this.className=\'clsXButton_active\'" onfocus="this.blur()" ' + ( ( G_BrowserInfo.M_bIsTouchDevice&&!G_BrowserInfo.M_bIsPointerEnabled )?'ontouchstart':'onclick' ) + '="this._h402.F_OnCancel(event)" ' + ( G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"onmousedown" ) + '="U_DOM.F_CancelEvent( event )" ' + ( G_BrowserInfo.M_bIsPointerEnabled?"onpointerup":"onmouseup" ) + '="U_DOM.F_CancelEvent( event )" ' + ( G_BrowserInfo.M_bIsPointerEnabled?"onpointermove":"onmousemove" ) + '="U_DOM.F_CancelEvent( event )">' +'<img class="clsXButton" src="' + G_HAL.M_sPath + _h8S + '" alt="close"/>' +'</button>'+'</td>'+'</tr>'+'<tr class="clsModalDlgRow" style="vertical-align:top; height:100%">' +'<td class="clsModalDlgBody" colspan="2"></td>' +'</tr>'+'<tr class="clsModalDlgRow">' +'<td class="clsModalDlgBottomSpacer" colspan="2"> </td>' +'</tr>'+'<tr class="clsModalDlgRow" style="display:none">' +'<td class="clsModalDlgResizer" colspan="2"><div class="clsDlgResizeHandle" role="toolbar" aria-label="resize" ' + ( ( G_BrowserInfo.M_bIsTouchDevice&&!G_BrowserInfo.M_bIsPointerEnabled )?'ontouchstart':( G_BrowserInfo.M_bIsPointerEnabled?'onpointerdown':'onmousedown' ) ) + '="C_Dialog._h8N( event, this )"></div></td>' +'</tr>'+'</table>'+'</div>');};C_Dialog.prototype._hHD=function(_hVH1){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return;}this._hFE2.setAttribute("role", "dialog");this._hFE2.setAttribute("aria-label", _hVH1);if(!this._hFE2.onkeydown){this._hFE2.onkeydown=this.F_OnKeyDown.bind(this);}var _hZ52=this._hFE2.getElementsByTagName("SPAN");var _hBZ1=_hZ52.length;for(var i=0;i<_hBZ1;i++){U_Accessibility.F_MarkTextAsLink(_hZ52.item(i));}var _hN92=this._hFE2.getElementsByTagName("DIV");var _hBZ1=_hN92.length;for(var i=0;i<_hBZ1;i++){U_Accessibility.F_MarkTextAsLink(_hN92.item(i));}var _hSC2=this._hFE2.getElementsByTagName("TD");var _hBZ1=_hSC2.length;for(var i=0;i<_hBZ1;i++){U_Accessibility.F_MarkTextAsLink(_hSC2.item(i));}U_Accessibility.F_SetRoleForAllLayoutTables(this._hFE2);};C_Dialog.prototype.F_Dialog_UpdateTopDialogAfterHide=function(){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]||this._hQO1=="D_AddPersonalWizard"){return;}if(!document.activeElement||!this._hFE2.contains(document.activeElement)){this.F_SetFocusToDefaultButton();}};C_Dialog.prototype._h6=function(_h192){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return _h192;}var _hG41=_h192.match(/HAL_aria-labelledby=['"]([^'"]*)['"]/g);if(_hG41){for(var i=0;i<_hG41.length;i++){var _hRD=_hG41[i];if(_hRD.match(/HAL_aria-labelledby=['"]([^'"]*)['"]/g)){var _hR3=RegExp.$1;var _hDN=_hR3.split( " " );var _hEN=this._hQO1+"_" + _hDN[0];for(var j=1;j<_hDN.length;j++){_hEN += " " + this._hQO1 + "_" + _hDN[j];}_h192=_h192.replace( _hRD, 'aria-labelledby="' + _hEN + '"' );}}}_hG41=_h192.match(/HAL_aria-describedby=['"]([^'"]*)['"]/g);if(_hG41){for(var i=0;i<_hG41.length;i++){var _h5B=_hG41[i];if(_h5B.match(/HAL_aria-describedby=['"]([^'"]*)['"]/g)){var _h13=RegExp.$1;var _hBJ=_h13.split( " " );var _hCJ=this._hQO1+"_" + _hBJ[0];for(var j=1;j<_hBJ.length;j++){_hCJ += " " + this._hQO1 + "_" + _hBJ[j];}_h192=_h192.replace( _h5B, 'aria-describedby="' + _hCJ + '"' );}}}return _h192;};C_Dialog.F_IsActiveDialog=function(_hSO1){return C_Dialog._h8G.F_IsActive(_hSO1);};C_Dialog.F_KeepDialogsVisible=function(){var _hSA1=C_Dialog._h8G.F_GetLength();for(var i=0;i<_hSA1;i++){U_Dialog.F_KeepDialogVisible(C_Dialog._h8G.F_Get(i));}C_Dialog.F_UpdateIFramePositions();};C_Dialog.F_GetHighestZIndex=function(){var _hWA1=C_Dialog._h8G.F_Top();return _hWA1?parseInt(_hWA1.parentNode.currentStyle.zIndex, 10):1000;};C_Dialog._h8G={};C_Dialog._h8G._hH41=[];C_Dialog._h8G.F_Top=function(){return this._hH41.F_Top();};C_Dialog._h8G.F_GetLength=function(){return this._hH41.length;};C_Dialog._h8G.F_Get=function(i){return this._hH41[i];};C_Dialog._h8G.F_RemoveTopMostModal=function(){this._hH41.pop();if(this._hH41.F_Top()){this.F_SetActiveDialog(this._hH41.F_Top());}};C_Dialog._h8G.F_IsActive=function(_hAE2){return(this._hH41.F_IndexOfProperty("dlgid", _hAE2)!=-1);};C_Dialog._h8G.F_SetActiveDialog=function(_hD02){if(this.F_Top()&&!this.F_Top()._hRU1){C_Dialog._hW8(this.F_Top(), false);}this._hH41.F_RemoveItem(_hD02);this._hH41.push(_hD02);if(!_hD02._hRU1){C_Dialog._hW8(_hD02, true);}};
|