change dialog button text from variable

change dialog button text from variable


Howdy,
Just wondering if it's possible to dynamically change a buttons text
using a passed variable in a function:
eg: here is my test:
function ShowDialog( sButtonText ) {
$("#Dialog").dialog( "option","buttons", { "Close Window": function
() { $(this).dialog('close'); } }, { "Button Text:" + sButtonText:
function() { $(this).dialog('close'); } } );
$("#Dialog").dialog( "open" );
}
but that is throwing javascript errors at the plus sign. any ideas?
thanks in advance!