I had been using the textarea.focus() function and saw that it behaves differently in different browsers. If there is no content in the textarea, all the browsers behave the same and they set the cursor position at the beginning of the textarea.
if (replybox.setSelectionRange )
This works fine in all the browsers. Let me know if this helped you.