/*
This javascript function seeks confirmation on any control that has word 'confirm' in its ID tag.
It then prevents a postback in the event that the user selects [Cancel]

Simply add the following script tags on your page and watch the magic:
    <script type="text/javascript" src="zjOk2Confirm.js"></script>

*/


function confirmPostback(e) {    
    var targ;
    if (!e) var e = window.event;
    targ = (e.target) ? e.target : e.srcElement;
    if (targ.nodeType == 3) targ = targ.parentNode
        {
        if (targ.id.toLowerCase().indexOf("confirm") >= 0)
            { 
            return confirm("Please select [Ok] to confirm..");
            routeEvent(e);
            }
        }
}
document.onclick = confirmPostback;