Add native IE function to close the popup.

- refactors CNativeControls::popup_visible to use its second parameter
  to determine whether to show or hide the popup -- currently, this
  function was only being used to show the popup.