(form "20414" (size 56 19)
    (help  "TrandAnalysis_Formhlp"
    )
    (heading "Trend Analysis"
    )

     (field "fname"
        (position 12 17)
        (display_length 20.5)
        (max_length 256)
        (translate lower)
        (input allowed)
        (null allowed)
        (file output
            (extension trim "*.not")
        )
        (default "")
        (help   "TrendAnalysis_fileOutput"
        )
    )

    (field "report_format"
      (position 12 17)
      (display_length 18)
      (input allowed)
      (null disallowed)
      (max_length 50)
      (value_in ".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.")
    )

    (label 
        (position 2 5) 
        (text "Description Fields for Data"
        )
    )
    (scroll_block "dfields"
        (position 2 7)
        (size 50 3)
        (extra 0 1)
        (scroll_size 50 3)
        (repeat interactive
            (grow 0 1)
            (instances 7
                (min 1)
                (max 99)
            )
        )
        (top
            (label
                (position 2 0)
                (text "location"
                )
            )
            (label
                (position 11 0)
                (text "Name"
                )
            )
            (label
                (position 26 0)
                (text "D Field"
                )
            )
            
        )
        (main
          (field "location" 
            (position 7 3) 
            (display_length 10) 
            (input allowed)
            (translate lower) 
            (null allowed) 
            (max_length 26)
            (file 
            (link "id") 
            (extension "*.str")
            )
            (help "TrendAnaysis_InputFilename"
            )
          )

          (field "id"
               (position 22 3) 
                (display_length 10) 
                (input allowed)
                (translate upper) 
                (format range) 
                (null allowed) 
                (max_length 16)
                (default "1") 
                (help "BasicStats_FileIdhlp")
          )
            
          (field "str"
              (position 37 3) 
              (display_length 10) 
              (input allowed)
              (format range) 
              (max_length 26) 
              (help "TrendAnalysis_strField")
          )

          (field "dfield"
                (position 1 0)
                (display_length 3)
                (max_length 30)
                (input allowed)
                (format string_field)
                (value_in
                    "D1" "D2" "D3" "D4" "D5" "D6" "D7" "D8" "D9" "D10"
                    "D11" "D12" "D13" "D14" "D15" "D16" "D17" "D18" "D19" "D20"
                    "D21" "D22" "D23" "D24" "D25" "D26" "D27" "D28" "D29" "D30"
                    "D31" "D32" "D33" "D34" "D35" "D36" "D37" "D38" "D39" "D40"
                    "D41" "D42" "D43" "D44" "D45" "D46" "D47" "D48" "D49" "D50"
                    "D51" "D52" "D53" "D54" "D55" "D56" "D57" "D58" "D59" "D60"
                    "D61" "D62" "D63" "D64" "D65" "D66" "D67" "D68" "D69" "D70"
                    "D71" "D72" "D73" "D74" "D75" "D76" "D77" "D78" "D79" "D80"
                    "D81" "D82" "D83" "D84" "D85" "D86" "D87" "D88" "D89" "D90"
                    "D91" "D92" "D93" "D94" "D95" "D96" "D97" "D98" "D99" "D100"
                )
                (default "D1")
                (help   "Give the description field in which the data is to be found."
                )
          )

          (field "label"
              (position 10 0)
              (display_length 12)
              (max_length 30)
              (input allowed)
              (auto_next off)
              (help   "BasicStatsVarName"
              )
          )

          (field "min"
                (position 25 0)
                (display_length 10)
                (input allowed)
                (format real_8)
                (help   "BasicStatsMinVarValue"
                )
          )

          (field "max"
                  (position 38 0)
                  (display_length 10)
                  (input allowed)
                  (format real_8)
                  (help   "BasicStatsMaxVarValue"
                  )
          )
        )

      )

    (label
        (position 2 2)
        (text "Percentile_range_:"
        )
    )

    (field "range" 
      (position 4  2) 
      (display_length 12) 
      (input allowed)
      (format range)
      (null disallowed) 
      (max_length 20)
    )

    (label
        (position 2 25)
        (text "Treat negative values as"
        )
    )
    (field "negative"
        (position 26 25)
        (display_length 11)
        (input allowed)
        (null disallowed)
        (value_in "ZEROES" "UNDEFINED" "NEGATIVES"
        )
        (default "NEGATIVES")
        (translate upper)
        (help   "BasicStatsNegValueAs"
        )
    )
    
     (label 
      (position 2 5) 
      (text "Co-ordinate Constraint Fields for Data"  )
     )
 
    (scroll_block "dfields_Constraints"
        (position 2 7)
        (size 50 3)
        (extra 0 1)
        (scroll_size 50 3)
        (repeat interactive
            (grow 0 1)
            (instances 7
                (min 1)
                (max 99)
            )
        )
        (top
            (label
                (position 2 0)
                (text "location"
                )
            )
            (label
                (position 11 0)
                (text "Name"
                )
            )
            (label
                (position 26 0)
                (text "D Field"
                )
            )
            
        )
        (main


          (field "file_name"
                (position 25 0)
                (display_length 10)
                (max_length 256)
                (input disallowed)
          )

          (field "min0"
                    (position 38 0)
                    (display_length 14)
                    (input allowed)
                    (format real_8)
            )           
            (field "max0"
                    (position 38 0)
                    (display_length 14)
                    (input allowed)
                    (format real_8)
            )
            (field "min1"
                    (position 38 0)
                    (display_length 14)
                    (input allowed)
                    (format real_8)
            )
            (field "max1"
                    (position 38 0)
                    (display_length 14)
                    (input allowed)
                    (format real_8)
            )
            (field "min2"
                    (position 38 0)
                    (display_length 14)
                    (input allowed)
                    (format real_8)
            )
            (field "max2"
                    (position 38 0)
                    (display_length 14)
                    (input allowed)
                    (format real_8)
            )
                    
        )

      )
    
    (default_buttons)
)
