﻿/// <reference path="mootools.js"/>

window.addEvent('domready', function(){
    $$('a').each(function(item) { ConfirmLeave(item); });
    ConfirmLeave($$('input#ctl00_ImageButton1'));
});

function ConfirmLeave(item) {
    item.addEvent('click', function(e) {
        var status = confirm('If you leave this page, you will lose all saved work on your custom band. Are you sure you want to leave?');
        if (!status) {
            new Event(e).stop();
        }
    }); 
}

