Here you go:

This does exactly what you want. Jump to the next field when one has filled max allowed characters.

http://www.javascriptkit.com/script/.../autotab.shtml