Begin port-in of popupWrapper to replace SimpleDialog.  STATUS: BROKEN