(form "00353" (size 80 21)
  (heading "ENTER CHANNEL SURVEY OBSERVATIONS")
  (label (position  2  3) 
     (text "Enter the channel survey observations from approximate survey locations. The sample range is "))
  (label (position  2  4) 
     (text "used to define the locations of each of the samples within the channel. Do not start the range "))
  (label (position  2  5) 
     (text "with 0 (zero), as the first sample is assumed to start at the beginning of the channel"))
  (scroll_block "main" (position  2  8) (size 76 11)
     (extra  0  2)
     (scroll_size 120 200)
     (repeat interactive (grow  0  1) (instances  1 (min  1) (max 200)))
    (main)
    (top
      (label (position  1  1) (text "Channel ID"))
      (label (position  12  0) (foreground (user_option "form_text_highlight"))
         (text "Define the Channel reference point"))
      (label (position 12  1) (text "Y"))
      (label (position 24  1) (text "X"))
      (label (position 36  1) (text "Z"))
      (label (position 48  0) (foreground (user_option "form_text_highlight"))
         (text "Define the channel start position"))
      (label (position 48  1) (text "Bearing"))
      (label (position 58  1) (text "Dip"))
      (label (position 68  1) (text "Slope Dist"))
      (label (position 78  0) (foreground (user_option "form_text_highlight"))
        (text "Define the channel orientation and length"))
      (label (position 78  1) (text "Bearing"))
      (label (position 88  1) (text "Dip"))
      (label (position 98  1) (text "Sample range"))
    )
    (main
      (field "channel_id" (position  1  0) (display_length  10) (input allowed)
        (max_length 32) (translate upper) (null disallowed)
        )
      (field "y" (position  12  0) (display_length  10) (input allowed)
        (max_length 16) (default "0") (initialise (value "y(-1)"))
        (format real_8) (null disallowed)
        )
      (field "x" (position  24  0) (display_length  10) (input allowed)
        (max_length 16) (default "0") (initialise (value "x(-1)"))
        (format real_8) (null disallowed)
        (help (field "y")))
      (field "z" (position  36  0) (display_length  10) (input allowed)
        (max_length 16) (default "0") (initialise (value "z(-1)"))
        (format real_8) (null disallowed) 
        (help (field "y")))
      (field "start_bearing" (position 48  0) (display_length  8) 
        (input allowed) (low_bound 0) (high_bound 360) (max_length 16)
        (initialise (value "start_bearing(-1)"))
        (default "0") (format real_8) (null disallowed)
        )
      (field "start_dip" (position 58  0) (display_length  8) 
        (input allowed) (low_bound -90) (high_bound 90) (max_length 16)
        (initialise (value "start_dip(-1)"))
        (default "0") (format real_8) (null disallowed) 
        )
      (field "slope_dist" (position 68  0) (display_length  8) 
        (input allowed) (low_bound 0) (max_length 16)
        (initialise (value "slope_dist(-1)"))
        (default "0") (format real_8) (null disallowed) 
        )
      (field "channel_bearing" (position 78  0) (display_length  8) 
        (input allowed) (low_bound 0) (high_bound 360) (max_length 16)
        (initialise (value "channel_bearing(-1)"))
        (default "0") (format real_8) (null disallowed) 
        )
      (field "channel_dip" (position 88  0) (display_length  8) 
        (input allowed) (low_bound -90) (high_bound 90) (max_length 16)
        (initialise (value "channel_dip(-1)"))
        (default "0") (format real_8) (null disallowed) 
        )
      (field "sample_range" (position 98  0) (display_length  16) 
        (input allowed) (low_bound 0) (max_length "MAX_RNG_LENGTH")
        (initialise (value "sample_range(-1)"))
        (format range) (null disallowed)
        )
    )
  )
  (default_buttons)
)
