
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 12/8/2009 8:47:41 AM
// 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(v2a524){ this.ClassName ="WebDialogBox"; this.Version ="2.5.2007"; this.BuildNumber ="0"; this.MajorVersion ="1.0"; this.RequiredFrameworkVersion ="2.0.5000.10";  ISControl.call(this,v2a524); this.ScriptDirectory ="/CommonLibrary/WebDesktop/V3_0_7200/"; 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 =v2a524; this.ID =v2a524; this.UniqueID =v2a524; 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.ShowOnLoad =false; this.CustomZIndex =-1;  if (typeof (WebDesktopImagesSettings)!="undefined") this.ImagesSettings =new WebDesktopImagesSettings();  this.OnInitialize =function() { this.RemoveDynamicStyle();  if (this.CreateAtRuntime) this.CommandButtons.Parent =this; };  this.RemoveDynamicStyle =function() { var v4646 =[]; var vd1b17 =["Caption","CaptionButton","Window","CommandButton"]; for(var v01617=0; v01617<v4646.length; v01617++) { var va5113 =this[v4646[v01617] +"Style"]; if (va5113) ISXml.RemoveNode(this.XmlNode,v4646[v01617] +"Style"); }  for(var v01617=0; v01617<vd1b17.length; v01617++) { var va5113 =this.WindowSettings[vd1b17[v01617] +"Style"]; if (va5113) ISXml.RemoveNode(this.WindowSettings.XmlNode,vd1b17[v01617] +"Style"); } }; this.OnPropertiesInitialized =function() { if (this.Events !=null) { var v2616; for(v2616 in this.Events) { if (typeof(this.Events[v2616])=="string") this.ClientSideEvents[v2616] =this.Events[v2616]; } }  if (ISXml.GetAttribute(this.XmlNode,"Location")!=null) this.Location.Parse(ISXml.GetAttribute(this.XmlNode,"Location")); };  this.CloseDialog =function() { wde3022.m17426(this.Window); };  this.BringToFront =function() { wde3022.m66857(this.Window); };  this.OnUnload =function() { for (var v01617=0;v01617<this.CommandButtons.length; v01617++) { var v12724 =this.CommandButtons[v01617]; var v63778 =v12724.GetElement();  if (v63778) Listener.Unload(v63778); }  if (this.IntegratedToDesktopManager) { if (this.ParentWindow) { var vc0a8 =this; ISEvent.RemoveFunctionHandler(this.ParentWindow,"OnPrepareClosed",function(){wde3022.mde52(vc0a8);}); } } 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 v63778 =this.GetContentElement();  if (v63778) v63778.removeNode(true);  for (v01617 in IS.RuntimeObjects) { var vf7773 =IS.RuntimeObjects[v01617];  if (vf7773 !=null &&typeof(vf7773)=="object" &&vf7773.Id ==this.Id) { IS.RuntimeObjects[v01617] =null; } }  IS.ActiveCtrl =null; };  this.Activate =function() { wde3022.m73783(this); }; this.ShowDialog =function(v3a58,vff379) { var v5e030 =this.Window; var v2105 =10;  this.DialogResult =null; if (v5e030 ==null ||v5e030.GetWindowDivElement()==null ||v5e030._Type ==null) { wde3022.m55896(this); v5e030 =this.Window; } v5e030.DialogBoxShown =false; v5e030.CurrentDialogBox =null; if (this.IsModal) wde3022.mbf273(this);  if (IS.moz &&this.ContentScrollable) { var v0778 =v5e030.GetContentDivElement(); if (v0778) { var v9c991 =v0778.children[0].children[0].children[0];  if (v9c991 !=null) { var v19887 =v9c991.rows[0].cells[v9c991.rows[0].cells.length-1].children[0];  if (v19887) { v0778.children[0].style.height ="100%"; v19887.style.display ="none"; v19887.style.overflow ="auto"; setTimeout(function(){v19887.style.height =v19887.parentElement.offsetHeight; v19887.style.display ="";},0); } } } } if (!this.IntegratedToDesktopManager) { var v0c75 =v5e030.GetWindowDivElement(); v0c75.style.display =""; v5e030.Size =new UnitSize(v0c75.offsetWidth,v0c75.offsetHeight); v0c75.style.display ="none";  if (this.CustomZIndex !=-1) wde3022.m66857(v5e030,this.CustomZIndex);  if (this.StartPosition !="Custom") { if (IS.ie) v5e030.MoveToCenterDesktop(); else v5e030.MoveToCenterDesktopAbsolute(); } else v5e030.MoveTo(this.Location.X,this.Location.Y); var v84999 =v5e030.DesktopManager; v84999.WindowSettings =this.WindowSettings; if (this.ImagesSettings &&!wde3022.me6878(this)) v84999.ImagesSettings =this.ImagesSettings; } else { var v79372 =ISGetDesktopManagerExact(); v79372.Windows.push(v5e030);  if (this.StartPosition =="Custom" &&this.ParentWindow) { v5e030.MoveTo(this.Location.X,this.Location.Y); } else if (this.StartPosition =="CenterParent" &&this.ParentWindow) { var v72529 =this.ParentWindow.Size; var v9e080 =this.ParentWindow.Location; var va732 =new OffsetLocation();  va732.X =(v72529.Width-v5e030.Size.Width)/2; va732.Y =(v72529.Height-v5e030.Size.Height)/2;  if (va732.X <0) va732.X =0;  if (va732.Y <0) va732.Y =0;  v5e030.MoveTo(va732.X+v9e080.X,va732.Y+v9e080.Y); } else { v5e030.MoveToCenterDesktop(); }  if (this.ParentWindow) { this.ParentWindow.DialogBoxShown =true; this.ParentWindow.CurrentDialogBox =this; }  if (this.HostWindow) { this.HostWindow.DialogBoxWindows.push(v5e030); this.HostWindow.CurrentDialogBox =this; } } this.IsShown =true; if (this.EnableAnimation &&this.AnimationStyle =="VistaStyleZoom") { v5e030.DesktopManager.EnableAnimation =true; v5e030.DesktopManager.AnimationStyle ="VistaStyleZoom"; v2105 =200; }  if (v3a58 &&vff379 !=null) { v5e030.DesktopManager.EnableAnimation =true; v5e030.Show(vff379,"black"); return; } else v5e030.Show();  if (this.CommandButtons.length >0 &&this.WindowSettings.ContentMode =="UseInlineContent") { var v8c679 =this; setTimeout(function(){try {v8c679.CommandButtons[0].GetElement().focus(); }catch(e){}},v2105); }  if (v5e030.ContentMode =="UseIFrame") { var v0778 =v5e030.GetContentDivElement();  v0778.style.overflow ="hidden"; v0778.style.overflowY ="hidden"; v0778.style.overflowX ="hidden";  if (v5e030.IFrameLoaded) { v5e030.IFrameLoaded =false; } } };  this.GetContentElement =function() { return document.getElementById("dvDlgCnt_" +this.Id); };  this.GetContentTemplateElement =function() { var v63778 =this.GetContentElement();  return v63778.children[0].children[0]; };  this.FindControl =function(v2a524) { if (this.IntegratedToDesktopManager) { if (this.Window) { var v79372 =ISGetDesktopManager(); var v3c864 =v79372.GetDocument();  return v3c864.getElementById(v2a524); } else return document.getElementById(v2a524); } else return document.getElementById(v2a524); };  this.SetContentURL =function(v3ab27) { this.ContentURL =v3ab27;  if (this.Window) { this.Window.ContentURL =v3ab27; this.Window.ContentURLChanged =true; } };  this.SetContentTemplate =function(va5113) { var v63778 =this.GetContentElement(); this.WindowSettings.ContentMode =="UseInlineContent"; this.ContentTemplate =va5113;  if (v63778 ==null) { v63778 =document.createElement("div"); v63778.id ="dvDlgCnt_" +this.Id; v63778.style.cssText ="display:none; position:absolute"; v63778.innerHTML =wdc9b48.m24826(this); document.body.appendChild(v63778); } else { var v3b474 =this.GetContentTemplateElement();  if (v3b474 ==null ||v3b474.children.length ==0 ||this.Window !=null) { var v32746 =this.Window.GetContentDivElement(); var vef222 =v32746.children[0].children[0].children[0].rows[0]; var ve6832 =1; if (vef222.cells.length ==1) ve6832 =0; v3b474 =vef222.cells[ve6832].children[0]; } v3b474.innerHTML =va5113; } };  this.SetZIndex =function(vebf99) { this.CustomZIndex =vebf99; wde3022.m66857(this.Window,vebf99); };}function WebDialogBoxButton(v78219,v76337,v93a70,vdcd30){ 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(v78219)!="undefined") this.Name =v78219;  if (typeof(v76337)!="undefined") this.Text =v76337;  if (typeof(v93a70)!="undefined") this.Type =v93a70;  if (typeof(vdcd30)!="undefined") this.Image =vdcd30;  this.GetElement =function() { if (this.Parent.IntegratedToDesktopManager) { var vdb383 =ISGetDesktopManager(); if (vdb383) return vdb383.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 v03158 =ISGetDesktopManager(); if (v03158) { var vd9f56 =v03158.GetContentWindow().WebDesktopWindowSettings; vd9f56.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(v52229){ var v9a794 =wde3022.m51853(v52229); v9a794.OnInitialize();}function CreateWebDialogBox(vba029){ var v12329 =wde3022.m51853(vba029,true); v12329.CreatedAtRuntime =true; v12329.RuntimeInitialized =false; v12329.OnInitialize();  return v12329;}var DialogResult ={ Abort: "Abort", Retry: "Retry", Ignore: "Ignore", OK: "OK", Cancel: "Cancel", Yes: "Yes", No: "No"};var wde3022 ={ Initialized: false,  m51853:function(vcb03,v6c148) { var v8cf3 =new WebDialogBox(vcb03); wde3022.mfa925(v8cf3,v6c148); wde3022.m80446(v8cf3); wde3022.m66930(v8cf3); wde3022.mde652(v8cf3); v8cf3.IsInit =true; return v8cf3; },  md4f63:function(v33b23) { if (v33b23.XmlDt ==null) { var v0f823 =document.createElement("XML"); v0f823.id =v33b23.Id +"_x"; v0f823.innerHTML ="<WebDialogBox />";  document.body.appendChild(v0f823); v33b23.XmlDt =v0f823; return v0f823; }  return null; },  mfa925:function(vf3859,ve4327) { if (vf3859 ==null) return;  if (!vf3859.IsInit) { var v86623 =null; if (typeof (IS_ReleaseType)!="undefined" &&IS_ReleaseType =="Beta") { vf3859.ScriptDirectory ="/CommonLibraryBeta/WebDesktop/V3_0_7200/"; vf3859.ImagesDirectory ="/CommonLibraryBeta/Images/WebDesktop/"; }  if (ve4327) wde3022.md4f63(vf3859);  try { v86623 =ISXml.GetNode(vf3859.XmlDt,"//WebDialogBox"); } catch(e) {} if (v86623 ==null) v86623 =vf3859.XmlDt.documentElement;  if (v86623 !=null) { IS.SetPropertiesRecursive(vf3859,v86623);  if (!ve4327) { vf3859.WindowSettings.CaptionButtonStyle =DynamicStyleEngine.Assign(ISXml.GetNode(vf3859.WindowSettings.XmlNode,"//CaptionButtonStyle")); vf3859.WindowSettings.CaptionStyle =DynamicStyleEngine.Assign(ISXml.GetNode(vf3859.WindowSettings.XmlNode,"//CaptionStyle")); vf3859.WindowSettings.WindowStyle =DynamicStyleEngine.Assign(ISXml.GetNode(vf3859.WindowSettings.XmlNode,"//WindowStyle")); vf3859.WindowSettings.CommandButtonStyle =DynamicStyleEngine.Assign(ISXml.GetNode(vf3859.WindowSettings.XmlNode,"//CommandButtonStyle")); } } } },  m80446:function(v29878) { window.attachEvent("onload",function(){wde3022.mdd657(v29878);}); window.attachEvent("onunload",function(){wde3022.m5f492(v29878);});  if (v29878.KeepVisibleOnScroll) { if (IS.ie) Listener.Add(document.body,"onscroll",wde3022.m4fa26,v29878); else window.attachEvent("onscroll",function(){wde3022.m4fa26(v29878);}); } },  m66930:function(vce878) { if (IS.moz) { } },  mde652:function(v33578) {  },  m70d4:function(v9cf98,vb0946,v49845) { v49845.Text =vb0946.Text; v49845.Name ="wnd" +vb0946.Id; v49845.DesktopManager =v9cf98; v49845.IsDialogBox =true; v49845.ShowInTaskBar =false; v49845.Index =v9cf98.Windows.length; v49845.ContentMode =vb0946.WindowSettings.ContentMode; v49845.Size =new UnitSize(vb0946.Width,vb0946.Height); v49845.EnableDropShadow =vb0946.EnableDropShadow;  v9cf98.EnableAnimation =vb0946.EnableAnimation; if (vb0946.InProgressText !="") v9cf98.TextSettings.InProgressText =vb0946.InProgressText;  if (vb0946.ControlBoxImage !="") v49845.ControlBoxImage =vb0946.ControlBoxImage;  if (v49845.ContentMode =="UseIFrame") v49845.ContentURL =vb0946.ContentURL;  var v94278 =function(){wde3022.mde52(vb0946);}; v94278.TargetObject =vb0946;  if (vb0946.IntegratedToDesktopManager &&IS.ie) ISEvent.AddFunctionHandler(vb0946.ParentWindow,"OnPrepareClosed",v94278); },  mde52:function(v4fd73) { if (v4fd73.Window) { var vf6570 =v4fd73.Window; var v46385 =vf6570.GetWindowDivElement();  v4fd73.OnUnload(); Listener.Unload(v46385); v46385.removeNode(true); v46385 =null; delete v46385;  vf6570 =null; delete vf6570; } },  mdd657:function(v15c64) { if (v15c64.ShowOnLoad &&!v15c64.IsShown) v15c64.ShowDialog(); },  m4fa26:function(v14e50) { var va5b19 =this;  if (v14e50) va5b19 =v14e50; if (va5b19.Window) { var v34262 =va5b19.Window.Location; var v48186 =va5b19.Window.GetWindowDivElement(); var v38440 =va5b19.Window.OriginalLocation; var v4d624 =v34262.Y;  if (v38440 !=null) v4d624 =v38440.Y;  with (v48186.style) { top =v4d624 +document.body.scrollTop; }  if (!va5b19.Window.OriginalLocation) va5b19.Window.OriginalLocation =v34262; } },  m5f492:function(v1d033) { if (v1d033.IntegratedToDesktopManager) { ISEvent.RemoveFunctionHandler(v1d033.ParentWindow,"OnPrepareClosed",function(){wde3022.mde52(v1d033);});  if (v1d033.Window) { var v03b50 =v1d033.Window; var vde830 =v03b50.GetWindowDivElement();  if (vde830) { vde830.removeNode(true); vde830 =null; delete vde830;  v03b50 =null; delete v03b50; } } } },  m55896:function(va5935,v3d677) { var v6d95 =null;  va5935.Height =parseFloat(va5935.Height); va5935.Width =parseFloat(va5935.Width); if (va5935.IntegratedToDesktopManager) { var v74a9 =ISGetDesktopManagerExact(); var vb8d8 =va5935.WindowSettings; var v52511 =v74a9.GetContentWindow();  if (!v74a9) { alert("Integration Error: Can't find DesktopManager instance!"); return; }  va5935.ParentWindow =ISGetCurrentWindow();  if (!va5935.ParentWindow) va5935.ParentWindow =ISGetCurrentWindow(true);  if (va5935.ParentWindow !=null &&va5935.ParentWindow.GetType()!="WebDesktopWindow") va5935.ParentWindow =null;  if (!va5935.ParentWindow) va5935.ParentWindow =ISGetCurrentWindow(true,v74a9);  if (!va5935.ParentWindow) va5935.ParentWindow =ISGetActiveWindow();  if (va5935.ParentWindow !=null &&va5935.ParentWindow.IsDialogBox) va5935.HostWindow =wde3022.m76033(va5935.ParentWindow); else va5935.HostWindow =va5935.ParentWindow;  v6d95 =v74a9.CreateWindow(); wde3022.m70d4(v74a9,va5935,v6d95); v6d95.AllowMinimize ="No"; v6d95.AllowMaximize ="No"; v6d95.AllowResize =vb8d8.AllowResize; v6d95.ControlBox =vb8d8.ControlBox; v6d95.AllowClose =vb8d8.AllowClose; v6d95.ContentMode =vb8d8.ContentMode; v6d95.DesktopManager =v74a9; v6d95.Collection =v74a9.Windows; if (v6d95.GetWindowDivElement()!=null) v3d677 =true; if (!v3d677) { v52511.wd9ac40.md1c32(v6d95); var va8290 =v6d95.GetContentDivElement(); va8290.style.overflow =va8290.style.overflowX =va8290.style.overflowY ="visible"; } else { v6d95.ReInitialize(); v6d95.DialogBox =va5935; v6d95.CreatedAtRuntime =true; va5935.Window =v6d95; } } else { var v74a9 =null; v6d95 =new WebDesktopWindow();  try { v74a9 =ISGetDesktopManager(); var v75320 =false;  if (v74a9 !=null) { if (v74a9.GetContentWindow().location.pathname !=window.location.pathname) v75320 =true; }  if (!v74a9 ||(v74a9 &&v74a9.Id !="Global")||v75320) v74a9 =new WebDesktopManager("Global"); } catch(e) {}  if (!v74a9) { alert("Integration Error: Unable to create DesktopManager instance!"); return; } ISEvent.Raise(va5935.ClientSideEvents.OnBeforeCreated,va5935.Id,v74a9);  v74a9.CreatedAtRuntime =true; v74a9.Id ="Global"; v74a9.FrameObj =document.body; v74a9.WindowSettings =va5935.WindowSettings; v74a9.UseWebResourcesForClient =va5935.UseWebResourcesForClient; if (va5935.ImagesSettings &&!wde3022.me6878(va5935)) v74a9.ImagesSettings =va5935.ImagesSettings; wde3022.m70d4(v74a9,va5935,v6d95); wd9ac40.md1c32(v6d95);  if (typeof(wd80959)=="object") wd80959.m78889(v74a9.InteractiveObjects); }  ISEvent.Raise(va5935.ClientSideEvents.OnCreated,va5935.Id);  wde3022.mea080(va5935,v6d95); wde3022.m66857(v6d95); wde3022.m9c02(va5935); v6d95.ResizeTo(va5935.Width,va5935.Height); v6d95.DialogBox =va5935; va5935.Window =v6d95; },  me6878:function(v43175) { var v9d391 =null;  if (typeof (WebDesktopImagesSettings)!="undefined") v9d391 =new WebDesktopImagesSettings(); if (!v9d391) return true;  for (prop in v9d391) { if (prop.indexOf("Xml")==-1 &&typeof (v9d391[prop])!="function") { if (v9d391[prop] !=v43175.ImagesSettings[prop]) return false; } }  return true; },  m76033:function(v71510) { while (v71510.IsDialogBox) v71510 =v71510.DialogBox.ParentWindow; return v71510; },  m3ee60:function() { var ve8d94 =event; if (ve8d94 ==null) ve8d94 =ISGetDesktopManager().GetContentWindow().event;  var v2776 =ve8d94.srcElement; var v17c46 =true; if (ve8d94.keyCode ==9) { var vdcc64 =v2776.id.substring(0,v2776.id.indexOf("_")); var vdc332 =v2776.id.substring(v2776.id.indexOf("_")+1); var vf2137 =ISGetObject(vdcc64); var v14a87 =vf2137.CommandButtons.GetNamedItem(vdc332); var v0075 =null;  if (ve8d94.shiftKey) v17c46 =false;  if (v17c46) { v0075 =vf2137.CommandButtons[v14a87.Index+1]; if (v0075 ==null) v0075 =vf2137.CommandButtons[0]; } else { v0075 =vf2137.CommandButtons[v14a87.Index-1]; if (v0075 ==null) v0075 =vf2137.CommandButtons[vf2137.CommandButtons.length-1]; }  if (v0075) { v0075.GetElement().focus(); }  if (IS.ie) ve8d94.keyCode =0; ve8d94.returnValue =false; } },  me4711:function(v6575) { if (v6575.CommandButtons.length >0 &&v6575.WindowSettings.ContentMode =="UseInlineContent") { v6575.CommandButtons[0].GetElement().focus(); } else { if (v6575.WindowSettings.ContentMode =="UseIFrame") { } } },  m29d56:function(v6ca41) { if (v6ca41.IntegratedToDesktopManager) { var vcd441 =event; if (vcd441 ==null) vcd441 =ISGetDesktopManager().GetContentWindow().event;  if (vcd441 !=null) { vcd441.cancelBubble =true; vcd441.returnValue =false; } } },  m9c02:function(v11441) { if (v11441.WindowSettings.ContentMode =="UseIFrame")return;  for (var vf9041=0;vf9041<v11441.CommandButtons.length; vf9041++) { var v83a33 =v11441.CommandButtons[vf9041]; var vd7d35 =v83a33.GetElement();  wd7cb57.mf1d69(v83a33); Listener.Add(vd7d35,"onkeydown",wde3022.m3ee60); v83a33.IntegratedToDesktopManager =v11441.IntegratedToDesktopManager; v83a33.ButtonStyle =new DynamicStyle(); v83a33.ButtonStyle.Normal =v11441.WindowSettings.CommandButtonStyle.Normal; v83a33.ButtonStyle.Over =v11441.WindowSettings.CommandButtonStyle.Over; v83a33.ButtonStyle.Active =v11441.WindowSettings.CommandButtonStyle.Active; v83a33.ButtonStyle.Object =vd7d35; v83a33.Index =vf9041;  if (v83a33.IntegratedToDesktopManager) wd7cb57.m0ad41(v83a33); } },  mea080:function(v6fa35,vab531) { var v21841 =vab531.GetContentDivElement(); var vd3633 =v21841.children[0]; var v56435 =v6fa35.GetContentElement();  if (v6fa35.WindowSettings.ContentMode =="UseInlineContent") { if (v6fa35.IntegratedToDesktopManager) vd3633.innerHTML =v56435.children[0].children[0].outerHTML; else vd3633.appendChild(v56435.children[0].children[0]); var v52712 =vd3633.children[0].children[0]; v52712.style.fontFamily =v21841.currentStyle.fontFamily; v52712.style.fontSize =v21841.currentStyle.fontSize; v52712.style.color =v21841.currentStyle.color; v52712.style.cursor ="default";  ISEvent.Raise(v6fa35.ClientSideEvents.OnSetContent,v6fa35,vab531,vd3633.children[0].children[0]); }  },  m66857:function(veb955,vb6141) { if (!vb6141) vb6141 =205;  if (!veb955) return;  var v23755 =veb955.GetWindowDivElement(); v23755.style.zIndex =vb6141; },  m17426:function(v3f921) { var v24626 =v3f921.DialogBox; var vcea80 =v3f921.GetWindowDivElement(); if (v24626.IsModal) wde3022.m57511(v24626);  if (v24626.IntegratedToDesktopManager) { var vac658 =null; var vb6284 =v24626.HostWindow;  v3f921.Collection.Remove(v3f921);  if (vb6284) { var v03564 =vb6284.DialogBoxWindows; v03564.Remove(v3f921);  if (v03564.length >0) vac658 =v03564[v03564.length-1];  if (vac658 !=null) vb6284.CurrentDialogBox =vac658.DialogBox; else { vb6284.DialogBoxShown =false; vb6284.CurrentDialogBox =null; } }  if (v24626.ParentWindow) { if (vac658 ==null) v24626.ParentWindow.CurrentDialogBox =null; v24626.ParentWindow.DialogBoxShown =false;  v24626.ParentWindow.DesktopManager.ActiveWindowIndex =-1; v24626.ParentWindow.Activate(); } else { var v3ef81 =v3f921.DesktopManager.GetTopMostWindowBefore(); if (v3ef81) { v3f921.DesktopManager.ActiveWindowIndex =-1; v3ef81.Activate(); } } }  if (v24626.DialogResult ==null) v24626.DialogResult ="Cancel"; var v9d023 =ISEvent.Raise(v24626.ClientSideEvents.OnClosed,v24626.Id,v24626.DialogResult); if (!v9d023)return; if (v3f921.EnableDropShadow &&v3f921.DropShadow !=null) v3f921.DropShadow.Hide();   vcea80.style.display ="none"; v24626.IsShown =false;  if (v24626.WindowSettings.ContentMode =="UseIFrame" &&v24626.IntegratedToDesktopManager &&!v24626.ReuseIFrame) { wde3022.mca238(v3f921); } },  mca238:function(v5ae12) { var v02057 =v5ae12.DialogBox; var v9bc48 =ISGetDesktopManager(); var v21595 =v9bc48.GetIFrameWindow(v5ae12.Name); if (v21595 &&v21595.document) { var v92b52 =v21595.document; if (v21595.onunload !=null) v21595.onunload();  if (v21595.ISCoreDestructor) v21595.ISCoreDestructor();  v92b52.body.onunload =null; v92b52.open("text/html"); v92b52.write(""); v92b52.close();  if (v02057.Window) v02057.Window.ContentURLChanged =true; } },  m90e4:function(v1fe32,vd9c36,v8b447) { if (!v8b447)v8b447 ="afterBegin";  var vf2c96 =document.createElement("DIV"); vf2c96.hideFocus =true;  if (IS.moz) vf2c96.style.cssText ="width: 100px; height: 100px";  vf2c96.innerHTML ="<img width=100% height=100% src='" +v1fe32.ResolveImagePath(v1fe32.ImagesDirectory,"blank.gif")+"' />"; vf2c96.onclick =function(){wde3022.me4711(v1fe32);}; vf2c96.onmousedown =function(){wde3022.m29d56(v1fe32);}; vf2c96.onselectstart =function(){return false;}; vd9c36.insertAdjacentElement(v8b447,vf2c96);  v1fe32.Shadow =vf2c96; return vf2c96; },  mbf273:function(v0fd73) { if (v0fd73.IntegratedToDesktopManager) { var v9f187 =v0fd73.Shadow; var vc8315 =v0fd73.ParentWindow; if (v9f187 ==null) { var ve4233 =null; var v73520 =null;  if (vc8315) { ve4233 =vc8315.DesktopManager; v73520 =vc8315.GetWindowDivElement(); } else { ve4233 =ISGetDesktopManager(); v73520 =ve4233.GetDesktopElement();  ve4233.TaskBarLocked =true; }  v9f187 =wde3022.m90e4(v0fd73,v73520,"beforeEnd"); }  with (v9f187.style) { position ="absolute"; if (vc8315) { width =vc8315.Size.Width; height =vc8315.Size.Height; } else { width =document.body.offsetWidth; height =document.body.offsetHeight; } left =0; top =0;  if (v0fd73.ShadowColor =="Transparent" ||v0fd73.ShadowColor =="") backgroundColor ="transparent"; else { if (v0fd73.ShadowColor.indexOf(",")>-1) backgroundColor ="rgb(" +v0fd73.ShadowColor +")"; else backgroundColor =v0fd73.ShadowColor;  filter ="Alpha(Opacity=" +v0fd73.ShadowOpacity +")"; opacity =v0fd73.ShadowOpacity/100; }  display =""; zIndex =101; } } else { var v9f187 =v0fd73.Shadow; if (v9f187 ==null) v9f187 =wde3022.m90e4(v0fd73,document.body);  with (v9f187.style) { position ="absolute";  var v2ef29 =parseFloat(document.body.currentStyle.marginLeft); var v40224 =parseFloat(document.body.currentStyle.marginRight); var vec295 =parseFloat(document.body.currentStyle.marginTop); var vf1746 =parseFloat(document.body.currentStyle.marginBottom); var v25c80 =0; var v37f2 =0; var v84315 =document.body.clientWidth; var vce227 =document.body.clientHeight;  if (IS.IsXHTMLDocType()) { v84315 =document.documentElement.clientWidth; vce227 =document.documentElement.clientHeight; }  if (isNaN(v2ef29)) v2ef29 =0;  if (isNaN(v40224)) v40224 =0;  if (isNaN(vec295)) vec295 =0;  if (isNaN(vf1746)) vf1746 =0;   if (document.body.scrollWidth >v84315) v25c80 =document.body.scrollWidth; else v25c80 =v84315 -v2ef29 -v40224;  if (document.body.scrollHeight >vce227) v37f2 =document.body.scrollHeight; else v37f2 =vce227 -vec295 -vf1746;  width =v25c80; height =v37f2;  if (v0fd73.ShadowColor =="Transparent" ||v0fd73.ShadowColor =="") backgroundColor ="transparent"; else { if (v0fd73.ShadowColor.indexOf(",")>-1) backgroundColor ="rgb(" +v0fd73.ShadowColor +")"; else backgroundColor =v0fd73.ShadowColor; filter ="Alpha(Opacity=" +v0fd73.ShadowOpacity +")"; opacity =v0fd73.ShadowOpacity/100; }  display =""; zIndex =101; } } },  m57511:function(vcad76) { var vc1f92 =vcad76.Shadow; vc1f92.style.display ="none"; if (vcad76.IntegratedToDesktopManager) { var v8df72 =ISGetDesktopManager(); v8df72.TaskBarLocked =false; } else { } },  m73783:function(v20212) { var vf0076 =v20212.HostWindow;  if (!vf0076) vf0076 =v20212.ParentWindow;  if (vf0076) { var vc4512 =vf0076;  if (!vc4512.IsActiveWindow()) { vc4512.Activate(); } } } };var wdc9b48 ={ m24826:function(v72643) { var vcc960 =v72643.WindowSettings; var vfa618 =""; var vebe29 ="<div class='";  if (v72643.DialogBoxImage =="Custom") vfa618 =v72643.CustomDialogBoxImage; else vfa618 ="isdialog_" +v72643.DialogBoxImage +".gif";  if (vcc960.BorderType =="ComplexImages") vebe29 +=vcc960.WindowStyle.Normal; else vebe29 +=vcc960.ContainerStyle;  vebe29 +="'><div><table cellspacing=4 cellpadding=0 width=100% height=100%><tr height=100%><td valign=" +v72643.DialogBoxImageVAlign +">";  if (v72643.DialogBoxImage !="None") vebe29 +="<img src='" +v72643.ResolveImagePath(v72643.ImagesDirectory,vfa618)+"' /></td><td width=100%>";  vebe29 +="<div style='width:100%; height:100%;"; if (v72643.ContentScrollable) { if (IS.ie) vebe29 +=";overflow-y:auto;overflow-x:hidden;"; else vebe29 +=";overflow:auto;"; }  vebe29 +="'>"; vebe29 +=v72643.ContentTemplate; vebe29 +="</div></td></tr>";  v72643.CommandButtons.Parent =this; if (v72643.CommandButtons.length >0) { vebe29 +="<tr><td colspan=2 align=" +v72643.CommandButtonAlignment; vebe29 +=" style='padding:" +v72643.WindowSettings.CommandBarPadding +"px'>"; vebe29 +=wdc9b48.m1f588(v72643); vebe29 +="</td></tr>"; }  vebe29 +="</table></div></div>";  return vebe29; },  m1f588:function(va0b63) { var v22379 ="<table cellspacing=0 cellpadding=" +va0b63.CommandButtonSpacing +">";  v22379 +="<tr>"; for (var v58527=0; v58527<va0b63.CommandButtons.length; v58527++) { var v71d96 =va0b63.CommandButtons[v58527];  v71d96.Parent =va0b63; v22379 +="<td>"; v22379 +=wdc9b48.m42032(va0b63,v71d96); v22379 +="</td>"; } v22379 +="</tr>"; v22379 +="</table>";  return v22379; },  m42032:function(v9e999,ved637) { var v19499 ="<button id='" +v9e999.ClientID +"_" +ved637.Name +"' ";  v19499 +="class=" +v9e999.WindowSettings.CommandButtonStyle.Normal +" "; v19499 +="style='"; v19499 +="height:" +v9e999.CommandButtonSize.Height +"px;"; v19499 +="width:" +v9e999.CommandButtonSize.Width +"px;"; v19499 +="'"; v19499 +=">"; v19499 +=wdc9b48.m42992(ved637); v19499 +="</button>"; return v19499; },  m42992:function(v2c199) { var v4a199 ="<div>"; if (v2c199.DisplayMode =="TextAndImage" &&v2c199.ImagePosition =="Left") v4a199 +="<img align=absmiddle src='" +v2c199.Image +"' hspace=2 />&nbsp;"; v4a199 +=v2c199.Text; if (v2c199.DisplayMode =="TextAndImage" &&v2c199.ImagePosition =="Right") v4a199 +="&nbsp;<img align=absmiddle src='" +v2c199.Image +"' hspace=2 />"; v4a199 +="</div>";  return v4a199; }};function WD25_OnButtonClick(v0f285,ve9474){ var vce429 =ve9474.Parent; var vad995 =true; if (typeof(vce429.ClientSideEvents.OnButtonClicked)=="function") vce429.ClientSideEvents.OnButtonClicked(); else { vad995 =ISEvent.Raise(vce429.ClientSideEvents.OnButtonClicked,vce429.id,ve9474); }  if (vad995) { if (event) { event.cancelBubble =true; event.returnValue =false; }  vce429.DialogResult =ve9474.Type; wde3022.m17426(vce429.Window); }}function WebDialogBoxDestructor(){ var vc5568 =delete wde3022;}function ISGetDesktopManagerExact(){ if (typeof(IS)=="object") { for (var v8c068=0; v8c068<IS.RuntimeObjects.length; v8c068++) { var v45314 =IS.RuntimeObjects[v8c068]; if (v45314 &&v45314.ClassName !=null &&v45314.GetType()=="WebDesktopManager" &&v45314.Id !="Global") return v45314; } }  while (window.parent !=null &&window !=window.parent) { var vd2b74 =window.parent;  if (typeof(vd2b74.ISGetDesktopManager)=="function") { return vd2b74.ISGetDesktopManager(); } }  return null;}window.attachEvent("onunload",WebDialogBoxDestructor);
