what im trying to do is create a small script where the user can find and replace text that ive put into a text area. what i mean is a user types something into one textare1, it is higlighted in textarea2 which has text that i have written, and then he types something else in textarea3 which replaces whatever is in textarea2 that was highlighted..... i think this images explains it