
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 12/8/2009 8:47:40 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 WebButton(ve6860) {
    this.ClassName = "WebButton"; this.Version = "2.5.2007"; this.BuildNumber = "0"; this.MajorVersion = "2.0"; this.RequiredFrameworkVersion = "2.0.5000.10"; ISControl.call(this, ve6860); IFlyPostBack.call(this, "WebButtonRequest"); this.ScriptDirectory = "/CommonLibrary/WebDesktop/V3_0_7200/"; this.Text = ""; this.Image = ""; this.DisplayMode = "Text"; this.ImagePosition = "Left"; this.Type = "NotSet"; this.Parameter = ""; this.IntegratedToDesktopManager = false; this.AutoPostback = false; this.OnClientClick = ""; this.OnClientInitialize = ""; this.OnClientResponse = ""; this.PostBackMode = "FlyPostBack"; this.DisableOnClicked = false; this.ButtonStyle = null; this.DisabledStyle = ""; this.ViewStateStorage = "PageCache"; this.AccessKey = ""; this.Enabled = true; this.TabIndex = null; this.ToolTip = ""; this.ClientID = ve6860; this.ID = ve6860; this.UniqueID = ve6860; this.FlyPostBackSettings = new FlyPostBackSettings(); this.BorderType = "Simple"; this.ImagesSettings = null; this.ImagesDirectory = ""; this.DesktopManager = null; this.OriginalWindow = null; this.IsUnloaded = false; this.IntegrationState = false; this.CausesValidation = true; this.ValidationGroup = ""; this.IsToggleButton = false; this.IsPushed = false; this.Width = 0; this.Height = 20; this.IsMouseDown = false; this.CustomImageStyle = ""; this.InProgressImage = ""; this.InProgressText = ""; this.ShowProgressOnClicked = false; this.ProgressTextStyle = ""; this.ProgressElement = null; this.OnInitialize = function() { this.RemoveDynamicStyle(); }; this.RemoveDynamicStyle = function() { var vbf585 = ["Button"]; for (var v73a57 = 0; v73a57 < vbf585.length; v73a57++) { var v81a26 = this[vbf585[v73a57] + "Style"]; if (v81a26) ISXml.RemoveNode(this.XmlNode, vbf585[v73a57] + "Style"); } }; this.GetElement = function() { return document.getElementById(this.Id + IS.FrameSuffix); };
    this.SetDisable = this.Disable = function() {
        var vefb36 = this.GetElement();
        if (vefb36.parentElement && IS.ie) {
            try {
                document.body.focus();
            } catch (err1) { }
        }
        vefb36.className = this.DisabledStyle;
        if (IS.ie) setTimeout(function() { vefb36.disabled = true; }, 10);
        else vefb36.disabled = true;
        if (this.BorderType == "ComplexImages") vefb36.children[0].rows[0].cells[1].className = this.DisabledStyle;
        this.Enabled = false;
    };  
this.SetEnable =this.Enable =function() { var vefb36 =this.GetElement(); vefb36.disabled =false; this.FrameObj.children[0].style.color =""; this.ButtonStyle.SetToNormal(); if (this.BorderType =="ComplexImages") vefb36.children[0].rows[0].cells[1].className ="";  this.Enabled =true; };  this.OnUnload =function() { var vefb36 =this.GetElement(); if (vefb36) Listener.Unload(vefb36);  window.detachEvent("onload",function(){wd7cb57.m0ad41(c,true); });  this.IsUnloaded =true; };  this.OnResponse =function(v81a26) { wd7cb57.me9227(this,v81a26); };  this.OnResponseError =function(v81a26) { wd7cb57.ma3756(this,v81a26); };  this.Click =function() { var vefb36 =this.GetElement(); if (vefb36)vefb36.fireEvent("onclick"); };  this.RenderComplexImages =function() { if (this.BorderType !="ComplexImages") return;  wd7cb57.m6a136(this);  if (this.IsPushed) wd7cb57.m08b86(this,"Active"); else wd7cb57.m08b86(this,"Normal"); };  this.SetPushed =function(v93c79) { if (typeof(v93c79)=="undefined") v93c79 =true; if (this.IsPushed &&v93c79) return;  if (!this.IsPushed &&!v93c79) return;  if (!v93c79) { if (this.BorderType =="ComplexImages") wd7cb57.m08b86(this,"Normal"); else this.ButtonStyle.SetToNormal(); } else { if (this.BorderType =="ComplexImages") wd7cb57.m08b86(this,"Active"); else this.ButtonStyle.SetToActive(); }  this.IsPushed =v93c79; };  this.InstantiateIn =function(vc2a15) { if (vc2a15 !=null) wd7cb57.m79073(this,vc2a15); };  this.SetIntegrationToDesktopManager =function() { this.IntegratedToDesktopManager =true; wd7cb57.m0ad41(this,false); };  this.ResetState =function() { if (this.ProgressElement !=null) this.ProgressElement.style.display ="none";  this.FrameObj.style.display =""; };  this.ShowProgress =function() { if (this.ProgressElement ==null) { var va6f27 =document.createElement("span"); va6f27.className =this.ProgressTextStyle; va6f27.innerHTML ="<img style=\"vertical-align: middle\" alt=\"\" src=\"" +this.InProgressImage +"\" /> " +this.InProgressText;  this.FrameObj.insertAdjacentElement("afterEnd",va6f27); this.ProgressElement =va6f27; }  this.FrameObj.style.display ="none"; this.ProgressElement.style.display =""; };  this.Hide =function() { this.FrameObj.style.display ="none";  if (this.ProgressElement !=null) this.ProgressElement.style.display ="none"; };  this.Show =function() { this.ResetState(); };}function InitWebButton(v25351){ var v0ea51 =wd7cb57.maf511(v25351); v0ea51.OnInitialize();}function CreateWebButton(v08151,vb3794){ var v38551 =null;  if (typeof(v08151)=="string") v38551 =wd7cb57.maf511(v08151,true,vb3794); else if (typeof(v08151)=="object") v38551 =wd7cb57.maf511(v08151,true,vb3794,true);  v38551.CreatedAtRuntime =true; v38551.OnInitialize();  return v38551;}var wd7cb57 ={ Initialized: false,  maf511:function(v41378,v56b77,v60c40,v02f64) { var v0a159 =null;  if (!v02f64) v0a159 =new WebButton(v41378); else v0a159 =v41378;  wd7cb57.me0726(v0a159,v56b77,v60c40); wd7cb57.mf1d69(v0a159); wd7cb57.m0f698(v0a159); wd7cb57.m0ad41(v0a159); v0a159.IsInit =true; return v0a159; },  m16d58:function(v8fb53) { if (v8fb53.XmlDt ==null) { var v02b69 =ISXml.CreateXmlDocument(); ISXml.LoadXml(v02b69,"<WebButton />"); v8fb53.XmlDt =v02b69; return v02b69; }  return null; },  me0726:function(v0b653,v68b66,vc0892) { if (v0b653 ==null) return;  if (!v0b653.IsInit) { var v84b53 =null; if (typeof (IS_ReleaseType)!="undefined" &&IS_ReleaseType =="Beta") v0b653.ScriptDirectory ="/CommonLibraryBeta/WebDesktop/V3_0_7200/"; if (v68b66) wd7cb57.m16d58(v0b653);  try { v84b53 =ISXml.GetNode(v0b653.XmlDt,"//WebButton"); } catch(e) {}  v0b653.PostViewState =false; v0b653.PostHiddenFields =false; v0b653.FlyPostBackSettings.PostViewState =false; v0b653.FlyPostBackSettings.PostHiddenFields =false; if (v84b53 ==null) v84b53 =v0b653.XmlDt.documentElement; if (v84b53 !=null) { IS.SetPropertiesRecursive(v0b653,v84b53);  if (!v68b66) v0b653.ButtonStyle =DynamicStyleEngine.Assign(ISXml.GetNode(v0b653.XmlDt,"//ButtonStyle"),v0b653.GetElement()); else { if (vc0892.ButtonStyle) v0b653.ButtonStyle =vc0892.ButtonStyle; else if (vc0892.DisabledButtonStyle) v0b653.DisabledButtonStyle =vc0892.DisabledButtonStyle;  if (vc0892.Host) { v0b653.InstantiateIn(vc0892.Host); v0b653.ButtonStyle.Object =v0b653.GetElement(); } } } } },  mf1d69:function(vf8e28) { var vc1f44 =vf8e28.GetElement();  vf8e28.OriginalWindow =window; Listener.Add(vc1f44,"onmouseover",function(){wd7cb57.m6c947(vf8e28,"over");}); Listener.Add(vc1f44,"onmouseout",function(){wd7cb57.m6c947(vf8e28,"out");}); Listener.Add(vc1f44,"onmousedown",function(){wd7cb57.m6c947(vf8e28,"down");}); Listener.Add(vc1f44,"onmouseup",function(){wd7cb57.m6c947(vf8e28,"up");}); Listener.Add(vc1f44,"onkeydown",function(){wd7cb57.m87315(vf8e28);}); Listener.Add(vc1f44,"onclick",function(){return wd7cb57.mfc927(vf8e28);});  vf8e28.XmlHttp =ISXmlHttpEngine.Create(vf8e28,function(){wd7cb57.me9227(vf8e28);}); },  m0f698:function(v06128) { if (IS.moz) { } },  m6c947:function(v36264,ve3a24) { if (!v36264.Enabled)return;  var v13228 =v36264.GetElement(); var v0b055 =null; var v54c44 =event;  if (!v54c44) v54c44 =v36264.OriginalWindow.event;  if (!v54c44 &&v36264.DesktopManager !=null) v54c44 =v36264.DesktopManager.GetContentWindow().event;  if (v54c44) v0b055 =v54c44.toElement; if (ve3a24 =="over") { if (v36264.IsToggleButton &&v36264.IsPushed) return; if (v36264.IsMouseDown) { if (v36264.BorderType =="ComplexImages") wd7cb57.m08b86(v36264,"Active"); else v36264.ButtonStyle.SetToActive();  return; } if (v36264.BorderType =="ComplexImages") wd7cb57.m08b86(v36264,"Over"); else v36264.ButtonStyle.SetToOver(); } else if (ve3a24 =="out") { if (!v13228.contains(v0b055)) { if (v36264.IsToggleButton &&v36264.IsPushed) { if (v36264.BorderType =="ComplexImages") wd7cb57.m08b86(v36264,"Active"); else v36264.ButtonStyle.SetToActive(); } else { if (v36264.BorderType =="ComplexImages") wd7cb57.m08b86(v36264,"Normal"); else v36264.ButtonStyle.SetToNormal(); } } } else if (ve3a24 =="down") { if (v54c44.button ==ISEvent.LEFT ||v54c44.button ==65535) { v36264.IsMouseDown =true; wd7cb57.CurrentButton =v36264;  if (v36264.BorderType =="ComplexImages") wd7cb57.m08b86(v36264,"Active"); else v36264.ButtonStyle.SetToActive(); } } else if (ve3a24 =="up") { if (!v36264.IsMouseDown) return;  v36264.IsMouseDown =false;  if (wd7cb57.CurrentButton !=null &&wd7cb57.CurrentButton !=v36264) return;  if (v36264.IsToggleButton) v36264.IsPushed =!v36264.IsPushed; if (v36264.IsToggleButton &&v36264.IsPushed) return;  if (v36264.BorderType =="ComplexImages") wd7cb57.m08b86(v36264,"Over"); else v36264.ButtonStyle.SetToOver(); } },  mfc927:function(v1e394) { if (v1e394.IntegratedToDesktopManager) { if (IS.moz) { var v8e155 =ISGetCurrentWindow(); if (v8e155) { var v85673 =v8e155.DesktopManager.GetContentWindow(); v85673.event.cancelBubble =true; v85673.event.returnValue =false; } else if (event) { event.cancelBubble =true; event.returnValue =false; } } }  var vc3b66 =ISEvent.Raise(v1e394.OnClientClick,v1e394.Id,v1e394.Parameter); if (vc3b66 &&v1e394.ClassName) { var va8f80 =v1e394.GetElement();  if (v1e394.DisableOnClicked) v1e394.SetDisable();  if (v1e394.ShowProgressOnClicked) v1e394.ShowProgress();  if (v1e394.AutoPostback) { var v7af45 =true; var v24027 =!v1e394.CausesValidation;  if (v1e394.CausesValidation ) { v7af45 =Page_ClientValidate(v1e394.ValidationGroup); if (v7af45) v24027 =true; } if (v1e394.PostBackMode =="FlyPostBack") { if (v7af45) wd7cb57.mdd10(v1e394,"Click"); } else { if (v7af45) __doPostBack(v1e394.ServerUniqueID,"ButtonClick:" +v1e394.Parameter,v24027); } } else { if (v1e394.IntegratedToDesktopManager) { var v8e155 =ISGetCurrentWindow(); if (v8e155) { if (v8e155.IsDialogBox) { if (v1e394.Type =="Cancel") { v8e155.Close(); } } }  } } if (event) { event.cancelBubble =true; event.returnValue =false; } }  if (event) { event.cancelBubble =true; event.returnValue =false; }  if (IS.safari) return false; },  m87315:function(vfb230) {  },  mdd10:function(v95930,vaee61) { if (v95930.IsInProgress) return;  v95930.XmlReq =ISXmlHttpEngine.CreateRequestXml(v95930.GetType());  var vef230 =ISXml.GetNode(v95930.XmlReq,"//request"); vef230.setAttribute("id",v95930.Id); vef230.setAttribute("action",vaee61); vef230.setAttribute("parameter",v95930.Parameter);  v95930.XmlHttp.Send(); v95930.IsInProgress =true; },  me9227:function(v48230,vdfd61) { if (!ISEvent.Raise(v48230.OnClientResponse,v48230.Id,vdfd61)) return;  v48230.IsInProgress =false; },  ma3756:function(v66a30,v24561) { v66a30.IsInProgress =false; alert("Error occurred:" +v24561); },  m0ad41:function(v40085,vea740) { ISEvent.Raise(v40085.OnClientInitialize,v40085.Id);  if (v40085.IntegratedToDesktopManager) { if (vea740 &&v40085.IntegrationState)return;  var v09030 =ISGetDesktopManager(); if (!v09030) { if (vea740 &&!v40085.IntegrationState) alert(v40085.Id +" Integration Error: Can't integrate to DesktopManager because no DesktopManager instance found!"); else if (!vea740) window.attachEvent("onload",function(){wd7cb57.m0ad41(v40085,true); }); } else { var v02e61 =ISGetCurrentWindow(); if (!v02e61)v02e61 =ISGetCurrentWindow(true); if (!v02e61)v02e61 =ISGetCurrentWindow(true,v09030); if (!v02e61 &&window ==v09030.GetContentWindow())v02e61 =true;  if (v02e61) { var v65318 =v40085.GetElement();  wd7cb57.m6b765(v09030,v40085);  v40085.ButtonStyle.Normal =v09030.WindowSettings.CommandButtonStyle.Normal; v40085.ButtonStyle.Over =v09030.WindowSettings.CommandButtonStyle.Over; v40085.ButtonStyle.Active =v09030.WindowSettings.CommandButtonStyle.Active; v40085.ButtonStyle.SetToNormal(); v40085.DisabledStyle =v09030.WindowSettings.CommandButtonDisabledStyle; v40085.BorderType =v09030.WindowSettings.CommandButtonBorderType; v40085.ImagesSettings =v09030.ImagesSettings; v40085.ImagesDirectory =v09030.ImagesDirectory; v40085.DesktopManager =v09030;  if (v40085.BorderType =="ComplexImages") { wd7cb57.m6a136(v40085); wd7cb57.m08b86(v40085,"Normal"); }  v40085.IntegrationState =true; } } } },  PreloadImages: function(v3c089) { var vc6069 =new Array(); var veed81 =v3c089.ImagesSettings; var v24552 =0; var vc5269 =ISGetDesktopManager();  if (!vc5269)return;  for(var p in veed81) { var v9a066 =veed81[p]; if (typeof(v9a066)=="string" &&v9a066 !="") { var va0a62 =vc5269.ResolveImagePath(v9a066); vc6069[v24552] =new Image(); vc6069[v24552].src =va0a62; v24552++; } } },  m6b765:function(v3e791,v2d797) { var vb0c89 =v3e791.GetDesktopElement(); var v0ef90 =v3e791.WindowSettings.CommandButtonStyle; var v6ce19 =[v0ef90.Normal,v0ef90.Over,v0ef90.Active,v3e791.WindowSettings.CommandButtonDisabledStyle]; var v9ad30 =""; for(var ve5e66=0; ve5e66<v6ce19.length; ve5e66++) { if (!IS.GetCssObject(null,v6ce19[ve5e66])) { var vbae71 =v3e791.GetCssObject(v6ce19[ve5e66]);  if (vbae71) IS.AddRuntimeCssStyle(vbae71.selectorText,vbae71.style.cssText); } } },  m79073:function(vc7b46,v93876) { var v80491 =document.createElement("button"); v80491.id =vc7b46.Id +IS.FrameSuffix;  if (!vc7b46.Enabled) v80491.className =vc7b46.DisabledStyle; else { if (vc7b46.IsToggleButton &&vc7b46.IsPushed) v80491.className =vc7b46.ButtonStyle.Active; else v80491.className =vc7b46.ButtonStyle.Normal; }  if (vc7b46.Width >0) v80491.style.width =vc7b46.Width +"px";  if (vc7b46.Height >0) v80491.style.height =vc7b46.Height +"px";  if (vc7b46.TabIndex >0) v80491.tabIndex =vc7b46.TabIndex;  if (vc7b46.ToolTip !="") v80491.title =vc7b46.ToolTip;  if (!vc7b46.Enabled) v80491.disabled =true;  if (vc7b46.AccessKey !="") v80491.accessKey =vc7b46.AccessKey;  var v60897 ="<div>";  if ((vc7b46.DisplayMode =="TextAndImage" ||vc7b46.DisplayMode =="Image")&&vc7b46.ImagePosition =="Left") v60897 +="<img align=absmiddle src='" +vc7b46.Image +"' style='" +vc7b46.CustomImageStyle +"' hspace=2 />&nbsp;"; if (vc7b46.DisplayMode !="Image") v60897 +=vc7b46.Text; if (vc7b46.DisplayMode =="TextAndImage" &&vc7b46.ImagePosition =="Right") v60897 +="&nbsp;<img align=absmiddle src='" +vc7b46.Image +"' hspace=2 />";  v60897 +="</div>";  v80491.innerHTML =v60897;  v93876.appendChild(v80491); vc7b46.FrameObj =v80491; }, m6a136:function(v0f985) { if (v0f985.BorderType !="ComplexImages") return; var va7f66 =v0f985.GetElement(); var v58185 ="<table border=0 cellspacing=0 cellpadding=0 style='width:98%;";  if (!IS.safari) v58185 +="height:100%;";  v58185 +="'><tr>";  v58185 +="<td><img /></td>"; v58185 +="<td width='100%' align=" +va7f66.currentStyle.textAlign +">" +va7f66.innerHTML +"</td>"; v58185 +="<td><img /></td>"; v58185 +="</tr></table>";  va7f66.innerHTML =v58185; va7f66.children[0].style.fontFamily =va7f66.currentStyle.fontFamily; va7f66.children[0].style.fontSize =va7f66.currentStyle.fontSize; va7f66.children[0].style.color =va7f66.currentStyle.color; va7f66.style.backgroundColor ="transparent"; va7f66.style.cursor ="default"; va7f66.style.height =""; },  m08b86:function(v0925,v10a5) { var v91385 =""; var v10f95 =""; var v7e512 =""; var v1628 =v0925.GetElement().children[0].rows[0]; var v7a975 =v0925.ImagesSettings; var v0ef17 =v0925.DesktopManager;  if (v10a5 =="Normal") { v91385 =v0ef17.ResolveImagePath(v7a975.ButtonLeftInactive); v10f95 =v0ef17.ResolveImagePath(v7a975.ButtonCenterInactive); v7e512 =v0ef17.ResolveImagePath(v7a975.ButtonRightInactive); } else if (v10a5 =="Over") { v91385 =v0ef17.ResolveImagePath(v7a975.ButtonLeftOver); v10f95 =v0ef17.ResolveImagePath(v7a975.ButtonCenterOver); v7e512 =v0ef17.ResolveImagePath(v7a975.ButtonRightOver); } else { v91385 =v0ef17.ResolveImagePath(v7a975.ButtonLeftActive); v10f95 =v0ef17.ResolveImagePath(v7a975.ButtonCenterActive); v7e512 =v0ef17.ResolveImagePath(v7a975.ButtonRightActive); }  v1628.cells[0].children[0].src =v91385; v1628.cells[1].style.backgroundImage ="url(" +v10f95 +")"; v1628.cells[2].children[0].src =v7e512; },  m8c916:function() { if (wd7cb57.CurrentButton !=null) { wd7cb57.CurrentButton.IsMouseDown =false; wd7cb57.CurrentButton =null; } }};function WebButtonDestructor(){ document.body.detachEvent("onmouseup",wd7cb57.m8c916); var v9eb70 =delete wd7cb57;}window.attachEvent("onunload",WebButtonDestructor);if (document !=null &&document.body !=null) document.body.attachEvent("onmouseup",wd7cb57.m8c916);else setTimeout(function() { document.body.attachEvent("onmouseup",wd7cb57.m8c916); } ,100);if (typeof(Sys)!="undefined") Sys.Application.notifyScriptLoaded();
