ok just two questions on the subject of text areas.

first:
is there a way to figure out where the cursor is in a text area? like in these forms when you're posting a new topic you type somthing in like "hello". then right after that you type in "person". you click between the two words and click on the button labeled "B" to insert bold text. the bold text appears AFTER THE WORD "PERSON". now how would you make it where it inserts the bolded text BETWEEN the two words?

second:
when you highlight text in a text area, is there a way to figure out what text is highlighted?

thanks in advance...