$('#btnClear').click(function() {
		$('#results').html('');
	});	
	
}

// Make sure the browser supports sockets
function testSocket()
{
	if ("WebSocket" in window) 
	{
		$('#status').hide();
		$('#btnStart').removeAttr("disabled");
		//$('#status').css({'background-color': 'green'}).html('Websockets are supported');
	}
	else
	{
		$('#status').show();
		$('#status').css({'background-color': 'red'}).html('Websockets NOT supported');		
		$('#btnStart').attr("disabled","disabled");
	}
}

// Close the websocket