how to get Return value of jquery UI dialog Box

how to get Return value of jquery UI dialog Box

$(function () {


InitializeDeleteConfirmation();

$("#ctl00_PageContent_btnCreateSub").click(function () {
var Rcall 
var countImgscrp = document.getElementById("<%=hiddenScrapBookImgs.ClientID %>").value;
if ((countImgscrp == 10) || (countImgscrp == 20)) {


$('#NavBar').css('z-index', '999');
$('#DropDown').css('z-index', '99');

deleteItem(function () {
callback1();

// alert(Rcall);
});



} // if ends here

return false;

}); // click function ends here

});

// document ready ends here

function InitializeDeleteConfirmation() {

var dialogTitle = 'Would you like to Add Images in Scrapbook?';
$('#dialog-confirm').dialog({
dialogTitle :true,
autoOpen: false,
resizable: false,
height: 160,
width: 380,
modal: true,
buttons: {
"Yes,Please": function () {
$(this).dialog("close");
callback1(false);
},
"Continue": function () {
$(this).dialog("close");
callback1(true);
}
}
});

















}
function deleteItem() {
var dialogTitle = 'Would you like to Add Images in Scrapbook?';
var xx = 1;
$("#dialog-confirm").dialog({
title: dialogTitle,
buttons: {
"Yes, Please": function () { $(this).dialog("close"); return false; xx = 0; callback1(false); },
"Continue": function () { $(this).dialog("close"); return true; xx = 1; callback1(true); }
}
});

$('#dialog-confirm').dialog('open');











}

function callback1(value) {
alert(value);
}

how to get return value false when YES is clicked and  true when CONTINUE is click in  $("#ctl00_PageContent_btnCreateSub").click(function () {

Plz suggets....