say the fields are called field1, field2, field3
In the CHANGE event of field1, you can add the following code
if (xfa.event.newText.length == 3)
xfa.host.setFocus("field2");
Add the same code in field2 but change setFocus("field2") to
setFocus("field3");