var zz_SplitRecordSet_commentsubmit=false; function zz_SplitRecordSet_showcomment(logid,currentpage) { if (zz_SplitRecordSet_commentsubmit) { alert("正在提交中,请稍候..."); } else { zz_SplitRecordSet_commentsubmit = true; var zz_SplitRecordSet_errstr = ""; //判断是否有错,这里应该没有 if (zz_SplitRecordSet_errstr != "") { alert(zz_SplitRecordSet_errstr); zz_SplitRecordSet_commentsubmit = false; } else { //alert("这里无错误"); var Ajax = new ZZ_SplitRecordSet_Ajax("http://blog.iszweb.com/PLUGIN/ZZ_SplitRecordSet/log_comment.asp?act=showcomment", zz_SplitRecordSet_result_showcomment); var arrKey = new Array("logid","currentpage"); var arrValue = new Array(logid,currentpage); Ajax.Post(arrKey,arrValue); } } } function zz_SplitRecordSet_result_showcomment(arrobj) { if (arrobj) { switch (arrobj[1]) { case '0': alert(arrobj[0]); zz_SplitRecordSet_commentsubmit=false; break; case '1': ZZ_SplitRecordSet_set_innerHTML('div_SplitRecordSet_ArticleComment', arrobj[0]); zz_SplitRecordSet_commentsubmit=false; break; } } } zz_SplitRecordSet_showcomment(341,1);