function saveBoxState(_id) {
	
	// Get state
	if($("#box_" + _id + "_content").is(":visible"))
		var type = "Show";
	else
		var type = "Hide";

	// Do Ajax request
	var request = new AjaxRequest(pathPrefix + "/Ajax/sty" + type + "Box" + firstSeperator + "id=" + _id + sid2);
	request.doRequest();
	
}

function showTab(_box, _tab, _container) {
	
	// Hide all tabs
	$("#box_" + _box + " div.boxTab").hide();
	$("#box_" + _box + " ul.tabs li").removeClass("active");
	
	// Show the specified tab
	$("#tab_" + _box + "_" + _tab).show();
	$("#tabli_" + _box + "_" + _tab).addClass("active");
	
	// Show the whole box content if it is hidden
	if($("#box_" + _box + "_content").is(":hidden"))
		$("#box_" + _box + "_content_ti").click();
	
	return false;
	
}
