function to validate checkboxes

checkbox validation for survey1.
need to adjust function name for radio check, put both radio check and
checkbox validation functions into on function