
function setVisible(id, display) {
	if (document.getElementById) {
		document.getElementById(id).style.display = display;
	}
}

function confirmation(message) {
	if(confirm(message))	return true;
	else					return false;
}

function blank(url) {
	window.open(url);
	return false;
}

function hide_toolbox(personal, visible) {
	if (personal) {
		target = "personal";
	}
	else {
		target = "admin";
	}
	if (visible) {
		visibility = "visible";
	}
	else {
		visibility = "hidden";
	}	
	$.ajax({
		type: "GET",
		url: "/toolbox/" + target + "/" + visibility + "/",
		dataType: "html",
		cache: false,
	});
}


