
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 6/30/2009 4:56:00 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**
var wcGlobal = { tempObj: null, lastObj: null };function WebComboCell(v2f330){ this._Type ="Cell"; ISObject.call(this); this.Row =null; this.Position =0; this.Text =""; this.Value =null; this.Column =null; this.Image =""; this.TooltipText =""; this.Name =""; this.CellElement =null; this._UIState ="Unchanged"; if (v2f330) this.Text =v2f330; this.Setup =function(v91d30,v0c224) { this.CellElement =v91d30; var ve5094 =0; if (this.Row.Combo.LayoutSettings.ComboMode =="MultipleColumns") ve5094 =this.CellElement.cellIndex;  if (typeof(v0c224)!="undefined") ve5094 =v0c224; this.Column =this.Row.Combo.Columns[ve5094]; this.Name =this.Column.BaseFieldName; this.Value =this.Text =IS.GetInnerText(v91d30); if (this.CellElement.title) this.TooltipText =this.CellElement.title; }; this.GetElement =function() { return this.CellElement; }; this.ToXml =function(v91d30) { var vd8154 ="<Cell>"; vd8154 +=ISXml.EncodeString(this.Text); vd8154 +="</Cell>"; return vd8154; };}function WebComboClientEvents(){ this._Type ="ClientEvents"; ISObject.call(this); this.OnBeforeRequest =""; this.OnResponse =""; this.OnBeforeItemSelected =""; this.OnAfterItemSelected =""; this.OnError =""; this.OnLostFocus =""; this.OnAddItem =""; this.OnUnhandledError =""; this.OnInitialize =""; this.OnMatchInstantLookup =""; this.OnActionDispatched =""; this.OnAfterResponseProcess =""; this.OnKeyDown =""; this.OnShowDropDown =""; this.OnValueItemContextMenu =""; this.OnValueItemNotInList ="";  this.OnItemChecked ="";}function WebComboLayoutSet(){ this._Type ="LayoutSet"; ISObject.call(this); this.Combo =null; this.AlwaysShowResultBox =false; this.AlwaysShowHelpButton =true; this.AlwaysShowSearchButton =true; this.AlwaysShowColumnHeaders =true; this.ComboMode ="SingleColumn"; this.SearchIconMode ="Text"; this.StatusBoxPosition ="Bottom"; this.SearchImage =""; this.HelpImage ="wc4_help.gif"; this.ItemHeight =20; this.ClientSideEvents =new WebComboClientEvents(); this.AllowNavigationOnMouseWheel =true; this.ColumnWidthDefault =100; this.TextSettings =new WebComboTextSet(); if (IS_ReleaseType =="Beta") { this.ScriptDirectory ="/CommonLibraryBeta/WebCombo/V4_0_7200/"; this.ImagesDirectory ="/CommonLibraryBeta/Images/"; } else { this.ScriptDirectory ="/CommonLibrary/WebCombo/V4_0_7200/"; this.ImagesDirectory ="/CommonLibrary/Images/"; } this.AdjustResultBoxTop =0; this.AdjustResultBoxLeft =0; this.AllowTextWrapping =false; this.ResultBoxWidth =0; this.ResultBoxHeight =200; this.StatusBoxVisible =true; this.AllowAddItem =false; this.TextBoxMode ="Editable"; this.AlwaysShowAllRowsOnDropdown =false; this.BoundMode ="AutoDetect"; this.EntryMode ="Default"; this.SearchButtonPosition ="Right"; this.FrameStyle =null; this.TextBoxStyle =null; this.DropDownStyle =null; this.RowStyle =null; this.MoreButtonStyle =null; this.ResultFrameStyle =""; this.ResultBoxStyle =""; this.StatusBoxStyle =""; this.HeaderStyle =""; this.ColumnStyle =""; this.SelectedRowStyle =""; this.NoResultFoundAction ="RevertSelection"; this.ResultBoxWindowType ="Popup"; this.ResultBoxShadow =true; this.HelpURL =""; this.EnableAnimation =false; this.EnableSlidingAnimation =false; this.RoundCorner =false; this.XhtmlSearchImage ="arrow_black.gif"; this.ColumnSeparatorColor =""; this.AutoColumnOrdering =true; this.OnPropertiesInitialized =function() { if (this.ResultBoxWidth ==0) this.ResultBoxWidth =null; this.Combo =this.Parent; this.Combo.AllowAdd =this.AllowAddItem; this.Combo.ResultBoxWidth =this.ResultBoxWidth; };}function WebComboRow(vf6f80){ this._Type ="Row"; ISObject.call(this); this.Cells =null; this.DataSourceIndex =0; this.Combo =null; this.Position =0; this.Value =""; this.RowElement =null; this._UIState ="Unchanged"; this.Enabled =true; if (vf6f80) this.Value =vf6f80; this.Setup =function(v58e16) { wc9c821.m95778(v58e16); this.RowElement =v58e16; this.Value =v58e16.dataValue;  if (v58e16.disabled) this.Enabled =false; }; this.Disable =function() { this.Enabled =false; this.RowElement.disabled =true;  if (!IS.ie) this.RowElement.style.color ="gray"; };  this.Enable =function() { this.Enabled =true; this.RowElement.disabled =false; if (!IS.ie) this.RowElement.style.color =""; };  this.IsSelected =function() { return (this.RowElement.className ==this.Combo.LayoutSettings.SelectedRowStyle); }; this.GetElement =function() { return this.RowElement; }; this.GetCells =function() { if (this.RowElement) { var v4ba50 =new ISArray(); var va7c34 =0; var vdc516 =0; var v0eb18 =this.Combo;  if (v0eb18.MultipleSelectionSettings.Enabled &&!v0eb18.IsDataBound &&v0eb18.LayoutSettings.TextBoxMode =="ReadOnly") vdc516 =1;  for (var v55c81=vdc516; v55c81<this.RowElement.cells.length; v55c81++) { var v8d266 =this.RowElement.cells[v55c81];  if (v8d266.style.display =="none") continue;  var v09b39 =this.GetCell(v55c81,va7c34); v4ba50[v4ba50.length] =v09b39; va7c34++; } this.Cells =v4ba50; return v4ba50; } else return this.Cells; }; this.GetCell =function(vc550,va7c34) { var v09b39 =new WebComboCell();  if (typeof(va7c34)!="undefined") v09b39.Position =va7c34; else v09b39.Position =vc550;  v09b39.Row =this; v09b39.Setup(this.RowElement.cells[vc550],v09b39.Position); return v09b39; }; this.GetTextData =function() { var v7b436 =wc9c821.m43180(this.Combo); var v4ba50 =this.GetCells(); return v4ba50[v7b436].Text; }; this.Select =function() { this.Combo.SelectedIndex =this.Combo.LastSelectedIndex =this.Position; this.Combo.SetTextBoxValue(this.GetTextData()); wc9c821.m0c873(this.Combo); wc9c821.m9e435(this.Combo,true); }; this.ToXml =function() { var vc2426 ="<Row>"; vc2426 +="<Text>" +ISXml.EncodeString(this.Text)+"</Text>"; vc2426 +="<Value>" +ISXml.EncodeString(this.Value)+"</Value>"; if (this.Cells) { vc2426 +="<Cells>"; for (var v55c81=0; v55c81<this.Cells.length; v55c81++) vc2426 +=this.Cells[v55c81].ToXml(); vc2426 +="</Cells>"; } vc2426 +="</Row>"; return vc2426; };}function WebComboTextSet(){ this._Type ="TextSet"; ISObject.call(this); this.LoadingText ="Loading..."; this.SearchText ="Search for"; this.NoResultsText ="No results found."; this.RetrievedTextFormat ="{retrieved} of {totalrows} retrieved."; this.HelpTitleText ="Help"; this.MoreTitleText ="More records."; this.UnhandledErrorText ="Unhandled exception occurred. See following for details."; this.ParentEmptyPromptText ="Please select a value for following WebCombo input: {0}";}function WebComboColumn(){ this._Type ="Column"; ISObject.call(this); this.Combo =null; this.HeaderText =""; this.Position =0; this.BaseFieldName =""; this.Width =null; this.Hidden =false; this.Bound =true; this.ColumnType ="Text"; this.DataType ="System.String"; this.CellImage =""; this.DataFormatString =""; this.Name =""; this.RenderOnHidden =false; this.OnPropertiesInitialized =function() { this.Combo =this.Parent; if (this.Width =="" ||this.Width ==null) this.Width =parseFloat(this.Combo.LayoutSettings.ColumnWidthDefault); if (this.HeaderText =="") this.HeaderText =this.BaseFieldName; };}function WebComboIntegrationSettings(){ this._Type ="WebComboIntegrationSettings"; ISObject.call(this);  this.Enabled =false; this.ControlType ="WebContextMenu"; this.ControlId ="";}function WebCombo(vf7012){ this.ClassName ="WebCombo"; this.Version ="4.0.7200"; this.BuildNumber ="10"; this.MajorVersion ="4.0"; this.RequiredFrameworkVersion ="3.0.5000.40"; this.XmlNamespace ="isnet.webui.webcombo"; ISControl.call(this,vf7012); IFlyPostBack.call(this,"WebCombo4Request"); this.WebResourceIdentifier ="C";  this.Text =""; this.Value =null; this.TextBoxLength =0; this.DropDownRows =15; this.AutoLoad =true; this.ShowErrorMessages =true; this.Latency =500; this.AllowAutoPostback =false; this.DataValueField =""; this.DataTextField =""; this.LayoutSettings =new WebComboLayoutSet(); this.LinkSettings =new WebComboLinkSettings(); this.MultipleSelectionSettings =new WebComboMultipleSelectionSettings(); this.AdditionalFiltersText =""; this.AllowAutoQueryHandler =true; this.Columns =new ISArray(); this.Rows =null; this.AdditionalSearchFields =""; this.AllowWildCardSearch =false; this.MinCharsToRequest =0; this.ScriptDirectory ="/CommonLibrary/WebCombo/V4_0_7200/"; this.AllowAutoDataCaching =true; this.DataCacheStorage ="PageCache"; this.UseCachedDataOnFirstLoad =false; this.IsFlyPostBack =false; this.ViewStateStorage ="PageCache"; this.AccessKey =""; this.Enabled =false; this.TabIndex =null; this.ToolTip =""; this.Visible =true; this.ClientID =this.Name =this.UniqueID =vf7012; this.Parent =null; this.LastAction =""; this.IsPreviewMode =false; this.TotalRetrievedRows =0; this.TotalRows =0; this.FlyPostBackSettings =new FlyPostBackSettings(); this.Values =null; this.IsMouseDown =false; this.EventInResultBox =false; this.HasDataSource =false; this.ResultBox =null; this.ResultBoxShown =false; this.IsDirty =false; this.IsInProgress =false; this.IsMoreRequest =false; this.NeedClearList =false; this.LastQuery =""; this.RequestId =0; this.LastSelectedIndex =-1; this.SelectedIndex =-1; this.RowIndex =null; this.ForceDropDown =false; this.IsDataBound =true; this.UnboundDataInitialized =false; this.InsertAtTop =false; this.NewRowObj =null; this.IsOnAdd =false; this.LastError =""; this.FoundPerfectMatch =null; this.FastPostBack =false; this.SensitiveSearch =false; this.TextObj =null; this.SearchObj =null; this.IsTextObjFocused =false; this.AllowAdd =false; this.LastEventType =""; this.LastKeyCode =0; this.LastCtrlKey =false; this.SkipLatency =false; this.HasLinkedChilds =false; this.LinkedChilds =null; this.LastQueryMultiple =null; this.LastShownPosition =0; this.LastKeyDownHandled =false; this.TrimValueListText =true; this.RequireLinkRefresh =false; this.IsInOver =false; this.AnimationState =null; this.IntegrationSettings =new WebComboIntegrationSettings(); this.CustomInterface =null;  this.OnInitialize =function() { ISEvent.Raise(this.LayoutSettings.ClientSideEvents.OnInitialize,this.Id); wc9c821.m87635(this); wc9c821.m80e97(this);  if (this.IntegrationSettings.Enabled) { var v5dc36 =this.IntegrationSettings.ControlType;  if (v5dc36 =="WebContextMenu") this.CustomInterface =new WebContextMenuCustomInterface(this); else if (v5dc36 =="WebTreeView") this.CustomInterface =new WebTreeViewCustomInterface(this); } if (this.FlyPostBackSettings !=null) { this.PostViewState =this.FlyPostBackSettings.PostViewState; this.PostHiddenFields =this.FlyPostBackSettings.PostHiddenFields; this.PostInputControls =this.FlyPostBackSettings.PostInputControls; } if (this.MultipleSelectionSettings.Enabled) { var vbd380 =ISXml.GetNodeText(this.XmlNode,"MultipleTexts"); if (vbd380 !="") { this.SetMultipleValues(vbd380,ISXml.GetNodeText(this.XmlNode,"MultipleValues")); wc9c821.meb263(this); } } if (this.LinkSettings.Enabled) this.LinkSettings.ResolveParentWebCombo(); if (!this.HasDataSource) this.IsDataBound =false; if (!this.AllowAutoQueryHandler) this.IsDataBound =true; if (this.LayoutSettings.BoundMode =="ForceBound") this.IsDataBound =true; else if (this.LayoutSettings.BoundMode =="ForceUnbound") this.IsDataBound =false;  this.RemoveDynamicStyle(); this.UpdateState(); }; this.RemoveDynamicStyle =function() { var vc2939 = [ "Row", "Frame", "TextBox", "DropDown", "MoreButton" ]; for (var vfb990=0; vfb990<vc2939.length; vfb990++) { var v74846 =this.LayoutSettings[vc2939[vfb990] +"Style"]; if (v74846 &&v74846.XmlNode) ISXml.RemoveNode(this.LayoutSettings.XmlNode,vc2939[vfb990] +"Style"); } }; this.DestroyPopup =function() { if (this.ResultBox) { var v59598 =this.ResultBox.document; wc9c821.mda153(this,v59598); v59598.open("text/plain","replace"); v59598.write(""); v59598.close(); v59598 =null; this.ResultBox =null; } }; this.OnUnload =function() { wc9c821.m5e245(this); Listener.Unload(this.FrameObj); Listener.Unload(this.TextObj); Listener.Unload(this.SearchObj); var v32e46 =this.FrameObj.parentElement; var v6493 =this.GetFontTextElement(); if (v32e46) { if (v32e46.tagName =="BODY" ||v32e46.tagName =="TD") { Listener.Unload(v32e46); } } if (this.ResultBox) this.DestroyPopup(); if (v6493) Listener.Unload(v6493); window.detachEvent("onunload",function() { wc9c821.m95d88(ve2410) }); window.detachEvent("onload",function() { wc9c821.mf1961(ve2410) }); document.body.detachEvent("onclick",function() { wc9c821.m6366(ve2410) }); }; this.OnPropertiesInitialized =function() { if (this.XmlNode !=null) { if (!this.MultipleSelectionSettings.Enabled) { this.Text =ISXml.GetNodeText(this.XmlNode,"Text"); this.Value =ISXml.GetNodeText(this.XmlNode,"Value"); } } }; this.ReBindingPostBackData =function() { wc9c821.mc9236(this); }; this.OnResponse =function(v74846) { wc9c821.m4d973(this,v74846); }; this.OnResponseError =function(v74846) { wc9c821.m99276(this,v74846); };  this.SendCustomRequest =function() { wc9c821.mcb878(this,"Custom"); }; this.IsValueInRange =function() { return wc9c821.m23159(this); }; this.GetImagesFolder =function() { return this.LayoutSettings.ImagesDirectory; }; this.GetFontTextElement =function() { if (this.LayoutSettings.AlwaysShowSearchButton &&this.LayoutSettings.SearchIconMode =="Text") return v6493 =this.SearchObj.nextSibling; return null; }; this.ShowDropDown =function(va5a32) { return wc9c821.mcb892(this,va5a32); }; this.HideDropDown =function() { if (this.ResultBox) this.ResultBox.hide(); this.ResultBoxShown =false; this.LastShownPosition =0; }; this.SetSelectedIndex =function(vfb990) { var v7d064 =this.GetRow(vfb990); if (!v7d064) return false; v7d064.Select(); return true; }; this.SetSelectedRowByValue =function(v97551) { var v44b76 =this.GetRows(); if (!v44b76) return false; for (var vfb990=0; vfb990<v44b76.length; vfb990++) { var v22e61 =v44b76[vfb990]; if (v22e61.Value ==v97551) { v22e61.Select(); return true; } } return false; }; this.SetText =function(v74846,v47019) { this.TextObj.value =this.Text =v74846; if (v47019) this.Value =v74846; this.IsDirty =true; }; this.LoadValue =function(vcd223) { if (vcd223) this.XmlHttp.Asynchronous =false; this.SkipLatency =true; this.LastEventType ="";  wc9c821.mcb892(this); this.XmlHttp.Asynchronous =true; }; this.SetValue =function(v97551) { this.Value =v97551; }; this.GetTextBoxValue =function() { return this.TextObj.value; }; this.SetTextBoxValue =function(v97551) { this.TextObj.value =v97551; }; this.GetValidatorValue =function() { return this.GetTextBoxValue(); }; this.ClearSelection =function() { wc9c821.m5f433(this); this.SetTextBoxValue(""); }; this.NewRow =function(v97551) { var v22e61 =new WebComboRow(); v22e61.Combo =this; v22e61.Cells =new ISArray(); for (var vfb990=0; vfb990<this.Columns.length; vfb990++) { var ve2410 =this.Columns[vfb990]; if (!ve2410.Hidden) { var v12a74 =new WebComboCell(); v12a74.Name =ve2410.BaseFieldName; v22e61.Cells.Add(v12a74); } } return v22e61; }; this.GetSelectedValueItem =function() { if (this.Values ==null) return null; for (var vfb990=0; vfb990<this.Values.length; vfb990++) if (this.Values[vfb990].IsSelected) return this.Values[vfb990]; return null; }; this.ClearSelectedValueItem =function() { if (this.Values ==null) return null; for (var vfb990=0; vfb990<this.Values.length; vfb990++) this.Values[vfb990].IsSelected =false; }; this.GetRows =function() { if (this.Rows !=null) return this.Rows; if (!this.IsDataBound &&!this.UnboundDataInitialized) this.InitializeUnboundMode(); var ve2422 =this.GetTData(); var v44b76 =new ISArray(); if (ve2422) { for (var vfb990=0; vfb990<ve2422.rows.length; vfb990++) { var v22e61 =this.GetRow(vfb990); v44b76[v44b76.length] =v22e61; } } this.Rows =v44b76; return v44b76; }; this.GetRowsCount =function() { if (!this.IsDataBound &&!this.UnboundDataInitialized) this.InitializeUnboundMode(); var ve2422 =this.GetTData(); if (ve2422) return ve2422.rows.length; return -1; }; this.GetRow =function(v97551) { if (this.Rows !=null) return this.Rows[v97551]; if (!this.IsDataBound &&!this.UnboundDataInitialized) this.InitializeUnboundMode(); var ve2422 =this.GetTData(); var v22e61 =new WebComboRow(); v22e61.Setup(ve2422.rows[v97551]); v22e61.Position =v97551; v22e61.Combo =this; return v22e61; }; this.GetTData =function() { if (this.ResultBox) return this.ResultBox.document.getElementById(this.Id +"_tdata"); return null; }; this.GetSelectedRow =function() { if (this.ResultBox) { if (this.SelectedIndex>=0) { var v5dc34 =this.GetTData(); return v5dc34.rows[this.SelectedIndex]; } } return null; }; this.Disable =function() { this.FrameObj.disabled =true; this.TextObj.disabled =true; this.SearchObj.disabled =true; }; this.Enable =function() { this.FrameObj.disabled =false; this.TextObj.disabled =false; this.SearchObj.disabled =false; }; this.SetFocus =function() { if (this.TextObj !=null &&this.TextObj.style.display !="none") this.TextObj.focus(); }; this.Show =function() { this.FrameObj.style.display =""; }; this.Hide =function() { this.FrameObj.style.display ="none"; }; this.AddItem =function(vbd380,v9a598,v88d11,v47e33) { if (v88d11 ==null) v88d11 =new ISArray(); else { var v7271 =v88d11; v88d11 =new ISArray(); for (var vfb990=0; vfb990<v7271.length; vfb990++) v88d11.Add(new WebComboCell(v7271[vfb990])); } var v7d064 =new WebComboRow(); v7d064.Text =vbd380; v7d064.Value =v9a598; v7d064.Cells =v88d11; wc9c821.mb9552(this,v7d064,v47e33); }; this.UpdateUI =function() { wc9c821.m20f35(this); }; this.GetXmlResponse =function() { return this.XmlResp; }; this.GetResponseProperty =function(ve5282) { return ISXml.GetNodeText(this.XmlResp,ve5282); }; this.GetLastAction =function() { return this.LastAction; }; this.UpdateState =function() { wc9c821.mc9236(this); }; this.DoResize =function() { wc9c821.m2e969(this); }; this.UnhighlightRow =function(v7d064) { wc9c821.m6db20(this,v7d064); }; this.InitializeUnboundMode =function() { wc9c821.m0392(this); }; this.SearchUnbound =function() { wc9c821.m88e87(this); }; this.SetAdditionalFilters =function(v74846) { wc9c821.maee36(this); this.Set("AdditionalFiltersText",v74846,true); this.IsDirty =true; this.NeedClearList =true; this.TextObj.value =""; this.LastSelectedIndex =this.SelectedIndex =-1; this.RowIndex =null; try { wc9c821.m25522(this); } catch (e) { } wc9c821.m5f433(this); }; this.ClearAdditionalFilters =function() { this.SetAdditionalFilters(""); };  this.SetMultipleValuesFromString =function(v9a598) { this.Values =new Array(); if (v9a598 =="" ||v9a598 ==null) return; var v07a37 =v9a598.split(this.MultipleSelectionSettings.SeparatorChar);  for (var vfb990=0; vfb990<v07a37.length; vfb990++) { var vedb53 =new WebComboValueItem(); vedb53.Text =wc9c821.m6b675(this,wc9c821.m7120(v07a37[vfb990])); vedb53.Value =wc9c821.m7120(v07a37[vfb990]); this.Values[this.Values.length] =vedb53; }  this.RefreshTextByValueItems(); }; this.SetMultipleValues =function(vbd380,v9a598) { if (vbd380 ==null ||v9a598 ==null) return; this.Values =new Array(); var v9c288 =vbd380.split(this.MultipleSelectionSettings.SeparatorChar); var v07a37 =v9a598.split(this.MultipleSelectionSettings.SeparatorChar); if (v9c288.length !=v07a37.length) return; for (var vfb990=0; vfb990<v9c288.length; vfb990++) { var vedb53 =new WebComboValueItem(); vedb53.Text =wc9c821.m7120(v9c288[vfb990]); vedb53.Value =wc9c821.m7120(v07a37[vfb990]); if (vedb53.Text =="") continue; this.Values[this.Values.length] =vedb53; } }; this.GetMultipleValues =function() { return this.Values; }; this.GetMultipleValuesText =function() { if (this.Values ==null) return ""; var v74846 =""; for (var vfb990=0; vfb990<this.Values.length; vfb990++) v74846 +=this.Values[vfb990].Text +this.MultipleSelectionSettings.SeparatorChar +" "; if (v74846 !="" &&!this.IsDataBound &&this.LayoutSettings.TextBoxMode =="ReadOnly") v74846 =v74846.substring(0,v74846.length -this.MultipleSelectionSettings.SeparatorChar.length -1);  return v74846; }; this.GetMultipleValuesValue =function(v63273) { if (this.Values ==null) return ""; var v74846 =""; var v7cc29 =" ";  if (v63273) v7cc29 =""; for (var vfb990=0; vfb990<this.Values.length; vfb990++) v74846 +=this.Values[vfb990].Value +this.MultipleSelectionSettings.SeparatorChar +v7cc29; if (v74846 !="" &&!this.IsDataBound &&this.LayoutSettings.TextBoxMode =="ReadOnly") v74846 =v74846.substring(0,v74846.length -this.MultipleSelectionSettings.SeparatorChar.length -(v63273 ? 0 : 1)); return v74846; }; this.RefreshValueItems =function() { wc9c821.meb263(this); }; this.RefreshTextByValueItems =function() { wc9c821.ma3f31(this); }; this.ClearResultBox =function() { wc9c821.m25522(this); };}function WebComboLinkSettings(){ this._Type ="LinkSettings"; ISObject.call(this); this.Enabled =false; this.FilterDataMember =""; this.ParentFilterMode ="UseDataValueField"; this.ParentWebComboID =""; this.ResolvedParentWebComboID =""; this.ParentWebCombo =null; this.ParentEmptyAction ="PromptMessage"; this.SkipQueryTextField =false; this.ResolveParentWebCombo =function() { if (this.Enabled) { if (this.ParentWebComboID =="") { alert("ParentWebComboID is required to enable Link feature! LinkSettings is now disabled!"); this.Enabled =false; return; } var vef273 =this.ResolvedParentWebComboID.split(","); for (var v11a66=0; v11a66<vef273.length; v11a66++) { var v6b348 =vef273[v11a66].replace(new RegExp(" ","g"),""); if (v6b348 !="") { var vf311 =ISGetObject(v6b348); if (!vf311) { alert("The specified Parent WebCombo ID '" +v6b348 +"' can't be found in this Page. LinkSettings is now disabled!"); this.Enabled =false; return; } else { if (vf311.ClassName &&vf311.ClassName =="WebCombo") { if (vf311.LinkSettings.Enabled &&vf311.LinkSettings.ParentWebComboID.indexOf(this.Parent.ClientID)>-1) { alert("The specified Parent WebCombo ID '" +v6b348 +"' contains reference to this instance as its ParentWebComboID and will cause infinite loops. LinkSettings is now disabled!"); this.Enabled =false; return; } if (vf311.MultipleSelectionSettings.Enabled) { alert("The parent WebCombo ID '" +v6b348 +"' has MultipleSelection feature enabled. The LinkSettings is now disabled!"); this.Enabled =false; return; } vf311.HasLinkedChilds =true; if (vf311.LinkedChilds ==null) vf311.LinkedChilds =new Array(); vf311.LinkedChilds[vf311.LinkedChilds.length] =this.Parent; if (this.ParentWebCombo ==null) this.ParentWebCombo =new Array(); this.ParentWebCombo[this.ParentWebCombo.length] =vf311; } else { alert("The specified Parent WebCombo ID '" +v6b348 +"' is found in this Page, however it is not the type of WebCombo. LinkSettings is now disabled!"); this.Enabled =false; return; } } } } } };}function WebComboMultipleSelectionSettings(){ this._Type ="MultipleSelectionSettings"; ISObject.call(this); this.Enabled =false; this.SeparatorChar =";"; this.ItemContextMenu =null; this.AllowNotInListText =false; this.AutoSelectFirstMatch =true; this.AllowBrowseAll =false; this.AutoPositionResultBox =true;}function WebComboValueItem(){ this._Type ="WebComboValueItem"; ISObject.call(this); this.Text =""; this.Value =""; this.Position =-1; this.StartPos =-1; this.EndPos =-1; this.IsInsert =false; this.IsSelected =false;}function InitWC40(v27567,vaac64){ var va4184 =wc9c821.m26621(v27567); va4184.OnInitialize();  if (IS.OnAJAXInitialization) { setTimeout(function(){wc9c821.mf1961(va4184);},50); }  if (vaac64) va4184.SetFocus();}var wc9c821 = { Initialized: false, m26621:function(v4fd72) { var v48e72 =new WebCombo(v4fd72); wc9c821.m94078(v48e72); wc9c821.mb6766(v48e72); wc9c821.m1c263(v48e72); v48e72.IsInit =true; return v48e72; }, m94078:function(v1ec8) { if (v1ec8 ==null) return; if (!v1ec8.IsInit) { var v8be8 =null; try { v8be8 =ISXml.GetNode(v1ec8.XmlDt,"//WebCombo"); } catch (e) { } if (v8be8 ==null) v8be8 =v1ec8.XmlDt.documentElement; if (v8be8 !=null) { IS.SetPropertiesRecursive(v1ec8,v8be8); v1ec8.TextObj =document.getElementById(v1ec8.Id +"_text"); v1ec8.SearchObj =document.getElementById(v1ec8.Id +"_search"); v1ec8.LayoutSettings.FrameStyle =DynamicStyleEngine.Assign(ISXml.GetNode(v1ec8.XmlDt,"//FrameStyle"),v1ec8.FrameObj); v1ec8.LayoutSettings.TextBoxStyle =DynamicStyleEngine.Assign(ISXml.GetNode(v1ec8.XmlDt,"//TextBoxStyle"),v1ec8.TextObj); v1ec8.LayoutSettings.DropDownStyle =DynamicStyleEngine.Assign(ISXml.GetNode(v1ec8.XmlDt,"//DropDownStyle"),v1ec8.SearchObj); v1ec8.LayoutSettings.RowStyle =DynamicStyleEngine.Assign(ISXml.GetNode(v1ec8.XmlDt,"//RowStyle")); v1ec8.LayoutSettings.MoreButtonStyle =DynamicStyleEngine.Assign(ISXml.GetNode(v1ec8.XmlDt,"//MoreButtonStyle")); } } }, mb6766:function(v42163) { window.attachEvent("onunload",function() { if (wc9c821 !=null &&typeof(wc9c821)!="undefined") wc9c821.m95d88(v42163) }); window.attachEvent("onload",function() { wc9c821.mf1961(v42163) }); document.body.attachEvent("onclick",function() { wc9c821.m6366(v42163) }); var v75727 =v42163.FrameObj; Listener.Add(v75727,"onmouseover",function() { wc9c821.mad348(v42163) }); Listener.Add(v75727,"onmouseout",function() { wc9c821.m92986(v42163) }); var vb2029 =v42163.TextObj; Listener.Add(vb2029,"onfocus",function() { wc9c821.m0a284(v42163) }); Listener.Add(vb2029,"onblur",function() { wc9c821.m7a98(v42163) }); Listener.Add(vb2029,"onbeforedeactivate",function() { wc9c821.mad529(v42163) }); Listener.Add(vb2029,"onkeydown",function() { wc9c821.mdf348(v42163) }); Listener.Add(vb2029,"onkeyup",function() { wc9c821.md9673(v42163) }); Listener.Add(vb2029,"onkeypress",function() { wc9c821.m53a26(v42163) }); Listener.Add(vb2029,"onmousedown",function() { wc9c821.m7385(v42163) });  Listener.Add(vb2029,"onmouseup",function() { wc9c821.m1ce75(v42163) }); Listener.Add(vb2029,"onclick",function() { wc9c821.mb3f57(v42163) }); Listener.Add(vb2029,"ondragstart",function() { return wc9c821.m1a090(v42163) }); Listener.Add(vb2029,"onselectstart",function() { return wc9c821.m8e117(v42163) }); Listener.Add(vb2029,"ondblclick",function() { return wc9c821.m03945(v42163) }); Listener.Add(vb2029,"oncontextmenu",function() { wc9c821.mf9345(v42163) }); var vf7877 =v42163.SearchObj; Listener.Add(vf7877,"onmousedown",function() { wc9c821.m7385(v42163) }); Listener.Add(vf7877,"onmouseup",function() { wc9c821.m1ce75(v42163) }); v42163.XmlHttp =ISXmlHttpEngine.Create(v42163,function() { wc9c821.m4d973(g); }); }, m5e245:function(vad447) { window.detachEvent("onunload",function() { wc9c821.m95d88(vad447) }); window.detachEvent("onload",function() { wc9c821.mf1961(vad447) }); window.document.body.detachEvent("onclick",function() { wc9c821.m6366(vad447) }); }, m1c263:function(v93447) { }, m80e97:function(v59c18) { var v35847 =IS.GetCssObject(null,v59c18.LayoutSettings.DropDownStyle.Normal); if (IS.safari &&typeof(v35847)=="undefined") { v59c18.RequireVisualStylesSetup =true; return; } if (IS.safari &&v59c18.SearchObj.children.length >0) v59c18.SearchObj.children[0].style.cssText ="position:absolute";  if (v35847 !=null) { var v72839 =v59c18.GetFontTextElement(); if (v72839 !=null) { if ((IS.IsXHTMLDocType()&&IS.moz)||IS.opera ||IS.safari ||IsGecko30()) { v72839.innerText =""; with (v72839.style) { cursor =v35847.cursor; background ="url(" +v59c18.ResolveImagePath(v59c18.GetImagesFolder(),v59c18.LayoutSettings.XhtmlSearchImage)+") no-repeat"; backgroundPosition ="center";  if (v59c18.SearchObj.clientWidth ==0) width ="12px"; else width =(v59c18.SearchObj.clientWidth -2)+"px";  height ="100%"; } } else { with (v72839.style) { fontFamily =v35847.fontFamily; fontSize =v35847.fontSize; color =v35847.color; cursor =v35847.cursor; } } Listener.Add(v72839,"onmousedown",function() { wc9c821.m7385(v59c18) }); } }  if (v59c18.LayoutSettings.RoundCorner) { var vaa544 =v59c18.FrameObj; wc9c821.m15869(v59c18,true); with (vaa544.style) { borderLeftWidth ="0px"; borderRightWidth ="0px"; } }  if (!v59c18.UseDefaultStyle &&v59c18.TextObj.currentStyle.borderTopWidth !="0px") { wc9c821.m72a26(v59c18); } }, m72a26:function(v5f274) { var v34738 =v5f274.TextObj.parentElement; var v41787 =v5f274.TextObj.currentStyle; with (v5f274.TextObj.style) { borderStyle =""; borderWidth =""; } with (v34738.style) { borderTop =v41787.borderTopStyle +" " +v41787.borderTopWidth +" " +v41787.borderTopColor; borderBottom =v41787.borderBottomStyle +" " +v41787.borderBottomWidth +" " +v41787.borderBottomColor; borderLeft =v41787.borderLeftStyle +" " +v41787.borderLeftWidth +" " +v41787.borderLeftColor; borderRight =v41787.borderRightStyle +" " +v41787.borderRightWidth +" " +v41787.borderRightColor; backgroundColor =v41787.backgroundColor; } with (v5f274.TextObj.style) { borderStyle ="none"; borderWidth ="0px"; height ="auto"; } v5f274.HasTextBoxBorder =true; }, m69661:function(vc8e93,v9a866) { if (vc8e93.LayoutSettings.AlwaysShowSearchButton &&vc8e93.SearchObj.currentStyle.backgroundImage !="none") { var v88e74 =null; var v7a857 =[vc8e93.SearchObj]; if (vc8e93.AnimationState !=null &&!vc8e93.AnimationState.Completed) { vc8e93.AnimationState.Canceled =true; v88e74 =vc8e93.AnimationState.Step; vc8e93.AnimationState =null; } if (vc8e93.LayoutSettings.RoundCorner) { if (vc8e93.LayoutSettings.SearchButtonPosition =="Left") v7a857.push(wc9c821.m14e51(vc8e93,"left2")); else v7a857.push(wc9c821.m14e51(vc8e93,"right2")); } vc8e93.AnimationState =new AnimationState(v7a857,vc8e93,wc9c821.m4645); if (v88e74 !=null) vc8e93.AnimationState.Step =v88e74; ISUI.AnimateBackground(vc8e93.AnimationState,v9a866); return true; } return false; }, m4645:function(vdf013) { var v0c113 =vdf013.Owner; if (vdf013.Step ==0) { v0c113.LayoutSettings.DropDownStyle.SetToNormal(); ISUI.ChangeOpacity(100,vdf013.Element); if (v0c113.LayoutSettings.RoundCorner) wc9c821.m15869(v0c113); } else { if (IS.moz &&!v0c113.IsInOver) wc9c821.m69661(v0c113,"Hide"); } vdf013.Owner =null; vdf013 =null; }, m0a122:function(ve6749,v99745) { if (ve6749.AnimationState !=null &&!ve6749.AnimationState.Completed) { ve6749.AnimationState.Canceled =true; if (v99745 =="Active") ve6749.LayoutSettings.DropDownStyle.SetToActive(); else if (v99745 =="Normal") ve6749.LayoutSettings.DropDownStyle.SetToNormal(); ISUI.ChangeOpacity(100,ve6749.AnimationState.Element); ve6749.AnimationState =null; if (ve6749.LayoutSettings.RoundCorner) wc9c821.m15869(ve6749); } }, m86292:function(ve6b68,vc8555) { var v6e832 =ve6b68.GetFontTextElement(); if (v6e832 !=null) return v6e832.contains(vc8555); return false; }, mf1961:function(v7c688) { wc9c821.m2e969(v7c688); var v74668 =v7c688.FrameObj.parentElement; if ((IS.IsXHTMLDocType()||IS.moz)&&v74668) { if (v74668.tagName =="BODY" ||v74668.tagName =="TD") { Listener.Add(v74668,"onresize",function() { wc9c821.m2e969(v7c688); }); } } if (v7c688.HasLinkedChilds &&v7c688.Value !=null &&v7c688.Value !="") { for (var v66f55=0; v66f55<v7c688.LinkedChilds.length; v66f55++) { var v38a85 =v7c688.LinkedChilds[v66f55]; if (!v38a85.IsDataBound) { wc9c821.m38314(v38a85,v7c688); } } }  if (IS.safari &&v7c688.RequireVisualStylesSetup) wc9c821.m80e97(v7c688);  if (v7c688.CustomInterface !=null) v7c688.CustomInterface.OnInitialize(v7c688); }, m95d88:function(v18e24) { }, m6366:function(v45b24) { if (event.srcElement ==v45b24.TextObj &&v45b24.ResultBoxShown) return; if (event.srcElement !=v45b24.SearchObj &&!wc9c821.m86292(v45b24,event.srcElement)) { v45b24.ResultBoxShown =false;  } }, m2e969:function(v51e79) { if (!IS.moz &&!IS.IsXHTMLDocType()&&!IS.opera &&!IS.safari) return; var v46424 =v51e79; var vd5534 =(v46424.FrameObj.offsetWidth -v46424.FrameObj.clientWidth)*2; if (v46424.FrameObj.offsetWidth<50) { event.returnValue =false; return false; }  if (IS.moz &&v46424.SearchObj &&v46424.SearchObj.style.display =="none") { with (v46424.SearchObj.style) { display =""; width ="0px"; visibility ="hidden"; } } v46424.TextObj.parentElement.style.width =(v46424.FrameObj.clientWidth -v46424.SearchObj.clientWidth -4)+"px"; }, mad348:function(v24663) { if (!v24663.IsTextObjFocused &&!v24663.IsInOver) { if (IS.moz &&v24663.FrameObj.getAttribute("disabled")=="disabled") return;  v24663.LayoutSettings.FrameStyle.SetToOver(); v24663.LayoutSettings.TextBoxStyle.SetToOver(); v24663.LayoutSettings.DropDownStyle.SetToOver(); if (v24663.LayoutSettings.RoundCorner) wc9c821.m15869(v24663); if (v24663.LayoutSettings.EnableAnimation) wc9c821.m69661(v24663,"Display"); if (v24663.HasTextBoxBorder) wc9c821.m72a26(v24663); v24663.IsInOver =true; } }, m92986:function(va3534) { if (!va3534.IsTextObjFocused) { var vf0298 =false; var v0a823 =null;  try { v0a823 =event.toElement; } catch(e) { if (IS.moz) { wcGlobal.lastObj =va3534; v0a823 =va3534.FrameObj; } }  if (v0a823 !=null &&va3534.FrameObj.contains(v0a823)) return; if (va3534.LayoutSettings.EnableAnimation) vf0298 =wc9c821.m69661(va3534,"Hide"); va3534.LayoutSettings.FrameStyle.SetToNormal(); va3534.LayoutSettings.TextBoxStyle.SetToNormal(); if (!vf0298) va3534.LayoutSettings.DropDownStyle.SetToNormal(); if (va3534.LayoutSettings.RoundCorner) wc9c821.m15869(va3534); if (va3534.HasTextBoxBorder) wc9c821.m72a26(va3534);  va3534.IsInOver =false; } },  m78a87:function() { if (wcGlobal.lastObj) { var v3e334 =wcGlobal.lastObj; var v63192 =event.srcElement;  if (v63192 &&v3e334.FrameObj.contains(v63192)) { wcGlobal.lastObj =null; return; } if (!v3e334.IsTextObjFocused &&v3e334.LayoutSettings.EnableAnimation &&v3e334.UseDefaultStyle &&v3e334.IsInOver) { wc9c821.m69661(v3e334,"Hide"); v3e334.IsInOver =false; } wcGlobal.lastObj =null; } }, m0a284:function(v45438) { if (v45438.TextObj &&!v45438.TextObj.readOnly &&!v45438.MultipleSelectionSettings.Enabled) { if (IS.chrome) setTimeout(function(){v45438.TextObj.select(); },10); else v45438.TextObj.select(); } v45438.LayoutSettings.FrameStyle.SetToActive(); v45438.LayoutSettings.TextBoxStyle.SetToActive(); v45438.LayoutSettings.DropDownStyle.SetToActive(); v45438.IsTextObjFocused =true; if (IS.moz ||IS.opera ||IS.safari) wc9c821.m0a122(v45438,"Active"); if (v45438.LayoutSettings.RoundCorner) wc9c821.m15869(v45438); if (v45438.HasTextBoxBorder) wc9c821.m72a26(v45438); }, mf9345:function(v62073) { if (v62073.MultipleSelectionSettings.Enabled) { if (v62073.Values ==null) return; var vc3a38 =v62073.GetSelectedValueItem(); if (vc3a38) { ISEvent.Raise(v62073.LayoutSettings.ClientSideEvents.OnValueItemContextMenu,v62073.Id,vc3a38); } } }, mad529:function(v03373) { if (v03373.CustomInterface ==null) { if (v03373.LayoutSettings.ResultBoxWindowType =="Normal") { if (event &&event.toElement) { if (v03373.ResultBox &&v03373.ResultBox.document) { var vab373 =v03373.ResultBox.document.getOwnerDocument(); if (vab373.contains(event.toElement)) { v03373.EventInResultBox =true; return false; } } } } else { if (event &&event.toElement) { if (v03373.FrameObj.contains(event.toElement)) { event.cancelBubble =true; event.returnValue =false; } } } } else { if (event &&event.toElement) { var vab373 =v03373.CustomInterface.IsElementInContainer(event.toElement);  if (vab373 ||v03373.FrameObj.contains(event.toElement)) { v03373.EventInResultBox =true;   if (!v03373.CustomInterface.CanScroll()) { event.cancelBubble =true; event.returnValue =false; }  return false; } } } v03373.EventInResultBox =false; }, m7a98:function(v5d629) { if (!IS.ie &&!IS.chrome) { if (event &&event.srcElement) { if (v5d629.ResultBox !=null &&v5d629.ResultBox.document !=null) { var vdd573 =v5d629.ResultBox.document.getOwnerDocument(); if (vdd573.contains(event.srcElement)) return false; } } } else if (v5d629.EventInResultBox) { if (IS.chrome) {  setTimeout(function() { v5d629.EventInResultBox =false; v5d629.SetFocus(); },50); }  return false; } v5d629.IsTextObjFocused =false; v5d629.ResultBoxShown =false; var va5811 =false; if (v5d629.CustomInterface !=null) { if (!v5d629.CustomInterface.OnLostFocus(0)) va5811 =true; }  if (!v5d629.IsMouseDown &&!va5811) wc9c821.m92986(v5d629); if (!ISEvent.Raise(v5d629.LayoutSettings.ClientSideEvents.OnLostFocus,v5d629.Id)) return; if (v5d629.CustomInterface !=null) { if (v5d629.CustomInterface.IsItemExist(v5d629.TextObj.value)) v5d629.CustomInterface.OnSetValue(v5d629.TextObj.value,0); else v5d629.CustomInterface.OnSetValue(v5d629.TextObj.value,1);  return; } if (v5d629.ResultBox ==null &&v5d629.LayoutSettings.EntryMode !="InstantLookup") return;  if (v5d629.Value ==null &&wc9c821.m23159(v5d629)) wc9c821.m0c873(v5d629); else { if (v5d629.MultipleSelectionSettings.Enabled) { if (!v5d629.MultipleSelectionSettings.AllowNotInListText) { wc9c821.meb263(v5d629); if (wc9c821.md2c83(v5d629)) wc9c821.ma3f31(v5d629); } } else { if (!v5d629.AllowAdd) { if (v5d629.GetTextBoxValue()!="") { if (v5d629.LayoutSettings.EntryMode !="InstantLookup") { if (v5d629.RequestId ==0) wc9c821.m04415(v5d629); } else { if (v5d629.IsDataBound) { if (v5d629.Value ==null ||v5d629.Value =="" ||v5d629.IsDirty) { v5d629.IsDirty =true; wc9c821.mcb892(v5d629); return; } } else { if (v5d629.IsDirty) { wc9c821.m0392(v5d629); wc9c821.m88e87(v5d629); if (v5d629.SelectedIndex>-1) wc9c821.m0c873(v5d629); else v5d629.Value =null; if (v5d629.Value ==null ||v5d629.Value =="") wc9c821.mcb892(v5d629); else wc9c821.m9e435(v5d629,true); v5d629.IsDirty =false; } } } } else { wc9c821.m5f433(v5d629); if (v5d629.HasLinkedChilds &&v5d629.LinkedChilds !=null) wc9c821.mc4497(v5d629); } } else { var v47774 =v5d629.GetTextBoxValue();  if (v47774 !="" &&v5d629.Text !=v47774 &&!v5d629.IsInProgress) v5d629.LastSelectedIndex =-1;  if (!wc9c821.m23159(v5d629)) { if (v5d629.GetTextBoxValue()!="") { var v17f80 =true;  if (v5d629.Grid &&!v5d629.TextObj.isDirty) v17f80 =false;  if (v17f80) wc9c821.mb9552(v5d629); } else wc9c821.m5f433(v5d629); } else { wc9c821.m0c873(v5d629); wc9c821.m9e435(v5d629,true); } } } } if (IS.moz &&v5d629.MultipleSelectionSettings.Enabled &&v5d629.LayoutSettings.TextBoxMode =="ReadOnly" &&!v5d629.IsDataBound) v5d629.ResultBoxShown =true;  else { if (IS.moz) { setTimeout(function() { if (v5d629.ResultBox) v5d629.ResultBox.hide(); },50); } else { if (v5d629.ResultBox) v5d629.ResultBox.hide(); } }  v5d629.UpdateState(); }, mdf348:function(v1be54) { var vdae48 =v1be54; var v4530; var vca026 =false; var vcb445 =false; var ve2037 =true; vdae48.LastEventType ="Key"; vdae48.LastKeyCode =event.keyCode; vdae48.LastCtrlKey =event.ctrlKey; vdae48.LastKeyDownHandled =false; try { v4530 =vdae48.GetTData(); var vd9249 =v4530.parentElement; } catch (e) { if (event.keyCode !=9 &&event.keyCode !=27 &&event.keyCode !=13 &&!event.shiftKey &&!event.ctrlKey) { var v6bd97 =true; if (event.keyCode ==18 &&event.altKey) return; if (vdae48.MultipleSelectionSettings.Enabled) { if (event.keyCode ==ISKeyboardKey.LEFT ||event.keyCode ==ISKeyboardKey.RIGHT ||((event.keyCode ==ISKeyboardKey.BACKSPACE ||event.keyCode ==ISKeyboardKey.DELETE) &&IS.moz &&!vdae48.ResultBoxShown)) v6bd97 =false; } if (v6bd97) { minChars =vdae48.MinCharsToRequest; if (vdae48.TextObj.value.length>=minChars) { if (vdae48.LayoutSettings.EntryMode !="InstantLookup") wc9c821.mcb892(v1be54,false); } } } if ((vdae48.LayoutSettings.EntryMode =="InstantLookup" &&(event.keyCode ==9 ||event.keyCode ==13)) ||(vdae48.MultipleSelectionSettings.Enabled &&(event.keyCode ==8 ||event.keyCode ==46 ||event.keyCode ==32 ||event.keyCode ==ISKeyboardKey.LEFT ||event.keyCode ==ISKeyboardKey.RIGHT ||vdae48.GetSelectedValueItem()!=null))) { } else return; } if (event.keyCode ==40 ||event.keyCode ==34) { if (event.altKey) { wc9c821.mcb892(v1be54,true); return; } if (wc9c821.m23159(vdae48)) wc9c821.m6db20(v1be54,v4530.rows[vdae48.LastSelectedIndex]); if (event.keyCode ==40) { if (vdae48.MultipleSelectionSettings.Enabled &&!vdae48.IsDataBound) vdae48.LastSelectedIndex =wc9c821.m47d68(v4530,vdae48.LastSelectedIndex); else { if (!vdae48.IsDataBound &&vdae48.LinkSettings.Enabled) vdae48.LastSelectedIndex =wc9c821.m47d68(v4530,vdae48.LastSelectedIndex,true); else vdae48.LastSelectedIndex =wc9c821.m47d68(v4530,vdae48.LastSelectedIndex,true); } } else vdae48.LastSelectedIndex +=vdae48.DropDownRows; if (vdae48.LastSelectedIndex>=v4530.rows.length) { if (vdae48.TotalRetrievedRows<vdae48.TotalRows) { wcfe158.m16e17(v1be54); vcb445 =true; } if (vcb445 ||event.keyCode ==34) vdae48.LastSelectedIndex =v4530.rows.length -1; } if (vdae48.LastSelectedIndex>v4530.rows.length &&!vcb445) { if (!vdae48.IsDataBound &&vdae48.LinkSettings.Enabled) vdae48.LastSelectedIndex =-1; else vdae48.LastSelectedIndex =0; } vdae48.SelectedIndex =vdae48.LastSelectedIndex; if (vdae48.LastSelectedIndex<v4530.rows.length) { var v56392 =v4530.rows[vdae48.LastSelectedIndex]; wc9c821.m35b43(v1be54,v56392); } vca026 =true; } else if (event.keyCode ==38 ||event.keyCode ==33) { if (wc9c821.m23159(vdae48)) wc9c821.m6db20(vdae48,v4530.rows[vdae48.LastSelectedIndex]); if (event.keyCode ==38) { if (vdae48.MultipleSelectionSettings.Enabled &&!vdae48.IsDataBound) vdae48.LastSelectedIndex =wc9c821.m14528(v4530,vdae48.LastSelectedIndex); else { if (!vdae48.IsDataBound &&vdae48.LinkSettings.Enabled) vdae48.LastSelectedIndex =wc9c821.m14528(v4530,vdae48.LastSelectedIndex ==-1 ? v4530.rows.length : vdae48.LastSelectedIndex,true); else vdae48.LastSelectedIndex =wc9c821.m14528(v4530,vdae48.LastSelectedIndex ==-1 ? v4530.rows.length : vdae48.LastSelectedIndex,true); } } else { vdae48.LastSelectedIndex -=vdae48.DropDownRows; if (vdae48.LastSelectedIndex<-1) vdae48.LastSelectedIndex =0; } if (vdae48.LastSelectedIndex<-1) vdae48.LastSelectedIndex =v4530.rows.length -1; vdae48.SelectedIndex =vdae48.LastSelectedIndex; if (vdae48.LastSelectedIndex>=0) { var v56392 =v4530.rows[vdae48.LastSelectedIndex]; wc9c821.m35b43(vdae48,v56392); } vca026 =true; } else if (event.keyCode ==27) { wc9c821.m04415(vdae48); vca026 =true; } else if (event.keyCode ==13) { if (vdae48.MultipleSelectionSettings.Enabled &&vdae48.LayoutSettings.TextBoxMode =="ReadOnly") { wc9c821.md5970(vdae48); vca026 =true; } else { vdae48.HideDropDown(); if (vdae48.AllowAdd &&!wc9c821.mfe637(vdae48)) { wc9c821.mb9552(vdae48); ve2037 =false; } else { if (!vdae48.ResultBoxShown &&vdae48.LayoutSettings.EntryMode =="InstantLookup") { if (vdae48.LastSelectedIndex ==-1) { wc9c821.mcb892(vdae48,false); ve2037 =false; } else { wc9c821.m0c873(v1be54); } } else { wc9c821.m0c873(v1be54); if (vdae48.MultipleSelectionSettings.Enabled) { if (vdae48.LastSelectedIndex !=-1) { if (!wc9c821.m8f074(v1be54,v1be54.LastQueryMultiple)) wc9c821.mf7146(v1be54); } } else { if (!vdae48.MultipleSelectionSettings.AllowNotInListText) wc9c821.m3fd82(v1be54); else wc9c821.mf7146(v1be54,true); } } } } vdae48.ResultBoxShown =false; vca026 =true; } else if (event.keyCode ==8 ||event.keyCode ==46) { if (v1be54.MultipleSelectionSettings.Enabled) { var ve6a21; var ve9998 =v1be54.GetSelectedValueItem(); if (ve9998 ==null) { if (event.keyCode ==ISKeyboardKey.BACKSPACE) ve6a21 =wc9c821.m71383(v1be54,"Previous"); else ve6a21 =wc9c821.m71383(v1be54,"Next"); } else { ve6a21 =wc9c821.m71383(v1be54,"Next",true); v1be54.ClearSelectedValueItem(); wc9c821.meb263(v1be54); wc9c821.m74077(v1be54.TextObj,ve9998.StartPos,true); } if (ve6a21) { vca026 =true; ve2037 =false; } } } else if (event.keyCode ==ISKeyboardKey.LEFT) { if (v1be54.MultipleSelectionSettings.Enabled) wc9c821.m1ec81(v1be54,"Previous"); } else if (event.keyCode ==ISKeyboardKey.RIGHT) { if (v1be54.MultipleSelectionSettings.Enabled) { var ve6a21 =wc9c821.m1ec81(v1be54,"Next"); if (ve6a21) { vca026 =true; ve2037 =false; } } } else if (event.keyCode ==9) { wc9c821.m0c873(v1be54); if (vdae48.ResultBoxShown) { if (vdae48.MultipleSelectionSettings.Enabled) { vca026 =true; ve2037 =false; if (vdae48.LastSelectedIndex !=-1) { if (!wc9c821.m8f074(v1be54,v1be54.LastQueryMultiple)) { wc9c821.mf7146(v1be54); if (!IS.ie ||v1be54.LayoutSettings.ResultBoxWindowType =="Normal") v1be54.HideDropDown(); } else vca026 =false; } else { var ve6c96 =wc9c821.m1505(v1be54.TextObj); if (ve6c96<v1be54.TextObj.value.length) { if (!vdae48.MultipleSelectionSettings.AllowNotInListText) wc9c821.m3fd82(v1be54); else wc9c821.mf7146(v1be54,true); } else vca026 =false; } } } } else { if (vdae48.MultipleSelectionSettings.Enabled) { if (event.keyCode ==ISKeyboardKey.SPACE &&event.ctrlKey &&vdae48.MultipleSelectionSettings.AllowBrowseAll) { if (vdae48.IsDataBound) wc9c821.mcb892(vdae48); vca026 =true; ve2037 =false; } else if (event.keyCode ==ISKeyboardKey.SPACE &&vdae48.MultipleSelectionSettings.Enabled &&vdae48.LayoutSettings.TextBoxMode =="ReadOnly") {  if (ISEvent.Raise(v1be54.LayoutSettings.ClientSideEvents.OnItemChecked,v1be54.Id)) wc9c821.md5970(v1be54); vca026 =true; ve2037 =false; } else { var vd5779 =ISKeyboardKey.GetChar(); if (wc9c821.md3587(vdae48.TextObj)&&(ISKeyboardKey.IsLetter(event.keyCode)||ISKeyboardKey.IsNumber(event.keyCode))) { if (vdae48.Values !=null) vdae48.Values =null; return; } else if (v1be54.GetSelectedValueItem()!=null &&(ISKeyboardKey.IsLetter(event.keyCode)||ISKeyboardKey.IsNumber(event.keyCode))) { ve6a21 =wc9c821.m71383(v1be54,"Next",true); v1be54.ClearSelectedValueItem(); wc9c821.meb263(v1be54); } if (vd5779 ==vdae48.MultipleSelectionSettings.SeparatorChar &&vdae48.LastQueryMultiple !=null) { if (vdae48.LastQueryMultiple.Text !="") { if (vdae48.LastSelectedIndex !=-1) { if (!wc9c821.m8f074(v1be54,v1be54.LastQueryMultiple)) { wc9c821.m0c873(v1be54); wc9c821.mf7146(v1be54); vdae48.LastQueryMultiple =null; } } else { if (!vdae48.MultipleSelectionSettings.AllowNotInListText) wc9c821.m3fd82(v1be54); else wc9c821.mf7146(v1be54,true); } } if (vdae48.ResultBoxShown) vdae48.HideDropDown(); vca026 =true; ve2037 =false; } } } } if (vca026) { vdae48.LastKeyDownHandled =true; if (event.keyCode !=27) { if (ve2037) { if (!vdae48.MultipleSelectionSettings.Enabled) wc9c821.m9e435(vdae48); } } event.cancelBubble =true; event.returnValue =false; return false; } return true; }, m53a26:function(vb9254) { if (IS.moz) { if (vb9254.LastKeyDownHandled) { event.cancelBubble =true; event.returnValue =false; return false; } } }, m1a090:function(vf5f54) { if (vf5f54.MultipleSelectionSettings.Enabled) return false; }, m8e117:function(v01325) { var v38054 =event; if (v01325.MultipleSelectionSettings.Enabled) { if (v01325.IsMouseDown) return false; } return true; }, m03945:function(v9be9) { if (v9be9.MultipleSelectionSettings.Enabled) { var v61325 =wc9c821.m1505(v9be9.TextObj); var vdc895 =v9be9.GetSelectedValueItem(); if (!vdc895) wc9c821.m74077(v9be9.TextObj,v61325,true); } }, md9673:function(v75464) { var v20345 =v75464; if (event.keyCode ==8 ||event.keyCode ==46) { if (v75464.MultipleSelectionSettings.Enabled) { if (v75464.TextObj.value =="") { if (v75464.Values !=null) v75464.Values =null; } } } if (event &&(event.keyCode ==40 ||event.keyCode ==38 ||event.keyCode ==37 ||event.keyCode ==39 ||event.keyCode ==34 ||event.keyCode ==33 ||event.keyCode ==27 ||event.keyCode ==16 ||(event.keyCode ==17 &&!v75464.MultipleSelectionSettings.Enabled)||event.keyCode ==35 ||event.keyCode ==36 ||event.keyCode ==36 ||event.keyCode ==20 ||event.keyCode ==18 ||event.keyCode ==145 ||event.keyCode ==19 ||event.keyCode ==144 ||event.keyCode ==13 ||event.keyCode ==9)) { } else { if (v75464.MultipleSelectionSettings.Enabled) { if (v75464.LayoutSettings.TextBoxMode =="ReadOnly" &&!v75464.IsDataBound) return; else if (IS.moz &&!v75464.ResultBoxShown &&(event.keyCode ==ISKeyboardKey.BACKSPACE ||event.keyCode ==ISKeyboardKey.DELETE)) return; } if (v20345.LastQuery !=v20345.TextObj.value ||v20345.IsDirty ||(event.ctrlKey &&v75464.MultipleSelectionSettings.Enabled)) { v20345.IsDirty =true; if (v20345.IsDataBound) { v20345.NeedClearList =true; v20345.LastSelectedIndex =v20345.SelectedIndex =-1; v20345.RowIndex =null; } minChars =v20345.MinCharsToRequest; if (v20345.TextObj.value.length>=minChars) { if (v20345.LayoutSettings.EntryMode !="InstantLookup") { wc9c821.mcb892(v20345,false); } else { if (v20345.ResultBoxShown) v20345.HideDropDown(); } } else { wc9c821.maee36(v75464); try { v75464.HideDropDown(); } catch (e) { } return true; } } else { v20345.IsDirty =false; } } if (v20345.IsDirty) { if (v20345.IsDataBound) { if (!v20345.MultipleSelectionSettings.Enabled) wc9c821.m56569(v20345,v20345.LayoutSettings.TextSettings.SearchText +" '" +v20345.TextObj.value +"'"); else wc9c821.m56569(v20345,v20345.LayoutSettings.TextSettings.LoadingText); } } return true; }, m7385:function(v41d0) { var v1430 =event.srcElement; v41d0.IsMouseDown =true; if (v1430 ==v41d0.SearchObj ||v41d0.SearchObj.contains(v1430)||wc9c821.m86292(v41d0,v1430)) { if (IS.moz &&v41d0.FrameObj.getAttribute("disabled")=="disabled") return;  v41d0.LastEventType ="Mouse"; v41d0.LastKeyCode =0; wc9c821.mcb892(v41d0,true); } else if (v1430 ==v41d0.TextObj) { if (v41d0.LayoutSettings.TextBoxMode =="ReadOnly") { v41d0.LastEventType ="Mouse"; v41d0.LastKeyCode =0; if (!v41d0.IsDataBound &&v41d0.MultipleSelectionSettings.Enabled) v41d0.ResultBoxShown =false; else wc9c821.mcb892(v41d0,true); } else { v41d0.ResultBoxShown =false; } } setTimeout(function() { wc9c821.m1ce75(v41d0); },10); }, m1ce75:function(vefd84) { vefd84.IsMouseDown =false; }, mb3f57:function(vb5f75) { var v75284 =event.srcElement; if (v75284 ==vb5f75.TextObj &&vb5f75.MultipleSelectionSettings.Enabled &&vb5f75.Values !=null) { var v4ba24 =wc9c821.m1505(vb5f75.TextObj); if (vb5f75.GetSelectedValueItem()==null ||v4ba24>0) { var vbb453 =wc9c821.m3b660(vb5f75); var v79146 =vbb453[0]; var v88345 =vbb453[1]; var v2da13 =vb5f75.Values[v88345]; if (v2da13) { if (v4ba24>v2da13.StartPos) { vb5f75.ClearSelectedValueItem(); v2da13.IsSelected =true; wc9c821.meb263(vb5f75); wc9c821.m5e152(vb5f75,v2da13,v4ba24); } else vb5f75.ClearSelectedValueItem(); } else vb5f75.ClearSelectedValueItem(); } else { var v2da13 =vb5f75.GetSelectedValueItem(); wc9c821.meb263(vb5f75); wc9c821.m5e152(vb5f75,v2da13); } } }, mf1625:function(v8fc59) { if (v8fc59.LayoutSettings.RoundCorner) { return v8fc59.FrameObj.parentElement; } return null; }, m14e51:function(vc7431,vd7852) { var v44959 =wc9c821.mf1625(vc7431); var vfcd13 =v44959.parentElement; var v0835; switch (vd7852) { case "left1": v0835 =vfcd13.cells[0].children[0]; break; case "left2": v0835 =vfcd13.cells[0].children[1]; break; case "right2": v0835 =vfcd13.cells[2].children[0]; break; case "right1": v0835 =vfcd13.cells[2].children[1]; break; } return v0835; }, m15869:function(v15c19,v5b048) { var v8c914 =wc9c821.m14e51(v15c19,"left1"); var v89b92 =wc9c821.m14e51(v15c19,"left2"); var v3fe90 =wc9c821.m14e51(v15c19,"right2"); var v9f514 =wc9c821.m14e51(v15c19,"right1"); var v01c89 =v15c19.FrameObj; var v74137 =v01c89.currentStyle; var vdc194 =v15c19.SearchObj.currentStyle; var v3fe19; var v02d90; var va8325; var v22572; var v9a025 =""; var v7fd37 =""; var va7946 =""; var v8da57 =0; v3fe19 =v74137.borderLeftColor; va8325 =v22572 =v74137.backgroundColor; v02d90 =v74137.borderRightColor; v8da57 =v01c89.offsetHeight; if (v15c19.LayoutSettings.AlwaysShowSearchButton) { if (v15c19.LayoutSettings.SearchButtonPosition =="Left") { va8325 =vdc194.backgroundColor; if (IS.ie) { if (vdc194.filter !="" &&vdc194.filter.indexOf("GradientType=0")>-1) v9a025 =vdc194.filter; if (v74137.filter !="" &&v74137.filter.indexOf("GradientType=0")>-1) v7fd37 =v74137.filter; } } else { v22572 =vdc194.backgroundColor; if (IS.ie) { if (vdc194.filter !="" &&vdc194.filter.indexOf("GradientType=0")>-1) v7fd37 =vdc194.filter; if (v74137.filter !="" &&v74137.filter.indexOf("GradientType=0")>-1) v9a025 =v74137.filter; } } if (vdc194.backgroundImage !="") va7946 =vdc194.backgroundImage; } else { v02d90 =v3fe19; } if (v3fe19 =="#000000" ||v3fe19 =="rgb(0, 0, 0)") v3fe19 =va8325; if (v02d90 =="#000000" ||v02d90 =="rgb(0, 0, 0)") v02d90 =v22572; if (v5b048) { if (v8da57 ==0) v8da57 =parseFloat(v74137.height); }  with (v8c914.style) { if (v5b048) { cssText ="width:1px; margin-top:2px; float:left; font-size:1px"; height =(v8da57 -4)+"px"; } backgroundColor =v3fe19; borderTop =borderBottom =(v3fe19 +" 1px solid"); } with (v89b92.style) { if (v5b048) { cssText ="width:1px; margin-top:1px; float:left; font-size:1px"; height =(v8da57 -2)+"px"; } backgroundColor =va8325; borderTop =borderBottom =(v3fe19 +" 1px solid"); if (v9a025 !="") filter =v9a025; if (va7946 !="" &&v15c19.LayoutSettings.SearchButtonPosition =="Left") backgroundImage =va7946; } with (v3fe90.style) { if (v5b048) { cssText ="width:1px; margin-top:1px; float:left; font-size:1px"; height =(v8da57 -2)+"px"; } backgroundColor =v22572; borderTop =borderBottom =(v02d90 +" 1px solid"); if (v7fd37 !="") filter =v7fd37; if (va7946 !="" &&v15c19.LayoutSettings.SearchButtonPosition =="Right") backgroundImage =va7946; } with (v9f514.style) { if (v5b048) { cssText ="width:1px; margin-top:2px; float:left; font-size:1px"; height =(v8da57 -4)+"px"; } backgroundColor =v02d90; borderTop =borderBottom =(v02d90 +" 1px solid"); } v74137 =null; v01c89 =null; }, m47d68:function(v4a611,v63797,vd9e83) { var vaa991 =v4a611.rows[v63797]; if (!vaa991 &&v63797 !=-1) return v63797; var v68a87 =v63797;  if (vaa991) v68a87 =vaa991.rowIndex; if (v68a87 ==v4a611.rows.length -1) { if (!vd9e83) return wc9c821.m47d68(v4a611,-1); else return -1; } else { while (true) { v68a87++; var vaa991 =v4a611.rows[v68a87]; if (!vaa991) { if (!vd9e83) return v68a87 +1; else return -1; } if (vaa991.style.display !="none" &&!vaa991.disabled) return v68a87; } } return -1; }, m14528:function(vd7f50,v7a616,vb7817) { var v0d730 =vd7f50.rows[v7a616];  var v9897 =v7a616;  if (v0d730) v9897 =v0d730.rowIndex; if (v9897 ==-1) { return wc9c821.m14528(vd7f50,vd7f50.rows.length -1); } else { while (true) { v9897--; var v0d730 =vd7f50.rows[v9897]; if (!v0d730) { if (vb7817) return -1; else return v9897 -1; } if (v0d730.style.display !="none" &&!v0d730.disabled) return v9897; } } }, m87635:function(v3b941) { if (v3b941.MultipleSelectionSettings.Enabled) return; var vb5686 =wc9c821.m37481(v3b941.TextObj.value); var vfb486 =v3b941.Value; if (vfb486 !="") vfb486 =wc9c821.m6c853(vfb486); v3b941.Text =vb5686; v3b941.Value =vfb486; if (vb5686 !="") { v3b941.LastQuery =vb5686; v3b941.TextObj.value =vb5686; } else v3b941.LastQuery =null; }, m37481:function(vc1541) { var v5f141 =new RegExp(unescape("%A0"),"img"); return vc1541.replace(v5f141," "); }, mb9552:function(v13416,v2c653,vd3673) { var v82841 =v13416; var v27465; if (v82841.IsOnAdd) return true; if (v2c653) v27465 =v2c653; else { v27465 =new WebComboRow(); v27465.Text =v82841.TextObj.value; v27465.Value =v27465.Text; } if (v27465.Text =="") return true; v82841.NewRowObj =v27465; v82841.IsOnAdd =true; if (!v2c653) { if (!ISEvent.Raise(v13416.LayoutSettings.ClientSideEvents.OnAddItem,v13416.Id)) { v82841.IsOnAdd =false; return; } } v82841.IsOnAdd =false; if (v82841.IsDataBound) { if (!v2c653) { if ((v82841.TotalRetrievedRows>0 &&wc9c821.m23159(v82841))||!v82841.ResultBox ||v82841.IsInProgress) return; } else if (v82841.IsInProgress) return; wc9c821.mcb878(v82841,"AddItem"); } else wc9c821.me2e68(v82841,vd3673); }, m55c99:function(v08d12) { var v1cc35 =v08d12; var v01463 =v1cc35.LayoutSettings.StatusBoxPosition; var ve9740 =v08d12.ResultBox.document; var v53186 =""; var v5b063 =""; var v22432 =v08d12.Id; var veb697 =new Array("ResultFrame","ResultBox","StatusBox","Row","Header","Column","SelectedRow","MoreButton"); var va643 =ve9740.body; var v0fa76 =""; if (IS.ie &&v08d12.LayoutSettings.ResultBoxWindowType =="Popup") { for (var vb0363=0; vb0363<veb697.length; vb0363++) { var vbdd8 =ve9740.createStyleSheet(); var ve8360 =v08d12.LayoutSettings[veb697[vb0363] +"Style"]; if (typeof (ve8360)=="string") IS.AddStyleRule(vbdd8,v08d12.Id,ve8360); else if (typeof (ve8360)=="object") DynamicStyleEngine.AddStyleRule(vbdd8,v08d12.Id,ve8360); } } else va643 =ve9740.getOwnerDocument(); va643.className =v1cc35.LayoutSettings.ResultFrameStyle; va643.scroll ="no"; va643.style.margin =va643.style.padding ="0px"; if (IS.moz) va643.style.overflow ="hidden"; if (v1cc35.LayoutSettings.StatusBoxVisible) { v5b063 +="<table id='" +v22432 +"_tstatus' class='" +v1cc35.LayoutSettings.StatusBoxStyle +"' cellspacing=0 cellpadding=0 style='padding: 3px; width: 100%;" +"' >"; v5b063 +="<tr><td id='" +v22432 +"_tdstatus' noWrap width='100%'><span id='" +v22432 +"_spstatus' style='text-overflow: ellipsis; overflow: hidden; width: 100%'>Ready.</span></td><td noWrap align='right'>"; var v4af10 ="parent."; var vf0559 =v1cc35.LayoutSettings.HelpURL; if (vf0559 =="")
 vf0559 ="http://www.intersoftpt.com/webcombo/help.aspx";
  var vd7155 ="<a href='" +vf0559 +"' target='_blank' border=0>"; var vcdf82 ="</a>";  if (!IS.ie ||v1cc35.LayoutSettings.ResultBoxWindowType =="Normal") v4af10 ="";  if (v1cc35.LayoutSettings.AlwaysShowHelpButton) { if (IS.moz) v5b063 +=vd7155;  v5b063 +="<img border=0 alt='" +v08d12.LayoutSettings.TextSettings["HelpTitleText"] +"' onclick=\"" +v4af10 +"WC40Help('" +v08d12.Id +"')\" style='cursor: pointer' src='" +v1cc35.ResolveImagePath(v1cc35.GetImagesFolder(),v1cc35.LayoutSettings.HelpImage) +"'>";  if (IS.moz) v5b063 +=vcdf82; } v5b063 +="</td></tr>"; v5b063 +="</table>"; } if (v01463 =="Top") v53186 +=v5b063; if (v1cc35.LayoutSettings.ComboMode =="MultipleColumns") { if (v1cc35.LayoutSettings.AlwaysShowColumnHeaders) { var v19494 =v1cc35.Columns; v53186 +="<div style='width:100%; overflow:hidden'>"; v53186 +="<table id='" +v22432 +"_theader' cellspacing=0 cellpadding=0 style='table-layout: fixed" +((IS.moz ||IS.safari ||IS.opera)? ";width:100%" : "")+"'>"; if (!IS.ie) { v53186 +=wc9c821.m64271(v1cc35); } v53186 +"<tr>"; if (v1cc35.MultipleSelectionSettings.Enabled &&!v1cc35.IsDataBound &&v1cc35.LayoutSettings.TextBoxMode =="ReadOnly") v53186 +="<td class='" +v1cc35.LayoutSettings.HeaderStyle +"' style='width: 25px'>&nbsp;</td>"; if (v1cc35.LayoutSettings.ColumnSeparatorColor !="") v0fa76 ="<span style='position:absolute; right:1px; width: 1px; background-color: " +ISUI.GetColor(v1cc35.LayoutSettings.ColumnSeparatorColor)+"'></span>"; for (var vb0363=0; vb0363<v19494.length; vb0363++) { if (!v19494[vb0363].Hidden) v53186 +="<td class='" +v1cc35.LayoutSettings.HeaderStyle +"' style='position:relative; width: " +v19494[vb0363].Width +";" +"'>" +v19494[vb0363].HeaderText +((vb0363<v19494.length -1)? v0fa76 : "")+"</td>"; } v53186 +="</tr></table></div>"; } } v53186 +="<div style='width:100%; height:" +(v1cc35.LayoutSettings.ResultBoxHeight -22 - (v1cc35.LayoutSettings.ComboMode =="MultipleColumns" ? 20 : 0)) +"px; overflow-y: auto; " +(v1cc35.LayoutSettings.ComboMode =="SingleColumn" ? "overflow-x: hidden" : "overflow-x:auto")+(IS.moz ? ";overflow:auto" : "")+"'>"; v53186 +="<table id='" +v22432 +"_tdata' class='" +v1cc35.LayoutSettings.ResultBoxStyle +"' cellspacing=0 cellpadding=0 style='width: 100%; cursor: default; table-layout: fixed;'>"; if (!IS.ie) { v53186 +=wc9c821.m64271(v1cc35,true); } v53186 +="</table>"; v53186 +="</div>"; if (v01463 =="Bottom") v53186 +=v5b063; v53186 +="<table id='" +v22432 +"_tmore' cellSpacing=0 cellPadding=0 width='100%' style='cursor:pointer'"; v53186 +=" title='" +v1cc35.LayoutSettings.TextSettings["MoreTitleText"] +"'"; v53186 +=" class='" +v1cc35.LayoutSettings.MoreButtonStyle.Normal +"'"; v53186 +=">"; v53186 +="<tr><td align='center' style='padding: 2px'><img src='" +v1cc35.ResolveImagePath(v1cc35.GetImagesFolder(),"wc_more.gif") +"'></td></tr>"; v53186 +="</table>"; va643.innerHTML =v53186; return v53186; }, m64271:function(v6a851,v6f377) { var vd7232 =""; if (v6a851.LayoutSettings.ComboMode =="MultipleColumns") { var v8ae68 =v6a851.Columns; if (v6a851.MultipleSelectionSettings.Enabled &&!v6a851.IsDataBound &&v6a851.LayoutSettings.TextBoxMode =="ReadOnly") { vd7232 +="<col width='25'>"; } for (var v6c133=0; v6c133<v8ae68.length; v6c133++) { if (!v8ae68[v6c133].Hidden) vd7232 +="<col width='" +(v6c133 ==v8ae68.length -1 &&v6f377 ? v8ae68[v6c133].Width -16 : v8ae68[v6c133].Width)+"'>"; } } return vd7232; }, m75690:function(vef326) { var v0e871 =vef326; var v10687 =v0e871.ResultBox; var v04067; if (!v10687) { if ((IS.moz ||vef326.LayoutSettings.ResultBoxWindowType =="Popup")&&!IS.opera &&!IS.safari) { v10687 =window.createPopup(); v04067 =v10687.document; v04067.open("text","replace"); v04067.write("<html><body></body></html>"); v04067.close(); v0e871.ResultBox =v10687; } else { var v5a587 =new WindowInfo(); v5a587.DisplayPosition ="Bottom"; v5a587.DisplayType ="Normal"; v5a587.OffsetControlID =vef326.Id; var v65272 =new WindowPopup(v5a587); v5a587.Popup =v65272; v65272.Init(); v0e871.ResultBox =v65272; v65272.document.parentWindow =window; v04067 =v65272.document; } wc9c821.m55c99(vef326); wc9c821.mf3964(vef326,v04067); v0e871.IsDirty =true; } }, m95778:function(v5b11) { if (v5b11._attrInit ||(!IS.moz &&!IS.safari &&!IS.opera)) return; for (var vcc862=0; vcc862<v5b11.attributes.length; vcc862++) { var ve5936 =v5b11.attributes[vcc862].name.toLowerCase(); var vbcd70 =new Array("dataValue"); for (var ve3332=0; ve3332<vbcd70.length; ve3332++) { if (vbcd70[ve3332].toLowerCase()==ve5936) { ve5936 =vbcd70[ve3332]; break; } } var v85a16 =v5b11[ve5936]; if (typeof (v85a16)=="undefined") { v5b11[ve5936] =v5b11.attributes[vcc862].value; } } v5b11._attrInit =true; }, mcb892:function(v66657,vb7f34) { var v84f37 =v66657; if (v84f37.FrameObj.disabled) return;  if (v66657.CustomInterface !=null) {  if (IS.ie) v84f37.TextObj.focus(); else setTimeout(function() { v84f37.TextObj.focus(); },10);   if (!v66657.CustomInterface.IsDropDownShown()) { if (vb7f34) v66657.CustomInterface.OnShowDropDown(vb7f34,false); else v66657.CustomInterface.OnTextChanged(v66657.TextObj.value); } else { v66657.CustomInterface.OnHideDropDown(); setTimeout(function() { wc9c821.m0a284(v66657); },100); event.cancelBubble =true; event.returnValue =false; }  return; } wc9c821.m75690(v66657); if (vb7f34) { if (IS.ie) v84f37.TextObj.focus(); else setTimeout(function() { v84f37.TextObj.focus(); },10); if (!v84f37.ResultBoxShown) v84f37.ResultBoxShown =true; else { v84f37.ResultBoxShown =false; v84f37.ResultBox.hide(); setTimeout(function() { wc9c821.m0a284(v66657); },100); event.cancelBubble =true; event.returnValue =false; return; } } if (v84f37.IsDataBound) { if (v84f37.RequestId !=0) clearTimeout(v84f37.RequestId); var vea224 =v84f37.Latency; if (v84f37.SkipLatency) vea224 =1; v84f37.RequestId =setTimeout(function() { wc9c821.mcb878(v84f37,"LoadData",vb7f34); },(vb7f34)? 100 : vea224); } else { setTimeout(function() { wc9c821.m4ad90(v84f37.Id,vb7f34); } , (vb7f34)? 100 : v84f37.Latency); } }, m4ad90:function(v5963,v9e161) { if (typeof (v5963)=="string") v5963 =ISGetObject(v5963); var vd0b12 =v5963; var v71213 =v5963.UnboundDataInitialized; var v4e974 =true; wc9c821.m0392(v5963); if (vd0b12.IsDirty) { if (vd0b12.LinkSettings.Enabled) { var vc6e62 =wc9c821.m8fb18(vd0b12); if (vc6e62) { vd0b12.ClearSelection(); if (vd0b12.LinkSettings.ParentEmptyAction =="PromptMessage") { var vabf59 =vd0b12.LayoutSettings.TextSettings.ParentEmptyPromptText; vabf59 =vabf59.replace("{0}",vd0b12.LinkSettings.ParentWebComboID); alert(vabf59); } else { wc9c821.m6d03(vd0b12,false,v9e161); } return false; } else { if ((!v71213 &&(vd0b12.Value !="" ||vd0b12.Text !=""))||vd0b12.RequireLinkRefresh){ if (vd0b12.LinkSettings.ParentWebCombo !=null) wc9c821.m38314(vd0b12,vd0b12.LinkSettings.ParentWebCombo[0]); } } } v4e974 =wc9c821.m88e87(v5963); vd0b12.IsDirty =false; vd0b12.LastQuery =vd0b12.TextObj.value; } if (v5963.MultipleSelectionSettings.Enabled &&v5963.LayoutSettings.TextBoxMode =="ReadOnly") { wc9c821.mb6d57(v5963); v4e974 =true; } if (v4e974) wc9c821.m6d03(v5963,false,v9e161); }, m0392:function(v4df42) { var v3e823 =v4df42; if (!v3e823.UnboundDataInitialized) { wc9c821.m75690(v4df42); var v7bf71 =v3e823.GetTData(); var vd2445 =document.getElementById(v4df42.Id +"_udata"); if (vd2445) { if (IS.ie) { wc9c821.m82b82(v3e823,vd2445.outerHTML); vd2445 =wc9c821.me5f58(v3e823); v7bf71.appendChild(vd2445.tBodies[0]); wc9c821.m6562(v3e823); } else { v7bf71.appendChild(vd2445.tBodies[0]); } } v3e823.UnboundDataInitialized =true; } }, mfe637:function(vd2a53) { var v69278 =0; var va1350 =vd2a53.DataTextField; var v2d330 =vd2a53.GetTData(); if (va1350 !="" &&vd2a53.LayoutSettings.ComboMode =="MultipleColumns") { var v58a71 =vd2a53.Columns; for (var v4d325=0; v4d325<v58a71.length; v4d325++) { if (v58a71[v4d325].BaseFieldName ==va1350) { v69278 =v4d325; break; } } } var vb1456 =false; for (var v4d325=0; v4d325<v2d330.rows.length; v4d325++) { var va4b19 =v2d330.rows[v4d325].cells[v69278]; var v4c087 =IS.GetInnerText(va4b19); if (v4c087.toLowerCase()==vd2a53.TextObj.value.toLowerCase()&&v4c087 !="") { vb1456 =true; break; } } return vb1456; }, m43180:function(va7892) { var vb5689 =0; var v9218 =va7892.DataTextField; var v4a61 =va7892.Columns; if (v9218 !="" &&va7892.LayoutSettings.ComboMode =="MultipleColumns") { for (var v96c78=0; v96c78<v4a61.length; v96c78++) { if (v4a61[v96c78].BaseFieldName ==v9218) { vb5689 =v96c78; break; } }  if (va7892.MultipleSelectionSettings.Enabled &&va7892.LayoutSettings.TextBoxMode =="ReadOnly" &&!va7892.IsDataBound) vb5689++; } return vb5689; }, m8f456:function(v0c819,v3ae76) { var vdc228 =v0c819.LinkSettings.ParentWebComboID; var ve3827 =vdc228.split(","); var v17934 =-1; var vdc91 =v0c819.LinkSettings.FilterDataMember.split(","); for (var v9bb69=0; v9bb69<ve3827.length; v9bb69++) { var vf7789 =ve3827[v9bb69].replace(new RegExp(" ","g"),""); if (vf7789 ==v3ae76.Id) { v17934 =v9bb69; break; } } if (v17934>-1) { if (v17934>vdc91.length) v17934 =0; return vdc91[v17934]; } else { return vdc91[0]; } }, m38314:function(vadc50,v3b544) { wc9c821.m0392(vadc50); var v4ba39 =vadc50.GetTData(); var v71686 =0; var v91b5 =wc9c821.m8f456(vadc50,v3b544); var v1037 =""; var v15413 =0; if (v91b5 =="") { alert("FilterDataMember is required for '" +vadc50.Id +"' when used in Unbound mode."); return; } for (var v7fd3=0; v7fd3<vadc50.Columns.length; v7fd3++) { if (vadc50.Columns[v7fd3].Hidden &&!vadc50.Columns[v7fd3].RenderOnHidden) v15413++; if (vadc50.Columns[v7fd3].BaseFieldName ==v91b5) { v71686 =v7fd3 -v15413; break; } } if (vadc50.LinkSettings.ParentFilterMode =="UseDataValueField") v1037 =v3b544.Value; else v1037 =v3b544.Text; if (v1037 =="") v1037 =v3b544.Text; for (var v7fd3=0; v7fd3<v4ba39.rows.length; v7fd3++) { var v1a561 =v4ba39.rows[v7fd3].cells[v71686]; var v40480 =IS.GetInnerText(v1a561); wc9c821.m6db20(vadc50,v4ba39.rows[v7fd3]); if (v40480 !=v1037) v4ba39.rows[v7fd3].style.display ="none"; else v4ba39.rows[v7fd3].style.display =""; } }, ma0162:function(ve7225,vc4932) { var vf2169 =true; if (vc4932 ==null) return false; wc9c821.m0392(ve7225); var v6c353 =ve7225.GetTData(); var va4742 =0; var v61c75 =wc9c821.m7120(vc4932.Text); if (v61c75 =="") { if (ve7225.MultipleSelectionSettings.AllowBrowseAll &&ve7225.LastEventType =="Key" &&(parseFloat(ve7225.LastKeyCode)==ISKeyboardKey.SPACE &&ve7225.LastCtrlKey)) { } else return false; } for (var v07756=0; v07756<v6c353.rows.length; v07756++) { var ve8127 =v6c353.rows[v07756].cells[va4742]; var v2ab25 =IS.GetInnerText(ve8127); v2ab25 =v2ab25.substring(0,v61c75.length); wc9c821.m6db20(ve7225,v6c353.rows[v07756]); if (v2ab25.toLowerCase()!=v61c75.toLowerCase()) v6c353.rows[v07756].style.display ="none"; else v6c353.rows[v07756].style.display =""; } return true; }, m88e87:function(v7b794) { var vc4b64 =v7b794; var v1b052 =vc4b64.GetTData(); var ve8461 =wc9c821.m43180(v7b794); var vd972 =true; var v11577 =false; for (var v74453=0; v74453<v1b052.rows.length; v74453++) { wc9c821.m6db20(v7b794,v1b052.rows[v74453]); } if (v7b794.MultipleSelectionSettings.Enabled) { if (v7b794.LayoutSettings.TextBoxMode =="ReadOnly") return false;  v7b794.LastQueryMultiple =wc9c821.me9748(v7b794); vd972 =wc9c821.ma0162(v7b794,v7b794.LastQueryMultiple); if (!vd972) { v7b794.HideDropDown(); } else { for (var v74453=0; v74453<v1b052.rows.length; v74453++) { if (v1b052.rows[v74453].style.display !="none") { if (wc9c821.m23159(vc4b64)) wc9c821.m6db20(v7b794,v1b052.rows[vc4b64.LastSelectedIndex]); vc4b64.LastSelectedIndex =vc4b64.SelectedIndex =v74453; wc9c821.m35b43(v7b794,v1b052.rows[v74453]); v11577 =true; break; } } } } else { for (var v74453=0; v74453<v1b052.rows.length; v74453++) { var vfd575 =v1b052.rows[v74453].cells[ve8461]; var vcaa81 =IS.GetInnerText(vfd575); if (!vc4b64.SensitiveSearch) { if (vcaa81.length>vc4b64.TextObj.value.length) vcaa81 =vcaa81.substring(0,vc4b64.TextObj.value.length); } if (vcaa81.toLowerCase()==vc4b64.TextObj.value.toLowerCase()&&vcaa81 !="") { if (wc9c821.m23159(vc4b64)) { wc9c821.m6db20(v7b794,v1b052.rows[vc4b64.LastSelectedIndex]); } vc4b64.LastSelectedIndex =vc4b64.SelectedIndex =v74453; wcGlobal.tempObj =v1b052.rows[v74453]; wc9c821.m35b43(v7b794,v1b052.rows[v74453]); setTimeout(function() { wc9c821.m4118(vc4b64,wcGlobal.tempObj); },200); v11577 =true; break; } } } if (!v11577) { if (wc9c821.m23159(vc4b64)) { wc9c821.m6db20(v7b794,v1b052.rows[vc4b64.LastSelectedIndex]); vc4b64.LastSelectedIndex =vc4b64.SelectedIndex =-1; } } return vd972; }, mda153:function(vf6749,v19098) { var v70b30 =v19098.getElementById(vf6749.Id +"_tmore"); var vd6289 =vf6749; var vab217 =vd6289.GetTData(); var v1b611 =vab217.parentElement; Listener.Unload(v70b30); Listener.Unload(vab217); Listener.Unload(v1b611); Listener.Unload(v19098); v19098.detachEvent("onkeydown",function() { wcfe158.mb4098(vf6749); }); }, mf3964:function(va7224,v3f287) { var v62185 =v3f287.getElementById(va7224.Id +"_tmore"); var vc2768 =va7224; var v30e2 =vc2768.GetTData(); var vc5515 =v30e2.parentElement; if (IS.moz ||IS.chrome) Listener.Add(v62185,"onmousedown",wcfe158.m6dc5,va7224); Listener.Add(v62185,"onclick",wcfe158.m16e17,va7224); Listener.Add(v62185,"onmouseover",wcfe158.mde958,va7224); Listener.Add(v62185,"onmouseout",wcfe158.m33770,va7224); Listener.Add(v30e2,"onmouseover",wcfe158.m1b02,va7224); Listener.Add(v30e2,"onmouseout",wcfe158.mbc139,va7224); Listener.Add(v30e2,"onmousedown",wcfe158.m80d85,va7224); Listener.Add(v30e2,"onmouseup",wcfe158.m28879,va7224); Listener.Add(v30e2,"ondblclick",wcfe158.md9723,va7224); Listener.Add(v30e2,"onmousemove",wcfe158.mf1d41,va7224); Listener.Add(v30e2,"onselectstart",wcfe158.mc6079,va7224); if (vc2768.LayoutSettings.AllowNavigationOnMouseWheel) Listener.Add(vc5515,"onmousewheel",wcfe158.m6fc89,va7224); if (vc2768.LayoutSettings.ComboMode =="MultipleColumns") Listener.Add(vc5515,"onscroll",wcfe158.m8bf58,va7224);  if (IS.chrome) { Listener.Add(vc5515,"onmousedown",wcfe158.m39b93,va7224); Listener.Add(vc5515,"onmouseup",wcfe158.ma9671,va7224); } v3f287.attachEvent("onkeydown",function() { wcfe158.mb4098(va7224); }); },  m6d03:function(va7d65,v27568,vb1f52) { var vf2f60 =va7d65; var v80557 =vf2f60.ResultBox; var v4d654 =vf2f60.FrameObj; var v3fa80 =vf2f60.GetTData(); var vf2f87 =v3fa80.parentElement; var v99a98 =v80557.document.getElementById(va7d65.Id +"_tmore"); var v80e27 =0; var v92e45 =false; if (vf2f60.LayoutSettings.EntryMode !="AutoComplete" &&!vf2f60.MultipleSelectionSettings.Enabled) wc9c821.mc8251(vf2f60.TextObj); var ve8a66 =ISPosLib.getScreenLeft(v4d654);  if (vf2f60.LayoutSettings.ResultBoxWindowType =="Normal" ||!IS.ie) ve8a66 +=document.body.scrollLeft; if (vf2f60.LayoutSettings.ComboMode =="SingleColumn") { if (vf2f60.ResultBoxWidth) v80e27 =vf2f60.ResultBoxWidth; else v80e27 =v4d654.offsetWidth; } else { var v37289 =vf2f60.Columns; var v45b50 =0; for (var v1b427=0; v1b427<v37289.length; v1b427++) { if (!v37289[v1b427].Hidden) v45b50 +=parseInt(v37289[v1b427].Width); } if (IS.moz &&!IsGecko20()&&!IsGecko30()) { var vf6165 =v80557.document.getElementById(va7d65.Id +"_theader"); if (vf6165) { if (vf6165.offsetWidth>v45b50) v45b50 =vf6165.offsetWidth; } } else v45b50 +=2; var v32972 =window.screen.availWidth -ve8a66; if (IS.moz ||IS.safari ||IS.opera) v32972 =document.body.offsetWidth -ve8a66 +window.screenLeft -2; if (v45b50>v32972) { v80e27 =v32972; vf2f87.style.overflowX ="scroll"; } else { v80e27 =v45b50; vf2f87.style.overflowX ="hidden"; } } var vac311 =-1; var vc1d88 =0; var ve9141 =ISPosLib.getScrollTop(document); if (IS.ie &&vf2f60.MultipleSelectionSettings.Enabled &&vf2f60.LayoutSettings.TextBoxMode =="Editable" &&vf2f60.MultipleSelectionSettings.AutoPositionResultBox) { if (vf2f60.ResultBox.isOpen) v92e45 =true; var v6f958 =vf2f60.LastQueryMultiple; if (v6f958) { var v96945 =document.selection.createRange(); var v5a64 =v96945.getBoundingClientRect(); vac311 =v5a64.left; ve8a66 =window.screenLeft +v5a64.left; if (vf2f60.LayoutSettings.ResultBoxWindowType =="Normal") { ve8a66 =v5a64.left; if (IS.ie &&IS.IsXHTMLDocType()) { if (window.frameElement !=null &&window.frameElement.tagName =="IFRAME") ve8a66 -=ISPosLib.getLeft(window.frameElement); } } vf2f60.LastShownPosition =ve8a66; } } if (!v92e45) { var v15496 =vf2f60.LayoutSettings.AdjustResultBoxTop; var v22261 =vf2f60.LayoutSettings.AdjustResultBoxLeft; var v0ef22 =ISPosLib.getScreenTop(v4d654)+v4d654.offsetHeight +v15496; var vc6d19 =vf2f60.LayoutSettings.ResultBoxHeight; var v4897 ="bottom"; if (IS.opera ||IS.safari) { v0ef22 =ISPosLib.getClientTop(v4d654)+v4d654.offsetHeight +v15496; ve8a66 =ISPosLib.getClientLeft(v4d654); } else if (IS.ie &&vf2f60.LayoutSettings.ResultBoxWindowType =="Popup") { if (IS.GetIEVersion()==6 &&window !=window.top) v0ef22 =ISPosLib.getScreenTop(window.frameElement)+ISPosLib.getClientTop(v4d654)+v4d654.offsetHeight; } if (v0ef22 +parseFloat(vf2f60.LayoutSettings.ResultBoxHeight)>window.screen.height) { v0ef22 =ISPosLib.getScreenTop(v4d654)-vf2f60.LayoutSettings.ResultBoxHeight; v4897 ="top"; } if (IS.IsXHTMLDocType()) { if (!IS.ie &&!IS.moz) v0ef22 +=ve9141; else if (IS.moz) v0ef22 -=ve9141; }  if (IS.ie &&vf2f60.LayoutSettings.ResultBoxWindowType =="Normal") { var ve2a4 =v80557.document.getOwnerDocument(); v0ef22 =ISPosLib.getTop(v4d654)+v4d654.offsetHeight +v15496; if (vac311 ==-1) ve8a66 =ISPosLib.getLeft(v4d654);  if (v0ef22 +vc6d19>document.body.offsetHeight +ve9141) { var v12542 =ISPosLib.getTop(v4d654)-vc6d19 -ve9141; var v3af71 =vc6d19 -((v0ef22 +vc6d19)-(document.body.offsetHeight +ve9141)); if (v12542<0) { if (vc6d19 +v12542>v3af71) { vc6d19 =vc6d19 +v12542; v12542 =0 +ve9141; v0ef22 =v12542; } else { vc6d19 =v3af71 -3; } } else { v0ef22 =v12542 +ve9141; } } if (ve8a66 +v80e27>document.body.scrollWidth) { ve8a66 -=(ve8a66 +v80e27)-document.body.scrollWidth +10; } if (v80e27<0) v80e27 =v45b50; ve2a4.style.overflow ="hidden"; if (vf2f60.LayoutSettings.ResultBoxShadow) { ve2a4.style.filter ="progid:DXImageTransform.Microsoft.Shadow(color=Gray,direction=135, strength=2)"; } } else if (IS.ie &&vf2f60.LayoutSettings.ResultBoxWindowType =="Popup" &&IS.GetIEVersion()>=6) { if (v4897 =="bottom") { vc1d88 =(v0ef22 +vc6d19)-window.screen.availHeight; if (vc1d88>0) vc6d19 =vc6d19 -vc1d88; } else { if (window ==window.top) { vc1d88 =window.screenTop -v0ef22; if (vc1d88>0) vc6d19 =vc6d19 -vc1d88; } } if (vc1d88<0) vc1d88 =0; } if (ISEvent.Raise(va7d65.LayoutSettings.ClientSideEvents.OnShowDropDown,va7d65.Id,ve8a66 +v22261,v0ef22,v80e27,vc6d19)) v80557.show(ve8a66 +v22261,v0ef22,v80e27,vc6d19);  if (vb1f52 &&va7d65.LayoutSettings.EnableSlidingAnimation  &&(va7d65.LayoutSettings.ResultBoxWindowType =="Normal" ||!IS.ie)) { if (IS.moz) v80557._e.style.visibility ="hidden";  v80557._e.OriginalTop =null; v80557._e.OriginalHeight =null;  var v4a954 =new _WC.AnimatedObj(); v4a954.Element =v80557._e; v4a954.Type ="MenuSlideDown"; v4a954.Play(); } } vf2f60.ResultBoxShown =true; if (!vf2f60.IsDataBound) { for (var v1b427=0; v1b427<v3fa80.rows.length; v1b427++) { v3fa80.rows[v1b427].className =v3fa80.rows[v1b427].className; } } if (!v27568) { if (vf2f60.TotalRetrievedRows<vf2f60.TotalRows) v99a98.style.display =""; else v99a98.style.display ="none"; if (vf2f60.SelectedIndex>-1 &&vf2f60.LayoutSettings.AlwaysShowAllRowsOnDropdown) setTimeout(function() { wc9c821.m4118(vf2f60,vf2f60.GetSelectedRow()); },50);  var vec324 =wc9c821.mffa77(va7d65)-vc1d88;  if (vec324 <0) vec324 =5;  vf2f87.style.height =vec324 +"px"; } }, m8fb18:function(v7d192) { if (v7d192.LinkSettings.Enabled) { var v1d921 =v7d192.LinkSettings.ParentWebCombo; if (v1d921 !=null) { for (var v3c247=0; v3c247<v1d921.length; v3c247++) { var v1bd37 =v1d921[v3c247]; if (v1bd37.IsDataBound &&(v1bd37.Value ==null ||v1bd37.Value =="")) return true; else if (!v1bd37.IsDataBound) { if (v1bd37.Value ==null ||wc9c821.m7120(v1bd37.Value)=="" ||wc9c821.m7120(v1bd37.Text)=="") return true; } } } return false; } return true; }, m9f788:function(v5636,vb1593) { if (v5636.CustomInterface !=null) return false;  if (v5636.IsDirty) { if (v5636.LinkSettings.Enabled) { var v46076 =wc9c821.m8fb18(v5636); if (v46076) { v5636.ClearAdditionalFilters(); if (v5636.LinkSettings.ParentEmptyAction =="PromptMessage") { var v87726 =v5636.LayoutSettings.TextSettings.ParentEmptyPromptText; v87726 =v87726.replace("{0}",v5636.LinkSettings.ParentWebComboID); alert(v87726); } else { wc9c821.m6d03(v5636); } return false; } else { if (!v5636.FlyPostBackSettings.PostInputControls) { if (vb1593.selectSingleNode("//parentValue")) vb1593.removeChild(vb1593.selectSingleNode("//parentValue")); if (vb1593.selectSingleNode("//parentText")) vb1593.removeChild(vb1593.selectSingleNode("//parentText")); var v5ac23 =""; var v30578 =""; var v05682 =v5636.LinkSettings.ParentWebCombo;  for (var v58a19=0; v58a19<v05682.length; v58a19++) { v5ac23 +=v05682[v58a19].Value +"||"; v30578 +=v05682[v58a19].Text +"||"; }  ISXml.CreateCDATA(vb1593.ownerDocument,vb1593,"parentValue",v5ac23); ISXml.CreateCDATA(vb1593.ownerDocument,vb1593,"parentText",v30578); } } } if (!v5636.IsMoreRequest) wc9c821.maee36(v5636); else v5636.NeedClearList =false; var v7b014 =v5636.MinCharsToRequest; var vebb98 =v5636.DropDownRows; var v4fe0 =""; if (v5636.TextObj.value.length<v7b014) { if (!v5636.ForceDropDown) return; } if (v5636.MultipleSelectionSettings.Enabled) { v5636.LastQueryMultiple =wc9c821.me9748(v5636); v4fe0 =v5636.LastQueryMultiple.Text; if (v5636.LastEventType =="Key" &&v5636.LastCtrlKey &&v5636.LastKeyCode ==ISKeyboardKey.SPACE &&v5636.MultipleSelectionSettings.AllowBrowseAll ||v5636.IsMoreRequest) { } else { if (v4fe0 =="" ||wc9c821.m7120(v4fe0)=="") { if (v5636.ResultBoxShown) v5636.HideDropDown(); if (!(v5636.MultipleSelectionSettings.AllowBrowseAll &&vb1593.getAttribute("ddClicked")=="true")) return false; } } } else v4fe0 =v5636.TextObj.value; vb1593.setAttribute("action","LoadData"); vb1593.setAttribute("startRow",v5636.TotalRetrievedRows); if (v5636.TotalRetrievedRows>0) vebb98 =vebb98 *2;  vb1593.setAttribute("count",vebb98); var v34246 =(v5636.IsMoreRequest)? (v5636.MultipleSelectionSettings.Enabled ? v4fe0 : v5636.LastQuery): v4fe0; if (vb1593.selectSingleNode("//query")) vb1593.removeChild(vb1593.selectSingleNode("//query")); v34246 =v34246.replace(/[+]/g,"%2b");   ISXml.CreateCDATA(vb1593.ownerDocument,vb1593,"query",v34246); return true; } else { if (vb1593.getAttribute("ddClicked")=="true" ||v5636.LayoutSettings.EntryMode !="InstantLookup") wc9c821.m6d03(v5636,false,true); } return false; }, m8f074:function(v91698,v42142) { if (v91698.Values ==null) return false; if (v42142 ==null) return false; for (var v51598=0; v51598<v91698.Values.length; v51598++) { if (v91698.Values[v51598].Value ==v42142.Value &&v91698.Values[v51598].Position ==v42142.Position) return true; } return false; }, m1505:function(ve0337,v77e61) { var v83617 =document.selection.createRange(); var v1eb52 =v83617.duplicate(); if (IS.moz ||IS.safari ||IS.opera) { if (v77e61) { var vd2130 =ve0337.selectionEnd; v1eb52.moveEnd("character",ve0337.value.length); ve0337.selectionEnd =vd2130; return v1eb52.text; } else return ve0337.selectionStart; } v1eb52.moveEnd("character",ve0337.value.length); var v72d53 =ve0337.value.lastIndexOf(v1eb52.text); if (v77e61) { return v83617.text; } else { if (v1eb52.text =="") return ve0337.value.length; else return v72d53; } }, GetCurrentSelectionText: function(v9c837) { return wc9c821.m1505(v9c837,true); }, m7120:function(v10a37) { while (v10a37.substring(0,1)==' ') { v10a37 =v10a37.substring(1,v10a37.length); } while (v10a37.substring(v10a37.length -1,v10a37.length)==' ') { v10a37 =v10a37.substring(0,v10a37.length -1); } return v10a37; }, mb0e20:function(v4a428,v6e710) { if (v4a428.Values ==null) return; for (var vc6528=0; vc6528<v4a428.Values.length; vc6528++) { if (v6e710>=v4a428.Values[vc6528].StartPos &&v6e710<=v4a428.Values[vc6528].EndPos) return v4a428.Values[vc6528]; } return null; }, m71383:function(v76e86,v86738,v70e2) { var v33d47 =wc9c821.m1505(v76e86.TextObj); if (v76e86.TextObj.value =="") return; if (v86738 =="Previous") { var vac119 =v76e86.TextObj.value.substr(v33d47 -1,1); if (vac119 ==v76e86.MultipleSelectionSettings.SeparatorChar) { wc9c821.meb263(v76e86); var vbf168 =wc9c821.mb0e20(v76e86,v33d47 -1); if (vbf168) { wc9c821.md0944(v76e86.TextObj,vbf168,v70e2); v76e86.Values.splice(vbf168.Position,1); return true; } } } else if (v86738 =="Next") { if (v33d47 ==v76e86.TextObj.value.length) return false; var vac119 =v76e86.TextObj.value.substr(v33d47 +1,1); wc9c821.meb263(v76e86); var v26013 =wc9c821.m3b660(v76e86); var ve3181 =v26013[0]; var v5b427 =v26013[1];  if (v76e86.Values ==null ||v5b427 >v76e86.Values.length) return false;  var vbf168 =v76e86.Values[v5b427]; if (vbf168) { if (v33d47 ==vbf168.StartPos) { var v83356 =v76e86.Values[v5b427]; if (v83356) { wc9c821.md0944(v76e86.TextObj,v83356,true); v76e86.Values.splice(v83356.Position,1); if (v76e86.Values.length ==0) { v76e86.TextObj.value =""; v76e86.Values =null; } return true; } } } return false; } return false; }, md0944:function(v2cd78,v2d787,vc905) { var va7c42 =v2cd78.createTextRange(); var v45718 =0 -(v2cd78.value.length -v2d787.EndPos -1); if (vc905) v45718 +=1; if (IS.ie) { va7c42.moveStart("character",v2d787.StartPos); va7c42.moveEnd("character",v45718); } else { v2cd78.selectionStart =v2d787.StartPos; v2cd78.selectionEnd =v2d787.EndPos +1 +(vc905 ? 1 : 0); } va7c42.text =""; if (IS.moz) v2cd78.selectionStart =v2cd78.selectionEnd =v2d787.StartPos; }, m1ec81:function(vfd78,v39d55) { var vdf917 =wc9c821.m1505(vfd78.TextObj); if (vfd78.TextObj.value =="") return; if (vfd78.Values ==null) return; vfd78.ClearSelectedValueItem(); if (v39d55 =="Previous") { var vab96 =vfd78.TextObj.value.substr(vdf917 -1,1); if (vab96 ==vfd78.MultipleSelectionSettings.SeparatorChar) { wc9c821.meb263(vfd78); var vee739 =wc9c821.mb0e20(vfd78,vdf917 -1); if (vee739) wc9c821.m74077(vfd78.TextObj,vee739.EndPos -vee739.Text.length +(IS.moz ? 1 : 0)); } } else if (v39d55 =="Next") { if (vdf917 ==vfd78.TextObj.value.length) return; wc9c821.meb263(vfd78); var vfbd12 =wc9c821.m3b660(vfd78); var v1e656 =vfbd12[0]; var v34423 =vfbd12[1]; var vee739 =vfd78.Values[v34423]; if (vee739) { if (vdf917 ==vee739.StartPos) { var vc9937 =vfd78.Values[v34423 +1]; if (vc9937) { wc9c821.m74077(vfd78.TextObj,vc9937.StartPos -(IS.opera ? 1 : 0),true); return true; } else if (v34423 ==vfd78.Values.length -1) { wc9c821.mc8251(vfd78.TextObj); return true; } } } return false; } }, m3b660:function(v82b19) { var vd4628 =v82b19.TextObj; var vfde64 =wc9c821.m1505(vd4628); var v4129 =0; var vd1618 =-1; var vb750 =0; while (true) { var v59737 =vd4628.value.indexOf(v82b19.MultipleSelectionSettings.SeparatorChar,v4129); if (v59737 ==-1) break; else { vd1618 =v59737; v4129 =v59737 +1; if (v59737>vfde64) break; vb750++; } } return [ vd1618, vb750 ]; }, me9748:function(v53549) { var vefb2 =v53549.TextObj; var vd9f53 =wc9c821.m1505(vefb2); var vbf661 =new WebComboValueItem(); var v37a83 =-1; var v3f122 =0; var v70554 =wc9c821.m3b660(v53549); v37a83 =v70554[0]; v3f122 =v70554[1]; if (vd9f53 ==vefb2.value.length ||(vd9f53>=v37a83 &&vd9f53<=vefb2.value.length)) { vbf661.Text =wc9c821.m7120(vefb2.value.substring(v37a83 +1)); vbf661.StartPos =v37a83 +1; vbf661.EndPos =vbf661.StartPos +vbf661.Text.length; vbf661.Value =null; vbf661.Position =v3f122; return vbf661; } else { var vfe412 =v53549.Values[v3f122]; if (vfe412) { var v5e766 =vefb2.value; var vd9f53 =v5e766.indexOf(vfe412.Text); var v95270 =-1; if (vfe412.Position>0) v95270 =wc9c821.me431(v5e766,v53549.MultipleSelectionSettings.SeparatorChar,v3f122); vbf661.Text =wc9c821.m7120(v5e766.substring(v95270 +1,vd9f53)); vbf661.StartPos =v95270 +1; vbf661.EndPos =vbf661.StartPos +vbf661.Text.length; vbf661.Value =null; vbf661.Position =v3f122; vbf661.IsInsert =true; return vbf661; } } }, me431:function(v5d05,v05b60,v26a36) { var v51f33 =-1; for (var v96a21=0; v96a21<v26a36; v96a21++) { v51f33 =v5d05.indexOf(v05b60,v51f33 +1); } return v51f33; }, m3fd82:function(v74844) { var v66424 =v74844.LastQueryMultiple; if (v66424 !=null) { var vb4f69 =0; var vc4c2 =v74844.TextObj.createTextRange(); if (v66424.IsInsert) vb4f69 =0 -(v74844.TextObj.value.length -(v66424.StartPos +v66424.Text.length)-(v66424.Position>0 ? 1 : 0)); vc4c2.moveStart("character",v66424.StartPos); vc4c2.moveEnd("character",vb4f69); vc4c2.text =(v66424.Position ==0)? "" : " "; wc9c821.mc8251(v74844.TextObj); } v74844.LastQueryMultiple =null; }, meb263:function(vdaf35) { if (vdaf35.Values ==null) return; var v21d79 =vdaf35.TextObj.value; var vf9848 =vdaf35.MultipleSelectionSettings.SeparatorChar; for (var v2aa88=0; v2aa88<vdaf35.Values.length; v2aa88++) { vdaf35.Values[v2aa88].Position =v2aa88; vdaf35.Values[v2aa88].StartPos =wc9c821.me431(v21d79,vf9848,v2aa88)+1 +(v2aa88>0 ? 1 : 0);  var v77a99 =wc9c821.me431(v21d79,vf9848,v2aa88 +1);  if (v77a99 !=-1) vdaf35.Values[v2aa88].EndPos =v77a99; else vdaf35.Values[v2aa88].EndPos =v21d79.length; } }, md2c83:function(vac874) { if (vac874.Values ==null) return; var vcae18 =vac874.TextObj.value; for (var v9b268=0; v9b268<vac874.Values.length; v9b268++) { var v93021 =vcae18.substring(vac874.Values[v9b268].StartPos,vac874.Values[v9b268].EndPos); if (v93021 !=vac874.Values[v9b268].Text) return true; } var v9f222 =0;  if (vac874.Values.length >0) vac874.Values[vac874.Values.length -1].EndPos +2; else v9f222 =vcae18.length;  if (vcae18.length !=v9f222) return true; return false; }, ma3f31:function(v38110) { v38110.TextObj.value =v38110.GetMultipleValuesText(); }, md3587:function(v51493) { var v50310 =document.selection.createRange(); if (v50310) { if (v50310.text ==v51493.value) return true; } },  m6b675:function(v3cb85,v48a5) { var v34793 =v3cb85.GetTData(); var v35056 =wc9c821.m43180(v3cb85);  for (var v23b73=0; v23b73<v34793.rows.length; v23b73++) { var ve7a87 =v34793.rows[v23b73]; if (ve7a87.dataValue ==v48a5) { var vf4952 =ve7a87.cells[v35056].innerText;  if (vf4952 =="" &&IS.safari) { for (var v7b325=0; v7b325<ve7a87.cells[v35056].childNodes.length; v7b325++) { if (ve7a87.cells[v35056].childNodes[v7b325].nodeType ==3) { vf4952 =ve7a87.cells[v35056].childNodes[v7b325].text; break; } } }  return vf4952; } } }, mf7146:function(v58315,v6cc73) { var v31585 =v58315.LastQueryMultiple; if (v31585 !=null) { var v34e5 =0; var vdc277 =v58315.TextObj.createTextRange(); var v20e32 =v58315.Text; if (v31585.IsInsert) v34e5 =0 -(v58315.TextObj.value.length -(v31585.StartPos +v31585.Text.length)-(v31585.Position>0 ? 1 : 0)); if (v6cc73) v20e32 =v31585.Text; if (!IS.ie) v58315.TextObj.selectionStart =0; vdc277.moveStart("character",v31585.StartPos); if (IS.ie) vdc277.moveEnd("character",v34e5); else vdc277.selectionEnd =v31585.StartPos +v31585.Text.length; vdc277.text =(v31585.Position>0 ? " " : "")+v20e32 +v58315.MultipleSelectionSettings.SeparatorChar +" "; wc9c821.mc8251(v58315.TextObj); if (!v6cc73) { v31585.Value =v58315.Value; v31585.Text =v58315.Text; } else { var v2ce97 =new Array(); v2ce97[0] =v31585; var v06130 =ISEvent.Raise(v58315.LayoutSettings.ClientSideEvents.OnValueItemNotInList,v58315.Id,v2ce97); if (!v06130) return; } if (v58315.Values ==null) { v58315.Values =new Array(); v58315.Values[v58315.Values.length] =v31585; } else { var vdc637 =v31585.Position; for (var v1a840=vdc637; v1a840<v58315.Values.length; v1a840++) v58315.Values[v1a840].Position =v1a840 +1; v58315.Values.splice(v31585.Position,0,v31585); } } }, AddSelectedItemToWebCombo: function(v64c34,vec282) { }, me2e68:function(vc4820,vf5a29) { var vd3b70 =vc4820; wc9c821.m75690(vc4820);  var v8ee52 =vd3b70.GetTData(); var va6a0; if (vd3b70.InsertAtTop) va6a0 =v8ee52.insertRow(0); else va6a0 =v8ee52.insertRow(-1); var v4fb3 =vd3b70.NewRowObj; va6a0.className =vd3b70.LayoutSettings.RowStyle.Normal; try { va6a0.dataValue =ISXml.GetNodeText(vd3b70.XmlResp,"//newValue"); } catch (e) { va6a0.dataValue =v4fb3.Value; } if (vd3b70.MultipleSelectionSettings.Enabled &&vd3b70.LayoutSettings.TextBoxMode =="ReadOnly" &&!vd3b70.IsDataBound) { var v9e462 =va6a0.insertCell(-1); v9e462.style.width ="25px"; } if (vc4820.LayoutSettings.ComboMode =="SingleColumn") { var v19861 =va6a0.insertCell(-1); var v00344 =vc4820.Columns[0].Width;  if (v00344 ==null) v00344 =vc4820.LayoutSettings.ColumnWidthDefault;  v19861.className =vc4820.LayoutSettings.ColumnStyle; v19861.style.width =v00344 +"px";  if (vc4820.LayoutSettings.AllowTextWrapping) v19861.innerText =v4fb3.Text; else v19861.innerHTML ="<nobr>" +v4fb3.Text +"</nobr>"; } else { var vd9b69 =vd3b70.Columns;  for (var v91444=0; v91444<vd9b69.length; v91444++) { var vf4b63 =vd9b69[v91444];  if (vf4b63.Hidden &&!vf4b63.RenderOnHidden) continue;  var v00344 =vf4b63.Width; var v19861 =va6a0.insertCell(-1);  if (v00344 ==null) v00344 =vd3b70.LayoutSettings.ColumnWidthDefault;  v19861.className =vc4820.LayoutSettings.ColumnStyle; v19861.style.width =v00344; if (v4fb3.Cells !=null &&v4fb3.Cells.length>v91444) v19861.innerText =v4fb3.Cells[v91444].Text; else { if (v91444 ==0) v19861.innerText =v4fb3.Text; else v19861.innerHTML ="&nbsp;"; } } }  if (vf5a29) return;  vc4820.LastSelectedIndex =vc4820.SelectedIndex =va6a0.rowIndex; wc9c821.m35b43(vc4820,va6a0); wc9c821.m0c873(vc4820); }, m21290:function(v77440,vdd638) { var v3fa56 =v77440.NewRowObj; vdd638.setAttribute("action","AddItem"); ISXml.CreateCDATA(vdd638.ownerDocument,vdd638,"RowData",v3fa56.ToXml()); return true; }, m75236:function(vdf559,vcb348) { vcb348.setAttribute("action","Custom"); var v0ce76 =true; try { v0ce76 =wcPrepareCustomAction(vdf559,vcb348); } catch (e) { } return v0ce76; }, m66976:function(v7db59) { }, m98c79:function(vacc59,v08c48) { vacc59.IsInProgress =true; if (vacc59.LastAction.indexOf("Load")>-1) { wc9c821.m56569(vacc59,vacc59.LayoutSettings.TextSettings.LoadingText); if (vacc59.NeedClearList) { wc9c821.m25522(vacc59); vacc59.NeedClearList =false; } if (v08c48 ||vacc59.LayoutSettings.EntryMode !="InstantLookup") { if (vacc59.IsTextObjFocused) wc9c821.m6d03(vacc59,true,v08c48); } } }, mcb878:function(v92051,v16997,vefe41) { var v56e95 =v92051; var vbac18 =v56e95.XmlHttp; if (v92051.IsPreviewMode) { alert("Not supported in Preview mode!"); return; } v92051.XmlReq =ISXmlHttpEngine.CreateRequestXml(v92051.GetType()); wc9c821.m66976(v92051); var v4ee56 =ISXml.GetNode(v92051.XmlReq,"//request"); v92051.RequestId =0; if (v92051.IsInProgress) { if (IS.opera &&vbac18.LastAction =="AddItem" &&v16997 =="LoadData") return;  if (v16997 =="LoadData") vbac18.Abort(); setTimeout(function() { wc9c821.mcb878(v92051,v16997,vefe41); },300); return; } v4ee56.setAttribute("id",v92051.Id); v4ee56.setAttribute("ddClicked",vefe41 ? "true" : "false"); if (!ISEvent.Raise(v92051.LayoutSettings.ClientSideEvents.OnBeforeRequest,v92051.Id,v16997)) return; if (!v92051.FlyPostBackSettings.PostControlState) { v4ee56.setAttribute("dataTextField",v92051.DataTextField); v4ee56.setAttribute("dataValueField",v92051.DataValueField); } switch (v16997) { case "LoadData": if (!wc9c821.m9f788(v92051,v4ee56)) return false; break; case "AddItem": if (!wc9c821.m21290(v92051,v4ee56)) return false; break; case "Custom": if (!wc9c821.m75236(v92051,v4ee56)) return false; break; } v92051.LastAction =v16997; var v87898 =v92051.XmlHttp.Asynchronous; vbac18.Send(null,v16997); if (v87898) wc9c821.m98c79(v92051,vefe41); }, m4d973:function(v6bd25,v15485) { var v7916 =v6bd25.XmlResp; var v38676 =ISXml.GetNodeText(v7916,"//status"); if (!ISEvent.Raise(v6bd25.LayoutSettings.ClientSideEvents.OnResponse,v6bd25.Id,v38676)) return; if (v38676 =="Error") { if (v6bd25.ShowErrorMessages) alert(ISXml.GetNodeText(v7916,"//error")); else wc9c821.m56569(v6bd25,v6bd25.LayoutSettings.TextSettings.NoResultsText); v6bd25.IsInProgress =false; return; } var veed27 =ISXml.GetNodeText(v7916,"//action"); if (!ISEvent.Raise(v6bd25.LayoutSettings.ClientSideEvents.OnActionDispatched,v6bd25.Id,veed27)) return; switch (veed27) { case "LoadData": case "LoadContinuos": wc9c821.m97d2(v6bd25,v7916); break; case "AddItem": wc9c821.mad145(v6bd25,v7916); break; } v6bd25.IsInProgress =false; v6bd25.SkipLatency =false; if (!ISEvent.Raise(v6bd25.LayoutSettings.ClientSideEvents.OnAfterResponseProcess,v6bd25.Id,veed27,v7916)) return; }, m99276:function(v1db17,v78934) { v1db17.LastError =v78934; if (v78934 =="") { v1db17.IsInProgress =false; return; } if (!ISEvent.Raise(v1db17.LayoutSettings.ClientSideEvents.OnUnhandledError,v1db17.Id,v1db17.LastAction,v1db17.LastError)) return; var v70745 =v78934; if (v70745.indexOf("Server Error")>=0 ||v70745.indexOf("Stack Trace")>=0) { wc9c821.m3f477(v1db17,v78934,v1db17.LayoutSettings.TextSettings.UnhandledErrorText); } else { if (v70745 !="") { var v2dc95 =IS.GetFormAction(v70745); window.location =v2dc95; return; } else { if (v1db17.ShowErrorMessages) { if (v1db17.IsDataBound) wc9c821.m56569(v1db17,v1db17.LayoutSettings.TextSettings.NoResultsText); } else wc9c821.m56569(v1db17,v1db17.LayoutSettings.TextSettings.NoResultsText); } } v1db17.IsInProgress =false; }, m97d2:function(v91675,ve3e63) { var v2c30 =ve3e63.selectSingleNode("//rows"); var v80474 =v91675.IsMoreRequest; v91675.Set("TotalRows",parseFloat(ISXml.GetNodeText(ve3e63,"//totalRows")),true); v91675.Set("TotalRetrievedRows",parseFloat(ISXml.GetNodeText(ve3e63,"//retrievedRows"))+v91675.TotalRetrievedRows,true); if (!v91675.IsMoreRequest) v91675.LastQuery =v91675.TextObj.value; v91675.IsMoreRequest =false; wc9c821.m3471(v91675); if (v91675.LayoutSettings.EntryMode =="InstantLookup") { var v0e945 =v91675.TotalRetrievedRows; var v28131 =false; if (v0e945 ==1) { var v38e92 =v91675.GetTData(); var v17751 =IS.GetInnerText(v38e92.rows[0].cells[wc9c821.m43180(v91675)]); if (ISEvent.Raise(v91675.LayoutSettings.ClientSideEvents.OnMatchInstantLookup,v91675.Id)) { if (v17751.toLowerCase()==v91675.TextObj.value.toLowerCase()) { v91675.SelectedIndex =0; wc9c821.m0c873(v91675); v28131 =true; } } else v28131 =v91675.FoundPerfectMatch; } if (!v28131) wc9c821.m6d03(v91675); } else { if (v91675.IsTextObjFocused ||v91675.LastEventType =="Mouse") { if (v91675.MultipleSelectionSettings.Enabled &&!v80474) { var v38e92 =v91675.GetTData(); if (v38e92.rows.length>0) { v91675.LastSelectedIndex =v91675.SelectedIndex =0; wc9c821.m35b43(v91675,v38e92.rows[0]); } } wc9c821.m6d03(v91675); } else { var v0e945 =v91675.TotalRetrievedRows; var v8d951 =false; if (v0e945 ==1) { var v38e92 =v91675.GetTData(); var v17751 =IS.GetInnerText(v38e92.rows[0].cells[wc9c821.m43180(v91675)]); if (v17751.toLowerCase()==v91675.TextObj.value.toLowerCase()) { v91675.SelectedIndex =0; wc9c821.m0c873(v91675); wc9c821.m9e435(v91675,true); v91675.UpdateState(); v8d951 =true; } } if (!v8d951) { if (v91675.LayoutSettings.NoResultFoundAction =="RevertSelection") wc9c821.m04415(v91675); else wc9c821.m6d03(v91675); } } } v91675.IsDirty =false; }, mad145:function(v64f31,v09a42) { var v8dc47 =ISXml.GetNodeText(v09a42,"//returnValue"); if (v8dc47 =="True") { if (v64f31.ResultBox) wc9c821.me2e68(v64f31); } }, m3471:function(v9f397) { var v18431 =v9f397.XmlResp; var v05242 =v9f397.GetTData(); if (v9f397.TotalRows>0) { var v7de83 =v9f397.LayoutSettings.TextSettings.RetrievedTextFormat; v7de83 =v7de83.replace("{retrieved}",v9f397.TotalRetrievedRows); v7de83 =v7de83.replace("{totalrows}",v9f397.TotalRows); wc9c821.m56569(v9f397,v7de83); } else { wc9c821.m56569(v9f397,v9f397.LayoutSettings.TextSettings.NoResultsText); } if (v9f397.TotalRetrievedRows>0) { var v75699 =ISXml.GetNodeText(v18431,"//htmlString"); wc9c821.m82b82(v9f397,"<table>" +v75699 +"</table>"); var va4836 =wc9c821.me5f58(v9f397); var v7a074 =0; var v2d625 =false; var vaeb63 =wc9c821.m43180(v9f397);  v05242.appendChild(va4836.tBodies[0]); wc9c821.m6562(v9f397); for (var v89597=0; v89597<v05242.rows.length; v89597++) { var v47787 =IS.GetInnerText(v05242.rows[v89597].cells[vaeb63]).toLowerCase(); if (!v2d625 &&v47787 ==v9f397.LastQuery.toLowerCase()&&v47787.length>0) { v9f397.LastSelectedIndex =v9f397.SelectedIndex =v89597; wc9c821.m35b43(v9f397,v05242.rows[v89597]); v2d625 =true; } if (v9f397.LayoutSettings.ItemHeight !=20) v05242.rows[v89597].style.height =v9f397.LayoutSettings.ItemHeight; } if (v2d625) { v9f397.IsDirty =false; } else if (!v2d625 &&v9f397.LayoutSettings.EntryMode =="AutoComplete") { var v0f654 =v9f397.TextObj.value; var v16856 =v0f654.length; var v89328 =IS.GetInnerText(v05242.rows[0].cells[0]); if (v16856>0 &&v89328.length>v16856 &&v89328.substring(0,v16856).toLowerCase()==v0f654.toLowerCase()) { v9f397.LastSelectedIndex =v9f397.SelectedIndex =0; v9f397.TextObj.value +=v89328.substring(v16856); wc9c821.m35b43(v9f397,v05242.rows[0]); wc9c821.m74077(v9f397.TextObj,v16856); } } } }, m04415:function(vf4652) { vf4652.HideDropDown(); var v04016 =vf4652.LastQuery; if (vf4652.MultipleSelectionSettings.Enabled) { wc9c821.meb263(vf4652); if (wc9c821.md2c83(vf4652)) wc9c821.ma3f31(vf4652); } else { vf4652.TextObj.value =(vf4652.Text ==null)? "" : vf4652.Text; if (v04016 !=vf4652.TextObj.value) { vf4652.LastQuery =vf4652.TextObj.value; wc9c821.maee36(vf4652); vf4652.IsDirty =true; vf4652.NeedClearList =true; } } }, maee36:function(vd1f36) { var v9df52 =vd1f36; v9df52.Set("TotalRetrievedRows",0,true); }, m23159:function(v77236) { var v5c536 =v77236.GetTData(); return (v77236.LastSelectedIndex>=0 &&v77236.LastSelectedIndex<v5c536.rows.length); }, m35b43:function(va2936,v7d598) { var vf6c36 =va2936; if (!v7d598) return; v7d598.className =va2936.LayoutSettings.SelectedRowStyle; wc9c821.m4118(va2936,v7d598); }, m4118:function(v6d827,v22347) { var vf5f8 =v6d827; var v08237 =v6d827.GetTData(); var v1929 =v08237.parentElement; var v8c815 =false; if (!v22347) return; v8c815 =(v1929.scrollWidth !=v1929.offsetWidth &&v6d827.LayoutSettings.ComboMode =="MultipleColumns"); if (v22347.offsetTop<v1929.scrollTop) v1929.scrollTop =v22347.offsetTop; else if (v22347.offsetTop +v22347.offsetHeight +((v8c815)? 16 : 0)>v1929.offsetHeight +v1929.scrollTop) v1929.scrollTop =v22347.offsetTop -v1929.offsetHeight +v22347.offsetHeight +((v8c815)? 16 : 0); }, m6db20:function(vf1547,vfb956) { vfb956.className =vf1547.LayoutSettings.RowStyle.Normal; }, mc4497:function(vcb666) { if (vcb666.HasLinkedChilds &&vcb666.LinkedChilds !=null) { for (var vdfa47=0; vdfa47<vcb666.LinkedChilds.length; vdfa47++) { var v2a456 =vcb666.LinkedChilds[vdfa47]; if (v2a456.IsDataBound) { if (v2a456.LinkSettings.Enabled) v2a456.ClearAdditionalFilters(); } else { v2a456.ClearSelection(); wc9c821.m38314(v2a456,vcb666); } wc9c821.mc4497(v2a456); } } }, m0c873:function(vca958) { var vb142 =vca958; var v1e935 =vca958.GetTData(); if (!v1e935 ||!wc9c821.m23159(vca958)) { if (vb142.TextObj.value =="") { wc9c821.m5f433(vca958); return; } else return; } if (!ISEvent.Raise(vca958.LayoutSettings.ClientSideEvents.OnBeforeItemSelected,vb142.Id,vb142.Text,vb142.Value)) return; if (vb142.SelectedIndex<0) return; wc9c821.m95778(v1e935.rows[vb142.SelectedIndex]); var vbbf28 =IS.GetAttr(v1e935.rows[vb142.SelectedIndex],"dataValue"); var v3ef41 =""; var v13967 =0;  if (!vca958.LayoutSettings.AutoColumnOrdering) v13967 =wc9c821.m43180(vca958);  v3ef41 =IS.GetInnerText(v1e935.rows[vb142.SelectedIndex].cells[v13967]); if (vb142.Value ==vbbf28 &&vb142.Text ==v3ef41 &&vbbf28 !="") return; vb142.Value =vbbf28; vb142.Text =v3ef41; vb142.RowIndex =vb142.SelectedIndex; vb142.IsDirty =true; vb142.NeedClearList =true; if (vb142.HasLinkedChilds &&vb142.LinkedChilds !=null) wc9c821.mc4497(vb142); if (!ISEvent.Raise(vca958.LayoutSettings.ClientSideEvents.OnAfterItemSelected,vb142.Id,vb142.Text,vb142.Value)) return; if (vb142.AllowAutoPostback) { var v0dd37 =function() { vb142.UpdateState(); __doPostBack(vca958.ServerUniqueID,"ValueChanged:" +document.getElementById(vca958.Id).value); }; setTimeout(v0dd37); } }, m5f433:function(v0bc77) { v0bc77.Value =""; v0bc77.Text =""; v0bc77.LastQuery =""; }, m82b82:function(ve8d97,v06934) { var vc7613 =null; if (IS.ie &&ve8d97.LayoutSettings.ResultBoxWindowType =="Normal") vc7613 =document.getElementById("wcTempCnt"); else vc7613 =ve8d97.ResultBox.document.getElementById("wcTempCnt"); if (!vc7613) { if (IS.ie &&ve8d97.LayoutSettings.ResultBoxWindowType =="Normal") vc7613 =document.createElement("div"); else vc7613 =ve8d97.ResultBox.document.createElement("div"); vc7613.id ="wcTempCnt"; vc7613.style.display ="none"; } vc7613.innerHTML =v06934; if (IS.ie &&ve8d97.LayoutSettings.ResultBoxWindowType =="Normal") document.body.appendChild(vc7613); else ve8d97.ResultBox.document.body.appendChild(vc7613); }, m6562:function(v81532) { var v69932 =null; if (IS.ie &&v81532.LayoutSettings.ResultBoxWindowType =="Normal") v69932 =document.getElementById("wcTempCnt"); else v69932 =v81532.ResultBox.document.getElementById("wcTempCnt"); if (v69932) v69932.innerHTML =""; }, me5f58:function(v7f368) { var vbf868 =null; if (IS.ie &&v7f368.LayoutSettings.ResultBoxWindowType =="Normal") vbf868 =document.getElementById("wcTempCnt"); else vbf868 =v7f368.ResultBox.document.getElementById("wcTempCnt"); if (vbf868) return vbf868.childNodes[0]; return null; }, m9e435:function(v2d768,vf9972) { var vd1468 =v2d768; var v3a272 =vd1468.GetTData(); if (wc9c821.m23159(vd1468)) { vd1468.TextObj.value =IS.GetInnerText(v3a272.rows[vd1468.SelectedIndex].cells[wc9c821.m43180(v2d768)]); if (!vf9972) wc9c821.mc8251(vd1468.TextObj); } else { if (vd1468.LastQuery !=null) vd1468.TextObj.value =vd1468.LastQuery; if (!vf9972) wc9c821.mc8251(vd1468.TextObj); } }, m56569:function(v10371,vae922) { if (!v10371.LayoutSettings.StatusBoxVisible) return; if (v10371.ResultBox) { var v9be88 =v10371.ResultBox.document.getElementById(v10371.Name +"_spstatus"); v9be88.innerText =vae922; } }, mffa77:function(vb5263) { var v4957 =vb5263; var vd5e92 =v4957.ResultBox.document; var vdd317 =0; var vdac74 =0; if (v4957.LayoutSettings.StatusBoxVisible) vdd317 =vd5e92.getElementById(vb5263.Id +"_tstatus").offsetHeight; if (v4957.TotalRetrievedRows<v4957.TotalRows) vdd317 +=vd5e92.getElementById(vb5263.Id +"_tmore").offsetHeight; if (v4957.LayoutSettings.ComboMode =="MultipleColumns" &&v4957.LayoutSettings.AlwaysShowColumnHeaders) { vd5e92.getElementById(vb5263.Id +"_theader").scrollLeft =0; vdd317 +=vd5e92.getElementById(vb5263.Id +"_theader").offsetHeight; } vdac74 =v4957.LayoutSettings.ResultBoxHeight -vdd317 -2; if (IS.ie &&v4957.LayoutSettings.ResultBoxWindowType =="Normal") vdac74 =v4957.ResultBox.document.getOwnerDocument().offsetHeight -vdd317 -2;  return vdac74; }, m0705:function() { var ve9099 =document.createElement("DIV"); ve9099.id ="WebCombo3_ErrBox"; ve9099.style.cssText ="display: none; POSITION: absolute; Z-INDEX: 9999; FILTER:progid:DXImageTransform.Microsoft.Shadow(color='#666666', Direction=135, Strength=4);BORDER-LEFT:darkgray 1px solid;BACKGROUND-COLOR:whitesmoke"; ve9099.innerHTML ='<TABLE style="TABLE-LAYOUT: fixed; FONT-SIZE: 8pt; WIDTH: 100%; FONT-FAMILY: verdana; HEIGHT: 100%" cellSpacing="0" cellPadding="4" width="780" border="0"><TR><TD style="FONT-WEIGHT: bold; COLOR: white" bgColor="darkslateblue">WebCombo.NET 4.0</TD></TR><TR><TD><TABLE id="Table2" style="TABLE-LAYOUT: fixed; FONT-SIZE: 8pt; BORDER-BOTTOM: darkgray 1px solid; FONT-FAMILY: verdana" cellSpacing="0" cellPadding="4" width="100%" border="0"><TR><TD style="WIDTH: 39px"><img id="img_wcError" src="wc_Error.gif" height="32"></TD><TD id="wc_uhemsg"></TD></TR></TABLE></TD></TR><tr height="100%"><td><div id="wc_ErrorMsg" style="OVERFLOW: auto; WIDTH: 100%; HEIGHT: 100%"></div></td></tr><tr><td align="right"><button style="BORDER-RIGHT: navy 1px solid; BORDER-TOP: navy 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: navy 1px solid; BORDER-BOTTOM: navy 1px solid; FONT-FAMILY: verdana" type="button" onclick="wc9c821.m1f699(wc_ErrorMsg.innerText)" >Copy</button>&nbsp;<button onclick="wc9c821.m36f21()" style="BORDER-RIGHT: navy 1px solid; BORDER-TOP: navy 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: navy 1px solid; BORDER-BOTTOM: navy 1px solid; FONT-FAMILY: verdana" type="button">Close</button></td></tr></TABLE>'; document.body.appendChild(ve9099); return ve9099; }, m36f21:function() { var v7cf82 =document.getElementById("WebCombo3_ErrBox"); v7cf82.style.display ="none"; }, m1f699:function(v6b082) { window.clipboardData.setData('Text',v6b082); }, m3f477:function(v71d18,v04350,v42e88) { var vd5a82 =document.getElementById("WebCombo3_ErrBox"); if (!vd5a82) vd5a82 =wc9c821.m0705(); vd5a82.style.width =document.body.offsetWidth -50; vd5a82.style.height =document.body.offsetHeight -50; vd5a82.style.left =vd5a82.style.top =20; document.getElementById("wc_ErrorMsg").innerHTML =v04350; document.getElementById("img_wcError").src =v71d18.ResolveImagePath(v71d18.LayoutSettings.ImagesDirectory,"wc_Error.gif"); if (v42e88) document.getElementById("wc_uhemsg").innerHTML =v42e88; vd5a82.style.display =""; }, m66d32:function(v06f38) { while (v06f38 &&v06f38.tagName !="TR") v06f38 =v06f38.parentElement; return v06f38; }, m25522:function(vcf293) { var v66a74 =vcf293.GetTData(); if (v66a74 !=null &&v66a74.tBodies[0] !=null) { var v29b29 =v66a74.rows.length; for (var va1173=0; va1173<v29b29; va1173++) v66a74.deleteRow(0); } }, m74077:function(vffb13,vc8948,v14d7) { if (IS.opera) { vffb13.setSelectionRange(vc8948,vc8948); } else { if (vffb13.createTextRange) { var v46293 =vffb13.createTextRange(); if (IS.moz ||IS.safari) { vffb13.selectionStart =0; } v46293.moveStart('character',vc8948); if (v14d7) v46293.moveEnd('character',0 -v46293.text.length); v46293.select(); } } }, m5e152:function(v3de59,vb1576,v31296) { var v04e68 =v3de59.TextObj; if (v04e68.createTextRange) { var v5fd27 =v04e68.value; var ve2492 =v04e68.createTextRange(); var va9a10 =vb1576.StartPos; var v5ab19 =vb1576.EndPos; if (IS.ie) { ve2492.moveStart('character',va9a10); ve2492.moveEnd('character',0 -(v5fd27.length -v5ab19)); } else if (IS.opera) { setTimeout(function(){v04e68.setSelectionRange(va9a10,v5ab19);},50); } else { v04e68.selectionStart =va9a10; v04e68.selectionEnd =v5ab19; } if (ve2492.text ==vb1576.Text) ve2492.select(); else { va9a10 =v5ab19 -vb1576.Text.length; if (v31296>va9a10) { ve2492 =v04e68.createTextRange(); ve2492.moveStart('character',va9a10); ve2492.moveEnd('character',0 -(v5fd27.length -v5ab19)); ve2492.select(); } } } }, mb6d57:function(vdfd18) { var v9ab79 =vdfd18.GetTData(); if (v9ab79) { for (var vcaa85=0; vcaa85<v9ab79.rows.length; vcaa85++) { wc9c821.m95778(v9ab79.rows[vcaa85]); var v3de63 =v9ab79.rows[vcaa85].dataValue; var v9f917 =v9ab79.rows[vcaa85].cells[0].childNodes[0]; if (vdfd18.Values ==null ||vdfd18.Values.length ==0) { v9f917.checked =false; } else { var vaed63 =false; for (var vd9439=0; vd9439<vdfd18.Values.length; vd9439++) { if (vdfd18.Values[vd9439].Value ==v3de63) { v9f917.checked =true; vaed63 =true; break; } } if (!vaed63) v9f917.checked =false; } wc9c821.m6db20(vdfd18,v9ab79.rows[vcaa85]); } } }, md5970:function(v37693,vac393) { var vc5f90 =v37693.GetTData(); if (vc5f90) { var v60343 =vc5f90.rows[v37693.LastSelectedIndex]; var v81733 =v60343.cells[0]; var v43a23 =false; if (vac393 ==null ||vac393.tagName !="INPUT") { v43a23 =!v81733.childNodes[0].checked; v81733.childNodes[0].checked =v43a23; } else v43a23 =!vac393.checked; if (v43a23) { var vfb07 =new WebComboValueItem(); vfb07.Text =IS.GetInnerText(v60343.cells[1]); vfb07.Value =v60343.dataValue; vfb07.Position =(v37693.Values ==null)? 0 : v37693.Values.length; if (v37693.Values ==null) { v37693.Values =new Array(); v37693.Values[v37693.Values.length] =vfb07; } else { var vd9b53 =vfb07.Position; for (var vaaa58=vd9b53; vaaa58<v37693.Values.length; vaaa58++) v37693.Values[vaaa58].Position =vaaa58 +1; v37693.Values.splice(vfb07.Position,0,vfb07); } } else { v37693.RefreshValueItems(); for (var vaaa58=0; vaaa58<v37693.Values.length; vaaa58++) { if (v37693.Values[vaaa58].Text ==IS.GetInnerText(v60343.cells[1])) { v37693.Values.splice(v37693.Values[vaaa58].Position,1); break; } } if (v37693.Values.length ==0) v37693.Values =null; } if (vac393 &&vac393.tagName =="INPUT") vac393.checked =v43a23; v37693.RefreshTextByValueItems(v37693); } }, mc8251:function(v9c94) { if (v9c94.createTextRange) { var vb6020 =v9c94.value; var vf8d11 =v9c94.createTextRange(); vf8d11.moveStart('character',vb6020.length); vf8d11.select(); } }, mc9236:function(vf2623) { var v2254 =document.getElementById(vf2623.Id); var vc1151 =""; if (vf2623.MultipleSelectionSettings.Enabled) { if (vf2623.Values !=null) { for (var v45019=0; v45019<vf2623.Values.length; v45019++) { vc1151 +=ISXml.EncodeString(vf2623.Values[v45019].Text)+"\03"; vc1151 +=ISXml.EncodeString(vf2623.Values[v45019].Value)+"\04"; } if (vc1151 !="") vc1151 =vc1151.substr(0,vc1151.length -1); } } else { if (vf2623.Value !="" &&(vf2623.Text !="" ||vf2623.LastSelectedIndex>-1)) { vc1151 +=ISXml.EncodeString(vf2623.Text)+"\03"; vc1151 +=ISXml.EncodeString(vf2623.Value); } } if (v2254) v2254.value =vc1151; }, m20f35:function(v98d70) { var v75d59 =new Array(); if (v98d70.Rows !=null) { for (var v79630=0; v79630<v98d70.Rows.length; v79630++) { var vc324 =v98d70.Rows[v79630]; if (vc324._UIState =="Changed") { var v3e614 =vc324.Cells; if (v3e614 !=null) { for (var v86650=0; v86650<v3e614.length; v86650++) { var v0cb95 =v3e614[v86650].GetElement(); v0cb95.innerText =v3e614[v86650].Text; } } vc324._UIState ="Unchanged"; } else if (vc324._UIState =="Removed") { v75d59[v75d59.length] =vc324.GetElement(); v98d70.Rows.Remove(vc324); v79630--; } else if (vc324._UIState =="Added") { v98d70.NewRowObj =vc324; wc9c821.me2e68(v98d70); vc324._UIState ="Unchanged"; } } var vfed37 =v98d70.GetTData(); for (var v79630=0; v79630<v75d59.length; v79630++) { var vc324 =v75d59[v79630]; vfed37.deleteRow(vc324.rowIndex); } v98d70.Rows =null; v98d70.GetRows(); } }, m6c853:function(v96589) { var v4c153 =v96589; v4c153 =v4c153.replace(/&quot;/g,'"'); v4c153 =v4c153.replace(/&amp;/g,'&'); v4c153 =v4c153.replace(/&lt;/g,'<'); v4c153 =v4c153.replace(/&gt;/g,'>'); v4c153 =v4c153.replace(/&nbsp;/g," "); return v4c153; } };var wcfe158 = { mde958:function() { var v2121 =this; var v2c747 =v2121.ResultBox.document; var v7e630 =v2c747.getElementById(v2121.Id +"_tmore"); DynamicStyleEngine.SetToOverStyle(null,v2121.LayoutSettings.MoreButtonStyle,v7e630); }, m33770:function() { var vb9385 =this; var v5db87 =vb9385.ResultBox.document; var v09678 =v5db87.getElementById(vb9385.Id +"_tmore"); DynamicStyleEngine.SetToStyle(null,vb9385.LayoutSettings.MoreButtonStyle,v09678); }, m1b02:function() { var v6bd85 =this; var v64f87 =v6bd85.ResultBox.document.parentWindow.event; var vb0278 =wc9c821.m66d32(v64f87.srcElement); if (!vb0278) return; if (vb0278.className !=v6bd85.LayoutSettings.SelectedRowStyle) DynamicStyleEngine.SetToOverStyle(null,v6bd85.LayoutSettings.RowStyle,vb0278); }, mbc139:function() { var v8634 =this; var v65497 =v8634.ResultBox.document.parentWindow.event; var vd5f45 =wc9c821.m66d32(v65497.srcElement); if (!vd5f45) return; if (vd5f45.className !=v8634.LayoutSettings.SelectedRowStyle) DynamicStyleEngine.SetToStyle(null,v8634.LayoutSettings.RowStyle,vd5f45); }, mf1d41:function() { var vc784 =this; var v3a897 =vc784.ResultBox.document.parentWindow.event; if (v3a897.button ==0 ||v3a897.button ==65535) { var vc4145 =v3a897.srcElement; if (!vc4145) return; if (vc4145 &&vc4145.tagName !="TD") vc4145 =vc4145.parentElement; if (vc4145 &&vc4145.tagName =="TD") { if (IS.ie) { if (vc4145.innerText !="" &&vc4145.scrollWidth>vc4145.offsetWidth &&vc4145.childNodes.length<3) vc4145.title =vc4145.innerText; else vc4145.title =""; if (vc784.LayoutSettings.ComboMode =="MultipleColumns" &&vc4145.title =="") { if (vc4145.cellIndex ==vc4145.parentElement.cells.length -1 &&vc4145.offsetWidth +16>vc4145.scrollWidth) vc4145.title =vc4145.innerText; } } else { if (vc4145.innerText !="" &&vc4145.childNodes[0].offsetWidth>vc4145.offsetWidth &&vc4145.childNodes.length<3) vc4145.title =vc4145.innerText; else vc4145.title =""; } } } }, m16e17:function(vf0076) { var v0d240 =this; if (vf0076 !=null &&vf0076 !=event) v0d240 =vf0076; if (IS.moz) return;  v0d240.IsDirty =true; v0d240.IsMoreRequest =true; wc9c821.mcb878(v0d240,"LoadData"); }, m6dc5:function() { this.IsDirty =true; this.IsMoreRequest =true; wc9c821.mcb878(this,"LoadData"); event.cancelBubble =true; event.returnValue =false; }, mb4098:function(vb6295) { var v3ae59 =vb6295.ResultBox.document.parentWindow.event; if (!ISEvent.Raise(vb6295.LayoutSettings.ClientSideEvents.OnKeyDown,this.Id,v3ae59.keyCode)) return; if (v3ae59.keyCode ==27) { wc9c821.m04415(vb6295); v3ae59.cancelBubble =true; v3ae59.returnValue =false;  if (vb6295.Grid &&vb6295.AllowAdd) vb6295.TextObj.isDirty =false; } else if (IS.moz &&(v3ae59.keyCode ==38 ||v3ae59.keyCode ==33)) { v3ae59.cancelBubble =true; v3ae59.returnValue =false; } return false; }, md9723:function(v26b51) { var va3931 =this; if (v26b51 !=null) va3931 =v26b51; var v3a715 =va3931; if (va3931.MultipleSelectionSettings.Enabled &&va3931.LayoutSettings.TextBoxMode =="ReadOnly") return false; if (!va3931.ResultBox) return false;  var vf7067 =va3931.ResultBox.document.parentWindow.event;  if (!vf7067) return false;  var vafc77 =vf7067.srcElement; vafc77 =wc9c821.m66d32(vafc77); if (vafc77 !=null &&vafc77.disabled) return false;   try { v3a715.HideDropDown(); } catch (e) { } }, mc6079:function() { var vbe734 =this; if (vbe734.MultipleSelectionSettings.Enabled &&vbe734.LayoutSettings.TextBoxMode =="ReadOnly") { var vb6b65 =vbe734.ResultBox.document.parentWindow.event; vb6b65.cancelBubble =true; vb6b65.returnValue =false; } }, m80d85:function() { var vd7370 =this; var v12534 =vd7370.ResultBox.document.parentWindow.event; var v8451 =vd7370.GetTData(); if (ISEvent.IsLeftButton(v12534)) { var vd970 =v12534.srcElement; vd970 =wc9c821.m66d32(vd970); if (IS.chrome) vd7370.EventInResultBox =true;  if (!vd970) return;  if (vd970.disabled) { v12534.cancelBubble =true; v12534.returnValue =false; return; } if (wc9c821.m23159(vd7370)) wc9c821.m6db20(vd7370,v8451.rows[vd7370.LastSelectedIndex]);  vd7370.LastSelectedIndex =vd7370.SelectedIndex =vd970.rowIndex; wc9c821.m35b43(vd7370,vd970); if (!vd7370.MultipleSelectionSettings.Enabled) { wc9c821.m9e435(vd7370); if (IS.ie &&vd7370.LayoutSettings.ResultBoxWindowType =="Normal") setTimeout(function() { vd7370.SetFocus(); },50); if (IS.moz ||IS.opera ||IS.safari) { wc9c821.m0c873(vd7370);  if (!IS.chrome) { setTimeout(function() { vd7370.TextObj.focus(); wc9c821.mc8251(vd7370.TextObj); },100); } } } else { if (vd7370.MultipleSelectionSettings.Enabled &&vd7370.LayoutSettings.TextBoxMode =="ReadOnly") { if (ISEvent.Raise(vd7370.LayoutSettings.ClientSideEvents.OnItemChecked,vd7370.Id)) wc9c821.md5970(vd7370,v12534.srcElement); if (IS.moz) v12534.srcElement.cancelBubble =true;  if (IS.ie &&vd7370.LayoutSettings.ResultBoxWindowType =="Normal") { setTimeout(function() { vd7370.SetFocus(); },50); } } else { wc9c821.m0c873(vd7370); if ((IS.ie &&vd7370.LayoutSettings.ResultBoxWindowType =="Normal")||IsGecko30()) { setTimeout(function() { vd7370.SetFocus(); },50); setTimeout(function() { wc9c821.mc8251(vd7370.TextObj); },55); } if (!wc9c821.m8f074(vd7370,vd7370.LastQueryMultiple)) wc9c821.mf7146(vd7370); } } } }, m28879:function() { var ve2445 =this; var v27b23 =ve2445.ResultBox.document.parentWindow.event; var vd6b53 =ve2445.GetTData(); if (ISEvent.IsLeftButton(v27b23)) { var v51065 =v27b23.srcElement; v51065 =wc9c821.m66d32(v51065); if (v51065.disabled) { v27b23.cancelBubble =true; v27b23.returnValue =false; return; } if (!ve2445.MultipleSelectionSettings.Enabled) wc9c821.m0c873(ve2445); if (ve2445.MultipleSelectionSettings.Enabled &&ve2445.LayoutSettings.TextBoxMode =="ReadOnly") { if (v27b23.srcElement.tagName =="INPUT") { var vb191 =v27b23.srcElement; var v6a612 =vb191.checked; setTimeout(function() { vb191.checked =v6a612; },1); v27b23.cancelBubble =true; v27b23.returnValue =false; } return; } if (!ve2445.LayoutSettings.AlwaysShowResultBox) { ve2445.HideDropDown(); } } }, m6fc89:function() { var vef220 =this; var va8611 =vef220.GetTData(); var v3af5 =vef220.ResultBox.document.parentWindow.event; var v28430 =-(v3af5.wheelDelta/120); var vddf22 =document.createEventObject(); var v31028; if (v28430>0) v31028 =40; else v31028 =38; vddf22.keyCode =v31028; vef220.TextObj.fireEvent("onkeydown",vddf22); v3af5.cancelBubble =true; v3af5.returnValue =false; return false; }, m8bf58:function() { var v65f75 =this; if (!v65f75.LayoutSettings.AlwaysShowColumnHeaders) return; var v40591 =v65f75.ResultBox.document.getElementById(v65f75.Id +"_theader").parentElement; var v3c290 =v65f75.GetTData().parentElement; v40591.scrollLeft =v3c290.scrollLeft; },  m39b93:function() { this.EventInResultBox =true; },  ma9671:function() { this.EventInResultBox =false; } };function wcGetComboById(v1973){ return ISGetObject(v1973);}function wc_getValue(v0883){ return ISGetObject(v0883).Value;}function wc_setAdditionalFilters(v7b03,ve0734){ var vaa73 =ISGetObject(v7b03); vaa73.SetAdditionalFilters(ve0734);}function wc_getText(v2e33){ return ISGetObject(v2e33).Text;}function WC40Help(v31a23){ var v0fe3 =ISGetObject(v31a23); var v43834 =v0fe3.LayoutSettings.HelpURL; if (v43834 =="")
 v43834 ="http://www.intersoftpt.com/webcombo/help.aspx";
 window.open(v43834,null,"toolbar=no, menubar=no, scrollbars=yes, resizable=yes");}function WebCombo4CoreDestructor(){ IS.RegisterUnloadVariables("wc9c821"); IS.RegisterUnloadVariables("wcfe158"); window.detachEvent("onunload",WebCombo4CoreDestructor);}window.attachEvent("onunload",WebCombo4CoreDestructor);if (IS.moz) document.body.attachEvent("onmousemove",wc9c821.m78a87); if (typeof(Sys)!="undefined") Sys.Application.notifyScriptLoaded();var _WC ={Animation: {}};_WC.AnimatedObj =function(){ this.Element =null; this.ParentElement =null; this.Type =""; this.Style ="WinXPStyle"; this.Step =0; this.OnCompleted =null; this.Speed ="Slow"; this.StepInterval =1; this.MaxStep =10; this.Duration =1; this.Height =0; this.TimeoutInterval =1; this.IntervalId =null; this.Canceled =false; this.EnableFading =false; this.MaxFadeInOpacity =100; this.BorderColor ="";  this._ShadowElement =null;   this.Play =function() { this.Canceled =false; _WC.Animation.Play(this); };  this.Stop =function() { this.Canceled =true; };};_WC.Animation.Play =function(o,step){ var style =o.Element.style; var initial =false; if (step ==null) { if (!o.Element.OriginalTop) { o.Element.OriginalTop =ISPosLib.getTop(o.Element); o.Element.OriginalHeight =o.Element.offsetHeight;  if (!IS.ie &&!IS.moz) o.Element.OriginalTop +=ISPosLib.getScrollTop(document); }  step =o.Element.OriginalTop -o.Element.OriginalHeight; initial =true; style.position ="absolute"; } var destTop =step;  if (destTop >=o.Element.OriginalTop) { style.top =o.Element.OriginalTop; style.clip ="rect(auto auto auto auto)";  if (o.OnCompleted !=null) o.OnCompleted();  return; } else { var clipTop =(o.Element.OriginalTop -step); var clipBottom =(o.Element.OriginalHeight +step); var opacity =0;  if (clipTop >clipBottom) clipTop =clipBottom -1; if (IS.moz &&destTop <0) { style.visibility ="hidden"; } else { style.top =destTop +"px"; style.clip ="rect(" +clipTop +"px auto " +clipBottom +"px auto)"; }  if (!initial &&(IS.moz &&style.visibility =="hidden")) style.visibility ="visible"; }  var deltaHeight =o.Element.OriginalTop -step;  if (initial) deltaHeight =deltaHeight +(o.Element.OriginalHeight/2);  deltaHeight /=2;  if (deltaHeight <0) deltaHeight =0 -deltaHeight;  deltaHeight =step +Math.round(deltaHeight); setTimeout(function(){_WC.Animation.Play(o,deltaHeight);},20);};