You could also use jquery syntax:
$('#item' :input:visible:enabled:first).focus()
Or if you don't have much info on the page and just want the first visible
field to have focus you could do:
$("input:visible:enabled:first").focus()More info on the jquery selectors is at: http://docs.jquery.com/DOM/Traversing/Selectors

