Here is example of how i have done this type of thing in the past. It can filter out characters like tab, enter, etc and it takes into account both ie and firefox.
Thanks,
Chris
<code>
// Example:
// onkeyup=""AutoPhoneTab(this,3,txtPrimeprefix,event);""...