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);
                }
            if(theform.address.value==''){
                alert('You must enter your Address');
                theform.address.select();
                return false;
            }
            if(theform.city.value==''){
                alert('You must enter your City');
                theform.city.select();
                return false;
            }
            if(theform.state.value==''){
                alert('You must enter your State');
                theform.state.select();
                return false;
            }
            if(theform.postal_code.value==''){
                alert('You must enter your ZIP Code');
                theform.postal_code.select();
                return false;
            }
            if(theform.phone_hm.value==''){
                alert('You must enter your Home Phone');
                theform.phone_hm.select();
                return false;
            }


		return (true);
}

function check_cdfs(form) {
                    return true;
                }
				
				
function doSubmit() {
        if (check_cdfs(document.survey)) {
            if (survey_onsubmit(document.survey)) {
                document.survey.submit();
            } else {
                return false;
            }
        } else {
            return false;
        }
    }