popup blocker. originally http://thecodeabode.blogspot.com/2010/11/window-open-popup-blocker-detect-for.html