Grisu #1 Well, I made global var that tells me which window is currently open, so I know which window to close.