function confirmAction() {};
function cancelAction() {};

// Displays a centered dialog
function displayDialog(formID, stringID, string, width, height) {
	$(stringID).html(string);
	$.blockUI({
		message: $(formID),
		css: {
			border:	"0px",
			top:	($(window).height() - height) / 2 + "px",
			left:	($(window).width() - width) / 2 + "px",
			width:	width+"px"
		}
	})
}

// Displays a Message with OK button
function displayMessage(string, width, height) {
	displayDialog("#divMessageForm", "#divMessageString", string, width, height);
}

// Displays a Splash with no buttons
function displaySplash(string, width, height) {
	displayDialog("#divSplashForm", "#divSplashString", string, width, height);
}

// Displays a help document window with scrollbar and Close button
function displayDoc(width, height) {
	$.blockUI({
		message: $("#divDocForm"),
		css: {
			border:	"0px",
			top:	($(window).height() - height) / 2 + "px",
			left:	($(window).width() - width) / 2 + "px",
			width:	width+"px"
		}
	})
}

// Cancel/Confirm Message
function displayConfirm(string) {
	$("#divConfirmString").html(string);
	$.blockUI({
		message: $("#divConfirmForm"),
		css: {
			border:	"0px",
			width:	"275px"
		}
	});
}

// Error Message
function displayError(string) {
	$("#divErrorString").html(string);
	$.blockUI({
		message: $("#divErrorForm"),
		css: {
			border:	"0px",
			width:	"275px"
		}
	});
}

// Generic Floater
function displayFloater(content, width, height) {
	$.blockUI({
		message: $(content),
		css: {
			border:	"0px",
			top:	($(window).height() - height) / 2 + "px",
			left:	($(window).width() - width) / 2 + "px",
			width:	width+"px",
			height:	height+"px"
		}
	});
}

// Floater with size based on content
function displaySizedFloater(content) {
	var c = $(content);
	displayFloater(c, c.width(), c.height());
}

// IE makes the height and width to 0, because it sees divMemberForm as full width, but IE gets the
// parts right if the numbers are fixed

// Hardcode the sizes instead

// Member registration form
function displayMemberForm() {
	$.blockUI({
		message: $("#divMemberForm"),
		css: {
			border:	"0px",
			top:	"10px",
			left:	($(window).width() - 500) / 2 + "px",
			width:	"0px"
		}
	});
}

// Archive search form
function displayArchiveForm() {
	$.blockUI({
		message: $("#divArchiveForm"),
		css: {
			border:	"0px",
			top:	"10px",
			left:	($(window).width() - 500) / 2 + "px",
			width:	"0px"
		}
	});
}

var messagesLoaded = true;
