
function displayError(message) {
	dimPage();
	$("#errorWindow")
		.show()
		.css({ 'top': $(window).scrollTop() + $(window).height()/2 + "px"})
	;
	$("#errorMessage").html(message);
	$("#errorButton").focus();
}

function displayNotification(message) {
	dimPage();
	$("#notificationWindow")
		.show()
		.css({ 'top': $(window).scrollTop() + $(window).height()/2 + "px"})
	;
	$("#notificationMessage").html(message);
	$("#notificationButton").focus();
}

function displayProgress(message) {
	dimPage();
	$("#progressWindow")
		.show()
		.css({ 'top': $(window).scrollTop() + $(window).height()/2 + "px"})
	;
	$("#progressMessage").html(message);
	$("#progressButton").focus();
}

function dimPage() {
	$("#dimArea")
		.show()
		.css({ 'width': "100%", 'height': Math.max($(document).height(), $(window).height()) + "px" })
	;
}

function releasePage(window) {
	$("#" + window).hide();
	$("#dimArea").hide();
}		

