Added ability to specify dialog inputs that will be automatically focused

All you need to do is assign them the class "jsDialogAutoFocus", the dialog manager will then pick the first visible input with that class and applies the focus to it.