﻿var SetupHelpBox = function(helpBoxSelector, title) {
    var box = $(helpBoxSelector);
    buttons = {
        Close: function() { $(this).dialog('close'); }
    };

    box.dialog({
        autoOpen: false,
        modal: true,
        width: 500,
        height: 200,
        buttons: buttons,
        title: title,
        draggable:false,
        resizable:false
    });
    var button = $('<img />');
    button.attr('src','/Images/qmark3.png').addClass('helpLinkButton').attr('style','vertical-align:middle;');
    button.click(function() { box.dialog('open'); });
    return button;
};
