Utilities for dealing with Popup menus.