function validation() {
	var errs = '';
	var first = '';
	if (document.subscribe.firstname.value.length < 1) {
		errs += '   first name \n';
	}
	if (document.subscribe.lastname.value.length < 1) {
		errs += '   last name \n';
	}
    var emailPat = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    var matchArray = document.subscribe.email.value.match(emailPat);
    if (document.subscribe.email.value.length > 1) {
	    if (matchArray == null) {
	        errs += '   email (must be a valid email address) \n';
        }
    }	
	if (document.subscribe.email.value.length < 1) {
		errs += '   email address \n';
	}
	if (errs.length > 3) {
		errs = 'You are missing some required fields.\n\nPlease provide: \n' + errs; 
		alert(errs); 
		return false;
	} else {
		return true;
	}
}
