ction message(str) {
            console.log(str);
            cell = $D('messages');
            msg_cnt++;
            cell.innerHTML += msg_cnt + ": " + str + "\n";
            cell.scrollTop = cell.scrollHeight;
        }


        function add (x,y) {
            return parseInt(x,10)+parseInt(y,10);
        }

        function recvMsg(data) {
            //console.log(">> check_respond");
            var i, now, arr, first, last, arr, latency;

            now = (new Date()).getTime(); // Early as pos