Your solution works great! I was counting for the number of objects on the form like this:
if (document.MYFORMNAME.length == 6)
then set focus to the correct text box. The problem with my method is if I later add or remove an object, then my code breaks unless I remember to change the above line.
Your answer is the better solution.
Thanks,
Jerryt
>This is on the client side right?
>
>Try this:
>
if (document.MYFORMNAME['txt_part']){
> document.MYFORMNAME['txt_part'].focus();
>}
>I may have missed the exact syntax (I'm just getting started on JS) but you get the idea.