Thanks for the explanation, wangbar!
Do you also know a way to make sure it always is on the top of the stack. I'll try to explain what I mean.
I'm making a website where everytime a user clicks a button,a different window opens (read:a different movie is being loaded). The user can leave the window open or close it. If he leaves it open and clicks another button, a new window should open on top of the stack. Thereby creating cascading windows. Since I don't know in which order the buttons are going to be clicked, I don't know on which level to open the new window. Also, If different windows are open, the users should be able to click a window which is in the background thereby moving it to the front. (kinda like when you open different pictures at the same time in photoshop)
regards, goaganesha