I'm using the following code to override a JavaScript function named dismissRelatedLookupPopup(). In Firefox, this works without a problem (displays the alert once and runs my code), but in Internet Explorer 7 it results in an infinite loop displaying the alert() forever. I'm doing this because I don't control the code where dismissRelatedLookupPopup() is called, and I'd like to add a hook of my own when it's called. Is there a cross-browser way to do this?I'm using the following code to override a Java