   $D('connectButton').disabled = true;
                $D('connectButton').value = "Disconnecting";
                irc.disconnect();
            }

            function connected() {
                $D('msg').disabled = false;
                $D('connectButton').disabled = false;
                $D('connectButton').value = "Disconnect";
                $D('connectButton').onclick = disconnect;
            }

            function disconnected() {
                $D('msg').disabled = true;
                $