IE 9 - Object doesn't support property or method 'Format'
<p>need a little help here.</p>

<p>I decided to transfer some of my javascript function in one .js file. Those functions are working properly in other browser EXCEPT IE.</p>

<p><strong>NOTE:</strong> 
Code below was store in a separate js file "<strong>my_js.js</strong>"</p>

<pre><code>var dialogConfirmed = false;

function DialogConfirmation(obj, title, dialogText) {
    if (!dialogConfirmed) {
        $('body').append("&lt;div id='dialog' title='" + title + "'&gt;'" + dialogText + "'&lt;/div&gt;");            
        $('#dialog').dialog
        ({
            height: 150,
            modal: true,
            resizable: false,
            draggable: false,
            close: function(event, ui) { $('body').find('#dialog').remove(); },
            buttons:
            {
                'Yes': function() {
                    $(this).dialog('close');
                    dialogConfirmed = true;
                    if (obj) obj.click();
                },
                'No': function() {
                    $(this).dialog('close');
                }
            }
        });
    }

    return dialogConfirmed;
}
</code></pre>

<p><strong>Usage</strong></p>

<pre><code>&lt;asp:Button ID="btnAlert" runat="server" Text="Alert" OnClientClick="return DialogConfirmation(this, 'Popup Header', 'Popup Body Message');" onclick="btnAlert_Click" /&gt;
</code></pre>

<p>When clicking the button it throws and error pointing to method "<strong>Format</strong>" </p>

<pre><code>**Microsoft JScript runtime error: Object doesn't support property or method 'Format'**
</code></pre>

<p>But checking my code doesn't use '<strong>Format</strong>'. Any idea on the error? I'm using EI 9 on my workstation.</p>
