The easiest way to do this is thus
$("#xlogon").dialog(
{ modal: true,
closeOnEscape: false,
focus: function(event, ui) {
$(".ui-dialog-titlebar-close").hide()
}});
the closeOnEscape is a supplied method and does what it says it does and the FOCUS event function hides the X in the top right of the dialog.