[jQuery] Slightly OT: need help with window.showModalDialog

[jQuery] Slightly OT: need help with window.showModalDialog

<div dir="ltr">Firstly, I know this isn't a jQuery thing, but I don't know a better group of javascript programmers anywhere than here on the jQuery mailing list! :o)
If anyone thinks they can help me with my problem, please feel free to contact me off-list so as to reduce any clutter. I apologize again for this off topic post.
My problem is this:
I've inherited an application written in asp (not the .NET variety), and it does some stuff with window.showModalDialog. I'm getting a "Permission Denied" error when running code similar to the following:
function EntitySearch(){
    var windowReturn = window.showModalDialog('entity_solicitorsearch.asp', window, 'width, height, etc. here')
    alert(windowReturn.getAttribute("entityid")
    ...
}
okay, so the "entity_solicitorsearch.asp" *is* local (I've considered that IE thinks this is some sort of cross domain script attack or something), and the features that are being passed to the showModalDialog seem trivial. The line that's giving me the error is the one with the alert. Really, anything I put in there that tries to use the 'windowReturn' object (at least I think it's an object).
Here's the code that is being executed from the 'entity_solicitorsearch.asp' page:
function SelectEntity(theObject){
    var EntityID = theObject.entityid
    window.returnValue = theObject
    CloseWindow()
}
function CloseWindow(){
    window.close()
}<br clear="all">
... and here's the line that triggers the call to the SelectEntity function:
<span class="pseudolink" onclick="SelectEntity(this)" entityid="11725" typeid="1" TypeName="Producer" FirstName="Joe" LastName="Shmoe" FirmName="">
even though this is all happening on asp pages, it's all javascript. I know that showModalDialog is IE specific, but remember I inherited this app, and my job is not to rewrite it (yet), but rather to fix what's here.
Okay, one last gotcha. All of this code works fine on a couple of machines, but fails on three others. It fails in IE7 (all versons as far as we can tell); it fails in IE6 6.0.2900.2180.xpsp.050329-1536 but is *successful* on IE6 6.0.2900.2180.xpsp_sp2_gdr.070227-2254. Both of those versions of IE have been upgraded to SP2 (though the first one doesn't mention sp2 in its version number for some reason)
If anyone can help please contact me. If you have a specific suggestion for a better list to submit this problem to, them I'm all ears. :o)
Thanks so much everyone!
Chris
--
<a href="http://cjordan.us">http://cjordan.us</a>
</div>