var MessageBox = new Object();
MessageBox.CustomMessages = {
	CLIENTVALIDATIONERRORS: "Your submission contains errors. Please correct these errors and try again.",
	UNEXPECTEDERROR: "An unexpected error occurred. Please refresh the page and try again. If this problem persists, please contact support.",
	LOADINGTEXT: "Loading. . .",
	PROCESSINGTITLE: "Processing. . .",
	PROCESSINGTEXT: "Please wait while we process your request."
};

function showError(errorText) {
	Ext.MessageBox.show({
		title: 'ERROR!',
		modal: true,
		msg: errorText,
		buttons: Ext.MessageBox.OK,
		closable: false,
		icon: Ext.MessageBox.ERROR,
		minWidth: 600 > errorText.length ? errorText.length + 250 : 600 
	});
}

function showInformation(informationTitle, informationText) {
	Ext.MessageBox.show({
		title: informationTitle,
		modal: true,
		msg: informationText,
		buttons: Ext.MessageBox.OK,
		closable: false,
		icon: Ext.MessageBox.INFO,
		minWidth: 600 > informationText.length ? informationText.length + 250 : 600
	});
}

function showWait(informationTitle, informationText) {
	Ext.MessageBox.wait(
		informationText, informationTitle);
}
