function reply(id,pq,level){var cmdiv=document.getElementById("cmd"+id);var rdiv=document.createElement("DIV");rdiv.id="rpd"+id;rdiv.className="rpd";rdiv.innerHTML="<form name=\"af"+id+"\" action=add.comment method=post style=\"clear:left\">"+"\t<input name=pq type=hidden value=\""+pq+"\">"+"\t<input name=sub type=hidden value=\"c\">"+"\t<input name=id type=hidden value=\""+id+"\">"+"\t<textarea id=\"bd"+id+"\" name=body rows=\"6\" class=\"textinp\" style=\"font-size:0.8em;width:"+(738-(level*36))+"px\""+" maxlength=\"9000\" onchange=\"return ismaxlength(this)\" onclick=\"return ismaxlength(this)\" onkeyup=\"return ismaxlength(this)\" onkeydown=\"return ismaxlength(this)\" onkeypress=\"return ismaxlength(this)\" onpaste=\"return ismaxlength(this)\" oninput=\"return ismaxlength(this)\">"+"</textarea>"+"\t<input name=\"abtn\" type=submit value=\"Post Reply\" style=\"margin-top:3px;font-size:0.8em;display:block\">"+"</form>";cmdiv.appendChild(rdiv);var rscr=document.createElement("SCRIPT");rscr.type="text/javascript";rscr.text="document.af"+id+".onsubmit = function() { if (trim(document.getElementById(\"bd"+id+"\").value) == '') return false; return allows(document.af"+id+".abtn) }";cmdiv.appendChild(rscr);var rpa=document.getElementById("rpa"+id);rpa.href="javascript:noreply('"+id+"','"+pq+"',"+level+")";rpa.innerHTML="Cancel";document.getElementById("bd"+id).focus();};function noreply(id,pq,level){var cmdiv=document.getElementById("cmd"+id);cmdiv.removeChild(document.getElementById("rpd"+id));var rpa=document.getElementById("rpa"+id);rpa.href="javascript:reply('"+id+"','"+pq+"',"+level+")";rpa.innerHTML="Reply";}
