function inform(title, text, okFunc, okArg, okText) {

        var overlay = Y.one('#confirm-overlay');
        var underlay = Y.one('#confirm-underlay');
        var ok = overlay.one('#confirm-ok');
        var cancel = overlay.one('#confirm-cancel');
        var close = overlay.one('#confirm-close');

        ok.setContent(okText || 'Ok');
        cancel.addClass('hide');

        overlay.one('#confirm-title').setContent(title);
        overlay.one('#confirm-text').setContent(text);
        overlay.removeClass('hide');
        overlay.addClass('show');
        underlay.removeClass('hide');
        underlay.addClass('show');

        function dismiss() {
            overlay.addClass('hide');
            overlay.removeClass('show');
            underlay.addClass('hide');
            underlay.removeClass('show');
            cancel.removeClass('hide');

            Y.Event.purgeElement(ok);
            Y.Event.purgeElement(cancel);
            Y.Event.purgeElement(close);
        }

        function doOk(e2) {
            dismiss();
            if (okFunc) {
                okFunc(okArg);
            }
        }

        ok.on('click', doOk);
        close.on('click', doOk);
    }
// function to ask user to confirm an operation - pass in lables, strings, callbacks, etc
function to ask user to confirm an operation - pass in lables, strings, callbacks, etc
function to ask user to confirm an operation - pass in lables strings callbacks etc
function inform(title, text, okFunc, okArg, okText) {
        var overlay = Y.one('#confirm-overlay');
        var underlay = Y.one('#confirm-underlay');
        var ok = overlay.one('#confirm-ok');
        var cancel = overlay.one('#confirm-cancel');
        var close = overlay.one('#confirm-close');
        ok.setContent(okText || 'Ok');
        cancel.addClass('hide');
        overlay.one('#confirm-title').setContent(title);
        overlay.one('#confirm-text').setContent(text);
        overlay.removeClass('hide');
        overlay.addClass('show');
        underlay.removeClass('hide');
        underlay.addClass('show');
        function dismiss() {
            overlay.addClass('hide');
            overlay.removeClass('show');
            underlay.addClass('hide');
            underlay.removeClass('show');
            cancel.removeClass('hide');
            Y.Event.purgeElement(ok);
            Y.Event.purgeElement(cancel);
            Y.Event.purgeElement(close);
        }
        function doOk(e2) {
            dismiss();
            if (okFunc) {
                okFunc(okArg);
            }
        }
        ok.on('click', doOk);
        close.on('click', doOk);
    }
function inform ( title , text , okFunc , okArg , okText ) { var overlay = Y . one ( '#confirm-overlay' ) ; var underlay = Y . one ( '#confirm-underlay' ) ; var ok = overlay . one ( '#confirm-ok' ) ; var cancel = overlay . one ( '#confirm-cancel' ) ; var close = overlay . one ( '#confirm-close' ) ; ok . setContent ( okText || 'Ok' ) ; cancel . addClass ( 'hide' ) ; overlay . one ( '#confirm-title' ) . setContent ( title ) ; overlay . one ( '#confirm-text' ) . setContent ( text ) ; overlay . removeClass ( 'hide' ) ; overlay . addClass ( 'show' ) ; underlay . removeClass ( 'hide' ) ; underlay . addClass ( 'show' ) ; function dismiss ( ) { overlay . addClass ( 'hide' ) ; overlay . removeClass ( 'show' ) ; underlay . addClass ( 'hide' ) ; underlay . removeClass ( 'show' ) ; cancel . removeClass ( 'hide' ) ; Y . Event . purgeElement ( ok ) ; Y . Event . purgeElement ( cancel ) ; Y . Event . purgeElement ( close ) ; } function doOk ( e2 ) { dismiss ( ) ; if ( okFunc ) { okFunc ( okArg ) ; } } ok . on ( 'click' , doOk ) ; close . on ( 'click' , doOk ) ; }
function to ask user to confirm an operation - pass in lables, strings, callbacks, etc
function to ask user to confirm an operation - pass in lables strings callbacks etc