// JavaScript Document
var box = 2;
	var chosbox = 1;
		function togglebox (tshow) {
			tshow = isNaN(tshow) ? 1 : tshow;
			if (tshow < 1 || tshow > box) {
					tshow = (chosbox < box) ? chosbox + 1 : 1;
			}
			document.getElementById('sub'+chosbox).style.display = 'none';
			document.getElementById('sub'+tshow).style.display = '';
				chosbox = tshow;
			}
			
function refreshServerStatus() {
	$('#status').html("<center><img src='img/loader.gif' /></center>");
	$.ajax({
		url: "status.php",
		type: "GET",
		data: "",
		cache: false,
		success: function (html) {
			$('#status').html(html);
		}
	});
}
