PRO Insert_Sel, names

;+
; NAME:
;	Insert_Sel
; PURPOSE:
;	Insert plot names called in the selection list.
; CATEGORY:
;	Data Management
; CALLING SEQUENCE:
;	Insert_Sel, names
; INPUT:
;	names: the the plot names an array of strings.
; COMMON BLOCK:
;	SelectionRetrieval where the list of the plots selected 
;		is stored.
;-
; MODIFICATION HISTORY:
;	Created in June 1991 by A.Csillaghy.

COMMON SelectionRetrieval, plotsSelected

nbEls = N_Elements( plotsSelected )
IF nbEls EQ 0 THEN plotsSelected = names $
ELSE IF nbEls EQ 1 AND plotsSelected(0) EQ '' THEN $
  plotsSelected = names $
ELSE plotsSelected = [ plotsSelected, names ]

END