﻿/**
* shows the comparison grid popup
*/
function showComparisonGridPopUp() {
    var popUpWin = $("#popUpWin");
    if (popUpWin != null) {
        /* assign a proper z-index to the popup container */
        FixZIndex(popUpWin);

        if (!popUpWin.hasClass("showpopUpWin")) {
            popUpWin.addClass("showpopUpWin");
        }

        /* fix the z-index direct */
        $('.comparisonWithPopup').css('z-index', '5');
    }
}

/**
* hide the comparison grid popup
*/
function hideComparisonGridPopUp() {
    var popUpWin = $("#popUpWin");
    if (popUpWin != null) {
        if (popUpWin.hasClass("showpopUpWin")) {
            popUpWin.removeClass("showpopUpWin");
        }

        /* fix the z-index direct */
        $('.comparisonWithPopup').css('z-index', '0');
    }
}
