ay = "none";
              } else {
                  panel.style.display = "block";
              }
          });
      }

      function hideAlert() {
          document.getElementById("securityAlert").style.display = "none";
          setCookie("portsSecure", false, 1);
      }

      function setCookie(cname, cvalue, exdays) {
          var d = new Date();
          d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
          var expires = "expires="+d.toUTCString();
          document.cookie = cn