} return false; } function addReply() { if (click > 1) { _error_msg_show('您提交的次数太多了,请等待,再提交!'); return false; } click++; if (!chkAdd()) return; click = 0; var chinaurl = document.replyForm.userurl.value; if (chinaurl != '' && !aiChina(chinaurl)) { document.replyForm.userurl.value = "http://blog.china.com"; } with (document.replyForm) { //action = action+"?method=addReply"; action = "/replyAction.do?method=addReply"; submit(); } } function chkAdd() { var usernameValue = document.getElementById('username').value; if (usernameValue == null || usernameValue == '') { click = 0; _error_msg_show('你忘记填写昵称了:S'); return false; } else if (hasSymbol(usernameValue)) { _error_msg_show('昵称不能包含特殊字符'); return false; } else if (getLength(usernameValue) < 1 || getLength(usernameValue) > 60) { click = 0; _error_msg_show('昵称太长,必须小于60个字符'); return false; } var userurlValue = document.getElementById('userurl').value; if (getLength(userurlValue) > 50) { click = 0; _error_msg_show('主页太长,必须小于50个字符'); return false; } var contentValue = document.getElementById('content').value; if (contentValue == null || contentValue == '') { click = 0; _error_msg_show('你忘记填写评论内容了:S'); return false; } else if (getLength(contentValue) < 1 || getLength(contentValue) > 900) { click = 0; _error_msg_show('评论内容太长,必须小于900个字符'); return false; } return true; } function getLength(str) { var num = str.replace(/[^\x00-\xff]/g, "**").length; return num; } function getImage() { Intro.style.display = "block"; var ichina = document.URL.indexOf("china.com"); if (ichina < 0) { window.location.href = "http://blog.china.com"; } document.getElementById("c_codeInputBox").innerHTML = " 看不清验证码?"; } function ubbTag(target, markup) { var txa = document.getElementsByName(target)[0]; txa.value += markup; }
 
} return false; } function addReply() { if (click > 1) { _error_msg_show('您提交的次数太多了,请等待,再提交!'); return false; } click++; if (!chkAdd()) return; click = 0; var chinaurl = document.replyForm.userurl.value; if (chinaurl != '' && !aiChina(chinaurl)) { document.replyForm.userurl.value = "http://blog.china.com"; } with (document.replyForm) { //action = action+"?method=addReply"; action = "/replyAction.do?method=addReply"; submit(); } } function chkAdd() { var usernameValue = document.getElementById('username').value; if (usernameValue == null || usernameValue == '') { click = 0; _error_msg_show('你忘记填写昵称了:S'); return false; } else if (hasSymbol(usernameValue)) { _error_msg_show('昵称不能包含特殊字符'); return false; } else if (getLength(usernameValue) < 1 || getLength(usernameValue) > 60) { click = 0; _error_msg_show('昵称太长,必须小于60个字符'); return false; } var userurlValue = document.getElementById('userurl').value; if (getLength(userurlValue) > 50) { click = 0; _error_msg_show('主页太长,必须小于50个字符'); return false; } var contentValue = document.getElementById('content').value; if (contentValue == null || contentValue == '') { click = 0; _error_msg_show('你忘记填写评论内容了:S'); return false; } else if (getLength(contentValue) < 1 || getLength(contentValue) > 900) { click = 0; _error_msg_show('评论内容太长,必须小于900个字符'); return false; } return true; } function getLength(str) { var num = str.replace(/[^\x00-\xff]/g, "**").length; return num; } function getImage() { Intro.style.display = "block"; var ichina = document.URL.indexOf("china.com"); if (ichina < 0) { window.location.href = "http://blog.china.com"; } document.getElementById("c_codeInputBox").innerHTML = " 看不清验证码?"; } function ubbTag(target, markup) { var txa = document.getElementsByName(target)[0]; txa.value += markup; }