Refresh() {
                var msg = { id : 2, data : { eventId: "nil", eventValue : "nil"}};
                connection.send(JSON.stringify(msg));
            }

            window.onresize = function(event) {
                sendRefresh();
            };


            function send(eventId,event)  {
                if(event.target.value === undefined)
                {
                    var msg = { id : 1, data : { eventId: eventId, eventValue : ""}};
                    connection.send(JSON.stringify(