function testJump(x){
var ml = ~~x.getAttribute('maxlength');
if(ml && x.value.length >= ml){
do{
x = x.nextSibling;
}
while(x && !(/text/.test(x.type)));
if(x && /text/.test(x.type)){
x.focus();
}
}
}
<div>
<input type="text" onkeyup="testJump(this);" maxlength="2" size="2">
<input type="text" onkeyup="testJump(this);" maxlength="3" size="3">
<input type="text" onkeyup="testJump(this);" maxlength="7" size="7">
</div>