function showhideDivs(obj) {
            document.getElementById('closediv').style.display = 'inline';
            document.getElementById('opendiv').style.display = 'inline';

            obj.style.display = 'none';
        }

        function ShowModal() {
            //Get the screen height and width
            var maskHeight = $(document).height();
            var maskWidth = $(window).width();
            //Set height and width to mask to fill up the whole screen
            $('#mask').css({ 'width': maskWidth, 'height': maskHeight });

            //transition effect
            $('#mask').fadeIn(500);
            $('#mask').fadeTo("slow", 0.8);

            //Get the window height and width
            var winH = $(window).height();
            var winW = $(window).width();

            //Set the popup window to center
            $("#ProgramsDiv").css('top', winH / 2 - $("#ProgramsDiv").height() / 2);
            $("#ProgramsDiv").css('left', winW / 2 - $("#ProgramsDiv").width() / 2);
            //transition effect
            $("#ProgramsDiv").fadeIn(1000);
        }

        function HideModal() {

            //transition effect
            $('#mask').fadeOut(500);
            $("#ProgramsDiv").fadeOut(500);
        }
