(form "downholeVariogram" (size 64 20)
	(heading "COMPOSITE DOWNHOLE")

	(label (position	4  8) (text "Composite length"))
	(label (position	4  9) (text "Minimum % of sample to be included"))
	(label (position	4 10) (text "Define the zone selection method"))
	(label (position	4 11) (text "Dilute negative samples"))

	(field "comp_len" (position 35	8) (display_length	5) (input allowed)
		(low_bound 0) (high_bound 999)
		(translate upper) (format real_8) (null disallowed) (max_length 5)
		(help "")
	)
	(field "comp_min" (position 35	9) (display_length	3) (input allowed)
		(low_bound 1) (high_bound 100)
		(translate upper) (format real_8) (null disallowed) (max_length 3)
		(help "")
	)
        (field "composite_length_method" (position 35  8) (display_length  12) 
               (input allowed) (translate lower)
               (null allowed) (max_length 11)
               (value_in "fixed length" "best fit")
        )
	(field "selection" (position 35 10) (display_length 20) (input allowed)
		(value_in "NO SELECTION" "MULTIPLE ZONES" "ZONE FROM TO")
		(default "NO SELECTION")
		(translate upper) (null disallowed)
		(help "")
	)
	(field "dilution" (position 35 11) (display_length	1) (input allowed)
		(value_in "Y" "N")
		(translate upper) (null allowed) (max_length 1)
		(help "")
	)

	(label (position	4 12) (text "Table name"))
	(field "table" (position 35 12) (display_length  18) (input allowed)
		(null disallowed) (max_length 18)(exclusive_value_list)
		(help "")
		)


	(label (position	4 14) (text "Fields to be composited"))
	(scroll_block "composite_fields" (position	4  16) (size 14  2)
		 (extra  0	1)
		 (scroll_size 14 10)
		 (repeat interactive (grow	0  1) (instances	1 (min	1) (max 20)))
		(top
			(label (position	1  0) (text "Field Name"))
		)
		(main
	(field "composite_field" (position 1 0) (display_length 10)
					(input allowed)
					(null allowed) (max_length 18)
					(help "")
			)
		)
	)

	(label (position	26 14) (text "Optional weighting fields"))
	(scroll_block "weighting_fields" (position	26	16) (size 35	2)
		 (extra  0	1)
		 (scroll_size 35 5)
		 (repeat interactive (grow	0  1) (instances	1 (min	1) (max 5)))
		(top
			(label (position	1  0) (text "Field Name"))
			(label (position	14	0) (text "Default"))
			(label (position	23	0) (text "Include Limit"))
		)
		(main
	(field "weighting_field" (position 1 0) (display_length 10)
					(input allowed)
					(null allowed) (max_length 18)
					(help "")
			)

	(field "weighting_default" (position 14 0) (display_length 4) 
					(input allowed) (default "1")
					(low_bound 0.0) (null disallowed) (max_length 10)
					(help "")
			)
	(field "weighting_limit" (position 23 0) (display_length 4) 
					(input allowed) (format real_8)
					(low_bound 0.0001) (null allowed) (max_length 10)
					(help "")
		  )
		)
	)
	(default_buttons)
)
