function validateContact(theForm) {
	if(theForm.name.value == "") {
		alert("请输入您的名字。");
		theForm.name.focus();
		return;
	} else if(!getEmailIsValid(theForm.email.value)) {
		alert("对不起，您的电邮不正确，请重新输入。");
		theForm.email.focus();
		return;
	} else if(theForm.message.value == "") {
		alert("请输入您的讯息。");
		theForm.message.focus();
		return;
	}
  
	theForm.submit();
}
