
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 6/24/2008 1:36:16 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 WebButton(v24794){ this.ClassName ="WebButton"; this.Version ="2.5.2007"; this.BuildNumber ="0"; this.MajorVersion ="2.0"; this.RequiredFrameworkVersion ="2.0.5000.10"; ISControl.call(this,v24794); IFlyPostBack.call(this,"WebButtonRequest");  this.ScriptDirectory ="/CommonLibrary/WebDesktop/V2_5_2006/"; 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 =v24794; this.ID =v24794; this.UniqueID =v24794; 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.OnInitialize =function() { this.RemoveDynamicStyle(); };  this.RemoveDynamicStyle =function() { var v7d663 =["Button"]; for(var v6e970=0; v6e970<v7d663.length; v6e970++) { var v78118 =this[v7d663[v6e970] +"Style"]; if (v78118) ISXml.RemoveNode(this.XmlNode,v7d663[v6e970] +"Style"); } };  this.GetElement =function() { return document.getElementById(this.Id +IS.FrameSuffix); };  this.SetDisable =this.Disable =function() { var v53e22 =this.GetElement(); if (v53e22.parentElement &&IS.ie) document.body.focus(); v53e22.className =this.DisabledStyle;  if (IS.ie) setTimeout(function(){v53e22.disabled =true;},10); else v53e22.disabled =true;  this.Enabled =false;  };  this.SetEnable =this.Enable =function() { var v53e22 =this.GetElement(); v53e22.disabled =false; this.ButtonStyle.SetToNormal();  this.Enabled =true; };  this.OnUnload =function() { var v53e22 =this.GetElement(); if (v53e22) Listener.Unload(v53e22);  window.detachEvent("onload",function(){wd83078.m52286(c,true); });  this.IsUnloaded =true; };  this.OnResponse =function(v78118) { wd83078.m7b712(this,v78118); };  this.OnResponseError =function(v78118) { wd83078.m5b479(this,v78118); };  this.Click =function() { var v53e22 =this.GetElement(); if (v53e22)v53e22.fireEvent("onclick"); };  this.RenderComplexImages =function() { if (this.BorderType !="ComplexImages") return;  wd83078.m19e71(this);  if (this.IsPushed) wd83078.mfb144(this,"Active"); else wd83078.mfb144(this,"Normal"); };  this.SetPushed =function(va7e29) { if (typeof(va7e29)=="undefined") va7e29 =true; if (this.IsPushed &&va7e29) return;  if (!this.IsPushed &&!va7e29) return;  if (!va7e29) { if (this.BorderType =="ComplexImages") wd83078.mfb144(this,"Normal"); else this.ButtonStyle.SetToNormal(); } else { if (this.BorderType =="ComplexImages") wd83078.mfb144(this,"Active"); else this.ButtonStyle.SetToActive(); }  this.IsPushed =va7e29; };  this.InstantiateIn =function(v3e849) { if (v3e849 !=null) wd83078.m82833(this,v3e849); };  this.SetIntegrationToDesktopManager =function() { this.IntegratedToDesktopManager =true; wd83078.m52286(this,false); };}function InitWebButton(vd4b4){ var v32068 =wd83078.m70f36(vd4b4); v32068.OnInitialize();}function CreateWebButton(v38a24,v7d26){ var v24c40 =null;  if (typeof(v38a24)=="string") v24c40 =wd83078.m70f36(v38a24,true,v7d26); else if (typeof(v38a24)=="object") v24c40 =wd83078.m70f36(v38a24,true,v7d26,true);  v24c40.CreatedAtRuntime =true; v24c40.OnInitialize();  return v24c40;}var wd83078 ={ Initialized: false,  m70f36:function(va9e83,v70b21,v57089,v52542) { var vd2a63 =null;  if (!v52542) vd2a63 =new WebButton(va9e83); else vd2a63 =va9e83;  wd83078.mf7990(vd2a63,v70b21,v57089); wd83078.m94280(vd2a63); wd83078.m44889(vd2a63); wd83078.m52286(vd2a63); vd2a63.IsInit =true; return vd2a63; },  m07a87:function(v8bd77) { if (v8bd77.XmlDt ==null) { var va9394 =ISXml.CreateXmlDocument(); ISXml.LoadXml(va9394,"<WebButton />"); v8bd77.XmlDt =va9394; return va9394; }  return null; },  mf7990:function(v43e33,v06698,v92693) { if (v43e33 ==null) return;  if (!v43e33.IsInit) { var v96049 =null;  if (v06698) wd83078.m07a87(v43e33);  try { v96049 =ISXml.GetNode(v43e33.XmlDt,"//WebButton"); } catch(e) {}  v43e33.PostViewState =false; v43e33.PostHiddenFields =false; v43e33.FlyPostBackSettings.PostViewState =false; v43e33.FlyPostBackSettings.PostHiddenFields =false; if (v96049 ==null) v96049 =v43e33.XmlDt.documentElement; if (v96049 !=null) { IS.SetPropertiesRecursive(v43e33,v96049);  if (!v06698) v43e33.ButtonStyle =DynamicStyleEngine.Assign(ISXml.GetNode(v43e33.XmlDt,"//ButtonStyle"),v43e33.GetElement()); else { if (v92693.ButtonStyle) v43e33.ButtonStyle =v92693.ButtonStyle; else if (v92693.DisabledButtonStyle) v43e33.DisabledButtonStyle =v92693.DisabledButtonStyle;  if (v92693.Host) { v43e33.InstantiateIn(v92693.Host); v43e33.ButtonStyle.Object =v43e33.GetElement(); } } } } },  m94280:function(v59443) { var v41643 =v59443.GetElement();  v59443.OriginalWindow =window; Listener.Add(v41643,"onmouseover",function(){wd83078.m09199(v59443,"over");}); Listener.Add(v41643,"onmouseout",function(){wd83078.m09199(v59443,"out");}); Listener.Add(v41643,"onmousedown",function(){wd83078.m09199(v59443,"down");}); Listener.Add(v41643,"onmouseup",function(){wd83078.m09199(v59443,"up");}); Listener.Add(v41643,"onkeydown",function(){wd83078.md9651(v59443);}); Listener.Add(v41643,"onclick",function(){wd83078.mdbe48(v59443);});  v59443.XmlHttp =ISXmlHttpEngine.Create(v59443,function(){wd83078.m7b712(v59443);}); },  m44889:function(vb8779) { if (IS.moz) { } },  m09199:function(ve3318,ve0945) { if (!ve3318.Enabled)return;  var v37179 =ve3318.GetElement(); var v0bf26 =null; var v18b82 =event;  if (!v18b82) v18b82 =ve3318.OriginalWindow.event;  if (!v18b82 &&ve3318.DesktopManager !=null) v18b82 =ve3318.DesktopManager.GetContentWindow().event;  if (v18b82) v0bf26 =v18b82.toElement; if (ve0945 =="over") { if (ve3318.IsToggleButton &&ve3318.IsPushed) return; if (ve3318.IsMouseDown) { if (ve3318.BorderType =="ComplexImages") wd83078.mfb144(ve3318,"Active"); else ve3318.ButtonStyle.SetToActive();  return; } if (ve3318.BorderType =="ComplexImages") wd83078.mfb144(ve3318,"Over"); else ve3318.ButtonStyle.SetToOver(); } else if (ve0945 =="out") { if (!v37179.contains(v0bf26)) { if (ve3318.IsToggleButton &&ve3318.IsPushed) { if (ve3318.BorderType =="ComplexImages") wd83078.mfb144(ve3318,"Active"); else ve3318.ButtonStyle.SetToActive(); } else { if (ve3318.BorderType =="ComplexImages") wd83078.mfb144(ve3318,"Normal"); else ve3318.ButtonStyle.SetToNormal(); } } } else if (ve0945 =="down") { if (v18b82.button ==ISEvent.LEFT ||v18b82.button ==65535) { ve3318.IsMouseDown =true; wd83078.CurrentButton =ve3318;  if (ve3318.BorderType =="ComplexImages") wd83078.mfb144(ve3318,"Active"); else ve3318.ButtonStyle.SetToActive(); } } else if (ve0945 =="up") { if (!ve3318.IsMouseDown) return;  ve3318.IsMouseDown =false;  if (wd83078.CurrentButton !=null &&wd83078.CurrentButton !=ve3318) return;  if (ve3318.IsToggleButton) ve3318.IsPushed =!ve3318.IsPushed; if (ve3318.IsToggleButton &&ve3318.IsPushed) return;  if (ve3318.BorderType =="ComplexImages") wd83078.mfb144(ve3318,"Over"); else ve3318.ButtonStyle.SetToOver(); } },  mdbe48:function(v25740) { if (v25740.IntegratedToDesktopManager) { if (IS.moz) { var v6e710 =ISGetCurrentWindow(); if (v6e710) { var va5294 =v6e710.DesktopManager.GetContentWindow(); va5294.event.cancelBubble =true; va5294.event.returnValue =false; } else if (event) { event.cancelBubble =true; event.returnValue =false; } } }  var v76820 =ISEvent.Raise(v25740.OnClientClick,v25740.Id,v25740.Parameter); if (v76820 &&v25740.ClassName) { var v6d688 =v25740.GetElement();  if (v25740.DisableOnClicked) v25740.SetDisable();  if (v25740.AutoPostback) { var v7d322 =true; var v73761 =!v25740.CausesValidation;  if (v25740.CausesValidation ) { v7d322 =Page_ClientValidate(v25740.ValidationGroup); if (v7d322) v73761 =true; } if (v25740.PostBackMode =="FlyPostBack") { if (v7d322) wd83078.m83238(v25740,"Click"); } else { if (v7d322) __doPostBack(v25740.ServerUniqueID,"ButtonClick:" +v25740.Parameter,v73761); } } else { if (v25740.IntegratedToDesktopManager) { var v6e710 =ISGetCurrentWindow(); if (v6e710) { if (v6e710.IsDialogBox) { if (v25740.Type =="Cancel") { v6e710.Close(); } } }  } } if (event) { event.cancelBubble =true; event.returnValue =false; } }  if (IS.moz &&event) { event.cancelBubble =true; event.returnValue =false; } },  md9651:function(vf8479) {  },  m83238:function(v07a15,v97b50) { v07a15.XmlReq =ISXmlHttpEngine.CreateRequestXml(v07a15.GetType());  var v27779 =ISXml.GetNode(v07a15.XmlReq,"//request"); v27779.setAttribute("id",v07a15.Id); v27779.setAttribute("action",v97b50); v27779.setAttribute("parameter",v07a15.Parameter);  v07a15.XmlHttp.Send(); },  m7b712:function(v23898,vc7d90) { if (!ISEvent.Raise(v23898.OnClientResponse,v23898.Id,vc7d90)) return;  },  m5b479:function(vc1d34,vf2360) { alert("Error occurred:" +vf2360); },  m52286:function(v53626,vd5e8) { ISEvent.Raise(v53626.OnClientInitialize,v53626.Id);  if (v53626.IntegratedToDesktopManager) { if (vd5e8 &&v53626.IntegrationState)return;  var v9fb34 =ISGetDesktopManager(); if (!v9fb34) { if (vd5e8 &&!v53626.IntegrationState) alert(v53626.Id +" Integration Error: Can't integrate to DesktopManager because no DesktopManager instance found!"); else if (!vd5e8) window.attachEvent("onload",function(){wd83078.m52286(v53626,true); }); } else { var vd0560 =ISGetCurrentWindow(); if (!vd0560)vd0560 =ISGetCurrentWindow(true); if (!vd0560)vd0560 =ISGetCurrentWindow(true,v9fb34); if (!vd0560 &&window ==v9fb34.GetContentWindow())vd0560 =true;  if (vd0560) { var vbce76 =v53626.GetElement();  wd83078.ma3829(v9fb34,v53626);  v53626.ButtonStyle.Normal =v9fb34.WindowSettings.CommandButtonStyle.Normal; v53626.ButtonStyle.Over =v9fb34.WindowSettings.CommandButtonStyle.Over; v53626.ButtonStyle.Active =v9fb34.WindowSettings.CommandButtonStyle.Active; v53626.ButtonStyle.SetToNormal(); v53626.DisabledStyle =v9fb34.WindowSettings.CommandButtonDisabledStyle; v53626.BorderType =v9fb34.WindowSettings.CommandButtonBorderType; v53626.ImagesSettings =v9fb34.ImagesSettings; v53626.ImagesDirectory =v9fb34.ImagesDirectory; v53626.DesktopManager =v9fb34;  if (v53626.BorderType =="ComplexImages") { wd83078.m19e71(v53626); wd83078.mfb144(v53626,"Normal"); }  v53626.IntegrationState =true; } } } },  PreloadImages: function(v38e95) { var v6461 =new Array(); var v2b897 =v38e95.ImagesSettings; var va0032 =0; var v14992 =ISGetDesktopManager();  if (!v14992)return;  for(var p in v2b897) { var vac452 =v2b897[p]; if (typeof(vac452)=="string" &&vac452 !="") { var v39f32 =v14992.ResolveImagePath(vac452); v6461[va0032] =new Image(); v6461[va0032].src =v39f32; va0032++; } } },  ma3829:function(v75825,v21a63) { var v1d331 =v75825.GetDesktopElement(); var vaeb65 =v75825.WindowSettings.CommandButtonStyle; var v0cc69 =[vaeb65.Normal,vaeb65.Over,vaeb65.Active,v75825.WindowSettings.CommandButtonDisabledStyle]; var v2f460 =""; for(var v2cf96=0; v2cf96<v0cc69.length; v2cf96++) { if (!IS.GetCssObject(null,v0cc69[v2cf96])) { var va7855 =v75825.GetCssObject(v0cc69[v2cf96]);  if (va7855) IS.AddRuntimeCssStyle(va7855.selectorText,va7855.style.cssText); } } },  m82833:function(v81936,v66e21) { var v67445 =document.createElement("button"); v67445.id =v81936.Id +IS.FrameSuffix;  if (!v81936.Enabled) v67445.className =v81936.DisabledStyle; else { if (v81936.IsToggleButton &&v81936.IsPushed) v67445.className =v81936.ButtonStyle.Active; else v67445.className =v81936.ButtonStyle.Normal; }  if (v81936.Width >0) v67445.style.width =v81936.Width +"px";  if (v81936.Height >0) v67445.style.height =v81936.Height +"px";  if (v81936.TabIndex >0) v67445.tabIndex =v81936.TabIndex;  if (v81936.ToolTip !="") v67445.title =v81936.ToolTip;  if (!v81936.Enabled) v67445.disabled =true;  if (v81936.AccessKey !="") v67445.accessKey =v81936.AccessKey;  var v37973 ="<div>";  if (v81936.DisplayMode =="TextAndImage" &&v81936.ImagePosition =="Left") v37973 +="<img align=absmiddle src='" +v81936.Image +"' hspace=2 />&nbsp;"; v37973 +=v81936.Text; if (v81936.DisplayMode =="TextAndImage" &&v81936.ImagePosition =="Right") v37973 +="&nbsp;<img align=absmiddle src='" +v81936.Image +"' hspace=2 />";  v37973 +="</div>";  v67445.innerHTML =v37973;  v66e21.appendChild(v67445); v81936.FrameObj =v67445; }, m19e71:function(vba066) { if (vba066.BorderType !="ComplexImages") return; var v14575 =vba066.GetElement(); var v2e940 ="<table border=0 cellspacing=0 cellpadding=0 style='width:98%;";  if (!IS.safari) v2e940 +="height:100%;";  v2e940 +="'><tr>";  v2e940 +="<td><img /></td>"; v2e940 +="<td width='100%' align=" +v14575.currentStyle.textAlign +">" +v14575.innerHTML +"</td>"; v2e940 +="<td><img /></td>"; v2e940 +="</tr></table>";  v14575.innerHTML =v2e940; v14575.children[0].style.fontFamily =v14575.currentStyle.fontFamily; v14575.children[0].style.fontSize =v14575.currentStyle.fontSize; v14575.children[0].style.color =v14575.currentStyle.color; v14575.style.backgroundColor ="transparent"; v14575.style.cursor ="default"; v14575.style.height =""; },  mfb144:function(v95897,v17e57) { var vce050 =""; var vc1229 =""; var v7ec44 =""; var v79b81 =v95897.GetElement().children[0].rows[0]; var v10682 =v95897.ImagesSettings; var va2130 =v95897.DesktopManager;  if (v17e57 =="Normal") { vce050 =va2130.ResolveImagePath(v10682.ButtonLeftInactive); vc1229 =va2130.ResolveImagePath(v10682.ButtonCenterInactive); v7ec44 =va2130.ResolveImagePath(v10682.ButtonRightInactive); } else if (v17e57 =="Over") { vce050 =va2130.ResolveImagePath(v10682.ButtonLeftOver); vc1229 =va2130.ResolveImagePath(v10682.ButtonCenterOver); v7ec44 =va2130.ResolveImagePath(v10682.ButtonRightOver); } else { vce050 =va2130.ResolveImagePath(v10682.ButtonLeftActive); vc1229 =va2130.ResolveImagePath(v10682.ButtonCenterActive); v7ec44 =va2130.ResolveImagePath(v10682.ButtonRightActive); }  v79b81.cells[0].children[0].src =vce050; v79b81.cells[1].style.backgroundImage ="url(" +vc1229 +")"; v79b81.cells[2].children[0].src =v7ec44; },  m9a689:function() { if (wd83078.CurrentButton !=null) { wd83078.CurrentButton.IsMouseDown =false; wd83078.CurrentButton =null; } }};function WebButtonDestructor(){ document.body.detachEvent("onmouseup",wd83078.m9a689); var vc5060 =delete wd83078;}window.attachEvent("onunload",WebButtonDestructor);document.body.attachEvent("onmouseup",wd83078.m9a689);if (typeof(Sys)!="undefined") Sys.Application.notifyScriptLoaded();