120/118行:
if (document.hyzc.yhm.value!=="")and (document.hyzc.email.value!=="")
修改为:if ((document.hyzc.yhm.value!="") && (document.hyzc.email.value!=""))
if (document.hyzc.yhm.value!=="")and (document.hyzc.email.value!=="")
修改为:if ((document.hyzc.yhm.value!="") && (document.hyzc.email.value!=""))
and 不是javascript关键字,用&&
if后面的用()括起来。
可以直接return true;if (document.hyzc.yhm.value!=="")and (document.hyzc.email.value!=="")
{
return true;
}