JavaScript and SWF

Hi, I have a mini search engine in my movie clip. The user write a word. and opens a popup when show the search result. I make the search engine in javascript but i need that my swf send the word my user write. how can i do that? whats the code to send vars to a javascript?? :ne: