(form "00685" (size 40 10)
   (help "00685_TIP_0")
  (heading "POLYNOMIAL FIT PARAMETERS")
  (label (position  1  3) (text "Surface to fit"))
  (field "poly" (position 21  3) (display_length  15) (input allowed)
    (default "PLANAR")   
	    (value_in "PLANAR" "QUADRATIC" "CUBIC" 
                      "QUARTIC" "QUINTIC" "USER DEFINED")
    (translate upper) (null allowed) (max_length 15)
    (help "00685_TIP_1"))

  (field "max_x_field" (position  1  4) (display_length 15)
    (foreground (user_option "form_foreground"))
    (background) (input disallowed)
    (default "Maximum x power")
    (dependency (value "poly") == "USER DEFINED")
    (value_in "Maximum x power"))
  (field "max_x" (position 21 4) (display_length 3) (input allowed)
    (dependency (value "poly") == "USER DEFINED") (default "1")
    (translate upper) (format integer_4) (low_bound 0) (high_bound 10)
    (null disallowed) (max_length 3)
    (help "00684_TIP_8"))

  (field "max_y_field" (position  1  5) (display_length 15)
    (foreground (user_option "form_foreground"))
    (background) (input disallowed)
    (default "Maximum y power")
    (dependency (value "poly") == "USER DEFINED")
    (value_in "Maximum y power"))
   (field "max_y" (position 21 5) (display_length 3) (input allowed)
    (dependency (value "poly") == "USER DEFINED") (default "1")
    (translate upper) (format integer_4) (low_bound 0) (high_bound 10)
    (null disallowed) (max_length 3)
    (help "00684_TIP_9"))

   (field "max_total_field" (position  1  6) (display_length 21)
    (foreground (user_option "form_foreground"))
    (background) (input disallowed)
    (default "Maximum total power")
    (dependency (value "poly") == "USER DEFINED")
    (value_in "Maximum total power"))
   (field "max_total" (position 21 6) (display_length 3) (input allowed)
    (dependency (value "poly") == "USER DEFINED") (default "1")
    (translate upper) (format integer_4) (low_bound 0) (high_bound 10)
    (null disallowed) (max_length 3)
   (help "00684_TIP_10"))

  (label (position  1  7) (text "Constrain interpolation?"))

  (field "constr" (position 21  7) (display_length  1) (input allowed)
   (value_in "Y" "N") (default "N")
   (translate upper) (null allowed) (max_length 1)
   (help "00673_TIP_2")
  )

  (default_buttons)
)
