function xmlhttp() { if(window.XMLHttpRequest){ return new XMLHttpRequest(); } else if(window.ActiveXObject){ return new ActiveXObject("Microsoft.XMLHTTP"); } throw new Error("XMLHttp object could be created."); } 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 { 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; try{ajaxFormSubmit(document.form1,'success'); }catch(e){ document.form1.action="http://www.qssyiyi.com/plus/Comment.asp?Action=WriteSave&flag=NotAjax"; document.form1.submit(); } } function checkbindweibo(){ if ($("#transweibo")[0].checked){ jQuery.post("http://www.qssyiyi.com/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('
已有 0 条跟帖(点击查看)
用户名: 注册
 
');