function show_popupHCP(accept_url, accept_text, decline_url, decline_text, title, text, width, height, resizable, modal) {
    $.ui.dialog.defaults.bgiframe = true;

    $(function () {
        var dialog_span = document.getElementById('lbl_dialog_text');
        if (dialog_span) {
            dialog_span.firstChild.nodeValue = text;
        }
        else {
            dialog_span.firstChild.nodeValue = text;
        }

        var buttons_string = '';
        buttons_string += " {";
            buttons_string += "'" + decline_text + "': function(ev, ui) { var new_url = window.location.href('" + decline_url + "'); $(this).dialog('destroy'); }";

        buttons_string += ",";
        buttons_string += "'" + 'I am a physician' + "': function(ev, ui) { var new_url = window.location.href('" + '#' + "'); $(this).dialog('destroy'); }";
        buttons_string += " } ";

        $("#dialog_client").dialog({ position: 'center', hide: 'blind', show: 'slide', width: width, height: height, modal: modal, resizable: resizable, title: title, buttons: { 'I am not': function (ev, ui) { $(this).dialog('destroy'); }, 'I am a physician': function (ev, ui) { var new_url = window.open(accept_url); $(this).dialog('destroy'); } }, open: function () { $(this).parents('.ui-dialog-buttonpane button:eq(1)').focus(); }, bgiframe: true, close: function (ev, ui) { $(this).dialog('destroy'); } });
        $("#dialog_client").dialog("open");
    })

}
