function validate(theForm){
	if (theForm.guestname_1.value=='') {
		alert('please enter at least one guest');
		theForm.guestname_1.focus();
		return false;
	}
	if (!emailCheck(theForm.guestemail_1.value)){
		theForm.guestemail_1.value = '';
		theForm.guestemail_1.focus();
		return false;
	}
	if (theForm.fullname.value=='') {
		alert('please enter your name');
		theForm.fullname.focus();
		return false;
	}
	if (!emailCheck(theForm.email.value)){
		theForm.email.value = '';
		theForm.email.focus();
		return false;
	}
	if (theForm.time.value=='') {
		alert('please enter a time');
		theForm.time.focus();
		return false;
	}
	return true;
}