) != value.toString(16).toLowerCase()) {
            document.getElementById("wep128key_invalid").style.display = "";
            return false;
          }
        }
        document.getElementById("wep128key_invalid").style.display = "none";
        return true;
      }
      document.getElementById("wep128key_invalid").style.display = "";
      break;
    case '3':
    case '6':
    case '7':
      if ((key.length > 7) && (key.length < 64)) {
        document.getElementById("wpakey_invalid").style.display