// User submitted recipes
function validPlantTour (planttour) {
	
	// Check if the fields are filled in
	if (planttour.fullName.value == '' && planttour.fromWhere.value == '' && planttour.phone.value == '' && planttour.fromAddress.value == '' && planttour.date.value == '' && planttour.time.value == '' && planttour.participants.value == '' && planttour.level.value == '') {
		alert ('Please fill in the fields.')
		planttour.fullName.focus ()
		return false
	}
	else
	if (planttour.fullName.value == '') {
		alert ('Complete name field cannot be empty.')
		planttour.fullName.focus ()
		return false
	}
	else
	if (planttour.fromWhere.value == '') {
		alert ('Kindly indicate your school or organization.')
		planttour.fromWhere.focus ()
		return false
	}
	else
	if (planttour.phone.value == '') {
		alert ('Contact number(s) field cannot be empty.')
		planttour.phone.focus ()
		return false
	}
	else
	if (planttour.date.value == '') {
		alert ('Kindly indicate your preferred date.')
		planttour.date.focus ()
		return false
	}
	else
	if (planttour.time.value == '') {
		alert ('Kindly indicate your preferred time.')
		planttour.time.focus ()
		return false
	}
	else
	if (planttour.participants.value == '') {
		alert ('Kindly estimate the number of participants.')
		planttour.participants.focus ()
		return false
	}
	
	// If the rest are satisfied, then submit
	else
		return true
}
