Inform me () when using this script or encorporating it in a library.

Source code of minmax.pro:
;+
; NAME:
;       MINMAX
; PURPOSE:
;       Returns minimum and maximum value of an array and, if wanted,
;       the corresponding indices
; CALLING SEQUENCE:
;       MINMAX, array, idx
; EXAMPLES:
;       print, minmax([0.1, 0.3, 0.2, 0.5], idx)
;           prints 0.100000     0.500000
;       print, idx
;           print  0           3
; KEYWORDS:
;       NONE
; MODIFICATION HISTORY:
;       Before 05/06/2007 Written by Eduard Westra
;-
FUNCTION minmax, array, idx
  mn  = min(array, mnIdx, max=mx, subscript_max=mxIdx, /nan)
  idx = [mnIdx, mxIdx]
  RETURN, [mn, mx]
END