I would recommend asking questions until it is under your head. This is much easier than you might think. I have a meetup I have to leave for in a minute but paste the following code into the console and play with the obvios parameters such as markup, title, width, button names etc:
var markup = "<h1>hello world</h1>";
$("<div id=QBU_Dialog>").dialog({
title: "This Space For Rent",
modal: true,
width: 400,
resizable: false,
buttons: {
OK: function() {
$(this).dialog("close");
$("#QBU_Dialog").remove();
},
Cancel: function() {
$(this).dialog("close");
}
},
open: function(event, ui) {
$(this).html(markup);
$("#QBU_BaseDate").datepicker();
},
close: function(event, ui) {
//do something
}
});