﻿// JScript File
// Include this file in the master page. Set IGNORE_UNLOAD = false for any control
// whose changes have to be saved before navigating away from this page.
var UNLOAD_MSG = "You will lose any unsaved changes!";

var IGNORE_UNLOAD = true;

function doBeforeUnload() {
   if(IGNORE_UNLOAD) return; // Let the page unload
   
   ht = document.getElementsByTagName("html");ht[0].style.filter = "";
   
   if(window.event)
      window.event.returnValue = UNLOAD_MSG; // IE
   else
      return UNLOAD_MSG; // FX
}

if(window.body)
   window.body.onbeforeunload = doBeforeUnload; // IE
else
   window.onbeforeunload = doBeforeUnload; // FX

