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('璇峰~鍐欑敤鎴峰悕!',"$('#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('璇峰~鍐欒瘎璁哄唴瀹�!','$("#C_Content").focus();');
return false;
}
sC_Content.value=C_Content.value;
ajaxFormSubmit(document.form1)
}
function checkbindweibo(){
if ($("#transweibo")[0].checked){
jQuery.post("http://www.zhpecwh.cn/user/UserAjax.asp",{action:'CheckToken',checktype:"sinaweibo"},function(d){
if (d!='success'){
KesionJS.Alert('鎮ㄦ病鏈夌粦瀹氭柊娴垂寰崥璐﹀彿锛屾垨鏄巿鏉冨け鏁堬紒','$("#transweibo").attr("checked",false);');
}else{
$("#transweibo").attr("checked",true);
}
});
}
}
document.write('');