The HTML on the page has 20 fields each named and given ID\'s in increasing order from 1 to 20.
If the variable id is set to
id
(Try to use .blur() instead of .focusout(). But that probably won't help)
.blur()
.focusout()
Try to remove the alert() for a while - it sometimes can make problems with focus...
alert()