Hi there,
For starters you don't need javascript to open your new browser window. If you have successfully loaded a txt. file into a swf. file all you need to do is edit the txt. file itself. (bearing in mind you have ticked the HTML box within the "Text Options" panel within Flash)
Place this in the txt. file:
<a href="http://yoursite.com">Click Here</a>