I can't seems to get the below script to work. I need to open a new window from the text loaded through an external text file into a flash text panel.

This part is in the HTML under the <HEAD> tag:

<SCRIPT LANGUAGE="JavaScript">
function newbrowser(url){
window=window.open("url"," ","height=400,width=500")
}
// --></SCRIPT>

This part is in the text file:

<a href="javascript:newbrowser(www.yahoo.com)">www.ya hoo.com</a>

It just does not load.