function formToRequestString(form_obj) { var query_string=''; var and=''; for (var i=0;icmax) { cobj.value = cobj.value.substring(0,cmax); KesionJS.Alert("評論(lùn)不能超過(guò)"+cmax+"個字符!"); } else { document.getElementById('cmax').value = cmax-cobj.value.length; } }function checkcommentform(){ var anounname=document.getElementById('AnounName'); var C_Content=document.getElementById('C_Content'); var sC_Content=document.getElementById('sC_Content'); var anonymous=document.getElementById('Anonymous'); var pass=document.getElementById('Pass'); if (anounname.value==''){ KesionJS.Alert('請填寫用戶名!',"$('#Anonymous').focus()"); return false; } if (anonymous.checked==false && pass.value==''){ KesionJS.Alert('請輸入密碼或選擇遊客發表!','$("#Pass").focus()'); return false; } if (C_Content.value==''||C_Content.value=='文明上網,請對您的發言負責!'){ KesionJS.Alert('請填寫評論內容(róng)!','$("#C_Content").focus();'); return false; } sC_Content.value=C_Content.value; ajaxFormSubmit(document.form1) } function checkbindweibo(){ if ($("#transweibo")[0].checked){ jQuery.post("/user/UserAjax.asp",{action:'CheckToken',checktype:"sinaweibo"},function(d){ if (d!='success'){ KesionJS.Alert('您沒(méi)有綁(bǎng)定新浪費微博賬號(hào),或是授權失效(xiào)!','$("#transweibo").attr("checked",false);'); }else{ $("#transweibo").attr("checked",true); } }); } } document.write('
已有 條跟帖(點擊查看)
用戶名: 注冊
 
');