focus on text_field

I use ajax to dynamically display a form under a div, so i can’t put a javascript function to body’s onload.
Is there any other method to focus a text_field?


http://sourceforge.net/projects/mycodeline/

http://rubyforge.org/projects/ropenwiki/