ConfirmExt Function - JavaScript

At times, Internet Explorer will respond incorrectly to the confirm JavaScript function. The following confirmExt function corrects this shortcoming.

function confirmExt(prompt)
{   
    if (confirm(prompt)==false)
    {
        if (event != null) event.returnValue = false;
        return false;
    } 
    else 
    {
        return true;
    }
}