Create a variable (hasFocus) in the "old" window (the opener) and let the onload="self.focus();" in the new window be onload="self.opener.hasFocus=1;self.focus();"
and check for hasFocus.
It was I who posted this note... I _really_ dislike Internet Explorer. Sometimes it logs me out from PM by itself. Has anyone else had this problem with IE?