Corrected window.onbeforeunload firing in IE9

...) call.  In IE9 this causes the window.onbeforeunload to fire on every selection, which could cause some unintended consiquences.