	var modes = $('#modeMenu').children();
			for (var i=0;i<modes.length;i++) {
				m = modes[i].innerText;
				if (mode === m) {
					changeMode(m);
					return
				}
			}
		}

		function userOK() {
			$('#userinfo').window('close');
			connect();
		}
	</script>
</body>
</html>
