Ciao a tutti...non riesco a risolvere il rebus seguente.

ho un form con un pulsante che,s e premuto, invoca una funzione javascript che dovrebbe aprire dinamicamente una dialog window di jquery-ui, ma non funziona! come mai? in pratica la funzione dovrebbe aggiungere un DIV che verrebbe aperto come window ma nisba.

HTML:
codice HTML:
<input type="button" value="New User" class="button" onclick="openWindow('winNewUser', 'NEW USER', 'newUser.php', 500, 550)">
JAVASCRIPT:
codice:
function openWindow(sID, sTitle, sPage, iWidth, iHeight) {
  $(function() {
    $( "#" + sID ).dialog( "open" );
    $( "#" + sID).dialog({
      autoOpen: false,
      resizable: false,
      width: iWidth,
      height: iHeight,
      modal: true
    });
    $( document.body ).prepend('<div id="' + sID + '" title="' + sTitle + '"></div>');
    $( "#" + sID ).append('<object type="text/html" data="' + sPage + '" style="margin: 0px; padding: 0px; border: none; width: ' + iWidth + 'px; height: ' + iHeight + 'px">');
  });
}