// Generated by Intersoft Script Optimizer 1.0
// Generated Datetime : 1/22/2003 9:21:29 PM
// Copyright (c) 1999-2002 Intersoft Solutions.
// Unauthorized decryption/reproduction of any codes contained herein is strictly prohibited and will result in severe civil and criminal penalties .
//**Start Encode**

// Copyright (c) 1999 - 2002 Intersoft Solutions Corp. All rights reserved.

// WebCombo.NET v1.0.8
var wc_States = [];var wcInit = false;var wcInst = new Array();function wci(name) { var wcs=new wcState(name); wc_States[name] = wcs; wcInst[wcInst.length] = name; document.captureEvents( Event.KEYDOWN );  if (!wcInit) {   }}function wcState(name) { this.Name = name; 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.Value = null; this.Text = null; this.RowIndex = null; this.CommonImagesFolder = "/CommonLibrary/Images/"; this.IsTextObjFocused = false; this.TextObj = document.getElementById(name + "_text"); var Prop = eval(name + "_Props"); this.Latency = Prop[0]; this.TotalRetrievedRows = Prop[1]; this.TotalRows = Prop[2]; this.AddFilters = Prop[3]; this.OnBeforeRequest = Prop[4]; this.OnBeforeItemSelected = Prop[5]; this.OnAfterItemSelected = Prop[6]; this.AutoPostBack = Prop[7]; this.GetTData = function() {  return document.getElementById(name + "_tdata"); }; return this; }function wckd(name, e) { var wcs = wc_States[name]; var handled = false; var more = false;  var tdata = wcs.GetTData();  if (tdata == null)  wcrs(name, false); if (e.which == 40 || e.which==34) {
		// down arrow
  if (event.altKey) {   wcrs(name, true);   return;  }    handled = true; } else if (e.which == 27) {  wcselrev(wcs);  handled = true; } if (handled) {  return false; } return true;}function wcselrev(wcs) { wchrf(wcs.Name); wcs.TextObj.value = ""; wcs.IsDirty = true; wcs.Value = ""; wcs.Text = ""; wcupdpd(wcs.Name);}   function wcku(name, e) { var wcs = wc_States[name]; if (  e.which == 40 || e.which == 38 || e.which == 37 || e.which == 39 || e.which == 34 || e.which == 33 || e.which == 27 || e.which == 16 || e.which == 17 || e.which == 35 || e.which == 36 || e.which == 36 || e.which == 20 || e.which == 18 || e.which == 145 || e.which == 19 || e.which == 144 || e.which == 13 || e.which == 9  ) { } else {  if (wcs.LastQuery != wcs.TextObj.value || wcs.IsDirty) {   wcs.IsDirty = true;   wcs.NeedClearList = true;   wcs.LastSelectedIndex = wcs.SelectedIndex = -1;   wcs.RowIndex = null;   wcrs(name, false);  } else {   wcs.IsDirty = false;  } } return true;}function wcf() {}function wcb() {}function wciv(name, text, value) { var wcs = wc_States[name]; wcs.Text = text; wcs.Value = value; if (text != "") wcs.LastQuery = text; else wcs.LastQuery = null;}function wcupdpd(name) { var wcs = wc_States[name]; var el = document.getElementById(name); var s=""; if (wcs.Value != "" && wcs.Text != "") {  s+= wcs.Text + "\03";  s+= wcs.Value; } el.value = s;}function wcrs(name, bDDClicked) { var wcs = wc_States[name];  if (wcs.GetTData() != null && !wcs.IsDirty) {  var rf = document.getElementById(name + "_resultframe");  if (rf.style.display == "none")   rf.style.display = "";  else   rf.style.display = "none"; } else if (wcs.GetTData() == null && bDDClicked) {  wcs.IsDirty = true; }  if (wcs.RequestId == 0)  wcs.RequestId = setTimeout("wcrq('" + name + "')", (bDDClicked) ? 100 : wcs.Latency); else  {   clearTimeout(wcs.RequestId);   wcs.RequestId = setTimeout("wcrq('" + name + "')", (bDDClicked) ? 100 : wcs.Latency);  } return true;}function wcrq(name) { var wcs = wc_States[name]; wcs.RequestId = 0; if (wcs.IsDirty) {    if (wcs.OnBeforeRequest != "")   if (!eval(wcs.OnBeforeRequest))    return;    var s = "RequestData:";    s+= wcs.TotalRetrievedRows + "\03";  s+= wcs.IsMoreRequest + "\03";  s+= ((wcs.IsMoreRequest) ? wcs.LastQuery : wcs.TextObj.value) + "\03";
		s+= wcs.AddFilters;// + "\03";
  __doPostBack(wcs.Name, s); }}function wcitemsel(name, rowid, cellid, e) { var wcs = wc_States[name]; var tdata = wcs.GetTData(); if (wcs.OnBeforeItemSelected != "")  if (!eval(wcs.OnBeforeItemSelected))   return;  if (wcs.LastSelectedIndex >= 0 && wcs.LastSelectedIndex < tdata.rows.length) {  tdata.rows[wcs.LastSelectedIndex].className = name + "-Row"; }  wcs.Value = tdata.rows[rowid].getAttribute("dataValue"); wcs.Text = tdata.rows[rowid].cells[0].getAttribute("innerText"); wcs.RowIndex = wcs.SelectedIndex; wcs.TextObj.value = wcs.Text; wcupdpd(name); wchrf(name);  wcs.LastSelectedIndex = rowid; tdata.rows[rowid].className = name + "-SelectedRow";  if (wcs.OnAfterItemSelected != "")  if (!eval(wcs.OnAfterItemSelected))   return;  if (wcs.AutoPostBack == "True") {  setTimeout("__doPostBack('" + name + "', \"ValueChanged:" + document.getElementById(name).value + "\")", 100); }}function wchrf(name) { var rf = document.getElementById(name + "_resultframe"); rf.style.display = "none";}function wchrfa(e) { var retval = routeEvent(e); if (retval) return false; for (var i=0; i<wcInst.length; i++) {  var rf = document.getElementById(wcInst[i] + "_resultframe");  if (rf) rf.style.display = "none"; }}function wcrqm(name) { var wcs = wc_States[name]; wcs.IsMoreRequest = true; wcs.IsDirty = true; if (wcs.Text == null && wcs.TextObj.value == "" ) wcs.Text = "";  else wcs.Text = wcs.TextObj.value; if (wcs.Value == null || wcs.Value == "")  wcs.LastQuery = wcs.Text; else {  if (wcs.LastQuery == null) wcs.LastQuery = ""; } if (wcs.Value == null) wcs.Value = ""; wcrs(name, true);}function wc_setAdditionalFilters(name, filters) { var wcs = wc_States[name]; wcs.AddFilters = filters; wcs.IsDirty = true; wcs.TextObj.value = ""; wcs.LastSelectedIndex = wcs.SelectedIndex = -1; wcs.RowIndex = null; wcs.Text = ""; wcs.Value = ""; if (wcs.GetTData() != null) {  var rf = document.getElementById(name + "_resultframe");  if (rf && rf.style.display != "none") rf.style.display = "none"; }}