/***** Temporarily disabled showModalDialog until eliminated problem with status bar ***/
function faeAlert(message,features,okText)
{
	if (1!=1 && showModalDialog) {
		var df='dialogWidth: 250px; help: No; resizable: No; scroll: No; status: No;';
		if (features) df+=features
		if (!okText || okText=='') okText=faeText['faeDialogOK'];
		window.showModalDialog('faeAlert.htm',Array(message.replace(/\n/g,'<br/>'),okText),df)
	}
	else {
		alert(message.replace(/<br\/>/g,'\n').replace(/<br>/g,'\n'))
	}
}
function faeConfirm(message,features,okText,cancelText)
{
	if (1!=1 && showModalDialog) {
		var df='dialogWidth: 250px ; help: No; resizable: No; scroll: No; status: No;';
		if (features) df+=features
		if (!okText || okText=='') okText=faeText['faeDialogOK'];
		if (!cancelText || cancelText=='') cancelText=faeText['faeDialogCancel'];
		return window.showModalDialog('faeConfirm.htm',Array(message.replace(/\n/g,'<br/>'),okText,cancelText),df)
	}
	else {
		return confirm(message.replace(/<br\/>/g,'\n').replace(/<br>/g,'\n'))
	}
}
function faeSetDialogSize() {
	if (document.getElementById('faeMessageArea')!=null) {
		var targetWidth = document.getElementById('faeMessageArea').scrollWidth+document.getElementById('messageIcon').offsetWidth+20;
		var targetHeight = document.getElementById('faeMessageArea').scrollHeight+document.getElementById('okButton').offsetHeight+80;
		if (targetWidth < 250) targetWidth=250;
		if (targetWidth > (screen.width-100)) targetWidth=screen.width-100;
		if (targetHeight > (screen.height-100)) targetHeight=screen.height-100;
		window.dialogWidth = targetWidth + "px";
		window.dialogHeight = targetHeight + "px";
	}
}
