Every time when recording using QTP and invoking a window.showModalDialog in our code (JS), IE throws an access denied. This does not happen when using the application without QTP.

Any ideas as to why this is happening? Any idea on how to fix it? I already enabled every possible security setting on my IE.

I am running QTP 10, IE 7, Vista 64