
function MyAppAlert(objId, hideCloseIcon, hideMaximizeIcon, imagePath) {
	// 'title' and 'icon' are optional
	this.alertDialog = new jt_DialogBox(objId, true, hideCloseIcon, hideMaximizeIcon, imagePath);
	this.openDialog();
	}

MyAppAlert.prototype.noDialogBox = function() {
	if (!this.alertDialog.contentArea.jtClosed) {
		return true;
	}
	return false;
}


MyAppAlert.prototype.openDialog = function() {
	if (this.noDialogBox()) {
		this.alertDialog.paintDialogBox();
	}
	this.alertDialog.show();
    var w = this.alertDialog.container.getAttribute('widthAttribute');
	if(w) this.alertDialog.setWidth(w);
    var h = this.alertDialog.container.getAttribute('heightAttribute');
	if(h) this.alertDialog.setHeight(h);
	this.alertDialog.fixTitleHeight();
	this.alertDialog.moveTo(-1, -1);
}

MyAppAlert.closeDialog = function(dialogId) {
  var dialog = document.getElementById(dialogId);
  if (!dialog.veil) {
	  jt_BodyZ.init();
	  jt_Veil.deleteVeil(dialog.id);
  } else {
	  dialog.dialogBox.hide();
  }
}

	
	
