Where is the code that opens the popup window? I tried the popup code here I don't see a problem on IE, what I did I created a popup window and then used the close_this_window() function. Other than declaring the $pageoffset var before using it, I could not see a problem. The popup was closed as expected.
Any js errors that show up when you run it on IE?