function songWindow(url){ handle = window.open(url, "music", "status,HEIGHT=530,WIDTH=540,scrollbars") handle.focus() if(handle){ return false; } } function albumWindow(url){ handle = window.open(url, "albums", "HEIGHT=470,WIDTH=540,scrollbars") handle.focus() if(handle){ return false; } } function sendToOpener(windowObj, url){ if(windowObj.location == url){ windowObj.focus() } else { windowObj.location.href = url } //the idea with that is to load the new page into the parent window while allowing the user to control which window gets focus. //if the user clicks the link again, assume it's because they can't see the parent window and are hammering on the link trying //to get it to load, in which case bring the parent window to the front for them. return false; }