﻿
    function DIButtonTblClicked(theFunc, theSender, validationGroup) {



        var _val = document.getElementById(theFunc)
        _func = _val.value;

        if (_func != "") {
            //if ( eval('typeof(' + _func + ')') == 'function') {
            //      eval(_func + '();');

            //}
            window[_func]();
            return true;
        }
        else {
        
            if (validationGroup != null && validationGroup != '') {
                try {
                    Page_ClientValidate(validationGroup);
                }
                catch (err) {
                }
    
            }
            setTimeout('__doPostBack(\'' + theSender + '\',\'OnClick\')', 0);
            return true;
        }
    }
    function CloseMe() {
        window.close();
    }

