
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 6/24/2008 1:36:18 PM
// Copyright (c) 2005 Intersoft Solutions.
// Unauthorized decryption/reproduction of any codes contained herein is strictly prohibited and will result in severe civil and criminal penalties .
//**Start Encode**
function WebDialogBox(vab71){ this.ClassName ="WebDialogBox"; this.Version ="2.5.2007"; this.BuildNumber ="0"; this.MajorVersion ="1.0"; this.RequiredFrameworkVersion ="2.0.5000.10";  ISControl.call(this,vab71); this.ScriptDirectory ="/CommonLibrary/WebDesktop/V1_0_2006/"; this.WindowSettings =new WebDialogWindowSettings(); this.Text =""; this.Location =new OffsetLocation(); this.ControlBoxImage =""; this.ContentURL =""; this.IntegratedToDesktopManager =false; this.ImagePosition ="Left"; this.CommandButtonAlignment ="Center"; this.DialogBoxImage ="Question"; this.CustomDialogBoxImage =""; this.ImagesDirectory ="/CommonLibrary/Images/WebDesktop/"; this.ClientSideEvents =new WebDialogBoxClientSideEvents(); this.InProgressText =""; this.StartPosition ="CenterParent"; this.CommandButtonSize =new UnitSize(80,20); this.CommandButtonSpacing =4; this.CommandButtons =new ISArray(); this.ViewStateStorage ="PageCache"; this.AccessKey =""; this.Enabled =false; this.TabIndex =null; this.ToolTip =""; this.Visible =false; this.ClientID =vab71; this.ID =vab71; this.UniqueID =vab71; this.Window =null; this.ParentWindow =null; this.Width ="400px"; this.Height ="150px"; this.Shadow =null; this.DialogResult =null; this.ContentScrollable =false; this.IsShown =false; this.WebResourceIdentifier ="D"; this.CreatedAtRuntime =false; this.RuntimeInitialized =false; this.DialogBoxImageVAlign ="Middle";  this.KeepVisibleOnScroll =false; this.ShadowColor =""; this.ShadowOpacity =50; this.IsModal =true; this.AnimationStyle ="ShrinkExpand"; this.EnableAnimation =false;  this.EnableDropShadow =false; this.ReuseIFrame =false;  this.OnInitialize =function() { this.RemoveDynamicStyle();  if (this.CreateAtRuntime) this.CommandButtons.Parent =this; };  this.RemoveDynamicStyle =function() { var v99811 =[]; var v34968 =["Caption","CaptionButton","Window","CommandButton"]; for(var v1c272=0; v1c272<v99811.length; v1c272++) { var v60460 =this[v99811[v1c272] +"Style"]; if (v60460) ISXml.RemoveNode(this.XmlNode,v99811[v1c272] +"Style"); }  for(var v1c272=0; v1c272<v34968.length; v1c272++) { var v60460 =this.WindowSettings[v34968[v1c272] +"Style"]; if (v60460) ISXml.RemoveNode(this.WindowSettings.XmlNode,v34968[v1c272] +"Style"); } }; this.OnPropertiesInitialized =function() { if (this.Events !=null) { var vc5414; for(vc5414 in this.Events) { if (typeof(this.Events[vc5414])=="string") this.ClientSideEvents[vc5414] =this.Events[vc5414]; } }  if (ISXml.GetAttribute(this.XmlNode,"Location")!=null) this.Location.Parse(ISXml.GetAttribute(this.XmlNode,"Location")); };  this.CloseDialog =function() { wd42d56.mb8118(this.Window); };  this.BringToFront =function() { wd42d56.m29b0(this.Window); };  this.OnUnload =function() { for (var v1c272=0;v1c272<this.CommandButtons.length; v1c272++) { var vded52 =this.CommandButtons[v1c272]; var vb2044 =vded52.GetElement();  if (vb2044) Listener.Unload(vb2044); }  if (this.IntegratedToDesktopManager) { if (this.ParentWindow) { var v17648 =this; ISEvent.RemoveFunctionHandler(this.ParentWindow,"OnPrepareClosed",function(){wd42d56.m17b28(v17648);}); } } else { if (this.KeepVisibleOnScroll) Listener.Unload(document.body); } };  this.Dispose =function() { this.OnUnload(); if (this.Window) { this.Window.IsDialogBox =false; this.Window.Close(false); } var vb2044 =this.GetContentElement();  if (vb2044) vb2044.removeNode(true);  for (v1c272 in IS.RuntimeObjects) { var v6b52 =IS.RuntimeObjects[v1c272];  if (v6b52 !=null &&typeof(v6b52)=="object" &&v6b52.Id ==this.Id) { IS.RuntimeObjects[v1c272] =null; } }  IS.ActiveCtrl =null; };  this.Activate =function() { wd42d56.m24437(this); }; this.ShowDialog =function(v09c21,v0a236) { var v60c3 =this.Window;  this.DialogResult =null; if (v60c3 ==null ||v60c3.GetWindowDivElement()==null ||v60c3._Type ==null) { wd42d56.m10745(this); v60c3 =this.Window; } v60c3.DialogBoxShown =false; v60c3.CurrentDialogBox =null; if (this.IsModal) wd42d56.m67682(this);  if (IS.moz &&this.ContentScrollable) { var v5ac33 =v60c3.GetContentDivElement(); if (v5ac33) { var v3ad5 =v5ac33.children[0].children[0].children[0];  if (v3ad5 !=null) { var v1e44 =v3ad5.rows[0].cells[v3ad5.rows[0].cells.length-1].children[0];  if (v1e44) { v5ac33.children[0].style.height ="100%"; v1e44.style.display ="none"; v1e44.style.overflow ="auto"; setTimeout(function(){v1e44.style.height =v1e44.parentElement.offsetHeight; v1e44.style.display ="";},0); } } } } if (!this.IntegratedToDesktopManager) { var vb755 =v60c3.GetWindowDivElement(); vb755.style.display =""; v60c3.Size =new UnitSize(vb755.offsetWidth,vb755.offsetHeight); vb755.style.display ="none";  if (this.StartPosition !="Custom") { if (IS.ie) v60c3.MoveToCenterDesktop(); else v60c3.MoveToCenterDesktopAbsolute(); } else v60c3.MoveTo(this.Location.X,this.Location.Y); } else { var vd8b32 =ISGetDesktopManagerExact(); vd8b32.Windows.push(v60c3);  if (this.StartPosition =="Custom" &&this.ParentWindow) { v60c3.MoveTo(this.Location.X,this.Location.Y); } else if (this.StartPosition =="CenterParent" &&this.ParentWindow) { var vd3120 =this.ParentWindow.Size; var vcbf60 =this.ParentWindow.Location; var v09e61 =new OffsetLocation();  v09e61.X =(vd3120.Width-v60c3.Size.Width)/2; v09e61.Y =(vd3120.Height-v60c3.Size.Height)/2;  if (v09e61.X <0) v09e61.X =0;  if (v09e61.Y <0) v09e61.Y =0;  v60c3.MoveTo(v09e61.X+vcbf60.X,v09e61.Y+vcbf60.Y); } else { v60c3.MoveToCenterDesktop(); }  if (this.ParentWindow) { this.ParentWindow.DialogBoxShown =true; this.ParentWindow.CurrentDialogBox =this; }  if (this.HostWindow) { this.HostWindow.DialogBoxWindows.push(v60c3); this.HostWindow.CurrentDialogBox =this; } } this.IsShown =true; if (this.EnableAnimation &&this.AnimationStyle =="VistaStyleZoom") { v60c3.DesktopManager.EnableAnimation =true; v60c3.DesktopManager.AnimationStyle ="VistaStyleZoom"; }  if (v09c21 &&v0a236 !=null) { v60c3.DesktopManager.EnableAnimation =true; v60c3.Show(v0a236,"black"); return; } else v60c3.Show();  if (this.CommandButtons.length >0 &&this.WindowSettings.ContentMode =="UseInlineContent") this.CommandButtons[0].GetElement().focus();  if (v60c3.ContentMode =="UseIFrame") { var v5ac33 =v60c3.GetContentDivElement();  v5ac33.style.overflow ="hidden"; v5ac33.style.overflowY ="hidden"; v5ac33.style.overflowX ="hidden";  if (v60c3.IFrameLoaded) { v60c3.IFrameLoaded =false; } }  };  this.GetContentElement =function() { return document.getElementById("dvDlgCnt_" +this.Id); };  this.GetContentTemplateElement =function() { var vb2044 =this.GetContentElement();  return vb2044.children[0].children[0]; };  this.FindControl =function(vab71) { if (this.IntegratedToDesktopManager) { if (this.Window) { var vd8b32 =ISGetDesktopManager(); var v3a01 =vd8b32.GetDocument();  return v3a01.getElementById(vab71); } else return document.getElementById(vab71); } else return document.getElementById(vab71); };  this.SetContentURL =function(v5b912) { this.ContentURL =v5b912;  if (this.Window) { this.Window.ContentURL =v5b912; this.Window.ContentURLChanged =true; } };  this.SetContentTemplate =function(v60460) { var vb2044 =this.GetContentElement(); this.WindowSettings.ContentMode =="UseInlineContent"; this.ContentTemplate =v60460;  if (vb2044 ==null) { vb2044 =document.createElement("div"); vb2044.id ="dvDlgCnt_" +this.Id; vb2044.style.cssText ="display:none; position:absolute"; vb2044.innerHTML =wda2256.mf4074(this); document.body.appendChild(vb2044); } else { var v82073 =this.GetContentTemplateElement();  if (v82073 ==null ||v82073.children.length ==0 ||this.Window !=null) { var v09898 =this.Window.GetContentDivElement(); v82073 =v09898.children[0].children[0].children[0].rows[0].cells[1].children[0]; } v82073.innerHTML =v60460; } };}function WebDialogBoxButton(vfbe51,v1e03,vdad96,v71853){ this._Type ="WebDialogBoxButton"; ISObject.call(this); this.AccessKey =""; this.Text =""; this.Enabled =true; this.Image =""; this.DisplayMode ="Text"; this.ImagePosition ="Left"; this.Name =""; this.Type ="NotSet"; this.Parameter =this; this.OnClientClick ="WD25_OnButtonClick"; this.Collection =new ISArray(); this.BorderType ="Simple"; this.ImagesSettings =null; this.ImagesDirectory =""; this.DesktopManager =null; this.ButtonStyle =null; this.Index =-1;  if (typeof(vfbe51)!="undefined") this.Name =vfbe51;  if (typeof(v1e03)!="undefined") this.Text =v1e03;  if (typeof(vdad96)!="undefined") this.Type =vdad96;  if (typeof(v71853)!="undefined") this.Image =v71853;  this.GetElement =function() { if (this.Parent.IntegratedToDesktopManager) { var vc8868 =ISGetDesktopManager(); if (vc8868) return vc8868.GetDocument().getElementById(this.Parent.Id +"_" +this.Name); } else if (document) return document.getElementById(this.Parent.Id +"_" +this.Name);  return null; };}function WebDialogBoxClientSideEvents(){ this._Type ="WebDialogBoxClientSideEvents"; ISObject.call(this); this.OnCreated =""; this.OnClosed =""; this.OnButtonClicked =""; this.OnBeforeCreated =""; this.OnSetContent ="";}function WebDialogWindowSettings(){ if (typeof(WebDesktopWindowSettings)=="undefined") { var va5562 =ISGetDesktopManager(); if (va5562) { var v26362 =va5562.GetContentWindow().WebDesktopWindowSettings; v26362.call(this); } else { alert("Integration Error: Can't find DesktopManager instance!"); return; } } else WebDesktopWindowSettings.call(this);  this._Type ="WebDialogWindowSettings";  this.ControlBox ="No"; this.AllowMinimize ="No"; this.AllowMaximize ="No"; this.AllowResize ="No";}function InitWebDialogBox(vad853){ var v2f217 =wd42d56.m5f173(vad853); v2f217.OnInitialize();}function CreateWebDialogBox(v3e437){ var v7fc53 =wd42d56.m5f173(v3e437,true); v7fc53.CreatedAtRuntime =true; v7fc53.RuntimeInitialized =false; v7fc53.OnInitialize();  return v7fc53;}var DialogResult ={ Abort: "Abort", Retry: "Retry", Ignore: "Ignore", OK: "OK", Cancel: "Cancel", Yes: "Yes", No: "No"};var wd42d56 ={ Initialized: false,  m5f173:function(v95517,v13046) { var vad133 =new WebDialogBox(v95517); wd42d56.mee782(vad133,v13046); wd42d56.me0f76(vad133); wd42d56.m17e63(vad133); wd42d56.m40e18(vad133); vad133.IsInit =true; return vad133; },  m10e92:function(v6bf8) { if (v6bf8.XmlDt ==null) { var v72288 =document.createElement("XML"); v72288.id =v6bf8.Id +"_x"; v72288.innerHTML ="<WebDialogBox />";  document.body.appendChild(v72288); v6bf8.XmlDt =v72288; return v72288; }  return null; },  mee782:function(ve1c63,v64d74) { if (ve1c63 ==null) return;  if (!ve1c63.IsInit) { var vcf344 =null;  if (v64d74) wd42d56.m10e92(ve1c63);  try { vcf344 =ISXml.GetNode(ve1c63.XmlDt,"//WebDialogBox"); } catch(e) {} if (vcf344 ==null) vcf344 =ve1c63.XmlDt.documentElement;  if (vcf344 !=null) { IS.SetPropertiesRecursive(ve1c63,vcf344);  if (!v64d74) { ve1c63.WindowSettings.CaptionButtonStyle =DynamicStyleEngine.Assign(ISXml.GetNode(ve1c63.WindowSettings.XmlNode,"//CaptionButtonStyle")); ve1c63.WindowSettings.CaptionStyle =DynamicStyleEngine.Assign(ISXml.GetNode(ve1c63.WindowSettings.XmlNode,"//CaptionStyle")); ve1c63.WindowSettings.WindowStyle =DynamicStyleEngine.Assign(ISXml.GetNode(ve1c63.WindowSettings.XmlNode,"//WindowStyle")); ve1c63.WindowSettings.CommandButtonStyle =DynamicStyleEngine.Assign(ISXml.GetNode(ve1c63.WindowSettings.XmlNode,"//CommandButtonStyle")); } } } },  me0f76:function(v47c19) { window.attachEvent("onload",function(){wd42d56.m46a99(v47c19);}); window.attachEvent("onunload",function(){wd42d56.m61043(v47c19);});  if (v47c19.KeepVisibleOnScroll) { if (IS.ie) Listener.Add(document.body,"onscroll",wd42d56.m1c236,v47c19); else window.attachEvent("onscroll",function(){wd42d56.m1c236(v47c19);}); } },  m17e63:function(vea519) { if (IS.moz) { } },  m40e18:function(v51119) {  },  m25a2:function(v2b438,v1e862,v8d366) { v8d366.Text =v1e862.Text; v8d366.Name ="wnd" +v1e862.Id; v8d366.DesktopManager =v2b438; v8d366.IsDialogBox =true; v8d366.ShowInTaskBar =false; v8d366.Index =v2b438.Windows.length; v8d366.ContentMode =v1e862.WindowSettings.ContentMode; v8d366.Size =new UnitSize(v1e862.Width,v1e862.Height); v8d366.EnableDropShadow =v1e862.EnableDropShadow;  v2b438.EnableAnimation =v1e862.EnableAnimation; if (v1e862.InProgressText !="") v2b438.TextSettings.InProgressText =v1e862.InProgressText;  if (v1e862.ControlBoxImage !="") v8d366.ControlBoxImage =v1e862.ControlBoxImage;  if (v8d366.ContentMode =="UseIFrame") v8d366.ContentURL =v1e862.ContentURL;  var v41f2 =function(){wd42d56.m17b28(v1e862);}; v41f2.TargetObject =v1e862;  if (v1e862.IntegratedToDesktopManager &&IS.ie) ISEvent.AddFunctionHandler(v1e862.ParentWindow,"OnPrepareClosed",v41f2); },  m17b28:function(vaa069) { if (vaa069.Window) { var v5f313 =vaa069.Window; var vd8d51 =v5f313.GetWindowDivElement();  vaa069.OnUnload(); Listener.Unload(vd8d51); vd8d51.removeNode(true); vd8d51 =null; delete vd8d51;  v5f313 =null; delete v5f313; } },  m46a99:function(v2f64) {  },  m1c236:function(v30463) { var v12788 =this;  if (v30463) v12788 =v30463; if (v12788.Window) { var v90a40 =v12788.Window.Location; var v91d70 =v12788.Window.GetWindowDivElement(); var v12e3 =v12788.Window.OriginalLocation; var v22e75 =v90a40.Y;  if (v12e3 !=null) v22e75 =v12e3.Y;  with (v91d70.style) { top =v22e75 +document.body.scrollTop; }  if (!v12788.Window.OriginalLocation) v12788.Window.OriginalLocation =v90a40; } },  m61043:function(vba738) { if (vba738.IntegratedToDesktopManager) { ISEvent.RemoveFunctionHandler(vba738.ParentWindow,"OnPrepareClosed",function(){wd42d56.m17b28(vba738);});  if (vba738.Window) { var v61235 =vba738.Window; var v2c467 =v61235.GetWindowDivElement();  if (v2c467) { v2c467.removeNode(true); v2c467 =null; delete v2c467;  v61235 =null; delete v61235; } } } },  m10745:function(va1e15,v9ff12) { var v5ab10 =null;  va1e15.Height =parseFloat(va1e15.Height); va1e15.Width =parseFloat(va1e15.Width); if (va1e15.IntegratedToDesktopManager) { var v26056 =ISGetDesktopManagerExact(); var vd4e11 =va1e15.WindowSettings; var vaf916 =v26056.GetContentWindow();  if (!v26056) { alert("Integration Error: Can't find DesktopManager instance!"); return; }  va1e15.ParentWindow =ISGetCurrentWindow();  if (!va1e15.ParentWindow) va1e15.ParentWindow =ISGetCurrentWindow(true);  if (!va1e15.ParentWindow) va1e15.ParentWindow =ISGetCurrentWindow(true,v26056);  if (!va1e15.ParentWindow) va1e15.ParentWindow =ISGetActiveWindow();  if (va1e15.ParentWindow !=null &&va1e15.ParentWindow.IsDialogBox) va1e15.HostWindow =wd42d56.m7ec33(va1e15.ParentWindow); else va1e15.HostWindow =va1e15.ParentWindow;  v5ab10 =v26056.CreateWindow(); wd42d56.m25a2(v26056,va1e15,v5ab10); v5ab10.AllowMinimize ="No"; v5ab10.AllowMaximize ="No"; v5ab10.AllowResize =vd4e11.AllowResize; v5ab10.ControlBox =vd4e11.ControlBox; v5ab10.AllowClose =vd4e11.AllowClose; v5ab10.ContentMode =vd4e11.ContentMode; v5ab10.DesktopManager =v26056; v5ab10.Collection =v26056.Windows; if (v5ab10.GetWindowDivElement()!=null) v9ff12 =true; if (!v9ff12) { vaf916.wd32b61.m4aa75(v5ab10); var veef63 =v5ab10.GetContentDivElement(); veef63.style.overflow =veef63.style.overflowX =veef63.style.overflowY ="visible"; } else { v5ab10.ReInitialize(); v5ab10.DialogBox =va1e15; v5ab10.CreatedAtRuntime =true; va1e15.Window =v5ab10; } } else { var v26056 =null; v5ab10 =new WebDesktopWindow();  try { v26056 =ISGetDesktopManager(); var v0a474 =false;  if (v26056 !=null) { if (v26056.GetContentWindow().location.pathname !=window.location.pathname) v0a474 =true; }  if (!v26056 ||(v26056 &&v26056.Id !="Global")||v0a474) v26056 =new WebDesktopManager("Global"); } catch(e) {}  if (!v26056) { alert("Integration Error: Unable to create DesktopManager instance!"); return; } ISEvent.Raise(va1e15.ClientSideEvents.OnBeforeCreated,va1e15.Id,v26056);  v26056.CreatedAtRuntime =true; v26056.Id ="Global"; v26056.FrameObj =document.body; v26056.WindowSettings =va1e15.WindowSettings; v26056.UseWebResourcesForClient =va1e15.UseWebResourcesForClient;  wd42d56.m25a2(v26056,va1e15,v5ab10); wd32b61.m4aa75(v5ab10);  if (typeof(wd7f075)=="object") wd7f075.mba569(v26056.InteractiveObjects); }  ISEvent.Raise(va1e15.ClientSideEvents.OnCreated,va1e15.Id);  wd42d56.m05e76(va1e15,v5ab10); wd42d56.m29b0(v5ab10); wd42d56.ma1d86(va1e15); v5ab10.ResizeTo(va1e15.Width,va1e15.Height); v5ab10.DialogBox =va1e15; va1e15.Window =v5ab10; },  m7ec33:function(ve3190) { while (ve3190.IsDialogBox) ve3190 =ve3190.DialogBox.ParentWindow; return ve3190; },  m8d663:function() { var v23145 =event; if (v23145 ==null) v23145 =ISGetDesktopManager().GetContentWindow().event;  var v37e80 =v23145.srcElement; var vd7238 =true; if (v23145.keyCode ==9) { var v5b617 =v37e80.id.substring(0,v37e80.id.indexOf("_")); var vb1d72 =v37e80.id.substring(v37e80.id.indexOf("_")+1); var v2ad39 =ISGetObject(v5b617); var v54b71 =v2ad39.CommandButtons.GetNamedItem(vb1d72); var v86923 =null;  if (v23145.shiftKey) vd7238 =false;  if (vd7238) { v86923 =v2ad39.CommandButtons[v54b71.Index+1]; if (v86923 ==null) v86923 =v2ad39.CommandButtons[0]; } else { v86923 =v2ad39.CommandButtons[v54b71.Index-1]; if (v86923 ==null) v86923 =v2ad39.CommandButtons[v2ad39.CommandButtons.length-1]; }  if (v86923) { v86923.GetElement().focus(); }  if (IS.ie) v23145.keyCode =0; v23145.returnValue =false; } },  m71440:function(vf8a95) { if (vf8a95.CommandButtons.length >0 &&vf8a95.WindowSettings.ContentMode =="UseInlineContent") { vf8a95.CommandButtons[0].GetElement().focus(); } else { if (vf8a95.WindowSettings.ContentMode =="UseIFrame") { } } },  mb9728:function(vc2a86) { if (vc2a86.IntegratedToDesktopManager) { var v65015 =event; if (v65015 ==null) v65015 =ISGetDesktopManager().GetContentWindow().event;  if (v65015 !=null) { v65015.cancelBubble =true; v65015.returnValue =false; } } },  ma1d86:function(v87e25) { if (v87e25.WindowSettings.ContentMode =="UseIFrame")return;  for (var v3d486=0;v3d486<v87e25.CommandButtons.length; v3d486++) { var vcdc6 =v87e25.CommandButtons[v3d486]; var va7146 =vcdc6.GetElement();  wd83078.m94280(vcdc6); Listener.Add(va7146,"onkeydown",wd42d56.m8d663); vcdc6.IntegratedToDesktopManager =v87e25.IntegratedToDesktopManager; vcdc6.ButtonStyle =new DynamicStyle(); vcdc6.ButtonStyle.Normal =v87e25.WindowSettings.CommandButtonStyle.Normal; vcdc6.ButtonStyle.Over =v87e25.WindowSettings.CommandButtonStyle.Over; vcdc6.ButtonStyle.Active =v87e25.WindowSettings.CommandButtonStyle.Active; vcdc6.ButtonStyle.Object =va7146; vcdc6.Index =v3d486;  if (vcdc6.IntegratedToDesktopManager) wd83078.m52286(vcdc6); } },  m05e76:function(v24836,vc3c83) { var vfda45 =vc3c83.GetContentDivElement(); var v8d135 =vfda45.children[0]; var v9a346 =v24836.GetContentElement();  if (v24836.WindowSettings.ContentMode =="UseInlineContent") { if (v24836.IntegratedToDesktopManager) v8d135.innerHTML =v9a346.children[0].children[0].outerHTML; else v8d135.appendChild(v9a346.children[0].children[0]); var v6b676 =v8d135.children[0].children[0]; v6b676.style.fontFamily =vfda45.currentStyle.fontFamily; v6b676.style.fontSize =vfda45.currentStyle.fontSize; v6b676.style.color =vfda45.currentStyle.color; v6b676.style.cursor ="default";  ISEvent.Raise(v24836.ClientSideEvents.OnSetContent,v24836,vc3c83,v8d135.children[0].children[0]); }  },  m29b0:function(v96c75) { var v8e092 =v96c75.GetWindowDivElement(); v8e092.style.zIndex =205; },  mb8118:function(vd2380) { var va9211 =vd2380.DialogBox; var v49e72 =vd2380.GetWindowDivElement(); if (va9211.IsModal) wd42d56.mf6925(va9211);  if (va9211.IntegratedToDesktopManager) { var v3612 =null; var v73686 =va9211.HostWindow;  vd2380.Collection.Remove(vd2380);  if (v73686) { var vdda24 =v73686.DialogBoxWindows; vdda24.Remove(vd2380);  if (vdda24.length >0) v3612 =vdda24[vdda24.length-1];  if (v3612 !=null) v73686.CurrentDialogBox =v3612.DialogBox; else { v73686.DialogBoxShown =false; v73686.CurrentDialogBox =null; } }  if (va9211.ParentWindow) { if (v3612 ==null) va9211.ParentWindow.CurrentDialogBox =null; va9211.ParentWindow.DialogBoxShown =false;  va9211.ParentWindow.DesktopManager.ActiveWindowIndex =-1; va9211.ParentWindow.Activate(); } else { var v8c027 =vd2380.DesktopManager.GetTopMostWindowBefore(); if (v8c027) { vd2380.DesktopManager.ActiveWindowIndex =-1; v8c027.Activate(); } } }  if (va9211.DialogResult ==null) va9211.DialogResult ="Cancel"; var v67f67 =ISEvent.Raise(va9211.ClientSideEvents.OnClosed,va9211.Id,va9211.DialogResult); if (!v67f67)return; if (vd2380.EnableDropShadow &&vd2380.DropShadow !=null) vd2380.DropShadow.Hide();   v49e72.style.display ="none"; va9211.IsShown =false;  if (va9211.WindowSettings.ContentMode =="UseIFrame" &&va9211.IntegratedToDesktopManager &&!va9211.ReuseIFrame) { wd42d56.m7fb72(vd2380); } },  m7fb72:function(vfa947) { var v6d252 =vfa947.DialogBox; var vf9d98 =ISGetDesktopManager(); var vffd10 =vf9d98.GetIFrameWindow(vfa947.Name); if (vffd10 &&vffd10.document) { var v2da60 =vffd10.document; if (vffd10.onunload !=null) vffd10.onunload();  if (vffd10.ISCoreDestructor) vffd10.ISCoreDestructor();  v2da60.body.onunload =null; v2da60.open("text/html"); v2da60.write(""); v2da60.close();  if (v6d252.Window) v6d252.Window.ContentURLChanged =true; } },  m1da35:function(vaca38,v07c45,vdaf32) { if (!vdaf32)vdaf32 ="afterBegin";  var vfa166 =document.createElement("DIV"); vfa166.hideFocus =true;  if (IS.moz) vfa166.style.cssText ="width: 100px; height: 100px";  vfa166.innerHTML ="<img width=100% height=100% src='" +vaca38.ResolveImagePath(vaca38.ImagesDirectory,"blank.gif")+"' />"; vfa166.onclick =function(){wd42d56.m71440(vaca38);}; vfa166.onmousedown =function(){wd42d56.mb9728(vaca38);}; vfa166.onselectstart =function(){return false;}; v07c45.insertAdjacentElement(vdaf32,vfa166);  vaca38.Shadow =vfa166; return vfa166; },  m67682:function(v80973) { if (v80973.IntegratedToDesktopManager) { var vb7913 =v80973.Shadow; var veb433 =v80973.ParentWindow; if (vb7913 ==null) { var v58584 =null; var v23a96 =null;  if (veb433) { v58584 =veb433.DesktopManager; v23a96 =veb433.GetWindowDivElement(); } else { v58584 =ISGetDesktopManager(); v23a96 =v58584.GetDesktopElement();  v58584.TaskBarLocked =true; }  vb7913 =wd42d56.m1da35(v80973,v23a96,"beforeEnd"); }  with (vb7913.style) { position ="absolute"; if (veb433) { width =veb433.Size.Width; height =veb433.Size.Height; } else { width =document.body.offsetWidth; height =document.body.offsetHeight; } left =0; top =0;  if (v80973.ShadowColor =="Transparent" ||v80973.ShadowColor =="") backgroundColor ="transparent"; else { if (v80973.ShadowColor.indexOf(",")>-1) backgroundColor ="rgb(" +v80973.ShadowColor +")"; else backgroundColor =v80973.ShadowColor;  filter ="Alpha(Opacity=" +v80973.ShadowOpacity +")"; opacity =v80973.ShadowOpacity/100; }  display =""; zIndex =101; } } else { var vb7913 =v80973.Shadow; if (vb7913 ==null) vb7913 =wd42d56.m1da35(v80973,document.body);  with (vb7913.style) { position ="absolute";  var v4ca12 =parseFloat(document.body.currentStyle.marginLeft); var vcc681 =parseFloat(document.body.currentStyle.marginRight); var v41e78 =parseFloat(document.body.currentStyle.marginTop); var va3915 =parseFloat(document.body.currentStyle.marginBottom); var v10e84 =0; var v92e81 =0;  if (isNaN(v4ca12)) v4ca12 =0;  if (isNaN(vcc681)) vcc681 =0;  if (isNaN(v41e78)) v41e78 =0;  if (isNaN(va3915)) va3915 =0;   if (document.body.scrollWidth >document.body.clientWidth) v10e84 =document.body.scrollWidth; else v10e84 =document.body.clientWidth -v4ca12 -vcc681;  if (document.body.scrollHeight >document.body.clientHeight) v92e81 =document.body.scrollHeight; else v92e81 =document.body.clientHeight -v41e78 -va3915;  width =v10e84; height =v92e81;  if (v80973.ShadowColor =="Transparent" ||v80973.ShadowColor =="") backgroundColor ="transparent"; else { if (v80973.ShadowColor.indexOf(",")>-1) backgroundColor ="rgb(" +v80973.ShadowColor +")"; else backgroundColor =v80973.ShadowColor; filter ="Alpha(Opacity=" +v80973.ShadowOpacity +")"; opacity =v80973.ShadowOpacity/100; }  display =""; zIndex =101; } } },  mf6925:function(v6e813) { var vbce93 =v6e813.Shadow; vbce93.style.display ="none"; if (v6e813.IntegratedToDesktopManager) { var v17b78 =ISGetDesktopManager(); v17b78.TaskBarLocked =false; } else { } },  m24437:function(vf8e68) { var v6a213 =vf8e68.HostWindow;  if (!v6a213) v6a213 =vf8e68.ParentWindow;  if (v6a213) { var v45688 =v6a213;  if (!v45688.IsActiveWindow()) { v45688.Activate(); } } } };var wda2256 ={ mf4074:function(v9cc6) { var v06031 =v9cc6.WindowSettings; var vb6e20 =""; var vf7255 ="<div class='";  if (v9cc6.DialogBoxImage =="Custom") vb6e20 =v9cc6.CustomDialogBoxImage; else vb6e20 ="isdialog_" +v9cc6.DialogBoxImage +".gif";  if (v06031.BorderType =="ComplexImages") vf7255 +=v06031.WindowStyle.Normal; else vf7255 +=v06031.ContainerStyle;  vf7255 +="'><div><table cellspacing=4 cellpadding=0 width=100% height=100%><tr height=100%><td valign=" +v9cc6.DialogBoxImageVAlign +">";  if (v9cc6.DialogBoxImage !="None") vf7255 +="<img src='" +v9cc6.ResolveImagePath(v9cc6.ImagesDirectory,vb6e20)+"' /></td><td width=100%>";  vf7255 +="<div style='width:100%; height:100%;"; if (v9cc6.ContentScrollable) { if (IS.ie) vf7255 +=";overflow-y:auto;overflow-x:hidden;"; else vf7255 +=";overflow:auto;"; }  vf7255 +="'>"; vf7255 +=v9cc6.ContentTemplate; vf7255 +="</div></td></tr>";  v9cc6.CommandButtons.Parent =this; if (v9cc6.CommandButtons.length >0) { vf7255 +="<tr><td colspan=2 align=" +v9cc6.CommandButtonAlignment; vf7255 +=" style='padding:" +v9cc6.WindowSettings.CommandBarPadding +"px'>"; vf7255 +=wda2256.mf5a2(v9cc6); vf7255 +="</td></tr>"; }  vf7255 +="</table></div></div>";  return vf7255; },  mf5a2:function(ve7497) { var v1cf78 ="<table cellspacing=0 cellpadding=" +ve7497.CommandButtonSpacing +">";  v1cf78 +="<tr>"; for (var vf0847=0; vf0847<ve7497.CommandButtons.length; vf0847++) { var v8c843 =ve7497.CommandButtons[vf0847];  v8c843.Parent =ve7497; v1cf78 +="<td>"; v1cf78 +=wda2256.m96b66(ve7497,v8c843); v1cf78 +="</td>"; } v1cf78 +="</tr>"; v1cf78 +="</table>";  return v1cf78; },  m96b66:function(v28036,v66276) { var va1d53 ="<button id='" +v28036.ClientID +"_" +v66276.Name +"' ";  va1d53 +="class=" +v28036.WindowSettings.CommandButtonStyle.Normal +" "; va1d53 +="style='"; va1d53 +="height:" +v28036.CommandButtonSize.Height +"px;"; va1d53 +="width:" +v28036.CommandButtonSize.Width +"px;"; va1d53 +="'"; va1d53 +=">"; va1d53 +=wda2256.m59582(v66276); va1d53 +="</button>"; return va1d53; },  m59582:function(v7f872) { var v52172 ="<div>"; if (v7f872.DisplayMode =="TextAndImage" &&v7f872.ImagePosition =="Left") v52172 +="<img align=absmiddle src='" +v7f872.Image +"' hspace=2 />&nbsp;"; v52172 +=v7f872.Text; if (v7f872.DisplayMode =="TextAndImage" &&v7f872.ImagePosition =="Right") v52172 +="&nbsp;<img align=absmiddle src='" +v7f872.Image +"' hspace=2 />"; v52172 +="</div>";  return v52172; }};function WD25_OnButtonClick(v1d792,v2d029){ var v5bb37 =v2d029.Parent; var ve4850 =true; if (typeof(v5bb37.ClientSideEvents.OnButtonClicked)=="function") v5bb37.ClientSideEvents.OnButtonClicked(); else { ve4850 =ISEvent.Raise(v5bb37.ClientSideEvents.OnButtonClicked,v5bb37.id,v2d029); }  if (ve4850) { if (event) { event.cancelBubble =true; event.returnValue =false; }  v5bb37.DialogResult =v2d029.Type; wd42d56.mb8118(v5bb37.Window); }}function WebDialogBoxDestructor(){ var v4ff12 =delete wd42d56;}function ISGetDesktopManagerExact(){ if (typeof(IS)=="object") { for (var v06448=0; v06448<IS.RuntimeObjects.length; v06448++) { var v7a58 =IS.RuntimeObjects[v06448]; if (v7a58 &&v7a58.ClassName !=null &&v7a58.GetType()=="WebDesktopManager" &&v7a58.Id !="Global") return v7a58; } }  while (window.parent !=null &&window !=window.parent) { var vbd289 =window.parent;  if (typeof(vbd289.ISGetDesktopManager)=="function") { return vbd289.ISGetDesktopManager(); } }  return null;}window.attachEvent("onunload",WebDialogBoxDestructor);