on
			$('#btnStop').removeAttr("disabled");

			// You can send data now
			//ws.send("Hey man, you got the time?");
		};

		// Called when the websocket receives data
		ws.onmessage = function(evt) 
		{ 
		    $('#results').append(evt.data + '<br/>');  
		};
	
		// Called when the websocket is closed
		ws.onclose = function() { 
			$('#status').css({'background-color': 'orange'}).html('Websocket closed');			
			$('#btnStart').removeAttr("disabled");
			$('#btnStop').attr("disabled", "disabled");
		};
	}
	e