function ValidateForm(theForm)
{
	theForm.systemTest.value="on";
	
	if ( theForm.guestMan.value.length<=0)
	{
		alert("“联系人”不能为空");
		theForm.guestMan.focus();
		return false;
	}	
	
	if (theForm.eMail.value.length<1 || theForm.eMail.value.length>50)
	{
		alert("请正确输入“E-Mail”信息");
		theForm.eMail.focus();
		return false;
	}
    var emailpattern = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
	if (!emailpattern.test(theForm.eMail.value))
	{
		alert("请正确输入“EMail”信息");
		theForm.eMail.focus();
		return false;
	}

	if ( theForm.guestBody.value.length>=300)
	{
		alert("“内容”信息请不要超过300个字");
		theForm.guestBody.focus();
		return false;
	}	
	theForm.frmSubmit.disabled=true;
}