function xmlhttp() { var A=null; try { A=new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { A=new ActiveXObject("Microsoft.XMLHTTP"); } catch(oc) { if (typeof XMLHttpRequest != 'undefined' ); { A=new XMLHttpRequest(); } } } return A; } var loader=new xmlhttp; function ajaxLoadPage(url,request,method,fun) { method=method.toUpperCase(); if (method=='GET') { urls=url.split("?"); if (urls[1]=='' || typeof urls[1]=='undefined') { url=urls[0]+"?"+request; } else { url=urls[0]+"?"+urls[1]+"&"+request; } request=null; } loader.open(method,url,true); if (method=='POST') { loader.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); } loader.onreadystatechange=function(){ eval(fun+'()'); } loader.send(request); } 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 { jQuery('#cmax').html(cmax-cobj.value.length); } } function checkcommentform() { if (jQuery('#AnounName').val()==''){ KesionJS.Alert('请填写用户名!',"jQuery('#AnounName').focus();"); return false; } if (jQuery('#Anonymous')[0].checked==false && jQuery('#Pass').val()=='') { KesionJS.Alert('请输入密码或选择游客发表!',"jQuery('#Pass').focus();"); return false; } if (jQuery('#VerifyCode').val()==''){ KesionJS.Alert('请入验证码!',"jQuery('#VerifyCode').focus();"); return false; } if (jQuery('#C_Content').val()==''||jQuery('#C_Content').val()=='文明上网,登录发言!'){ KesionJS.Alert('请填写评论内容!',"jQuery('#C_Content').focus();"); return false; } jQuery('#sC_Content').val(jQuery('#C_Content').val()); ajaxFormSubmit(document.form1,'success') } document.write('
用户名: 密   码: 验证码: 注册0条评论
还可以输入200个字。
');