+ return false;
+ }
+ }
+
+ function rcsetinitialnick() {
+ if (document.getnickform.initial_nick.value) {
+ rcsetnick(document.getnickform.initial_nick.value);
+ document.getElementById("getnick").style.display = 'none';
+ document.getElementById("client").style.display = 'block';
+ rcconnect();
+ }
+ return false;
+ }
+
+ // From http://www.alistapart.com/articles/expanding-text-areas-made-elegant/
+ function makeExpandingArea(container) {
+ var area = container.querySelector('textarea');
+ var span1 = container.querySelector('span');
+ var span2 = document.getElementById('historypad');
+ if (area.addEventListener) {
+ area.addEventListener('input', function() {
+ span1.textContent = area.value;
+ span2.textContent = area.value;
+ }, false);
+ span1.textContent = area.value;
+ span2.textContent = area.value;
+ } else if (area.attachEvent) {
+ // IE8 compatibility
+ area.attachEvent('onpropertychange', function() {
+ span1.innerText = area.value;
+ span2.innerText = area.value;
+ });
+ span1.innerText = area.value;
+ span2.innerText = area.value;