function checkSubmit () {
	msg = '';
	if(form1.terms.value != 'Yes' ) {
		msg = 'You must agree to the Terms and Conditions to enter the contest.\n';
	}

	var validDateFormat=/^\d{1,2}\/\d{1,2}\/\d{2,4}$/;
	if (!validDateFormat.test(form1.dob.value)) {
		msg = msg + 'Date of Birth must be in mm/dd/yyyy format.\n';
	}
	
	if !(form1.email.value.indexOf("@") > 0) {
			msg = msg + 'Please enter a valid Email.\n';
	}
	
	if !(form1.email_repeat.value.indexOf("@") > 0) {
			msg = msg + 'Please enter a valid Email (repeat).\n';
	}
	
	if (!(form1.email.value == form1.email_repeat.value)) {
		msg = msg + 'Both email addresses must match.\n';
	}
	
	if(msg != '' ) {
		alert(msg);
		return false;
	}
	return true;
	}

