Well, first, you don't want to open a new window. You want to load a new page I presume.

In flash:
Get URL ("javascript:pushImg('/images/hires1.jpg')")

In HTML:
function pushImg(img) {
top.frames["topframe"].location.href="/top.html?img=" + img;
}

In top.html you'll have to put the javascript in to parse the search string and place the text in a document.write().

I could give you the code...but I'm really busy right now. Sorry....try irt.org.