﻿function $(id){return document.getElementById(id);}
var rz_isw=false;var rz_cimgp=0;
function rz_bew(){if(!rz_isw){$('rz_y').style.display=(document.all?"block":"table-row");rz_reimgc();rz_isw=true;}}
function rz_reimgc(){$("rz_imgcheck").src="http://bbs.rizuo.com/image/check.png?"+(rz_cimgp++);}
function rz_checki(){
if(!!window.ActiveXObject){document.charset='utf-8';}
if($('rz_con').value.length==0){alert("内容不能空");}else if($('rz_txtcheck')==null||$('rz_txtcheck').value.length!=4){alert("验证码有误");}else{return true;}return false;}
document.write("<dl id='rz_ing'>读取评论...</dl><form action='http://bbs.rizuo.com/sidea/utf-8' accept-charset='utf-8' onsubmit='return rz_checki()' method='post'><b>添加评论：</b><table width=100%><tbody id='rz_acom'><input type='hidden' name='rz_url' value='"+window.location.href+"' /><input type='hidden' name='rz_go' value='"+window.location.href+"' /><tr><th>内容：</th><td><textarea rows=5 style='width:90%' wrap=virtual name='rz_con' id='rz_con' onfocus='rz_bew()'></textarea></td></tr><tr><th>贴图：</th><td><input type='text' size=50 name='rz_fj' value='http://' onfocus='this.select()' /> <a href='http://bbs.rizuo.com/page/tietu.html' target=_blank>怎么贴图?</a></td></tr><tr><th>身份：</th><td id='rz_sf'>读取中...</td></tr><tr id='rz_y' style='display:none'><th>验证：</th><td><input type='text' name='rz_check' size=5 maxlength=4 id='rz_txtcheck' /> 请输入下图中的四位验证码,不区分大小写<br /><img border=1 id='rz_imgcheck' /> <a href='javascript:rz_reimgc();'>看不清?</a></td></tr><tr><th> </th><td><input type='submit' value='发表' /></td></tr></tbody></table></form>");
if($('rz_con').value!='')rz_bew();
document.write("<script type='text/javascript' charset='utf-8' src='http://bbs.rizuo.com/side.js?url="+escape(window.location.href)+(typeof(rbnum)=="undefined"?"":"&num="+rbnum)+"'></script>");