Forum Moderators: open
<input type="text" onfocus="this.select();" class="kurzinput" name="sc2" onkeyup="next(this);" maxlength="4" />
function next(that) {
if(document.selection == undefined) {
if(that.value.length == 4){
var onode, otarget;
onode=that;
onode=onode.nextSibling;
while(onode) {
if (onode.nodeType==1) {
otarget=onode;
break;
}
onode=onode.nextSibling;
}
if (otarget) {
otarget.focus();
}
else {}
}
}