if (inputs[i].type == "text" && !inputs[i].disabled) { document.a = inputs[i]; setTimeout("document.a.focus()",10);