In hindsight, it seems that the popups are actually JavaScript dialog boxes, not popup windows, so that might assist others in debugging.