I have a window that has a link on it to open an application. The window that spawned the new window is still open. I have a button on the application that will take them to the original window. (placing focus on it) If they closed the original window, then I want to open it again if they click the button. Basically, I need to check to see if the original window is open. If it is, I want to place focus on it. If the original window is not open any more, I want to open a window and bring the original page back up. Here is what I have:

function winclose() {
if (window.Win!=true) {
window.open ("http://www.whatever.com");
// -->

With this code it will always open the new window whether the original one is open or not.

Thanks for any help.