NAME:
    cw_tpmgr
 PURPOSE: (one line)
    Photometry template manager for itool.
 DESCRIPTION:

 CATEGORY:
    Compound Widgets
 CALLING SEQUENCE:
    result = cw_tpmgr( parent )
 INPUTS:
    parent = ID of parent base.
 OPTIONAL INPUT PARAMETERS:

 KEYWORD PARAMETERS:
    TMPLFILE = Name of file containing templates.
    UVALUE   = Optional user value.
 OUTPUTS:

 COMMON BLOCKS:
 SIDE EFFECTS:

 RESTRICTIONS:

 PROCEDURE:

 MODIFICATION HISTORY:
    Written by Doug Loucks, Lowell Observatory, July, 1994. This version
 is completely new.
  97/12/12, MWB, Changed behavior to sort the template list by name.
  2002/04/18, MWB, minor bug fix: when adding new object with a template
                already selected, would crash.