if .not.exist(popup) return
!
if ((popup%last-popup%first+1)/popup%step.lt.2) then
  MESSAGE W POPUP "Only 1 plane in display"
  return
endif
let PopupName 'PopupName' /upper
if (PopupName.eq."CCT").or.(PopupName.eq."SPECTRE").or.(PopupName.eq."M_") then
  @ p_popup_any &1 &2 &3
else if (PopupName.eq."SELF") then
  @ p_popup_self &1 &2 &3
  @ p_popup_self &1 &2 &3
else if (PopupName.ne." ") then
  @ p_popup &1 &2 &3
endif
