var c;
var si;
var n;

c = window.event.keyCode;
if ((c >= 65) && (c <= 90) || 
    (c >= 48) && (c <= 57) ||
    (c == 189))
{  
  if (c == 189) 
  {
    c = "-";
  }
  else
  {
    c = String.fromCharCode(c);
  }
  if (!this.kk) this.kk = "";
  this.kk=this.kk+c;
  c = this.kk;
  si = 0;
  n = c.length;
  while (si < (this.options.length-1)) 
  {
     if (this.options(si).text.substr(0,n).toLowerCase() == c.substr(0,n).toLowerCase()) 
     {
       this.selectedIndex = si;  
       this.fireEvent("onchange");     
       break;
     }
     si++;
  }
  window.event.returnValue = false;
}
else
{
  this.kk = "";
  window.event.returnValue = true;
}
