
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 3/15/2010 3:21:10 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(vcf313){ this.ClassName ="WebDialogBox"; this.Version ="2.5.2007"; this.BuildNumber ="0"; this.MajorVersion ="1.0"; this.RequiredFrameworkVersion ="2.0.5000.10";  ISControl.call(this,vcf313); 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 =vcf313; this.ID =vcf313; this.UniqueID =vcf313; 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 vb4947 =[]; var v37566 =["Caption","CaptionButton","Window","CommandButton"]; for(var v8f320=0; v8f320<vb4947.length; v8f320++) { var vf9b84 =this[vb4947[v8f320] +"Style"]; if (vf9b84) ISXml.RemoveNode(this.XmlNode,vb4947[v8f320] +"Style"); }  for(var v8f320=0; v8f320<v37566.length; v8f320++) { var vf9b84 =this.WindowSettings[v37566[v8f320] +"Style"]; if (vf9b84) ISXml.RemoveNode(this.WindowSettings.XmlNode,v37566[v8f320] +"Style"); } }; this.OnPropertiesInitialized =function() { if (this.Events !=null) { var v1a887; for(v1a887 in this.Events) { if (typeof(this.Events[v1a887])=="string") this.ClientSideEvents[v1a887] =this.Events[v1a887]; } }  if (ISXml.GetAttribute(this.XmlNode,"Location")!=null) this.Location.Parse(ISXml.GetAttribute(this.XmlNode,"Location")); };  this.CloseDialog =function() { wd37547.m17692(this.Window); };  this.BringToFront =function() { wd37547.m91880(this.Window); };  this.OnUnload =function() { for (var v8f320=0;v8f320<this.CommandButtons.length; v8f320++) { var v08559 =this.CommandButtons[v8f320]; var v68038 =v08559.GetElement();  if (v68038) Listener.Unload(v68038); }  if (this.IntegratedToDesktopManager) { if (this.ParentWindow) { var vb5c18 =this; ISEvent.RemoveFunctionHandler(this.ParentWindow,"OnPrepareClosed",function(){wd37547.mef760(vb5c18);}); } } 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 v68038 =this.GetContentElement();  if (v68038) v68038.removeNode(true);  for (v8f320 in IS.RuntimeObjects) { var vf0174 =IS.RuntimeObjects[v8f320];  if (vf0174 !=null &&typeof(vf0174)=="object" &&vf0174.Id ==this.Id) { IS.RuntimeObjects[v8f320] =null; } }  IS.ActiveCtrl =null; };  this.Activate =function() { wd37547.m45c75(this); }; this.ShowDialog =function(vc9496,v52398) { var v20348 =this.Window; var v6a056 =10;  this.DialogResult =null; if (v20348 ==null ||v20348.GetWindowDivElement()==null ||v20348._Type ==null) { wd37547.m1e221(this); v20348 =this.Window; } v20348.DialogBoxShown =false; v20348.CurrentDialogBox =null; if (this.IsModal) wd37547.m64386(this);  if (IS.moz &&this.ContentScrollable) { var v76d25 =v20348.GetContentDivElement(); if (v76d25) { var vdbb99 =v76d25.children[0].children[0].children[0];  if (vdbb99 !=null) { var vcab90 =vdbb99.rows[0].cells[vdbb99.rows[0].cells.length-1].children[0];  if (vcab90) { v76d25.children[0].style.height ="100%"; vcab90.style.display ="none"; vcab90.style.overflow ="auto"; setTimeout(function(){vcab90.style.height =vcab90.parentElement.offsetHeight; vcab90.style.display ="";},0); } } } } if (!this.IntegratedToDesktopManager) { var vf753 =v20348.GetWindowDivElement(); vf753.style.display =""; v20348.Size =new UnitSize(vf753.offsetWidth,vf753.offsetHeight); vf753.style.display ="none";  if (this.CustomZIndex !=-1) wd37547.m91880(v20348,this.CustomZIndex);  if (this.StartPosition !="Custom") { if (IS.ie) v20348.MoveToCenterDesktop(); else v20348.MoveToCenterDesktopAbsolute(); } else v20348.MoveTo(this.Location.X,this.Location.Y); var ve8526 =v20348.DesktopManager; ve8526.WindowSettings =this.WindowSettings; if (this.ImagesSettings &&!wd37547.m60e38(this)) ve8526.ImagesSettings =this.ImagesSettings; } else { var va9336 =ISGetDesktopManagerExact(); va9336.Windows.push(v20348);  if (this.StartPosition =="Custom" &&this.ParentWindow) { v20348.MoveTo(this.Location.X,this.Location.Y); } else if (this.StartPosition =="CenterParent" &&this.ParentWindow) { var vfde84 =this.ParentWindow.Size; var v47998 =this.ParentWindow.Location; var v1d464 =new OffsetLocation();  v1d464.X =(vfde84.Width-v20348.Size.Width)/2; v1d464.Y =(vfde84.Height-v20348.Size.Height)/2;  if (v1d464.X <0) v1d464.X =0;  if (v1d464.Y <0) v1d464.Y =0;  v20348.MoveTo(v1d464.X+v47998.X,v1d464.Y+v47998.Y); } else { v20348.MoveToCenterDesktop(); }  if (this.ParentWindow) { this.ParentWindow.DialogBoxShown =true; this.ParentWindow.CurrentDialogBox =this; }  if (this.HostWindow) { this.HostWindow.DialogBoxWindows.push(v20348); this.HostWindow.CurrentDialogBox =this; } } this.IsShown =true; if (this.EnableAnimation &&this.AnimationStyle =="VistaStyleZoom") { v20348.DesktopManager.EnableAnimation =true; v20348.DesktopManager.AnimationStyle ="VistaStyleZoom"; v6a056 =200; }  if (vc9496 &&v52398 !=null) { v20348.DesktopManager.EnableAnimation =true; v20348.Show(v52398,"black"); return; } else v20348.Show();  if (this.CommandButtons.length >0 &&this.WindowSettings.ContentMode =="UseInlineContent") { var v26b8 =this; setTimeout(function(){try {v26b8.CommandButtons[0].GetElement().focus(); }catch(e){}},v6a056); }  if (v20348.ContentMode =="UseIFrame") { var v76d25 =v20348.GetContentDivElement();  v76d25.style.overflow ="hidden"; v76d25.style.overflowY ="hidden"; v76d25.style.overflowX ="hidden";  if (v20348.IFrameLoaded) { v20348.IFrameLoaded =false; } } };  this.GetContentElement =function() { return document.getElementById("dvDlgCnt_" +this.Id); };  this.GetContentTemplateElement =function() { var v68038 =this.GetContentElement();  return v68038.children[0].children[0]; };  this.FindControl =function(vcf313) { if (this.IntegratedToDesktopManager) { if (this.Window) { var va9336 =ISGetDesktopManager(); var v5b39 =va9336.GetDocument();  return v5b39.getElementById(vcf313); } else return document.getElementById(vcf313); } else return document.getElementById(vcf313); };  this.SetContentURL =function(vcf068) { this.ContentURL =vcf068;  if (this.Window) { this.Window.ContentURL =vcf068; this.Window.ContentURLChanged =true; } };  this.SetContentTemplate =function(vf9b84) { var v68038 =this.GetContentElement(); this.WindowSettings.ContentMode =="UseInlineContent"; this.ContentTemplate =vf9b84;  if (v68038 ==null) { v68038 =document.createElement("div"); v68038.id ="dvDlgCnt_" +this.Id; v68038.style.cssText ="display:none; position:absolute"; v68038.innerHTML =wdc2398.m70c87(this); document.body.appendChild(v68038); } else { var v2d533 =this.GetContentTemplateElement();  if (v2d533 ==null ||v2d533.children.length ==0 ||this.Window !=null) { var vdff1 =this.Window.GetContentDivElement(); var vb478 =vdff1.children[0].children[0].children[0].rows[0]; var v10f70 =1; if (vb478.cells.length ==1) v10f70 =0; v2d533 =vb478.cells[v10f70].children[0]; } v2d533.innerHTML =vf9b84; } };  this.SetZIndex =function(v79052) { this.CustomZIndex =v79052; wd37547.m91880(this.Window,v79052); };}function WebDialogBoxButton(v74d23,v50816,v43055,v28159){ 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(v74d23)!="undefined") this.Name =v74d23;  if (typeof(v50816)!="undefined") this.Text =v50816;  if (typeof(v43055)!="undefined") this.Type =v43055;  if (typeof(v28159)!="undefined") this.Image =v28159;  this.GetElement =function() { if (this.Parent.IntegratedToDesktopManager) { var v33888 =ISGetDesktopManager(); if (v33888) return v33888.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 v31c27 =ISGetDesktopManager(); if (v31c27) { var veea65 =v31c27.GetContentWindow().WebDesktopWindowSettings; veea65.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(ve7d98){ var vb8627 =wd37547.m30267(ve7d98); vb8627.OnInitialize();}function CreateWebDialogBox(v6b898){ var vc9b98 =wd37547.m30267(v6b898,true); vc9b98.CreatedAtRuntime =true; vc9b98.RuntimeInitialized =false; vc9b98.OnInitialize();  return vc9b98;}var DialogResult ={ Abort: "Abort", Retry: "Retry", Ignore: "Ignore", OK: "OK", Cancel: "Cancel", Yes: "Yes", No: "No"};var wd37547 ={ Initialized: false,  m30267:function(v0c815,v61134) { var v94515 =new WebDialogBox(v0c815); wd37547.m4591(v94515,v61134); wd37547.mc638(v94515); wd37547.m51049(v94515); wd37547.md7917(v94515); v94515.IsInit =true; return v94515; },  m0bd56:function(v21251) { if (v21251.XmlDt ==null) { var vaad51 =document.createElement("XML"); vaad51.id =v21251.Id +"_x"; vaad51.innerHTML ="<WebDialogBox />";  document.body.appendChild(vaad51); v21251.XmlDt =vaad51; return vaad51; }  return null; },  m4591:function(va8d51,v63f3) { if (va8d51 ==null) return;  if (!va8d51.IsInit) { var v49f51 =null; if (typeof (IS_ReleaseType)!="undefined" &&IS_ReleaseType =="Beta") { va8d51.ScriptDirectory ="/CommonLibraryBeta/WebDesktop/V3_0_7200/"; va8d51.ImagesDirectory ="/CommonLibraryBeta/Images/WebDesktop/"; }  if (v63f3) wd37547.m0bd56(va8d51);  try { v49f51 =ISXml.GetNode(va8d51.XmlDt,"//WebDialogBox"); } catch(e) {} if (v49f51 ==null) v49f51 =va8d51.XmlDt.documentElement;  if (v49f51 !=null) { IS.SetPropertiesRecursive(va8d51,v49f51);  if (!v63f3) { va8d51.WindowSettings.CaptionButtonStyle =DynamicStyleEngine.Assign(ISXml.GetNode(va8d51.WindowSettings.XmlNode,"//CaptionButtonStyle")); va8d51.WindowSettings.CaptionStyle =DynamicStyleEngine.Assign(ISXml.GetNode(va8d51.WindowSettings.XmlNode,"//CaptionStyle")); va8d51.WindowSettings.WindowStyle =DynamicStyleEngine.Assign(ISXml.GetNode(va8d51.WindowSettings.XmlNode,"//WindowStyle")); va8d51.WindowSettings.CommandButtonStyle =DynamicStyleEngine.Assign(ISXml.GetNode(va8d51.WindowSettings.XmlNode,"//CommandButtonStyle")); } } } },  mc638:function(vebe35) { window.attachEvent("onload",function(){wd37547.mfc41(vebe35);}); window.attachEvent("onunload",function(){wd37547.mff890(vebe35);});  if (vebe35.KeepVisibleOnScroll) { if (IS.ie) Listener.Add(document.body,"onscroll",wd37547.m00e28,vebe35); else window.attachEvent("onscroll",function(){wd37547.m00e28(vebe35);}); } },  m51049:function(v0f735) { if (IS.moz) { } },  md7917:function(v20435) {  },  m5273:function(v4b990,v6d023,v6e076) { v6e076.Text =v6d023.Text; v6e076.Name ="wnd" +v6d023.Id; v6e076.DesktopManager =v4b990; v6e076.IsDialogBox =true; v6e076.ShowInTaskBar =false; v6e076.Index =v4b990.Windows.length; v6e076.ContentMode =v6d023.WindowSettings.ContentMode; v6e076.Size =new UnitSize(v6d023.Width,v6d023.Height); v6e076.EnableDropShadow =v6d023.EnableDropShadow;  v4b990.EnableAnimation =v6d023.EnableAnimation; if (v6d023.InProgressText !="") v4b990.TextSettings.InProgressText =v6d023.InProgressText;  if (v6d023.ControlBoxImage !="") v6e076.ControlBoxImage =v6d023.ControlBoxImage;  if (v6e076.ContentMode =="UseIFrame") v6e076.ContentURL =v6d023.ContentURL;  var vd7935 =function(){wd37547.mef760(v6d023);}; vd7935.TargetObject =v6d023;  if (v6d023.IntegratedToDesktopManager &&IS.ie) ISEvent.AddFunctionHandler(v6d023.ParentWindow,"OnPrepareClosed",vd7935); },  mef760:function(v00082) { if (v00082.Window) { var va1b82 =v00082.Window; var vdc071 =va1b82.GetWindowDivElement();  v00082.OnUnload(); Listener.Unload(vdc071); vdc071.removeNode(true); vdc071 =null; delete vdc071;  va1b82 =null; delete va1b82; } },  mfc41:function(v44e82) { if (v44e82.ShowOnLoad &&!v44e82.IsShown) v44e82.ShowDialog(); },  m00e28:function(v69165) { var v82882 =this;  if (v69165) v82882 =v69165; if (v82882.Window) { var v54171 =v82882.Window.Location; var vca280 =v82882.Window.GetWindowDivElement(); var vba788 =v82882.Window.OriginalLocation; var v20d81 =v54171.Y;  if (vba788 !=null) v20d81 =vba788.Y;  with (vca280.style) { top =v20d81 +document.body.scrollTop; }  if (!v82882.Window.OriginalLocation) v82882.Window.OriginalLocation =v54171; } },  mff890:function(vd2f65) { if (vd2f65.IntegratedToDesktopManager) { ISEvent.RemoveFunctionHandler(vd2f65.ParentWindow,"OnPrepareClosed",function(){wd37547.mef760(vd2f65);});  if (vd2f65.Window) { var vc0765 =vd2f65.Window; var v6eb11 =vc0765.GetWindowDivElement();  if (v6eb11) { v6eb11.removeNode(true); v6eb11 =null; delete v6eb11;  vc0765 =null; delete vc0765; } } } },  m1e221:function(v73395,vf7f79) { var v99f1 =null;  v73395.Height =parseFloat(v73395.Height); v73395.Width =parseFloat(v73395.Width); if (v73395.IntegratedToDesktopManager) { var vf1181 =ISGetDesktopManagerExact(); var vc2e47 =v73395.WindowSettings; var vefe49 =vf1181.GetContentWindow();  if (!vf1181) { alert("Integration Error: Can't find DesktopManager instance!"); return; }  v73395.ParentWindow =ISGetCurrentWindow();  if (!v73395.ParentWindow) v73395.ParentWindow =ISGetCurrentWindow(true);  if (v73395.ParentWindow !=null &&v73395.ParentWindow.GetType()!="WebDesktopWindow") v73395.ParentWindow =null;  if (!v73395.ParentWindow) v73395.ParentWindow =ISGetCurrentWindow(true,vf1181);  if (!v73395.ParentWindow) v73395.ParentWindow =ISGetActiveWindow();  if (v73395.ParentWindow !=null &&v73395.ParentWindow.IsDialogBox) v73395.HostWindow =wd37547.m95d32(v73395.ParentWindow); else v73395.HostWindow =v73395.ParentWindow;  v99f1 =vf1181.CreateWindow(); wd37547.m5273(vf1181,v73395,v99f1); v99f1.AllowMinimize ="No"; v99f1.AllowMaximize ="No"; v99f1.AllowResize =vc2e47.AllowResize; v99f1.ControlBox =vc2e47.ControlBox; v99f1.AllowClose =vc2e47.AllowClose; v99f1.ContentMode =vc2e47.ContentMode; v99f1.DesktopManager =vf1181; v99f1.Collection =vf1181.Windows; if (v99f1.GetWindowDivElement()!=null) vf7f79 =true; if (!vf7f79) { vefe49.wdbe853.m93a66(v99f1); var vb3880 =v99f1.GetContentDivElement(); vb3880.style.overflow =vb3880.style.overflowX =vb3880.style.overflowY ="visible"; } else { v99f1.ReInitialize(); v99f1.DialogBox =v73395; v99f1.CreatedAtRuntime =true; v73395.Window =v99f1; } } else { var vf1181 =null; v99f1 =new WebDesktopWindow();  try { vf1181 =ISGetDesktopManager(); var v8fe89 =false;  if (vf1181 !=null) { if (vf1181.GetContentWindow().location.pathname !=window.location.pathname) v8fe89 =true; }  if (!vf1181 ||(vf1181 &&vf1181.Id !="Global")||v8fe89) vf1181 =new WebDesktopManager("Global"); } catch(e) {}  if (!vf1181) { alert("Integration Error: Unable to create DesktopManager instance!"); return; } ISEvent.Raise(v73395.ClientSideEvents.OnBeforeCreated,v73395.Id,vf1181);  vf1181.CreatedAtRuntime =true; vf1181.Id ="Global"; vf1181.FrameObj =document.body; vf1181.WindowSettings =v73395.WindowSettings; vf1181.UseWebResourcesForClient =v73395.UseWebResourcesForClient; if (v73395.ImagesSettings &&!wd37547.m60e38(v73395)) vf1181.ImagesSettings =v73395.ImagesSettings; wd37547.m5273(vf1181,v73395,v99f1); wdbe853.m93a66(v99f1);  if (typeof(wd6fa82)=="object") wd6fa82.m75b51(vf1181.InteractiveObjects); }  ISEvent.Raise(v73395.ClientSideEvents.OnCreated,v73395.Id);  wd37547.m1fd37(v73395,v99f1); wd37547.m91880(v99f1); wd37547.m0b652(v73395); v99f1.ResizeTo(v73395.Width,v73395.Height); v99f1.DialogBox =v73395; v73395.Window =v99f1; },  m60e38:function(v57751) { var v94131 =null;  if (typeof (WebDesktopImagesSettings)!="undefined") v94131 =new WebDesktopImagesSettings(); if (!v94131) return true;  for (prop in v94131) { if (prop.indexOf("Xml")==-1 &&typeof (v94131[prop])!="function") { if (v94131[prop] !=v57751.ImagesSettings[prop]) return false; } }  return true; },  m95d32:function(v32751) { while (v32751.IsDialogBox) v32751 =v32751.DialogBox.ParentWindow; return v32751; },  m4b691:function() { var va5787 =event; if (va5787 ==null) va5787 =ISGetDesktopManager().GetContentWindow().event;  var v1b627 =va5787.srcElement; var vdc369 =true; if (va5787.keyCode ==9) { var vccc21 =v1b627.id.substring(0,v1b627.id.indexOf("_")); var v86146 =v1b627.id.substring(v1b627.id.indexOf("_")+1); var v9fc39 =ISGetObject(vccc21); var v66495 =v9fc39.CommandButtons.GetNamedItem(v86146); var vfa777 =null;  if (va5787.shiftKey) vdc369 =false;  if (vdc369) { vfa777 =v9fc39.CommandButtons[v66495.Index+1]; if (vfa777 ==null) vfa777 =v9fc39.CommandButtons[0]; } else { vfa777 =v9fc39.CommandButtons[v66495.Index-1]; if (vfa777 ==null) vfa777 =v9fc39.CommandButtons[v9fc39.CommandButtons.length-1]; }  if (vfa777) { vfa777.GetElement().focus(); }  if (IS.ie) va5787.keyCode =0; va5787.returnValue =false; } },  me0d99:function(v3ac81) { if (v3ac81.CommandButtons.length >0 &&v3ac81.WindowSettings.ContentMode =="UseInlineContent") { v3ac81.CommandButtons[0].GetElement().focus(); } else { if (v3ac81.WindowSettings.ContentMode =="UseIFrame") { } } },  mf9c11:function(v5f181) { if (v5f181.IntegratedToDesktopManager) { var va9481 =event; if (va9481 ==null) va9481 =ISGetDesktopManager().GetContentWindow().event;  if (va9481 !=null) { va9481.cancelBubble =true; va9481.returnValue =false; } } },  m0b652:function(vfa017) { if (vfa017.WindowSettings.ContentMode =="UseIFrame")return;  for (var ved981=0;ved981<vfa017.CommandButtons.length; ved981++) { var v2b126 =vfa017.CommandButtons[ved981]; var v1a188 =v2b126.GetElement();  wdaf774.ma1032(v2b126); Listener.Add(v1a188,"onkeydown",wd37547.m4b691); v2b126.IntegratedToDesktopManager =vfa017.IntegratedToDesktopManager; v2b126.ButtonStyle =new DynamicStyle(); v2b126.ButtonStyle.Normal =vfa017.WindowSettings.CommandButtonStyle.Normal; v2b126.ButtonStyle.Over =vfa017.WindowSettings.CommandButtonStyle.Over; v2b126.ButtonStyle.Active =vfa017.WindowSettings.CommandButtonStyle.Active; v2b126.ButtonStyle.Object =v1a188; v2b126.Index =ved981;  if (v2b126.IntegratedToDesktopManager) wdaf774.mf2a35(v2b126); } },  m1fd37:function(v2ef72,v2d474) { var vf8d37 =v2d474.GetContentDivElement(); var v9205 =vf8d37.children[0]; var v58873 =v2ef72.GetContentElement();  if (v2ef72.WindowSettings.ContentMode =="UseInlineContent") { if (v2ef72.IntegratedToDesktopManager) v9205.innerHTML =v58873.children[0].children[0].outerHTML; else v9205.appendChild(v58873.children[0].children[0]); var vaf750 =v9205.children[0].children[0]; vaf750.style.fontFamily =vf8d37.currentStyle.fontFamily; vaf750.style.fontSize =vf8d37.currentStyle.fontSize; vaf750.style.color =vf8d37.currentStyle.color; vaf750.style.cursor ="default";  ISEvent.Raise(v2ef72.ClientSideEvents.OnSetContent,v2ef72,v2d474,v9205.children[0].children[0]); }  },  m91880:function(v1f072,v5b874) { if (!v5b874) v5b874 =205;  if (!v1f072) return;  var v60872 =v1f072.GetWindowDivElement(); v60872.style.zIndex =v5b874; },  m17692:function(v5763) { var vd3372 =v5763.DialogBox; var v9b774 =v5763.GetWindowDivElement(); if (vd3372.IsModal) wd37547.m41960(vd3372);  if (vd3372.IntegratedToDesktopManager) { var v74392 =null; var vecb92 =vd3372.HostWindow;  v5763.Collection.Remove(v5763);  if (vecb92) { var v6c411 =vecb92.DialogBoxWindows; v6c411.Remove(v5763);  if (v6c411.length >0) v74392 =v6c411[v6c411.length-1];  if (v74392 !=null) vecb92.CurrentDialogBox =v74392.DialogBox; else { vecb92.DialogBoxShown =false; vecb92.CurrentDialogBox =null; } }  if (vd3372.ParentWindow) { if (v74392 ==null) vd3372.ParentWindow.CurrentDialogBox =null; vd3372.ParentWindow.DialogBoxShown =false;  vd3372.ParentWindow.DesktopManager.ActiveWindowIndex =-1; vd3372.ParentWindow.Activate(); } else { var vbff70 =v5763.DesktopManager.GetTopMostWindowBefore(); if (vbff70) { v5763.DesktopManager.ActiveWindowIndex =-1; vbff70.Activate(); } } }  if (vd3372.DialogResult ==null) vd3372.DialogResult ="Cancel"; var v20c2 =ISEvent.Raise(vd3372.ClientSideEvents.OnClosed,vd3372.Id,vd3372.DialogResult); if (!v20c2)return; if (v5763.EnableDropShadow &&v5763.DropShadow !=null) v5763.DropShadow.Hide();   v9b774.style.display ="none"; vd3372.IsShown =false;  if (vd3372.WindowSettings.ContentMode =="UseIFrame" &&vd3372.IntegratedToDesktopManager &&!vd3372.ReuseIFrame) { wd37547.m7e892(v5763); } },  m7e892:function(v70942) { var v6b93 =v70942.DialogBox; var vf8442 =ISGetDesktopManager(); var v5d829 =vf8442.GetIFrameWindow(v70942.Name); if (v5d829 &&v5d829.document) { var va2a60 =v5d829.document; if (v5d829.onunload !=null) v5d829.onunload();  if (v5d829.ISCoreDestructor) v5d829.ISCoreDestructor();  va2a60.body.onunload =null; va2a60.open("text/html"); va2a60.write(""); va2a60.close();  if (v6b93.Window) v6b93.Window.ContentURLChanged =true; } },  m54237:function(vd5842,v3cc61,v78063) { if (!v78063)v78063 ="afterBegin";  var v9a442 =document.createElement("DIV"); v9a442.hideFocus =true;  if (IS.moz) v9a442.style.cssText ="width: 100px; height: 100px";  v9a442.innerHTML ="<img width=100% height=100% src='" +vd5842.ResolveImagePath(vd5842.ImagesDirectory,"blank.gif")+"' />"; v9a442.onclick =function(){wd37547.me0d99(vd5842);}; v9a442.onmousedown =function(){wd37547.mf9c11(vd5842);}; v9a442.onselectstart =function(){return false;}; v3cc61.insertAdjacentElement(v78063,v9a442);  vd5842.Shadow =v9a442; return v9a442; },  m64386:function(v1ab72) { if (v1ab72.IntegratedToDesktopManager) { var vf6797 =v1ab72.Shadow; var v9de40 =v1ab72.ParentWindow; if (vf6797 ==null) { var vba348 =null; var v9a486 =null;  if (v9de40) { vba348 =v9de40.DesktopManager; v9a486 =v9de40.GetWindowDivElement(); } else { vba348 =ISGetDesktopManager(); v9a486 =vba348.GetDesktopElement();  vba348.TaskBarLocked =true; }  vf6797 =wd37547.m54237(v1ab72,v9a486,"beforeEnd"); }  with (vf6797.style) { position ="absolute"; if (v9de40) { width =v9de40.Size.Width; height =v9de40.Size.Height; } else { width =document.body.offsetWidth; height =document.body.offsetHeight; } left =0; top =0;  if (v1ab72.ShadowColor =="Transparent" ||v1ab72.ShadowColor =="") backgroundColor ="transparent"; else { if (v1ab72.ShadowColor.indexOf(",")>-1) backgroundColor ="rgb(" +v1ab72.ShadowColor +")"; else backgroundColor =v1ab72.ShadowColor;  filter ="Alpha(Opacity=" +v1ab72.ShadowOpacity +")"; opacity =v1ab72.ShadowOpacity/100; }  display =""; zIndex =101; } } else { var vf6797 =v1ab72.Shadow; if (vf6797 ==null) vf6797 =wd37547.m54237(v1ab72,document.body);  with (vf6797.style) { position ="absolute";  var v1ed19 =parseFloat(document.body.currentStyle.marginLeft); var v7b386 =parseFloat(document.body.currentStyle.marginRight); var v9bf46 =parseFloat(document.body.currentStyle.marginTop); var v52487 =parseFloat(document.body.currentStyle.marginBottom); var v1cb50 =0; var vbfb76 =0; var v4c646 =document.body.clientWidth; var v9825 =document.body.clientHeight;  if (IS.IsXHTMLDocType()) { v4c646 =document.documentElement.clientWidth; v9825 =document.documentElement.clientHeight; }  if (isNaN(v1ed19)) v1ed19 =0;  if (isNaN(v7b386)) v7b386 =0;  if (isNaN(v9bf46)) v9bf46 =0;  if (isNaN(v52487)) v52487 =0;   if (document.body.scrollWidth >v4c646) v1cb50 =document.body.scrollWidth; else v1cb50 =v4c646 -v1ed19 -v7b386;  if (document.body.scrollHeight >v9825) vbfb76 =document.body.scrollHeight; else vbfb76 =v9825 -v9bf46 -v52487;  width =v1cb50; height =vbfb76;  if (v1ab72.ShadowColor =="Transparent" ||v1ab72.ShadowColor =="") backgroundColor ="transparent"; else { if (v1ab72.ShadowColor.indexOf(",")>-1) backgroundColor ="rgb(" +v1ab72.ShadowColor +")"; else backgroundColor =v1ab72.ShadowColor; filter ="Alpha(Opacity=" +v1ab72.ShadowOpacity +")"; opacity =v1ab72.ShadowOpacity/100; }  display =""; zIndex =101; } } },  m41960:function(vfe592) { var vc778 =vfe592.Shadow; vc778.style.display ="none"; if (vfe592.IntegratedToDesktopManager) { var ve1b98 =ISGetDesktopManager(); ve1b98.TaskBarLocked =false; } else { } },  m45c75:function(v10c92) { var v20d92 =v10c92.HostWindow;  if (!v20d92) v20d92 =v10c92.ParentWindow;  if (v20d92) { var ved739 =v20d92;  if (!ved739.IsActiveWindow()) { ved739.Activate(); } } } };var wdc2398 ={ m70c87:function(v4ba72) { var vf4a52 =v4ba72.WindowSettings; var v2c767 =""; var v5262 ="<div class='";  if (v4ba72.DialogBoxImage =="Custom") v2c767 =v4ba72.CustomDialogBoxImage; else v2c767 ="isdialog_" +v4ba72.DialogBoxImage +".gif";  if (vf4a52.BorderType =="ComplexImages") v5262 +=vf4a52.WindowStyle.Normal; else v5262 +=vf4a52.ContainerStyle;  v5262 +="'><div><table cellspacing=4 cellpadding=0 width=100% height=100%><tr height=100%><td valign=" +v4ba72.DialogBoxImageVAlign +">";  if (v4ba72.DialogBoxImage !="None") v5262 +="<img src='" +v4ba72.ResolveImagePath(v4ba72.ImagesDirectory,v2c767)+"' /></td><td width=100%>";  v5262 +="<div style='width:100%; height:100%;"; if (v4ba72.ContentScrollable) { if (IS.ie) v5262 +=";overflow-y:auto;overflow-x:hidden;"; else v5262 +=";overflow:auto;"; }  v5262 +="'>"; v5262 +=v4ba72.ContentTemplate; v5262 +="</div></td></tr>";  v4ba72.CommandButtons.Parent =this; if (v4ba72.CommandButtons.length >0) { v5262 +="<tr><td colspan=2 align=" +v4ba72.CommandButtonAlignment; v5262 +=" style='padding:" +v4ba72.WindowSettings.CommandBarPadding +"px'>"; v5262 +=wdc2398.m11621(v4ba72); v5262 +="</td></tr>"; }  v5262 +="</table></div></div>";  return v5262; },  m11621:function(v9cc27) { var v31a7 ="<table cellspacing=0 cellpadding=" +v9cc27.CommandButtonSpacing +">";  v31a7 +="<tr>"; for (var vd3946=0; vd3946<v9cc27.CommandButtons.length; vd3946++) { var vd2787 =v9cc27.CommandButtons[vd3946];  vd2787.Parent =v9cc27; v31a7 +="<td>"; v31a7 +=wdc2398.m16910(v9cc27,vd2787); v31a7 +="</td>"; } v31a7 +="</tr>"; v31a7 +="</table>";  return v31a7; },  m16910:function(vf4499,v47c94) { var v7ee63 ="<button id='" +vf4499.ClientID +"_" +v47c94.Name +"' ";  v7ee63 +="class=" +vf4499.WindowSettings.CommandButtonStyle.Normal +" "; v7ee63 +="style='"; v7ee63 +="height:" +vf4499.CommandButtonSize.Height +"px;"; v7ee63 +="width:" +vf4499.CommandButtonSize.Width +"px;"; v7ee63 +="'"; v7ee63 +=">"; v7ee63 +=wdc2398.mdbd33(v47c94); v7ee63 +="</button>"; return v7ee63; },  mdbd33:function(vacd99) { var v3da99 ="<div>"; if (vacd99.DisplayMode =="TextAndImage" &&vacd99.ImagePosition =="Left") v3da99 +="<img align=absmiddle src='" +vacd99.Image +"' hspace=2 />&nbsp;"; v3da99 +=vacd99.Text; if (vacd99.DisplayMode =="TextAndImage" &&vacd99.ImagePosition =="Right") v3da99 +="&nbsp;<img align=absmiddle src='" +vacd99.Image +"' hspace=2 />"; v3da99 +="</div>";  return v3da99; }};function WD25_OnButtonClick(v0ec18,v6b114){ var v04282 =v6b114.Parent; var v6a544 =true; if (typeof(v04282.ClientSideEvents.OnButtonClicked)=="function") v04282.ClientSideEvents.OnButtonClicked(); else { v6a544 =ISEvent.Raise(v04282.ClientSideEvents.OnButtonClicked,v04282.id,v6b114); }  if (v6a544) { if (event) { event.cancelBubble =true; event.returnValue =false; }  v04282.DialogResult =v6b114.Type; wd37547.m17692(v04282.Window); }}function WebDialogBoxDestructor(){ var v68554 =delete wd37547;}function ISGetDesktopManagerExact(){ if (typeof(IS)=="object") { for (var v3ff54=0; v3ff54<IS.RuntimeObjects.length; v3ff54++) { var vb1583 =IS.RuntimeObjects[v3ff54]; if (vb1583 &&vb1583.ClassName !=null &&vb1583.GetType()=="WebDesktopManager" &&vb1583.Id !="Global") return vb1583; } }  while (window.parent !=null &&window !=window.parent) { var vad692 =window.parent;  if (typeof(vad692.ISGetDesktopManager)=="function") { return vad692.ISGetDesktopManager(); } }  return null;}window.attachEvent("onunload",WebDialogBoxDestructor);
