I created a prototype.js/window.js "Window" pseudo window div with another page from the same directory loaded in its iframe
I could not put a button/link on the iframe doc that would close it by calling functions in the parent window
I used "window.parent" "parent" alone "top" but the only thing I could access from the iframe was the window.parent.location property
I ended up constructing the Window by writing the content to it from the main page, not loading a url in the iframe
But it bugs me that I couldn't access the parent window functions (or anything, getElementById didn't work either, so Window method $('Window_ID').close() wouldn't work either)
any ideas?