﻿function createSnapbackLink(d){removeSnapbackLink();var e=document.createElement("DIV");e.id="snapback_link";var c=document.createElement("A");c.href="#reply_"+d;c.onclick=function(){highlightReply(d);removeSnapbackLink()};c.className="help_cursor";c.title="Click me to snap back!";var b=document.createElement("STRONG");b.appendChild(document.createTextNode("↕"));c.appendChild(b);e.appendChild(c);document.body.appendChild(e)}function init(){if(document.getElementById(window.location.hash.substring(1))&&window.location.hash.indexOf("reply_")!=-1){highlightReply(window.location.hash.substring(7))}else{if(window.location.hash.indexOf("new")!=-1){highlightReply(document.getElementById("new_id").value)}}}window.onload=init;function highlightReply(c){var b=document.getElementsByTagName("div");for(var a=0;a<b.length;a++){if(b[a].className.indexOf("body")!=-1){b[a].className=b[a].className.replace(/highlighted/,"")}}if(c){document.getElementById("reply_box_"+c).className+=" highlighted"}}function focusId(a){document.getElementById(a).focus();init()}function submitDummyForm(d,a,e,f){if(f===undefined){var b=confirm("Really?")}else{var b=confirm(f)}if(b){var c=document.getElementById("dummy_form");c.action=d;c.some_var.name=a;c.some_var.value=e;c.submit()}return false}function updateCharactersRemaining(b,c,a){tmp=document.getElementById(c);tmp.firstChild.data=a-document.getElementById(b).value.length}function printCharactersRemaining(b,a){document.write(' (<STRONG ID="'+b+'">'+a+"</STRONG> characters left)")}function removeSnapbackLink(){var a=document.getElementById("snapback_link");if(a){a.parentNode.removeChild(a)}}function highlightTopic(c){var b=document.getElementsByTagName("div");for(var a=0;a<b.length;a++){if(b[a].className.indexOf("body")!=-1){b[a].className=b[a].className.replace(/highlighted/,"")}}if(c){document.getElementById("topic_box_"+c).className+=" highlighted"}}