(form "20431" (size 57 20)
  (help   "Select the desired percentiles to be displayed.  "
          "Example: 20,90,2 for all percentile values between 20"
          " and 90 inclusive in increments of 2. "
          "Example: 25;50;75 for percentile values 25, 50 (median) and 75."
  )
    (heading "Statistic Report"
    )

    (label
        (position 2 2)
        (text "Enter Percentile values"
        )
    )

    (field "range" 
      (position 4  2) 
      (display_length 20) 
      (input allowed)
      (format range)
      (null disallowed) 
      (max_length "MAX_RNG_LENGTH")
    )
 
    (field "fname" 
      (position 6 8) 
      (display_length 20) 
      (input allowed)
      (null disallowed)
      (max_length 26)
      (file (extension trim "*.not,*.csv,*.htm,*.html,*.rtf,*.pdf,*.ps,*.txt"))
      (help "The file nominated here will contain the output report data.")
     )

    (label(position 2 5)(text "Output Report File Format"))

    (field "report_format" 
      (position 20 5) 
      (display_length 20) 
      (input allowed)
      (null disallowed)
      (max_length 50)
      (value_in ".txt - Text File"
                ".not - Surpac Note File" 
                ".csv - Comma Separated (Spreadsheet)"
                ".htm - Hypertext Markup Language (Web)"
                ".html - Hypertext Markup Language (Web)"
                ".rtf - Rich Text Format (Microsoft Word)"
                ".pdf - Adobe Acrobat" 
                ".ps - Postscript")
      (help "The file format nominated here will be the output report format.")
    )

    (field "file_append_overwrite"
        (position 50 16)
        (display_length 11)
        (input allowed)
        (null disallowed)
        (value_in "OVERWRITE" "APPEND"
        )
        (default "OVERWRITE")
        (translate upper)
        (help   "Overwrite or append basic statisical results to a file."
        )
    )
    (field "group_data"
        (position 2 19)
        (display_length 10)
        (input allowed)
    )

    (default_buttons)
)
