function showModalDialog(dlgClass, title, message, buttons, autoDismiss) {
        var templateVars = {
            dlgClass: dlgClass,
            title:    title   || "",
            message:  message || "",
            buttons:  buttons || [{ className: DIALOG_BTN_CLASS_PRIMARY, id: DIALOG_BTN_OK, text: Strings.OK }]
        };
        var template = Mustache.render(DialogTemplate, templateVars);

        return showModalDialogUsingTemplate(template, autoDismiss);
    }
Creates a new general purpose modal dialog using the default template and the template variables given
as parameters as described.

@param {string} dlgClass A class name identifier for the dialog. Typically one of DefaultDialogs.*
@param {string=} title The title of the dialog. Can contain HTML markup. Defaults to "".
@param {string=} message The message to display in the dialog. Can contain HTML markup. Defaults to "".
@param {Array.<{className: string, id: string, text: string}>=} buttons An array of buttons where each button
     has a class, id and text property. The id is used in "data-button-id". Defaults to a single Ok button.
     Typically className is one of DIALOG_BTN_CLASS_*, id is one of DIALOG_BTN_*
@param {boolean=} autoDismiss Whether to automatically dismiss the dialog when one of the buttons
     is clicked. Default true. If false, you'll need to manually handle button clicks and the Esc
     key, and dismiss the dialog yourself when ready by calling `close()` on the returned dialog.
@return {Dialog}