Use a different function name, please... One that doesn't overwrite window.confirm.  showConfirmDialog() or asyncConfirm() maybe?