// 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_ModelessDialog(_hZB1, _hSF, _h092, d){this.d=d?d:document;this._h812=false;this._h72=0;this._h1K=false;this._hNG=false;this._h0C1=_hZB1? _hZB1:this.constructor.F_GetFunctionName();this._h6Z=U_DOM.F_GetUniqueId(this._h0C1);C_ModelessDialog._hDB[ this._h6Z ]=this;if(_hSF){C_ModelessDialog._h741[_hSF]=this._h6Z;}this._hYA=_h092?_h092:"dialogs/";if(this.F_GetDialogHtml){this.d.body.appendChild(this.d.createElement("DIV")).innerHTML=this.F_GetDialogHtml(this._h6Z);}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_oInst={};this._h1C1=true;this._hO8=true;this._hG51=false;this._hEB=true;};C_ModelessDialog._hDB={};C_ModelessDialog._hRO1=true;C_ModelessDialog._hIA1=true;C_ModelessDialog._hWR=2000;C_ModelessDialog._hT8=30000;C_ModelessDialog._hU8=[];C_ModelessDialog._hXR=[];C_ModelessDialog._hMX=0;C_ModelessDialog._hNX=0;C_ModelessDialog._h741={};C_ModelessDialog.F_GetDialogInstance=function(_h7Z){var _h2K=false;var el=U_DOM.F_GetElementNotInShadowDom(_h7Z);while(!_h2K){if(el.dlgHtmlId){_h2K=true;return C_ModelessDialog._hDB[ el.dlgHtmlId ];}else{el=el.parentNode;}}return null;};C_ModelessDialog.F_GetDialogByExternalId=function(_h7G){var _hSO1=this._h741[_h7G];return _hSO1?window[_hSO1]:null;};C_ModelessDialog.F_SetDefaultTitle=function(_hOX){this.prototype._hPX=_hOX;};C_ModelessDialog._hE7=function(){return C_ModelessDialog._h99.F_Top();};C_ModelessDialog._hF7=function(_hD02){var _hZR=U_Dialog.F_GetHighestZIndex();C_ModelessDialog._h99.F_SetActiveDialog(_hD02);_hD02.parentNode.style.zIndex=Math.max(1000, _hZR+1);};C_ModelessDialog.F_AddVisibilityListener=function(_hLN1){this._hU8.F_PushUnique(_hLN1);};C_ModelessDialog.F_RemoveVisibilityListener=function(_hLN1){this._hU8.F_RemoveItem(_hLN1);};C_ModelessDialog.F_AddHelpListener=function(_hLN1){this._hXR.F_PushUnique(_hLN1);};C_ModelessDialog.F_RemoveHelpListener=function(_hLN1){this._hXR.F_RemoveItem(_hLN1);};C_ModelessDialog.F_SetCaching=function(_hTO1){this._hRO1=_hTO1;};C_ModelessDialog.F_SetUseXmlHttp=function(_hJA1){this._hIA1=_hJA1;};C_ModelessDialog._hLX=[];C_ModelessDialog.F_Detach=function(){this.F_DetachDialogs();};C_ModelessDialog.F_DetachDialogs=function(){for(var s in this._hDB){var _h402=this._hDB[s];if(_h402){if(_h402.F_Detach){_h402.F_Detach();}this._h17(_h402);if(_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._h0C1+".xml");G_HAL.F_RemoveFilesFromLoadedList(_h402._hLD);}_h402._h4N=null;}}this._hDB={};};C_ModelessDialog.prototype._hMH1=function(dlgid,_h8R,_h6A2){G_Debug.F_Print( "showDialog:" + dlgid + " _h6A2 " + _h6A2);var div=this.d.getElementById(this._h6Z);if(!_h8R){_h8R=this.d.body;}if(this.F_Dialog_OnAvailable){this.F_Dialog_OnAvailable(div);}var _hNH1=div.parentNode.removeChild(div);if(!this._h1K){var _h2C1=this.d.getElementById("divHALModelessDlgTemplate");if(!_h2C1){G_Debug.F_Print("writing template html");var _hUP1=this.d.body.insertBefore(this.d.createElement("DIV"), this.d.body.firstChild);_hUP1.innerHTML=C_ModelessDialog.F_GetModelessDialogTemplateHtml();_h2C1=this.d.getElementById("divHALModelessDlgTemplate");}_h2C1.removeAttribute("role");_h2C1.removeAttribute("aria-label");var _hOV1=_h2C1.getElementsByTagName("BUTTON").item(0);_hOV1.firstChild.setAttribute("alt", window["G_ResManager"]?G_ResManager.F_GetOptionalString( "IDS_HAL_BTN_CLOSE" ):"");this._hCT=_h2C1.cloneNode(true);this._hCT.id="";this.d.body.insertBefore(this._hCT, this.d.body.firstChild);}else{this._h1K=false;}var _hDT=G_BrowserInfo.M_bIsIE?this._hCT.lastChild:this._hCT.selectSingleNode("*[last()]");_hDT.dlgid=dlgid;_hDT.dlgHtmlId=this._h6Z;_hDT._hRU1=this._hPV1;_hDT.className=this._hG51?"clsModelessInfoDlg":"clsModelessDlg";if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]&&this._h0C1 != "D_SimpleTooltip" ){this._h37="";try{if(this.d.activeElement){this._h37=this.d.activeElement.uniqueID;}}catch(e){}}var _hG7=_hDT.rows.item(0);var _hA5=_hDT.rows.item(1);if(!this._h1C1){_hG7.style.display="none";}else{if(!this._hZ42&&(this._hZ42!=="")){this._hZ42=_hNH1.getAttribute("HAL_dialogTitle");if(!this._hZ42){var _hYR=_hNH1.getAttribute("HAL_idsDialogTitle");this._hZ42=_hYR?G_ResManager.F_GetString(_hYR):this._hPX;}if(!this._hZ42){this._hZ42=window["G_ResManager"]?G_ResManager.F_GetOptionalString( "IDS_HAL_APP_TITLE" ):null;}if(!this._hZ42){this._hZ42="";}}var _h502=_hG7.cells.item(0).lastChild;_h502.innerText=this._hZ42;_hG7.cells.item(1).firstChild.style.display="none";var btn=_hDT.getElementsByTagName("BUTTON").item(0);btn._h402=this;var _hH51=this._hG51?"clsXButtonInfo":"clsXButton";btn._hH51=_hH51;btn.style.visibility=( _hNH1.getAttribute( "HAL_showX" )=="false" )?"hidden":"";}U_DOM.F_RemoveAllChildren(_hA5.cells.item(0));_hA5.cells.item(0).appendChild(_hNH1);var _h841=_hNH1.getAttribute("HAL_borderStyle");if(_h841){_hDT._h841=_h841;switch(_h841){case "none":_hG7.style.display="none";_hA5.cells.item( 0 ).style.padding="0px 0px 0px 0px";_hDT.rows.item(_hDT.rows.length-2).style.display="none";break;case "sizable":_hDT.rows.item(_hDT.rows.length-2).style.display="none";_hDT.rows.item(_hDT.rows.length-1).style.display="";var _hMA1=this.F_GetDimensions();_hDT.style.height=_hMA1.height+"px";_hDT.style.width=_hMA1.width+"px";this._hFE2.style.height=this._h25(_hMA1.height)+"px";this._hFE2.style.width=this._h47(_hMA1.width)+"px";break;}}var _hSU1=this.F_GetIconUrl();if(!_hSU1){_hSU1=_hNH1.getAttribute("HAL_dialogIcon");}if(_hSU1){var _hAZ1=_hG7.cells.item(0).firstChild;_hAZ1.src=G_HAL.F_GetImageURL(_hSU1);_hAZ1.style.display="";}_hNH1.style.display="block";if(!this._h541){U_Button.F_InitButtons(_hNH1);if(window["G_ResManager"]){G_ResManager.F_ApplyResStrings(_hNH1);}this._h541=true;this._h6N();this.F_Dialog_OnInit();}this._h1J1=_hNH1.getAttribute("HAL_isTooltip");this.F_Dialog_OnBeforeVisible();if(this._hQX){this._h57=this._hPA1.bind(this, dlgid, _hDT, _hNH1);return;}this._hPA1(dlgid, _hDT, _hNH1);this._hHD(this._hZ42);};C_ModelessDialog.prototype._hPA1=function(dlgid,_hDT,_hNH1){this._hOG(_hDT);this._h8Z(_hDT);var _h5J=_hNH1.getAttribute("HAL_initiallyHidden");this._hCT.style.visibility="hidden";C_ModelessDialog._hF7(_hDT);if(!this._hNG&&!this._h1J1){this._h9Z(_hNH1);this._h4E(_hNH1);}else{C_ModelessDialog.F_UpdateIFramePositions();}if(G_BrowserInfo.M_bIsTouchDevice){_hDT[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"ontouchstart"]=C_ModelessDialog._hA41;}else{_hDT[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"onmousedown"]=C_ModelessDialog._hP91;}if(!this._h71(_hNH1)){this._hCT.style.visibility=( _h5J!="true" )?"visible":"hidden";setTimeout(this._hPD.bind(this), 0);}if(this._h45){this._h45();this._h45=null;}};C_ModelessDialog.prototype._h4E=function(_hNH1){if(G_HAL.M_oLibraries["hal"]["iframeUnderlay"]&&G_BrowserInfo.M_bIsIE){G_Debug.F_Print("iframe " + this.d.getElementById(this._h6Z + "__IFRAME__"));var _hUU1=this.d.body.appendChild(this.d.createElement("IFRAME"));_hUU1.src=G_HAL.F_GetFileURL("hal/blank.htm");_hUU1.style.position="absolute";_hUU1.id=this._h6Z+"__IFRAME__";_hUU1.frameBorder="no";_hUU1.style.border="none";_hUU1.style.backgroundColor="white";if(this._h71(_hNH1)){_hUU1.style.filter="progid:DXImageTransform.Microsoft." + ( this._hPV1?"revealTrans(duration=0.2, transition=" + ( ( this._hH7=="top" )?"4":"5" ) + ")":"Stretch(duration=0.3, stretchStyle='spin')" );_hUU1.style.visibility="hidden";_hUU1.filters[0].Apply();_hUU1.style.visibility="visible";_hUU1.filters[0].Play();}C_ModelessDialog.F_UpdateIFramePositions();}};C_ModelessDialog.prototype._h9Z=function(_hNH1){if(!this._h71(_hNH1)){return;}if(this._h3G){this._h3G.F_Stop();}var _hRX=C_Transfer.K_iFromRelationCenter;var _hRA1=C_Transfer.K_iToRelationDefault;switch(this._hH7){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 fn=this._hW4.bind(this, this._hCT);var _hS52=this._hET||document.body;_hS52=(_hS52==document.body?this._hCT:_hS52);this._h3G=new C_Transfer( _hS52, this._hCT, _hRX, _hRA1, true, "clsDialogTransferProxy", "", null, fn, this._hPV1?100:200 );this._h3G.F_Play();};C_ModelessDialog.prototype._hW4=function(_hKA1){_hKA1.style.visibility="visible";this._hPD();};C_ModelessDialog.prototype.F_WaitOnMultipleEvents=function(_hSX,_hPH1){this._h45=_hPH1;this._hQX=_hSX;for(var i=0;i0)&&(nl.item(0).className.indexOf("clsXButton")!=-1)){var _h402=this.F_GetDialogInstance(tbl);var _hAZ="clsModelessDlgHeader";var _hBZ="clsXButton";if(_h402._hG51){_hAZ="clsModelessInfoDlgHeader";_hBZ="clsXButtonInfo";}var _hQC2=nl.item(0);_hQC2.className=_hYO1?_hBZ+"_active":_hBZ + "_inactive";var tr=_hQC2.parentNode.parentNode;U_DOM.F_SetFirstClassName( tr, _hYO1?_hAZ+"_active":_hAZ + "_inactive" );var _h912=_hYO1?"_active":"_inactive";tr.cells.item( 0 ).className=_h402._hG51?_hAZ+"Title" + _h912:_hAZ + "Title" + _h912 + " clsModalDlgHeaderTitleFirstCell" + _h912;tr.cells.item( 1 ).className=_h402._hG51?_hAZ+"Title" + _h912:_hAZ + "Title" + _h912 + " clsModalDlgHeaderTitleLastCell" + _h912;}};C_ModelessDialog._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_ModelessDialog;G_HAL.F_VerifyDependencies("G_DragDrop");G_DragDrop.F_Start(null, G_DialogResizeHandler, o, G_DragDrop.eEffectMove, e.button, null, null, null, null);};C_ModelessDialog.prototype.F_MoveTo=function(x,y){G_DialogMover.F_SetNewPosition(x, y, this._hCT, C_ModelessDialog);};C_ModelessDialog.prototype.F_SetDialogOptions=function(_hX42,_h3C1,_hM1,_h2J1,_hFB){this._hZ42=_hX42;this._h1C1=(_h3C1!==false);this._hO8=(_hM1!==false);this._hG51=(_h2J1==true);this._hEB=(_hFB!==false);};C_ModelessDialog.prototype.F_Show=function(_hOM,_hUT1,_h8R,_hQ6){this._h812=true;this._hET=_h8R;if(!this._hET){this._hET=this.d.body;}this._hPV1=false;if(_h8R!=this.d.body&&_hQ6&&_hQ6!="center"){this._hPV1=true;}this._h9N=_hOM;this._hQV1=_hUT1;this._hH7=_hQ6;if(!this._hFE2){this._hFE2=this.d.getElementById(this._h6Z);}if(!this._hFE2){G_HAL.F_VerifyDependencies("G_ResManager");if(!C_ModelessDialog._hVU1){C_ModelessDialog._hVU1=G_ResManager.F_GetOptionalString("IDS_HAL_DLG_LOADING");if(!C_ModelessDialog._hVU1){C_ModelessDialog._hVU1="Loading dialog...";}}var _h902=this._hAN?this.F_GetResource(this._h0C1):G_ResManager.F_GetResource(this._h0C1);if(!_h902){G_Debug.F_Print( "Dialog resource needs to be loaded" );if(this._h27){G_HAL.F_AlertError( "Dialog resource not found:" + this._h0C1 );this._h82();return;}this._h27=true;this._h55=true;this._h92(_hUT1);this._hCG=(window[this._h0C1].superClass||window[this._h0C1]).F_Show.bind(this, this._h9N, this._hQV1, this._hET, this._hH7);var _hV52=[];_hV52.push(this._hYA+this._h0C1+".xml");this._hB5=new C_ResourcesRequest(this, _hV52);this._hB5.F_Send();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._h0C1 + "] missing required dialogHtml element." );}var div=this.d.body.appendChild(this.d.createElement('DIV'));var _h192=_hK92.text.replace( / HAL_dlgItemId=['"]([^'"]*)['"]/g, ' id="' + this._h6Z + '_$1"' );_h192=_h192.replace( / HAL_dlgItemFor=['"]([^'"]*)['"]/g, ' for="' + this._h6Z + '_$1"' );_h192=_h192.replace( / HAL_dlgItemName=['"]([^'"]*)['"]/g, ' name="' + this._h0C1 + '_$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._h0C1 );div.innerHTML=_h192;var _h0P1=div.getElementsByTagName("DIV").item(0);_h0P1.id=this._h6Z;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 | @isTooltip" );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);}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){G_Debug.F_Print("external script to load");var _hSH1=this._hY8(nl);if(_hSH1.length>0){G_Debug.F_Print("external script to load " + _hSH1[0]);this._h92(_hUT1, _h5S, _hX8, _hUA1);if(!this._hCG){this._hCG=(window[this._h0C1].superClass||window[this._h0C1]).F_Show.bind(this, this._h9N, this._hQV1, this._hET, this._hH7);}this._h72++;G_HAL.F_VerifyDependencies("C_MultiScriptRequest");this._h81=new C_MultiScriptRequest(this, _hSH1, null, C_ModelessDialog._hRO1, C_ModelessDialog._hIA1);this._h81.F_Send();}}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){this._h92(_hUT1, _h5S, _hX8, _hUA1);if(!this._hCG){this._hCG=(window[this._h0C1].superClass||window[this._h0C1]).F_Show.bind(this, this._h9N, this._hQV1, this._hET, this._hH7);}this._h72++;this._hPG=new C_ResourcesRequest(this, _hV52);this._hPG.F_Send();}}var nl=_h902.selectNodes( "externalStringTables/externalStringTable/@src | externalStringTables/externalStringTable/src" );if(nl.length>0){var _hSH1=this._hY8(nl);if(_hSH1.length>0){this._h92(_hUT1, _h5S, _hX8, _hUA1);if(!this._hCG){this._hCG=(window[this._h0C1].superClass||window[this._h0C1]).F_Show.bind(this, this._h9N, this._hQV1, this._hET, this._hH7);}this._h72++;this._h4O=new C_StringsRequest(this, _hSH1);this._h4O.F_Send();}}if(this._h72>0){return false;}G_ResManager.F_ApplyResStrings(this._hFE2);}this._hMH1(this._h0C1, _h8R, _hUT1);};C_ModelessDialog.prototype._hY8=function(nl){var a=[];for(var i=0;i(_hC52.clientWidth+_hC52.scrollLeft)){if(this._hH7=="right"){this._hCT.style.left=(_hIC2.left-_hDT.offsetWidth - _hND-(this._hQV1?(2*this._hQV1.left):0))+"px";}else{this._hCT.style.left=Math.F_NonNeg((_hC52.clientWidth+_hC52.scrollLeft)-this._hCT.offsetWidth)+ "px";}}if(_h602.top<0){this._hCT.style.top=0;}else if((_h602.top+this._hCT.offsetHeight)>(_hC52.clientHeight+_hC52.scrollTop)){if(this._hH7=="bottom"){this._hCT.style.top=(_hIC2.top-_hDT.offsetHeight - _h1B-(this._hQV1?(2*this._hQV1.top):0))+"px";}else{this._hCT.style.top=Math.F_NonNeg((_hC52.clientHeight+_hC52.scrollTop)-this._hCT.offsetHeight)+ "px";}}};C_ModelessDialog.prototype._hGB=function(){var _hA12=window[G_ResManager]?G_ResManager.F_GetString("IDS_HAL_BTN_CANCEL"):"Cancel";return C_ModelessDialog.F_GetProgressTemplateHtml(C_ModelessDialog._hVU1, _hA12, this._h6Z+"_Cancel");};C_ModelessDialog.prototype._h5E=function(){var _h3J1=document.getElementById(this._h6Z+"_Cancel");if(_h3J1){_h3J1.style.visibility="";}};C_ModelessDialog.prototype._h92=function(_hUT1,_h5S,_hX8,_hUA1){if(this._h1K){return;}if(!this._hEB){setTimeout(this._h5E.bind(this), C_ModelessDialog._hT8);return;}this._h1K=true;this._hNG=true;var _h2C1=this.d.getElementById("divHALModelessDlgTemplate");if(!_h2C1){G_Debug.F_Print("writing template html");var _hUP1=this.d.body.insertBefore(this.d.createElement("DIV"), this.d.body.firstChild);_hUP1.innerHTML=C_ModelessDialog.F_GetModelessDialogTemplateHtml();_h2C1=this.d.getElementById("divHALModelessDlgTemplate");}_h2C1.removeAttribute("role");_h2C1.removeAttribute("aria-label");var _hOV1=_h2C1.getElementsByTagName("BUTTON").item(0);_hOV1.firstChild.setAttribute("alt", window["G_ResManager"]?G_ResManager.F_GetOptionalString( "IDS_HAL_BTN_CLOSE" ):"");this._hCT=_h2C1.cloneNode(true);var _hFT=this._hCT;this._hCT.id=this._h6Z+"_dlgRoot";this.d.body.appendChild(this._hCT);var _hDT=G_BrowserInfo.M_bIsIE?this._hCT.lastChild:this._hCT.selectSingleNode("*[last()]");_hDT.dlgid=this._h0C1;_hDT.dlgHtmlId=this._h6Z;var _hA5=_hDT.rows.item(1);_hA5.cells.item(0).innerHTML=this._hGB();setTimeout(this._h5E.bind(this), C_ModelessDialog._hT8);if(!this._h1C1){var _hG7=_hDT.rows.item(0);_hG7.style.display="none";}else{var btn=_hDT.getElementsByTagName("BUTTON").item(0);btn._h402=this;var _hH51=this._hG51?"clsXButtonInfo":"clsXButton";btn._hH51=_hH51;btn.style.visibility="";}this._hCT.style.visibility="visible";this._hOG(_hDT);this._h8Z(_hDT);C_ModelessDialog._hF7(_hDT);_hDT[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"onmousedown"]=C_ModelessDialog._hP91;};C_ModelessDialog.prototype._h8Z=function(_hDT){if(this._hQV1&&this._hQV1.width&&this._hQV1.height){var _hUO1=(this._hQV1.width>this.d.body.clientWidth)?Math.F_NonNeg(this.d.body.clientWidth):this._hQV1.width;var _hOH1=(this._hQV1.height>this.d.body.clientHeight)?Math.F_NonNeg(this.d.body.clientHeight):this._hQV1.height;if(_hUO1&&_hOH1){_hDT.style.height=_hOH1+"px";_hDT.style.width=_hUO1+"px";if(this._hFE2){this._hFE2.style.height=this._h25(_hOH1)+"px";this._hFE2.style.width=this._h47(_hUO1)+"px";}this.F_SetDimensions(_hUO1, _hOH1);if(this._hFE2){var _hY2=false;if(_hUO1!=this._hQV1.width||_hOH1!=this._hQV1.height){_hY2=true;}this.F_Dialog_OnResize(this.F_GetDialogBodyHeight(), this.F_GetDialogBodyWidth(), _hY2);}}}};C_ModelessDialog.prototype._h82=function(){this.F_Hide();};C_ModelessDialog.prototype.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() );this._h5E();return;}if(!(--this._h72)){this._hBN();}break;case C_StringsRequest:var _hW52=_hWU1.F_GetError();if(_hW52){G_HAL.F_AlertError( "External string file load failed:\r\n\r\n" + _hW52.F_GetErrorSummary() + "\r\n" + _hW52.F_GetErrorDetails() );this._h5E();return;}if(!(--this._h72)){this._hBN();}break;case C_ResourcesRequest:var _hW52=_hWU1.F_GetError();if(_hW52){G_HAL.F_AlertError( "External string file load failed:\r\n\r\n" + _hW52.F_GetErrorSummary() + "\r\n" + _hW52.F_GetErrorDetails() );this._h5E();return;}if(this._h55){this._h55=false;this._hBN();}else if(!(--this._h72)){this._hBN();}break;}};C_ModelessDialog.prototype._hBN=function(){if(this._hCG()!==false){this._hCG=null;}};C_ModelessDialog.prototype._hQ3=function(_hQH1){if(!this._hFE2){this._hFE2=this.d.getElementById(this._h6Z);}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_ModelessDialog.prototype._h47=function(_hB41){if(!this._hFE2){this._hFE2=this.d.getElementById(this._h6Z);}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_ModelessDialog.prototype.F_GetDialogBodyWidth=function(){var _hB41=this.F_GetDimensions().width;return this._h47(_hB41);};C_ModelessDialog.prototype.F_GetMinimumDialogBodyWidth=function(){return 0;};C_ModelessDialog.prototype._hZ2=function(_hTA1){if(!this._hFE2){this._hFE2=this.d.getElementById(this._h6Z);}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_ModelessDialog.prototype._h25=function(_hTX){if(!this._hFE2){this._hFE2=this.d.getElementById(this._h6Z);}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_ModelessDialog.prototype.F_GetDialogBodyHeight=function(){var _hTX=this.F_GetDimensions().height;return this._h25(_hTX);};C_ModelessDialog.prototype.F_GetMinimumDialogBodyHeight=function(){return 0;};C_ModelessDialog.prototype.F_SetIconUrl=function(s){this._hYU1=s;};C_ModelessDialog.prototype.F_GetIconUrl=function(){return this._hYU1;};C_ModelessDialog.prototype.F_Dialog_OnInit=function(){};C_ModelessDialog.prototype.F_Detach=function(){this._hCT=null;if(this._hFE2&&this._hFE2.parentNode){this._hFE2.parentNode.removeChild(this._hFE2);}this._hFE2=null;C_ModelessDialog._hDB[this._h6Z]=null;};C_ModelessDialog.prototype.F_Dialog_OnBeforeVisible=function(){};C_ModelessDialog.prototype.F_SetFocusToDefaultButton=function(){if(!this._hFE2){this._hFE2=this.d.getElementById(this._h6Z);}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, this.d.getElementById(btn.uniqueID)), 0);return;}}if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){if(!this._hFE2.contains(this.d.activeElement)){var _hF41=U_Accessibility.F_GetFirstFocus(this._hFE2);if(_hF41){setTimeout(U_DOM.F_SetActiveOrFocus.bind(U_DOM, _hF41), 0);}}}};C_ModelessDialog.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._h0C1);}};C_ModelessDialog.prototype.F_Dialog_OnAfterVisible=function(){};C_ModelessDialog.prototype.F_Dialog_OnBeforeHide=function(){};C_ModelessDialog.prototype.F_Dialog_OnAfterHide=function(){};C_ModelessDialog.prototype.F_OnOK=function(){var _hOM=this._h9N;if(_hOM){if(_hOM.F_Dialog_OnOK&&(_hOM.F_Dialog_OnOK(this)==false)){return;}}this.F_Hide();};C_ModelessDialog.prototype.F_OnApply=function(){if(this._h9N&&this._h9N.F_Dialog_OnCommit){this._h9N.F_Dialog_OnCommit(this);}};C_ModelessDialog.prototype.F_OnCancel=function(){var _hOM=this._h9N;this._h9N=null;if(_hOM&&_hOM.F_Dialog_OnCancel){_hOM.F_Dialog_OnCancel(this);}this.F_Hide();};C_ModelessDialog.prototype.F_FireOnHelp=function(_hB02){var _hB02=_hB02?_hB02:this.F_GetHelpId();if(this._hFE2.getAttribute("HAL_helpUrl")){C_ModelessDialog._hXR.F_CallEach( "F_Dialog_OnHelpUrl", this._hFE2.getAttribute( "HAL_helpUrl" ) );return;}C_ModelessDialog._hXR.F_CallEach("F_Dialog_OnHelp", _hB02);};C_ModelessDialog.prototype.F_GetHelpId=function(){if(!this._hFE2){this._hFE2=this.d.getElementById(this._h6Z);}return this._hFE2.getAttribute("HAL_helpId");};C_ModelessDialog.prototype.F_GetHelpUrl=function(){if(!this._hFE2){this._hFE2=this.d.getElementById(this._h6Z);}return this._hFE2.getAttribute("HAL_helpUrl");};C_ModelessDialog.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.F_OnOK.bind(this), 0);}break;case U_DOM.K_iKeyEscape:e.preventDefault();this.F_OnCancel(e);break;}};C_ModelessDialog.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_ModelessDialog.prototype.F_Dialog_OnResize=function(_h7S,_hWX,_hY2){};C_ModelessDialog.prototype.F_GetDimensions=function(){if(!this._hFE2){this._hFE2=this.d.getElementById(this._h6Z);}return new C_Dimension(this._hQV1.height, this._hQV1.width);};C_ModelessDialog.prototype.F_SetDimensions=function(_h852,_hMZ1){if(!this._hFE2){this._hFE2=this.d.getElementById(this._h6Z);}this._hQV1=new C_Rectangle(this._hQV1.left, this._hQV1.top, this._hQV1.left+_h852, this._hQV1.top+_hMZ1);};C_ModelessDialog.prototype.F_GetResource=function(_hJE2){return this._hAN ?this._hAN.selectSingleNode( ".//*[@id='" + _hJE2 + "'][not(ancestor::xmlFragment)]" ):G_ResManager.F_GetResource(this._h0C1+"_" + _hJE2);};C_ModelessDialog.prototype.F_SetDialogResource=function(n){this._hAN=n;};C_ModelessDialog.prototype.F_SetButtonEnabled=function(_hAE2,_hFU1,_hX52){U_DOM.F_SetButtonEnabledFromButton(this.F_GetDlgItem(_hAE2), _hFU1, _hX52);};C_ModelessDialog.prototype.F_SetRadioButtonEnabled=function(_hAE2,_hFU1){U_DOM.F_SetRadioButtonEnabled(this.F_GetDlgItem(_hAE2), _hFU1);};C_ModelessDialog.prototype.F_SetCheckboxEnabled=function(_hAE2,_hFU1){U_DOM.F_SetCheckboxEnabled(this.F_GetDlgItem(_hAE2), _hFU1);};C_ModelessDialog.prototype.F_SetTextEnabled=function(_hAE2,_hFU1){U_DOM.F_SetTextEnabled(this.F_GetDlgItem(_hAE2), _hFU1);};C_ModelessDialog.prototype.F_SetTextInputEnabled=function(_hAE2,_hFU1){U_DOM.F_SetTextInputEnabled(this.F_GetDlgItem(_hAE2), _hFU1);};C_ModelessDialog.prototype.F_GetDlgItem=function(_hAE2){return this.d.getElementById(this.F_GetDlgItemHtmlId(_hAE2));};C_ModelessDialog.prototype.F_GetDlgItemHtmlId=function(_hAE2){if(!this._hFE2){this._hFE2=this.d.getElementById(this._h6Z);}return this._h6Z+"_" + _hAE2;};C_ModelessDialog.prototype.F_GetDlgItemId=function(el){return el.id.substr((this._h0C1+"_").length);};C_ModelessDialog.prototype.F_GetDialogWindow=function(){if(!this._hFE2){this._hFE2=this.d.getElementById(this._h6Z);}return this._hFE2.parentNode.parentNode.parentNode.parentNode.parentNode;};C_ModelessDialog.prototype.F_GetDialogClientArea=function(){if(!this._hFE2){this._hFE2=this.d.getElementById(this._h6Z);}return this._hFE2;};C_ModelessDialog.prototype.F_DialogIsLoaded=function(){return Boolean(this._hFE2);};C_ModelessDialog.prototype.F_EnsureDialogIsVisible=function(){if(!this._hFE2){this._hFE2=this.d.getElementById(this._h6Z);}U_Dialog.F_KeepDialogVisible(this._hFE2.parentNode.parentNode.parentNode.parentNode);};C_ModelessDialog.prototype.F_IsActiveDialog=function(){return this._h812;};C_ModelessDialog.prototype.F_HideDialogElements=function(_hCN){this._h4N=_hCN;};C_ModelessDialog.prototype._h6N=function(){if(this._h4N){for(var i=0; i'+'' + _hRV1 + '' +'' +'');};C_ModelessDialog.F_GetModelessDialogTemplateHtml=function(){var _h4B=G_HAL.M_oLibraries["hal"]["enableDialogChrome"];var _h8S=U_HighContrast.F_GetHighContrastImgIfNecessary("hal/images/x.gif");return('
' +'' +'' +'' +''+''+'' +'' +''+'' +'' +''+'' +'' +''+''+'
');};C_ModelessDialog.prototype._hHD=function(_hVH1){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){this._hFE2.onkeydown=U_DOM.F_StopTabKey;return;}this._hFE2.setAttribute("role", "dialog");if(_hVH1){this._hFE2.setAttribute("aria-label", _hVH1);}if(!this._hFE2.onkeydown){this._hFE2.onkeydown=this.F_OnKeyDown.bind(this);}var nlSpan=this._hFE2.getElementsByTagName("SPAN");var _h3D2=nlSpan.length;for(var i=0;i<_h3D2;i++){var _hH62=nlSpan.item(i);U_Accessibility.F_MarkTextAsLink(_hH62);}var nlDiv=this._hFE2.getElementsByTagName("DIV");_h3D2=nlDiv.length;for(var j=0;j<_h3D2;j++){var _hX92=nlDiv.item(j);U_Accessibility.F_MarkTextAsLink(_hX92);}U_Accessibility.F_SetRoleForAllLayoutTables(this._hFE2);};C_ModelessDialog.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._h6Z+"_" + _hDN[0];for(var j=1;j<_hDN.length;j++){_hEN += " " + this._h6Z + "_" + _hDN[j];}_h192=_h192.replace( _hRD, 'aria-labelledby="' + _hEN + '"' );}}}_h192=_h192.replace( / HAL_aria-describedby=['"]([^'"]*)['"]/g, ' aria-describedby="' + this._h6Z + '_$1"' );return _h192;};C_ModelessDialog.F_KeepDialogsVisible=function(){var _hSA1=C_ModelessDialog._h99.F_GetLength();for(var i=0;i<_hSA1;i++){U_Dialog.F_KeepDialogVisible(C_ModelessDialog._h99.F_Get(i));}C_ModelessDialog.F_UpdateIFramePositions();};C_ModelessDialog.F_GetHighestZIndex=function(){var _hWA1=C_ModelessDialog._h99.F_Top();return _hWA1?parseInt(_hWA1.parentNode.currentStyle.zIndex, 10):1000;};C_ModelessDialog._h99={};C_ModelessDialog._h99._hH41=[];C_ModelessDialog._h99.F_Top=function(){return this._hH41.F_Top();};C_ModelessDialog._h99.F_GetLength=function(){return this._hH41.length;};C_ModelessDialog._h99.F_Get=function(i){return this._hH41[i];};C_ModelessDialog._h99.F_RemoveTopMostModeless=function(){this._hH41.pop();if(this._hH41.F_Top()){this.F_SetActiveDialog(this._hH41.F_Top());}};C_ModelessDialog._h99.F_IsActive=function(_hAE2){return(this._hH41.F_IndexOfProperty("dlgid", _hAE2)!=-1);};C_ModelessDialog._h99.F_SetActiveDialog=function(_hD02){if(this.F_Top()&&!this.F_Top()._hRU1){C_ModelessDialog._hW8(this.F_Top(), false);}this._hH41.F_RemoveItem(_hD02);this._hH41.push(_hD02);if(!_hD02._hRU1){C_ModelessDialog._hW8(_hD02, true);}};