function checkForm(theForm) {    
    if(theForm.name.value=='') {
        alert('錯誤！\n\n\t請填寫聯絡人姓名!\n');
        theForm.name.focus();
        return false;
    }    
	if (theForm.address.value==''){
        alert('錯誤！\n\n\t地址不可空白!');
        theForm.address.focus();
        return false;
    }
    if(theForm.phone.value =='') {
        alert('錯誤！\n\n\t電話請勿空白!\n');
        theForm.phone.focus();
        return false;
    }
    if(!theForm.email.value.match(/^.+@.+\..{2,4}$/)) {
		alert("錯誤！\n\n\t電子郵件不正確!");
		theForm.email.focus();
		return false;
	}
	/*
    if(theForm.content.value=='') {        
        alert('錯誤！\n\n\t請填寫訊息!');
        theForm.content.focus();
        return false; 
    }
    */
}
