function checkComments() { if (!document.getElementById("frmComments").Rule.checked) { window.alert("您必须同意使用条款和免责声明!"); return false; } if (!(document.getElementById("frmComments").Txt.value.length>=5)) { window.alert("评论内容只要要5个字符。"); return false; } if (document.getElementById("frmComments").code!=null && document.getElementById("frmComments").code.value=="") { window.alert("请输入验证码。"); return false; } return true; } function Reply_Cmt(Name) { var txt=document.getElementById("frmComments").Txt.value; if (txt.substring(0,2)=="回复" && txt.indexOf(":")) document.getElementById("frmComments").Txt.value="回复"+Name+":"+txt.substr(txt.indexOf(":")+1); else document.getElementById("frmComments").Txt.value="回复"+Name+":"+txt; document.getElementById("frmComments").Txt.focus(); } function Put_Cmt(ID,Name,UName,Tm,Txt) { var reply="" if (UName!="") reply=" 回复"; document.getElementById("User_Comments").innerHTML+="
"+Name+" "+Tm+""+reply+"
您没有登录,可发布匿名评论,匿名评论可能不会立即显示。要使用更多功能,请登录。
");document.write(""); document.write("")