
function openPopup(elementID) {
    var popup = document.getElementById(elementID);
    popup.classList.toggle("show");
};

function closePopup(elementID) {
    var popup = document.getElementById(elementID);
    popup.classList.toggle("show");
};

function setMinDate() {
    var shutdownDate = document.getElementById('shutdownDate');
    shutdownDate.min = new Date().toISOString().slice(0, 16);
};

function setMinDateFromSH() {
    var shutdownDate = document.getElementById('shutdownDate');
    var reinstatedDate = document.getElementById('reinstatedDate');
    reinstatedDate.min = new Date(shutdownDate.value).toISOString().slice(0, 16);
};