
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 2/25/2009 5:06:17 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(v1f466){ this.ClassName ="WebDialogBox"; this.Version ="2.5.2007"; this.BuildNumber ="0"; this.MajorVersion ="1.0"; this.RequiredFrameworkVersion ="2.0.5000.10";  ISControl.call(this,v1f466); 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 =v1f466; this.ID =v1f466; this.UniqueID =v1f466; 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 v39539 =[]; var vdad61 =["Caption","CaptionButton","Window","CommandButton"]; for(var v39062=0; v39062<v39539.length; v39062++) { var vf0b20 =this[v39539[v39062] +"Style"]; if (vf0b20) ISXml.RemoveNode(this.XmlNode,v39539[v39062] +"Style"); }  for(var v39062=0; v39062<vdad61.length; v39062++) { var vf0b20 =this.WindowSettings[vdad61[v39062] +"Style"]; if (vf0b20) ISXml.RemoveNode(this.WindowSettings.XmlNode,vdad61[v39062] +"Style"); } }; this.OnPropertiesInitialized =function() { if (this.Events !=null) { var v29921; for(v29921 in this.Events) { if (typeof(this.Events[v29921])=="string") this.ClientSideEvents[v29921] =this.Events[v29921]; } }  if (ISXml.GetAttribute(this.XmlNode,"Location")!=null) this.Location.Parse(ISXml.GetAttribute(this.XmlNode,"Location")); };  this.CloseDialog =function() { wd83526.m1fd85(this.Window); };  this.BringToFront =function() { wd83526.m76191(this.Window); };  this.OnUnload =function() { for (var v39062=0;v39062<this.CommandButtons.length; v39062++) { var vfe745 =this.CommandButtons[v39062]; var v24d62 =vfe745.GetElement();  if (v24d62) Listener.Unload(v24d62); }  if (this.IntegratedToDesktopManager) { if (this.ParentWindow) { var v52276 =this; ISEvent.RemoveFunctionHandler(this.ParentWindow,"OnPrepareClosed",function(){wd83526.m4e812(v52276);}); } } 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 v24d62 =this.GetContentElement();  if (v24d62) v24d62.removeNode(true);  for (v39062 in IS.RuntimeObjects) { var v69e8 =IS.RuntimeObjects[v39062];  if (v69e8 !=null &&typeof(v69e8)=="object" &&v69e8.Id ==this.Id) { IS.RuntimeObjects[v39062] =null; } }  IS.ActiveCtrl =null; };  this.Activate =function() { wd83526.m11c19(this); }; this.ShowDialog =function(v15550,v8c274) { var v08848 =this.Window;  this.DialogResult =null; if (v08848 ==null ||v08848.GetWindowDivElement()==null ||v08848._Type ==null) { wd83526.mdc013(this); v08848 =this.Window; } v08848.DialogBoxShown =false; v08848.CurrentDialogBox =null; if (this.IsModal) wd83526.m25817(this);  if (IS.moz &&this.ContentScrollable) { var v0e081 =v08848.GetContentDivElement(); if (v0e081) { var va0385 =v0e081.children[0].children[0].children[0];  if (va0385 !=null) { var v2d393 =va0385.rows[0].cells[va0385.rows[0].cells.length-1].children[0];  if (v2d393) { v0e081.children[0].style.height ="100%"; v2d393.style.display ="none"; v2d393.style.overflow ="auto"; setTimeout(function(){v2d393.style.height =v2d393.parentElement.offsetHeight; v2d393.style.display ="";},0); } } } } if (!this.IntegratedToDesktopManager) { var v63070 =v08848.GetWindowDivElement(); v63070.style.display =""; v08848.Size =new UnitSize(v63070.offsetWidth,v63070.offsetHeight); v63070.style.display ="none";  if (this.StartPosition !="Custom") { if (IS.ie) v08848.MoveToCenterDesktop(); else v08848.MoveToCenterDesktopAbsolute(); } else v08848.MoveTo(this.Location.X,this.Location.Y); } else { var v49749 =ISGetDesktopManagerExact(); v49749.Windows.push(v08848);  if (this.StartPosition =="Custom" &&this.ParentWindow) { v08848.MoveTo(this.Location.X,this.Location.Y); } else if (this.StartPosition =="CenterParent" &&this.ParentWindow) { var va8c55 =this.ParentWindow.Size; var v14884 =this.ParentWindow.Location; var vc6e43 =new OffsetLocation();  vc6e43.X =(va8c55.Width-v08848.Size.Width)/2; vc6e43.Y =(va8c55.Height-v08848.Size.Height)/2;  if (vc6e43.X <0) vc6e43.X =0;  if (vc6e43.Y <0) vc6e43.Y =0;  v08848.MoveTo(vc6e43.X+v14884.X,vc6e43.Y+v14884.Y); } else { v08848.MoveToCenterDesktop(); }  if (this.ParentWindow) { this.ParentWindow.DialogBoxShown =true; this.ParentWindow.CurrentDialogBox =this; }  if (this.HostWindow) { this.HostWindow.DialogBoxWindows.push(v08848); this.HostWindow.CurrentDialogBox =this; } } this.IsShown =true; if (this.EnableAnimation &&this.AnimationStyle =="VistaStyleZoom") { v08848.DesktopManager.EnableAnimation =true; v08848.DesktopManager.AnimationStyle ="VistaStyleZoom"; }  if (v15550 &&v8c274 !=null) { v08848.DesktopManager.EnableAnimation =true; v08848.Show(v8c274,"black"); return; } else v08848.Show();  if (this.CommandButtons.length >0 &&this.WindowSettings.ContentMode =="UseInlineContent") this.CommandButtons[0].GetElement().focus();  if (v08848.ContentMode =="UseIFrame") { var v0e081 =v08848.GetContentDivElement();  v0e081.style.overflow ="hidden"; v0e081.style.overflowY ="hidden"; v0e081.style.overflowX ="hidden";  if (v08848.IFrameLoaded) { v08848.IFrameLoaded =false; } }  };  this.GetContentElement =function() { return document.getElementById("dvDlgCnt_" +this.Id); };  this.GetContentTemplateElement =function() { var v24d62 =this.GetContentElement();  return v24d62.children[0].children[0]; };  this.FindControl =function(v1f466) { if (this.IntegratedToDesktopManager) { if (this.Window) { var v49749 =ISGetDesktopManager(); var v4ee50 =v49749.GetDocument();  return v4ee50.getElementById(v1f466); } else return document.getElementById(v1f466); } else return document.getElementById(v1f466); };  this.SetContentURL =function(v71769) { this.ContentURL =v71769;  if (this.Window) { this.Window.ContentURL =v71769; this.Window.ContentURLChanged =true; } };  this.SetContentTemplate =function(vf0b20) { var v24d62 =this.GetContentElement(); this.WindowSettings.ContentMode =="UseInlineContent"; this.ContentTemplate =vf0b20;  if (v24d62 ==null) { v24d62 =document.createElement("div"); v24d62.id ="dvDlgCnt_" +this.Id; v24d62.style.cssText ="display:none; position:absolute"; v24d62.innerHTML =wdfa24.m86267(this); document.body.appendChild(v24d62); } else { var v24185 =this.GetContentTemplateElement();  if (v24185 ==null ||v24185.children.length ==0 ||this.Window !=null) { var vb4741 =this.Window.GetContentDivElement(); v24185 =vb4741.children[0].children[0].children[0].rows[0].cells[1].children[0]; } v24185.innerHTML =vf0b20; } };}function WebDialogBoxButton(v77541,v44022,v85444,vac530){ 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(v77541)!="undefined") this.Name =v77541;  if (typeof(v44022)!="undefined") this.Text =v44022;  if (typeof(v85444)!="undefined") this.Type =v85444;  if (typeof(vac530)!="undefined") this.Image =vac530;  this.GetElement =function() { if (this.Parent.IntegratedToDesktopManager) { var v42141 =ISGetDesktopManager(); if (v42141) return v42141.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 v0c696 =ISGetDesktopManager(); if (v0c696) { var va3c1 =v0c696.GetContentWindow().WebDesktopWindowSettings; va3c1.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(vd8516){ var vbdb80 =wd83526.m23f14(vd8516); vbdb80.OnInitialize();}function CreateWebDialogBox(v69216){ var v0c816 =wd83526.m23f14(v69216,true); v0c816.CreatedAtRuntime =true; v0c816.RuntimeInitialized =false; v0c816.OnInitialize();  return v0c816;}var DialogResult ={ Abort: "Abort", Retry: "Retry", Ignore: "Ignore", OK: "OK", Cancel: "Cancel", Yes: "Yes", No: "No"};var wd83526 ={ Initialized: false,  m23f14:function(v2354,vd9c89) { var vd3a20 =new WebDialogBox(v2354); wd83526.m53a92(vd3a20,vd9c89); wd83526.m0e554(vd3a20); wd83526.m70a58(vd3a20); wd83526.me7555(vd3a20); vd3a20.IsInit =true; return vd3a20; },  m47d6:function(vd9640) { if (vd9640.XmlDt ==null) { var v1b24 =document.createElement("XML"); v1b24.id =vd9640.Id +"_x"; v1b24.innerHTML ="<WebDialogBox />";  document.body.appendChild(v1b24); vd9640.XmlDt =v1b24; return v1b24; }  return null; },  m53a92:function(vcc359,vc0e68) { if (vcc359 ==null) return;  if (!vcc359.IsInit) { var ve4c76 =null;  if (vc0e68) wd83526.m47d6(vcc359);  try { ve4c76 =ISXml.GetNode(vcc359.XmlDt,"//WebDialogBox"); } catch(e) {} if (ve4c76 ==null) ve4c76 =vcc359.XmlDt.documentElement;  if (ve4c76 !=null) { IS.SetPropertiesRecursive(vcc359,ve4c76);  if (!vc0e68) { vcc359.WindowSettings.CaptionButtonStyle =DynamicStyleEngine.Assign(ISXml.GetNode(vcc359.WindowSettings.XmlNode,"//CaptionButtonStyle")); vcc359.WindowSettings.CaptionStyle =DynamicStyleEngine.Assign(ISXml.GetNode(vcc359.WindowSettings.XmlNode,"//CaptionStyle")); vcc359.WindowSettings.WindowStyle =DynamicStyleEngine.Assign(ISXml.GetNode(vcc359.WindowSettings.XmlNode,"//WindowStyle")); vcc359.WindowSettings.CommandButtonStyle =DynamicStyleEngine.Assign(ISXml.GetNode(vcc359.WindowSettings.XmlNode,"//CommandButtonStyle")); } } } },  m0e554:function(vbd779) { window.attachEvent("onload",function(){wd83526.m74d8(vbd779);}); window.attachEvent("onunload",function(){wd83526.m7b555(vbd779);});  if (vbd779.KeepVisibleOnScroll) { if (IS.ie) Listener.Add(document.body,"onscroll",wd83526.m6d240,vbd779); else window.attachEvent("onscroll",function(){wd83526.m6d240(vbd779);}); } },  m70a58:function(v0ac79) { if (IS.moz) { } },  me7555:function(v21279) {  },  md1074:function(v54a79,v5e077,va7d19) { va7d19.Text =v5e077.Text; va7d19.Name ="wnd" +v5e077.Id; va7d19.DesktopManager =v54a79; va7d19.IsDialogBox =true; va7d19.ShowInTaskBar =false; va7d19.Index =v54a79.Windows.length; va7d19.ContentMode =v5e077.WindowSettings.ContentMode; va7d19.Size =new UnitSize(v5e077.Width,v5e077.Height); va7d19.EnableDropShadow =v5e077.EnableDropShadow;  v54a79.EnableAnimation =v5e077.EnableAnimation; if (v5e077.InProgressText !="") v54a79.TextSettings.InProgressText =v5e077.InProgressText;  if (v5e077.ControlBoxImage !="") va7d19.ControlBoxImage =v5e077.ControlBoxImage;  if (va7d19.ContentMode =="UseIFrame") va7d19.ContentURL =v5e077.ContentURL;  var v03579 =function(){wd83526.m4e812(v5e077);}; v03579.TargetObject =v5e077;  if (v5e077.IntegratedToDesktopManager &&IS.ie) ISEvent.AddFunctionHandler(v5e077.ParentWindow,"OnPrepareClosed",v03579); },  m4e812:function(vbd36) { if (vbd36.Window) { var v19634 =vbd36.Window; var v02357 =v19634.GetWindowDivElement();  vbd36.OnUnload(); Listener.Unload(v02357); v02357.removeNode(true); v02357 =null; delete v02357;  v19634 =null; delete v19634; } },  m74d8:function(v3fe6) {  },  m6d240:function(v92e45) { var v9666 =this;  if (v92e45) v9666 =v92e45; if (v9666.Window) { var v3da95 =v9666.Window.Location; var vcb941 =v9666.Window.GetWindowDivElement(); var v94c2 =v9666.Window.OriginalLocation; var vd3595 =v3da95.Y;  if (v94c2 !=null) vd3595 =v94c2.Y;  with (vcb941.style) { top =vd3595 +document.body.scrollTop; }  if (!v9666.Window.OriginalLocation) v9666.Window.OriginalLocation =v3da95; } },  m7b555:function(v0b865) { if (v0b865.IntegratedToDesktopManager) { ISEvent.RemoveFunctionHandler(v0b865.ParentWindow,"OnPrepareClosed",function(){wd83526.m4e812(v0b865);});  if (v0b865.Window) { var v79945 =v0b865.Window; var vf0915 =v79945.GetWindowDivElement();  if (vf0915) { vf0915.removeNode(true); vf0915 =null; delete vf0915;  v79945 =null; delete v79945; } } } },  mdc013:function(v17111,vaa752) { var vd4a0 =null;  v17111.Height =parseFloat(v17111.Height); v17111.Width =parseFloat(v17111.Width); if (v17111.IntegratedToDesktopManager) { var v57c94 =ISGetDesktopManagerExact(); var v7dc60 =v17111.WindowSettings; var v48929 =v57c94.GetContentWindow();  if (!v57c94) { alert("Integration Error: Can't find DesktopManager instance!"); return; }  v17111.ParentWindow =ISGetCurrentWindow();  if (!v17111.ParentWindow) v17111.ParentWindow =ISGetCurrentWindow(true);  if (v17111.ParentWindow !=null &&v17111.ParentWindow.GetType()!="WebDesktopWindow") v17111.ParentWindow =null;  if (!v17111.ParentWindow) v17111.ParentWindow =ISGetCurrentWindow(true,v57c94);  if (!v17111.ParentWindow) v17111.ParentWindow =ISGetActiveWindow();  if (v17111.ParentWindow !=null &&v17111.ParentWindow.IsDialogBox) v17111.HostWindow =wd83526.mb9d66(v17111.ParentWindow); else v17111.HostWindow =v17111.ParentWindow;  vd4a0 =v57c94.CreateWindow(); wd83526.md1074(v57c94,v17111,vd4a0); vd4a0.AllowMinimize ="No"; vd4a0.AllowMaximize ="No"; vd4a0.AllowResize =v7dc60.AllowResize; vd4a0.ControlBox =v7dc60.ControlBox; vd4a0.AllowClose =v7dc60.AllowClose; vd4a0.ContentMode =v7dc60.ContentMode; vd4a0.DesktopManager =v57c94; vd4a0.Collection =v57c94.Windows; if (vd4a0.GetWindowDivElement()!=null) vaa752 =true; if (!vaa752) { v48929.wd83010.m93a39(vd4a0); var v56916 =vd4a0.GetContentDivElement(); v56916.style.overflow =v56916.style.overflowX =v56916.style.overflowY ="visible"; } else { vd4a0.ReInitialize(); vd4a0.DialogBox =v17111; vd4a0.CreatedAtRuntime =true; v17111.Window =vd4a0; } } else { var v57c94 =null; vd4a0 =new WebDesktopWindow();  try { v57c94 =ISGetDesktopManager(); var vec332 =false;  if (v57c94 !=null) { if (v57c94.GetContentWindow().location.pathname !=window.location.pathname) vec332 =true; }  if (!v57c94 ||(v57c94 &&v57c94.Id !="Global")||vec332) v57c94 =new WebDesktopManager("Global"); } catch(e) {}  if (!v57c94) { alert("Integration Error: Unable to create DesktopManager instance!"); return; } ISEvent.Raise(v17111.ClientSideEvents.OnBeforeCreated,v17111.Id,v57c94);  v57c94.CreatedAtRuntime =true; v57c94.Id ="Global"; v57c94.FrameObj =document.body; v57c94.WindowSettings =v17111.WindowSettings; v57c94.UseWebResourcesForClient =v17111.UseWebResourcesForClient;  wd83526.md1074(v57c94,v17111,vd4a0); wd83010.m93a39(vd4a0);  if (typeof(wd3e491)=="object") wd3e491.mb810(v57c94.InteractiveObjects); }  ISEvent.Raise(v17111.ClientSideEvents.OnCreated,v17111.Id);  wd83526.mb2c47(v17111,vd4a0); wd83526.m76191(vd4a0); wd83526.mc6056(v17111); vd4a0.ResizeTo(v17111.Width,v17111.Height); vd4a0.DialogBox =v17111; v17111.Window =vd4a0; },  mb9d66:function(vdd431) { while (vdd431.IsDialogBox) vdd431 =vdd431.DialogBox.ParentWindow; return vdd431; },  m97187:function() { var vfe667 =event; if (vfe667 ==null) vfe667 =ISGetDesktopManager().GetContentWindow().event;  var vb5831 =vfe667.srcElement; var vfe516 =true; if (vfe667.keyCode ==9) { var v1bb38 =vb5831.id.substring(0,vb5831.id.indexOf("_")); var veb182 =vb5831.id.substring(vb5831.id.indexOf("_")+1); var v8c70 =ISGetObject(v1bb38); var v16750 =v8c70.CommandButtons.GetNamedItem(veb182); var v5fa65 =null;  if (vfe667.shiftKey) vfe516 =false;  if (vfe516) { v5fa65 =v8c70.CommandButtons[v16750.Index+1]; if (v5fa65 ==null) v5fa65 =v8c70.CommandButtons[0]; } else { v5fa65 =v8c70.CommandButtons[v16750.Index-1]; if (v5fa65 ==null) v5fa65 =v8c70.CommandButtons[v8c70.CommandButtons.length-1]; }  if (v5fa65) { v5fa65.GetElement().focus(); }  if (IS.ie) vfe667.keyCode =0; vfe667.returnValue =false; } },  m36272:function(vb6725) { if (vb6725.CommandButtons.length >0 &&vb6725.WindowSettings.ContentMode =="UseInlineContent") { vb6725.CommandButtons[0].GetElement().focus(); } else { if (vb6725.WindowSettings.ContentMode =="UseIFrame") { } } },  m60886:function(v7d997) { if (v7d997.IntegratedToDesktopManager) { var v45961 =event; if (v45961 ==null) v45961 =ISGetDesktopManager().GetContentWindow().event;  if (v45961 !=null) { v45961.cancelBubble =true; v45961.returnValue =false; } } },  mc6056:function(v55816) { if (v55816.WindowSettings.ContentMode =="UseIFrame")return;  for (var vb1a97=0;vb1a97<v55816.CommandButtons.length; vb1a97++) { var v28499 =v55816.CommandButtons[vb1a97]; var vf4f54 =v28499.GetElement();  wde1961.m3f218(v28499); Listener.Add(vf4f54,"onkeydown",wd83526.m97187); v28499.IntegratedToDesktopManager =v55816.IntegratedToDesktopManager; v28499.ButtonStyle =new DynamicStyle(); v28499.ButtonStyle.Normal =v55816.WindowSettings.CommandButtonStyle.Normal; v28499.ButtonStyle.Over =v55816.WindowSettings.CommandButtonStyle.Over; v28499.ButtonStyle.Active =v55816.WindowSettings.CommandButtonStyle.Active; v28499.ButtonStyle.Object =vf4f54; v28499.Index =vb1a97;  if (v28499.IntegratedToDesktopManager) wde1961.md9684(v28499); } },  mb2c47:function(vba872,ve0087) { var vcba0 =ve0087.GetContentDivElement(); var v17c48 =vcba0.children[0]; var v5a269 =vba872.GetContentElement();  if (vba872.WindowSettings.ContentMode =="UseInlineContent") { if (vba872.IntegratedToDesktopManager) v17c48.innerHTML =v5a269.children[0].children[0].outerHTML; else v17c48.appendChild(v5a269.children[0].children[0]); var v1e388 =v17c48.children[0].children[0]; v1e388.style.fontFamily =vcba0.currentStyle.fontFamily; v1e388.style.fontSize =vcba0.currentStyle.fontSize; v1e388.style.color =vcba0.currentStyle.color; v1e388.style.cursor ="default";  ISEvent.Raise(vba872.ClientSideEvents.OnSetContent,vba872,ve0087,v17c48.children[0].children[0]); }  },  m76191:function(vef927) { var v62c91 =vef927.GetWindowDivElement(); v62c91.style.zIndex =205; },  m1fd85:function(vdb986) { var v2b427 =vdb986.DialogBox; var vbd666 =vdb986.GetWindowDivElement(); if (v2b427.IsModal) wd83526.me9323(v2b427);  if (v2b427.IntegratedToDesktopManager) { var v7fb91 =null; var v51b75 =v2b427.HostWindow;  vdb986.Collection.Remove(vdb986);  if (v51b75) { var vd9369 =v51b75.DialogBoxWindows; vd9369.Remove(vdb986);  if (vd9369.length >0) v7fb91 =vd9369[vd9369.length-1];  if (v7fb91 !=null) v51b75.CurrentDialogBox =v7fb91.DialogBox; else { v51b75.DialogBoxShown =false; v51b75.CurrentDialogBox =null; } }  if (v2b427.ParentWindow) { if (v7fb91 ==null) v2b427.ParentWindow.CurrentDialogBox =null; v2b427.ParentWindow.DialogBoxShown =false;  v2b427.ParentWindow.DesktopManager.ActiveWindowIndex =-1; v2b427.ParentWindow.Activate(); } else { var v53d48 =vdb986.DesktopManager.GetTopMostWindowBefore(); if (v53d48) { vdb986.DesktopManager.ActiveWindowIndex =-1; v53d48.Activate(); } } }  if (v2b427.DialogResult ==null) v2b427.DialogResult ="Cancel"; var v15751 =ISEvent.Raise(v2b427.ClientSideEvents.OnClosed,v2b427.Id,v2b427.DialogResult); if (!v15751)return; if (vdb986.EnableDropShadow &&vdb986.DropShadow !=null) vdb986.DropShadow.Hide();   vbd666.style.display ="none"; v2b427.IsShown =false;  if (v2b427.WindowSettings.ContentMode =="UseIFrame" &&v2b427.IntegratedToDesktopManager &&!v2b427.ReuseIFrame) { wd83526.mabc66(vdb986); } },  mabc66:function(v05197) { var v20822 =v05197.DialogBox; var vdb465 =ISGetDesktopManager(); var vdc410 =vdb465.GetIFrameWindow(v05197.Name); if (vdc410 &&vdc410.document) { var v6f71 =vdc410.document; if (vdc410.onunload !=null) vdc410.onunload();  if (vdc410.ISCoreDestructor) vdc410.ISCoreDestructor();  v6f71.body.onunload =null; v6f71.open("text/html"); v6f71.write(""); v6f71.close();  if (v20822.Window) v20822.Window.ContentURLChanged =true; } },  mab347:function(v66032,vfcb23,v09d80) { if (!v09d80)v09d80 ="afterBegin";  var vdbf97 =document.createElement("DIV"); vdbf97.hideFocus =true;  if (IS.moz) vdbf97.style.cssText ="width: 100px; height: 100px";  vdbf97.innerHTML ="<img width=100% height=100% src='" +v66032.ResolveImagePath(v66032.ImagesDirectory,"blank.gif")+"' />"; vdbf97.onclick =function(){wd83526.m36272(v66032);}; vdbf97.onmousedown =function(){wd83526.m60886(v66032);}; vdbf97.onselectstart =function(){return false;}; vfcb23.insertAdjacentElement(v09d80,vdbf97);  v66032.Shadow =vdbf97; return vdbf97; },  m25817:function(v8c018) { if (v8c018.IntegratedToDesktopManager) { var v07152 =v8c018.Shadow; var v81632 =v8c018.ParentWindow; if (v07152 ==null) { var vefb47 =null; var v0a669 =null;  if (v81632) { vefb47 =v81632.DesktopManager; v0a669 =v81632.GetWindowDivElement(); } else { vefb47 =ISGetDesktopManager(); v0a669 =vefb47.GetDesktopElement();  vefb47.TaskBarLocked =true; }  v07152 =wd83526.mab347(v8c018,v0a669,"beforeEnd"); }  with (v07152.style) { position ="absolute"; if (v81632) { width =v81632.Size.Width; height =v81632.Size.Height; } else { width =document.body.offsetWidth; height =document.body.offsetHeight; } left =0; top =0;  if (v8c018.ShadowColor =="Transparent" ||v8c018.ShadowColor =="") backgroundColor ="transparent"; else { if (v8c018.ShadowColor.indexOf(",")>-1) backgroundColor ="rgb(" +v8c018.ShadowColor +")"; else backgroundColor =v8c018.ShadowColor;  filter ="Alpha(Opacity=" +v8c018.ShadowOpacity +")"; opacity =v8c018.ShadowOpacity/100; }  display =""; zIndex =101; } } else { var v07152 =v8c018.Shadow; if (v07152 ==null) v07152 =wd83526.mab347(v8c018,document.body);  with (v07152.style) { position ="absolute";  var v6e197 =parseFloat(document.body.currentStyle.marginLeft); var v7ba36 =parseFloat(document.body.currentStyle.marginRight); var v81747 =parseFloat(document.body.currentStyle.marginTop); var va1a68 =parseFloat(document.body.currentStyle.marginBottom); var ve1088 =0; var v43f5 =0;  if (isNaN(v6e197)) v6e197 =0;  if (isNaN(v7ba36)) v7ba36 =0;  if (isNaN(v81747)) v81747 =0;  if (isNaN(va1a68)) va1a68 =0;   if (document.body.scrollWidth >document.body.clientWidth) ve1088 =document.body.scrollWidth; else ve1088 =document.body.clientWidth -v6e197 -v7ba36;  if (document.body.scrollHeight >document.body.clientHeight) v43f5 =document.body.scrollHeight; else v43f5 =document.body.clientHeight -v81747 -va1a68;  width =ve1088; height =v43f5;  if (v8c018.ShadowColor =="Transparent" ||v8c018.ShadowColor =="") backgroundColor ="transparent"; else { if (v8c018.ShadowColor.indexOf(",")>-1) backgroundColor ="rgb(" +v8c018.ShadowColor +")"; else backgroundColor =v8c018.ShadowColor; filter ="Alpha(Opacity=" +v8c018.ShadowOpacity +")"; opacity =v8c018.ShadowOpacity/100; }  display =""; zIndex =101; } } },  me9323:function(v1e538) { var vb392 =v1e538.Shadow; vb392.style.display ="none"; if (v1e538.IntegratedToDesktopManager) { var v3d310 =ISGetDesktopManager(); v3d310.TaskBarLocked =false; } else { } },  m11c19:function(v6c157) { var v2c138 =v6c157.HostWindow;  if (!v2c138) v2c138 =v6c157.ParentWindow;  if (v2c138) { var vb5e79 =v2c138;  if (!vb5e79.IsActiveWindow()) { vb5e79.Activate(); } } } };var wdfa24 ={ m86267:function(vc4346) { var v49027 =vc4346.WindowSettings; var v3a814 =""; var v86c59 ="<div class='";  if (vc4346.DialogBoxImage =="Custom") v3a814 =vc4346.CustomDialogBoxImage; else v3a814 ="isdialog_" +vc4346.DialogBoxImage +".gif";  if (v49027.BorderType =="ComplexImages") v86c59 +=v49027.WindowStyle.Normal; else v86c59 +=v49027.ContainerStyle;  v86c59 +="'><div><table cellspacing=4 cellpadding=0 width=100% height=100%><tr height=100%><td valign=" +vc4346.DialogBoxImageVAlign +">";  if (vc4346.DialogBoxImage !="None") v86c59 +="<img src='" +vc4346.ResolveImagePath(vc4346.ImagesDirectory,v3a814)+"' /></td><td width=100%>";  v86c59 +="<div style='width:100%; height:100%;"; if (vc4346.ContentScrollable) { if (IS.ie) v86c59 +=";overflow-y:auto;overflow-x:hidden;"; else v86c59 +=";overflow:auto;"; }  v86c59 +="'>"; v86c59 +=vc4346.ContentTemplate; v86c59 +="</div></td></tr>";  vc4346.CommandButtons.Parent =this; if (vc4346.CommandButtons.length >0) { v86c59 +="<tr><td colspan=2 align=" +vc4346.CommandButtonAlignment; v86c59 +=" style='padding:" +vc4346.WindowSettings.CommandBarPadding +"px'>"; v86c59 +=wdfa24.m1f911(vc4346); v86c59 +="</td></tr>"; }  v86c59 +="</table></div></div>";  return v86c59; },  m1f911:function(v27966) { var v0c882 ="<table cellspacing=0 cellpadding=" +v27966.CommandButtonSpacing +">";  v0c882 +="<tr>"; for (var v07393=0; v07393<v27966.CommandButtons.length; v07393++) { var vb9d44 =v27966.CommandButtons[v07393];  vb9d44.Parent =v27966; v0c882 +="<td>"; v0c882 +=wdfa24.md062(v27966,vb9d44); v0c882 +="</td>"; } v0c882 +="</tr>"; v0c882 +="</table>";  return v0c882; },  md062:function(vab337,v2a772) { var vada2 ="<button id='" +vab337.ClientID +"_" +v2a772.Name +"' ";  vada2 +="class=" +vab337.WindowSettings.CommandButtonStyle.Normal +" "; vada2 +="style='"; vada2 +="height:" +vab337.CommandButtonSize.Height +"px;"; vada2 +="width:" +vab337.CommandButtonSize.Width +"px;"; vada2 +="'"; vada2 +=">"; vada2 +=wdfa24.m3b37(v2a772); vada2 +="</button>"; return vada2; },  m3b37:function(vb8921) { var v88f37 ="<div>"; if (vb8921.DisplayMode =="TextAndImage" &&vb8921.ImagePosition =="Left") v88f37 +="<img align=absmiddle src='" +vb8921.Image +"' hspace=2 />&nbsp;"; v88f37 +=vb8921.Text; if (vb8921.DisplayMode =="TextAndImage" &&vb8921.ImagePosition =="Right") v88f37 +="&nbsp;<img align=absmiddle src='" +vb8921.Image +"' hspace=2 />"; v88f37 +="</div>";  return v88f37; }};function WD25_OnButtonClick(v16d71,vbed90){ var ve3c99 =vbed90.Parent; var v24a51 =true; if (typeof(ve3c99.ClientSideEvents.OnButtonClicked)=="function") ve3c99.ClientSideEvents.OnButtonClicked(); else { v24a51 =ISEvent.Raise(ve3c99.ClientSideEvents.OnButtonClicked,ve3c99.id,vbed90); }  if (v24a51) { if (event) { event.cancelBubble =true; event.returnValue =false; }  ve3c99.DialogResult =vbed90.Type; wd83526.m1fd85(ve3c99.Window); }}function WebDialogBoxDestructor(){ var v73971 =delete wd83526;}function ISGetDesktopManagerExact(){ if (typeof(IS)=="object") { for (var v1a355=0; v1a355<IS.RuntimeObjects.length; v1a355++) { var v28030 =IS.RuntimeObjects[v1a355]; if (v28030 &&v28030.ClassName !=null &&v28030.GetType()=="WebDesktopManager" &&v28030.Id !="Global") return v28030; } }  while (window.parent !=null &&window !=window.parent) { var v60030 =window.parent;  if (typeof(v60030.ISGetDesktopManager)=="function") { return v60030.ISGetDesktopManager(); } }  return null;}window.attachEvent("onunload",WebDialogBoxDestructor);