function survey_onsubmit(theform){
	if(theform.firstname.value==''){
		alert('You must enter your First Name');
		theform.firstname.select();
		return false;
	}
	if(theform.lastname.value==''){
		alert('You must enter your Last Name');
		theform.lastname.select();
		return false;
	}                
	if(!isEmail(theform.eemail.value)){
		alert('Please enter a valid Email address.');
		theform.eemail.select();
		return (false);
	}

	return (true);
}

function check_cdfs(form) {
	date_prefixes = new Array(1);
	date_prefixes[0] = "cd";
	return check_date_entry_fields(form, date_prefixes, false);
}

function doSubmit() {
	if (check_cdfs(document.survey)) {
		if (survey_onsubmit(document.survey)) {
			document.survey.submit();
		} else {
			return false;
		}
	} else {
		return false;
	}
}
