Javascript in Flash

Hi, I’ve created a button in flash, imported it in a website, now, if someone click on it, it must open in a new window, using this javascipt code:

 onClick="MM_openBrWindow('comp_terms.asp','Terms','scrollbars=yes,width=400,height=445')">

which you will normally use on a normal html button.
How do I implement that into Flash?

Thanks!