
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 3/15/2010 3:21:09 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(v62770){ this.ClassName ="WebButton"; this.Version ="2.5.2007"; this.BuildNumber ="0"; this.MajorVersion ="2.0"; this.RequiredFrameworkVersion ="2.0.5000.10"; ISControl.call(this,v62770); 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 =v62770; this.ID =v62770; this.UniqueID =v62770; 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 v67e95 =["Button"]; for(var v96192=0; v96192<v67e95.length; v96192++) { var vdbb1 =this[v67e95[v96192] +"Style"]; if (vdbb1) ISXml.RemoveNode(this.XmlNode,v67e95[v96192] +"Style"); } };  this.GetElement =function() { return document.getElementById(this.Id +IS.FrameSuffix); };  this.SetDisable =this.Disable =function() { var vfdb98 =this.GetElement(); if (vfdb98.parentElement &&IS.ie) { try { document.body.focus(); }catch (e){} } vfdb98.className =this.DisabledStyle;  if (IS.ie) setTimeout(function(){vfdb98.disabled =true;},10); else vfdb98.disabled =true;  if (this.BorderType =="ComplexImages") vfdb98.children[0].rows[0].cells[1].className =this.DisabledStyle;  this.Enabled =false; };  this.SetEnable =this.Enable =function() { var vfdb98 =this.GetElement(); vfdb98.disabled =false; this.FrameObj.children[0].style.color =""; this.ButtonStyle.SetToNormal(); if (this.BorderType =="ComplexImages") vfdb98.children[0].rows[0].cells[1].className ="";  this.Enabled =true; };  this.OnUnload =function() { var vfdb98 =this.GetElement(); if (vfdb98) Listener.Unload(vfdb98);  window.detachEvent("onload",function(){wdaf774.mf2a35(c,true); });  this.IsUnloaded =true; };  this.OnResponse =function(vdbb1) { wdaf774.m0a210(this,vdbb1); };  this.OnResponseError =function(vdbb1) { wdaf774.ma6099(this,vdbb1); };  this.Click =function() { var vfdb98 =this.GetElement(); if (vfdb98)vfdb98.fireEvent("onclick"); };  this.RenderComplexImages =function() { if (this.BorderType !="ComplexImages") return;  wdaf774.mee792(this);  if (this.IsPushed) wdaf774.m69467(this,"Active"); else wdaf774.m69467(this,"Normal"); };  this.SetPushed =function(v63153) { if (typeof(v63153)=="undefined") v63153 =true; if (this.IsPushed &&v63153) return;  if (!this.IsPushed &&!v63153) return;  if (!v63153) { if (this.BorderType =="ComplexImages") wdaf774.m69467(this,"Normal"); else this.ButtonStyle.SetToNormal(); } else { if (this.BorderType =="ComplexImages") wdaf774.m69467(this,"Active"); else this.ButtonStyle.SetToActive(); }  this.IsPushed =v63153; };  this.InstantiateIn =function(vc4f89) { if (vc4f89 !=null) wdaf774.m58262(this,vc4f89); };  this.SetIntegrationToDesktopManager =function() { this.IntegratedToDesktopManager =true; wdaf774.mf2a35(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 v49881 =document.createElement("span"); v49881.className =this.ProgressTextStyle; v49881.innerHTML ="<img style=\"vertical-align: middle\" alt=\"\" src=\"" +this.InProgressImage +"\" /> " +this.InProgressText;  this.FrameObj.insertAdjacentElement("afterEnd",v49881); this.ProgressElement =v49881; }  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(v6dc9){ var v66e9 =wdaf774.mfca66(v6dc9); v66e9.OnInitialize();}function CreateWebButton(vffd45,v1e669){ var v2199 =null;  if (typeof(vffd45)=="string") v2199 =wdaf774.mfca66(vffd45,true,v1e669); else if (typeof(vffd45)=="object") v2199 =wdaf774.mfca66(vffd45,true,v1e669,true);  v2199.CreatedAtRuntime =true; v2199.OnInitialize();  return v2199;}var wdaf774 ={ Initialized: false,  mfca66:function(v7ef91,v2a544,vf6596,v2d666) { var vd837 =null;  if (!v2d666) vd837 =new WebButton(v7ef91); else vd837 =v7ef91;  wdaf774.meab85(vd837,v2a544,vf6596); wdaf774.ma1032(vd837); wdaf774.m7cd76(vd837); wdaf774.mf2a35(vd837); vd837.IsInit =true; return vd837; },  mce435:function(v0b363) { if (v0b363.XmlDt ==null) { var vdad63 =ISXml.CreateXmlDocument(); ISXml.LoadXml(vdad63,"<WebButton />"); v0b363.XmlDt =vdad63; return vdad63; }  return null; },  meab85:function(v55682,ve1593,ve540) { if (v55682 ==null) return;  if (!v55682.IsInit) { var vdb046 =null; if (typeof (IS_ReleaseType)!="undefined" &&IS_ReleaseType =="Beta") v55682.ScriptDirectory ="/CommonLibraryBeta/WebDesktop/V3_0_7200/"; if (ve1593) wdaf774.mce435(v55682);  try { vdb046 =ISXml.GetNode(v55682.XmlDt,"//WebButton"); } catch(e) {}  v55682.PostViewState =false; v55682.PostHiddenFields =false; v55682.FlyPostBackSettings.PostViewState =false; v55682.FlyPostBackSettings.PostHiddenFields =false; if (vdb046 ==null) vdb046 =v55682.XmlDt.documentElement; if (vdb046 !=null) { IS.SetPropertiesRecursive(v55682,vdb046);  if (!ve1593) v55682.ButtonStyle =DynamicStyleEngine.Assign(ISXml.GetNode(v55682.XmlDt,"//ButtonStyle"),v55682.GetElement()); else { if (ve540.ButtonStyle) v55682.ButtonStyle =ve540.ButtonStyle; else if (ve540.DisabledButtonStyle) v55682.DisabledButtonStyle =ve540.DisabledButtonStyle;  if (ve540.Host) { v55682.InstantiateIn(ve540.Host); v55682.ButtonStyle.Object =v55682.GetElement(); } } } } },  ma1032:function(ve1c2) { var v8702 =ve1c2.GetElement();  ve1c2.OriginalWindow =window; Listener.Add(v8702,"onmouseover",function(){wdaf774.m60638(ve1c2,"over");}); Listener.Add(v8702,"onmouseout",function(){wdaf774.m60638(ve1c2,"out");}); Listener.Add(v8702,"onmousedown",function(){wdaf774.m60638(ve1c2,"down");}); Listener.Add(v8702,"onmouseup",function(){wdaf774.m60638(ve1c2,"up");}); Listener.Add(v8702,"onkeydown",function(){wdaf774.m98987(ve1c2);}); Listener.Add(v8702,"onclick",function(){return wdaf774.mc0552(ve1c2);});  ve1c2.XmlHttp =ISXmlHttpEngine.Create(ve1c2,function(){wdaf774.m0a210(ve1c2);}); },  m7cd76:function(v27c21) { if (IS.moz) { } },  m60638:function(v80293,v4ce51) { if (!v80293.Enabled)return;  var v01721 =v80293.GetElement(); var vcee12 =null; var v01834 =event;  if (!v01834) v01834 =v80293.OriginalWindow.event;  if (!v01834 &&v80293.DesktopManager !=null) v01834 =v80293.DesktopManager.GetContentWindow().event;  if (v01834) vcee12 =v01834.toElement; if (v4ce51 =="over") { if (v80293.IsToggleButton &&v80293.IsPushed) return; if (v80293.IsMouseDown) { if (v80293.BorderType =="ComplexImages") wdaf774.m69467(v80293,"Active"); else v80293.ButtonStyle.SetToActive();  return; } if (v80293.BorderType =="ComplexImages") wdaf774.m69467(v80293,"Over"); else v80293.ButtonStyle.SetToOver(); } else if (v4ce51 =="out") { if (!v01721.contains(vcee12)) { if (v80293.IsToggleButton &&v80293.IsPushed) { if (v80293.BorderType =="ComplexImages") wdaf774.m69467(v80293,"Active"); else v80293.ButtonStyle.SetToActive(); } else { if (v80293.BorderType =="ComplexImages") wdaf774.m69467(v80293,"Normal"); else v80293.ButtonStyle.SetToNormal(); } } } else if (v4ce51 =="down") { if (v01834.button ==ISEvent.LEFT ||v01834.button ==65535) { v80293.IsMouseDown =true; wdaf774.CurrentButton =v80293;  if (v80293.BorderType =="ComplexImages") wdaf774.m69467(v80293,"Active"); else v80293.ButtonStyle.SetToActive(); } } else if (v4ce51 =="up") { if (!v80293.IsMouseDown) return;  v80293.IsMouseDown =false;  if (wdaf774.CurrentButton !=null &&wdaf774.CurrentButton !=v80293) return;  if (v80293.IsToggleButton) v80293.IsPushed =!v80293.IsPushed; if (v80293.IsToggleButton &&v80293.IsPushed) return;  if (v80293.BorderType =="ComplexImages") wdaf774.m69467(v80293,"Over"); else v80293.ButtonStyle.SetToOver(); } },  mc0552:function(v40552) { if (v40552.IntegratedToDesktopManager) { if (IS.moz) { var v01a77 =ISGetCurrentWindow(); if (v01a77) { var v02791 =v01a77.DesktopManager.GetContentWindow(); v02791.event.cancelBubble =true; v02791.event.returnValue =false; } else if (event) { event.cancelBubble =true; event.returnValue =false; } } }  var vabd19 =ISEvent.Raise(v40552.OnClientClick,v40552.Id,v40552.Parameter); if (vabd19 &&v40552.ClassName) { var v04938 =v40552.GetElement();  if (v40552.DisableOnClicked) v40552.SetDisable();  if (v40552.ShowProgressOnClicked) v40552.ShowProgress();  if (v40552.AutoPostback) { var vee424 =true; var ve0667 =!v40552.CausesValidation;  if (v40552.CausesValidation ) { vee424 =Page_ClientValidate(v40552.ValidationGroup); if (vee424) ve0667 =true; } if (v40552.PostBackMode =="FlyPostBack") { if (vee424) wdaf774.ma034(v40552,"Click"); } else { if (vee424) __doPostBack(v40552.ServerUniqueID,"ButtonClick:" +v40552.Parameter,ve0667); } } else { if (v40552.IntegratedToDesktopManager) { var v01a77 =ISGetCurrentWindow(); if (v01a77) { if (v01a77.IsDialogBox) { if (v40552.Type =="Cancel") { v01a77.Close(); } } }  } } if (event) { event.cancelBubble =true; event.returnValue =false; } }  if (event) { event.cancelBubble =true; event.returnValue =false; }  if (IS.safari) return false; },  m98987:function(v64523) {  },  ma034:function(vd3c23,vf4c19) { if (vd3c23.IsInProgress) return;  vd3c23.XmlReq =ISXmlHttpEngine.CreateRequestXml(vd3c23.GetType());  var vcdf23 =ISXml.GetNode(vd3c23.XmlReq,"//request"); vcdf23.setAttribute("id",vd3c23.Id); vcdf23.setAttribute("action",vf4c19); vcdf23.setAttribute("parameter",vd3c23.Parameter);  vd3c23.XmlHttp.Send(); vd3c23.IsInProgress =true; },  m0a210:function(vc587,va8959) { if (!ISEvent.Raise(vc587.OnClientResponse,vc587.Id,va8959)) return;  vc587.IsInProgress =false; },  ma6099:function(v4f07,v50759) { v4f07.IsInProgress =false; alert("Error occurred:" +v50759); },  mf2a35:function(v05a62,v26238) { ISEvent.Raise(v05a62.OnClientInitialize,v05a62.Id);  if (v05a62.IntegratedToDesktopManager) { if (v26238 &&v05a62.IntegrationState)return;  var vf347 =ISGetDesktopManager(); if (!vf347) { if (v26238 &&!v05a62.IntegrationState) alert(v05a62.Id +" Integration Error: Can't integrate to DesktopManager because no DesktopManager instance found!"); else if (!v26238) window.attachEvent("onload",function(){wdaf774.mf2a35(v05a62,true); }); } else { var vf3559 =ISGetCurrentWindow(); if (!vf3559)vf3559 =ISGetCurrentWindow(true); if (!vf3559)vf3559 =ISGetCurrentWindow(true,vf347); if (!vf3559 &&window ==vf347.GetContentWindow())vf3559 =true;  if (vf3559) { var v62356 =v05a62.GetElement();  wdaf774.m68731(vf347,v05a62);  v05a62.ButtonStyle.Normal =vf347.WindowSettings.CommandButtonStyle.Normal; v05a62.ButtonStyle.Over =vf347.WindowSettings.CommandButtonStyle.Over; v05a62.ButtonStyle.Active =vf347.WindowSettings.CommandButtonStyle.Active; v05a62.ButtonStyle.SetToNormal(); v05a62.DisabledStyle =vf347.WindowSettings.CommandButtonDisabledStyle; v05a62.BorderType =vf347.WindowSettings.CommandButtonBorderType; v05a62.ImagesSettings =vf347.ImagesSettings; v05a62.ImagesDirectory =vf347.ImagesDirectory; v05a62.DesktopManager =vf347;  if (v05a62.BorderType =="ComplexImages") { wdaf774.mee792(v05a62); wdaf774.m69467(v05a62,"Normal"); }  v05a62.IntegrationState =true; } } } },  PreloadImages: function(vee373) { var vd6c18 =new Array(); var veb917 =vee373.ImagesSettings; var vc5a27 =0; var vf7f12 =ISGetDesktopManager();  if (!vf7f12)return;  for(var p in veb917) { var v60e11 =veb917[p]; if (typeof(v60e11)=="string" &&v60e11 !="") { var v0da5 =vf7f12.ResolveImagePath(v60e11); vd6c18[vc5a27] =new Image(); vd6c18[vc5a27].src =v0da5; vc5a27++; } } },  m68731:function(v16412,v11215) { var v8d79 =v16412.GetDesktopElement(); var v05866 =v16412.WindowSettings.CommandButtonStyle; var vbaa30 =[v05866.Normal,v05866.Over,v05866.Active,v16412.WindowSettings.CommandButtonDisabledStyle]; var v43857 =""; for(var v27056=0; v27056<vbaa30.length; v27056++) { if (!IS.GetCssObject(null,vbaa30[v27056])) { var v03911 =v16412.GetCssObject(vbaa30[v27056]);  if (v03911) IS.AddRuntimeCssStyle(v03911.selectorText,v03911.style.cssText); } } },  m58262:function(v53d68,vd5894) { var v3f384 =document.createElement("button"); v3f384.id =v53d68.Id +IS.FrameSuffix;  if (!v53d68.Enabled) v3f384.className =v53d68.DisabledStyle; else { if (v53d68.IsToggleButton &&v53d68.IsPushed) v3f384.className =v53d68.ButtonStyle.Active; else v3f384.className =v53d68.ButtonStyle.Normal; }  if (v53d68.Width >0) v3f384.style.width =v53d68.Width +"px";  if (v53d68.Height >0) v3f384.style.height =v53d68.Height +"px";  if (v53d68.TabIndex >0) v3f384.tabIndex =v53d68.TabIndex;  if (v53d68.ToolTip !="") v3f384.title =v53d68.ToolTip;  if (!v53d68.Enabled) v3f384.disabled =true;  if (v53d68.AccessKey !="") v3f384.accessKey =v53d68.AccessKey;  var v06754 ="<div>";  if ((v53d68.DisplayMode =="TextAndImage" ||v53d68.DisplayMode =="Image")&&v53d68.ImagePosition =="Left") v06754 +="<img align=absmiddle src='" +v53d68.Image +"' style='" +v53d68.CustomImageStyle +"' hspace=2 />&nbsp;"; if (v53d68.DisplayMode !="Image") v06754 +=v53d68.Text; if (v53d68.DisplayMode =="TextAndImage" &&v53d68.ImagePosition =="Right") v06754 +="&nbsp;<img align=absmiddle src='" +v53d68.Image +"' hspace=2 />";  v06754 +="</div>";  v3f384.innerHTML =v06754;  vd5894.appendChild(v3f384); v53d68.FrameObj =v3f384; }, mee792:function(va8f59) { if (va8f59.BorderType !="ComplexImages") return; var v1f339 =va8f59.GetElement(); var v2c933 ="<table border=0 cellspacing=0 cellpadding=0 style='width:98%;";  if (!IS.safari) v2c933 +="height:100%;";  v2c933 +="'><tr>";  v2c933 +="<td><img /></td>"; v2c933 +="<td width='100%' align=" +v1f339.currentStyle.textAlign +">" +v1f339.innerHTML +"</td>"; v2c933 +="<td><img /></td>"; v2c933 +="</tr></table>";  v1f339.innerHTML =v2c933; v1f339.children[0].style.fontFamily =v1f339.currentStyle.fontFamily; v1f339.children[0].style.fontSize =v1f339.currentStyle.fontSize; v1f339.children[0].style.color =v1f339.currentStyle.color; v1f339.style.backgroundColor ="transparent"; v1f339.style.cursor ="default"; v1f339.style.height =""; },  m69467:function(v15298,v10d62) { var va2043 =""; var v84583 =""; var v68c83 =""; var vcb37 =v15298.GetElement().children[0].rows[0]; var v14176 =v15298.ImagesSettings; var v18b54 =v15298.DesktopManager;  if (v10d62 =="Normal") { va2043 =v18b54.ResolveImagePath(v14176.ButtonLeftInactive); v84583 =v18b54.ResolveImagePath(v14176.ButtonCenterInactive); v68c83 =v18b54.ResolveImagePath(v14176.ButtonRightInactive); } else if (v10d62 =="Over") { va2043 =v18b54.ResolveImagePath(v14176.ButtonLeftOver); v84583 =v18b54.ResolveImagePath(v14176.ButtonCenterOver); v68c83 =v18b54.ResolveImagePath(v14176.ButtonRightOver); } else { va2043 =v18b54.ResolveImagePath(v14176.ButtonLeftActive); v84583 =v18b54.ResolveImagePath(v14176.ButtonCenterActive); v68c83 =v18b54.ResolveImagePath(v14176.ButtonRightActive); }  vcb37.cells[0].children[0].src =va2043; vcb37.cells[1].style.backgroundImage ="url(" +v84583 +")"; vcb37.cells[2].children[0].src =v68c83; },  mb3b27:function() { if (wdaf774.CurrentButton !=null) { wdaf774.CurrentButton.IsMouseDown =false; wdaf774.CurrentButton =null; } }};function WebButtonDestructor(){ document.body.detachEvent("onmouseup",wdaf774.mb3b27); var v71a45 =delete wdaf774;}window.attachEvent("onunload",WebButtonDestructor);if (document !=null &&document.body !=null) document.body.attachEvent("onmouseup",wdaf774.mb3b27);else setTimeout(function() { document.body.attachEvent("onmouseup",wdaf774.mb3b27); } ,100);if (typeof(Sys)!="undefined") Sys.Application.notifyScriptLoaded();
