JQuery Modal Dialog

JQuery Modal Dialog

Hello All,

I am using modal confirmation dialog box as shown in the below link

1 ) This works fine for me in Firefox and Chrome browser. However, when I test this on Internet explorer 9. 
The modal dialog come at 'Left Top' position and in other browser By Default it is coming to Center psotion.

I have tries using position atrribute. But still result is same. 

Why this is so ?? 

2) When modal dialog box is opened I am ABLE to click other buttons OR links. How can i disable this ? ho can i set the opacity for the dialog box.
  1. Below is my code..
  2. function myfunction(msg,btn) {

  3. $('head').append('<link rel="stylesheet" href="CSS/jquery-ui.1.10.4.css"/>');

  4. $('<div style="width:auto;height:auto;display:inline-block;">'+ msg +'</div>').dialog({
  5.             resizable: false,
  6.             height: 200,
  7.             modal: true,
  8.             title:  '<%=strConfirmTitle%>',
  9.             position: "center", 
  10.             buttons: 
  11.             {
  12.                 '<%=str%>': function () 
  13.                 {
  14.                     $(this).dialog("close");
  15.                     __doPostBack(btn,'');                  
  16.                 },
  17.             
  18.                 "Cancel": function () 
  19.                 {
  20.                    $(this).dialog("close");
  21.                                
  22.                 }
  23.             }

  24.     });

  25. }