New window + javascript paths

I have this javascript which opens new, custom windows from Flash. I use this because I have about 12+ windows all with different sizes, that I’d like to launch:

<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win =, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
//  End -->

it works great if I have my SWF at the same level as my content. But I’d like to keep my content in its own folder.

But when I try this in Flash:

on (release) {

I get this message:

So I figured, “no problem, I’ll just fix the html”

It looked like this:

So I changed it to this:

but I still get this:

I’ve tried using a direct URL (as opposed to relative URL), I tried a “” and a “/”. I think I’ve exhausted all my options.

please help?