I know how to detect onFocus with Javascript, thats easy. how about when the focus is moved away from an item?
the idea being, after a user has finished typing there desired username and moved on to the next item an AJAX call back is made to check its not already taken.