function formToRequestString(form_obj) { var query_string=''; var and=''; for (var i=0;icmax) { cobj.value = cobj.value.substring(0,cmax); KesionJS.Alert("評論不能超過"+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('請填(tián)寫用戶名!',"$('#Anonymous').focus()"); return false; } if (anonymous.checked==false && pass.value==''){ KesionJS.Alert('請輸入密碼(mǎ)或選擇遊客發表!','$("#Pass").focus()'); return false; } if (C_Content.value==''||C_Content.value=='文(wén)明上網,請(qǐng)對您的發言負責!'){ KesionJS.Alert('請填寫評論內容!','$("#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('您(nín)沒有(yǒu)綁定新浪費微博賬號,或是授(shòu)權失效!','$("#transweibo").attr("checked",false);'); }else{ $("#transweibo").attr("checked",true); } }); } } document.write('
用戶名: 注冊
 
');