I have a link in a remote window that will blur itself and focus the opener window. The problem that I'm running into now is checking from the opener to see if the remote window is open so I can focus it. Here's what I have so far but I'm getting errors.

Code:
if (feedbackWin.closed) {
   feedbackWin=window.open(url,feedbackWin,settings);
}
else {
   feedbackWin.focus();
}
When running this code from the opener window, it errors out saying feedbackWin is undefined even though the window is actually open.

I can detect if the opener is still open but its the remote window thats giving me some grief.

Any suggestions are greatly appreaciated