﻿function displayGWPPopUp(GWPID,zindex) {
    //dimOn();
    var elID = 'divGWPPopUP' + GWPID;
    document.getElementById(elID).style.zIndex = "" + zindex;
    document.getElementById(elID).style.display = 'block';
    //window.scrollTo(10, 10);
}

function hideGWPPopUp(GWPID, updateOption, GWPOptionID) {
    var elID = 'divGWPPopUP' + GWPID;
    document.getElementById(elID).style.display = 'none';
    dimOff();
    if (updateOption == 1) {
        updateDefaultOption(GWPID);
        //select default option
    }
    else { updateGWPOption(GWPID, GWPOptionID); }
    //updateDefaultOption(GWPID);

}

function hideGWPMsgPopUp(GWPID) {
    var elID = 'divGWPPopUP' + GWPID;
    document.getElementById(elID).style.display = 'none';
    dimOff();
    }
function selectGWPOption(GWPID, GWPOptionID) {
    var elID = 'divGWPPopUP' + GWPID;
    document.getElementById(elID).style.display = 'none';
   // dimOff();
   updateGWPOption(GWPID, GWPOptionID);

}
/*
function dimOff() {

    document.getElementById("darkLayer").style.display = "none";
}
function dimOn() {
    document.getElementById("darkLayer").style.width = pageWidth();
    document.getElementById("darkLayer").style.height = pageHeight();
    document.getElementById("darkLayer").style.display = "block";
}
function pageWidth() { return window.innerWidth != null ? window.innerWidth : document.body != null ? document.body.clientWidth : null; }
function pageHeight() { return window.innerHeight != null ? window.innerHeight : document.body != null ? document.body.clientHeight : null; } 
*/
