var dialogs = [];

function showDialog(content, options)
{
    options = $.extend({title: 'Bericht', closeable: false, draggable: false}, options || {});
    var dialog = createLightbox(content, options);
    dialogs.push(dialog);
    return dialog;
}

function hideDialog()
{
    var offset = dialogs.length;
    if (offset > 0) {
        dialogs[(offset -1)].hide();
    }
    return false;
}

