<!--

// -----
// Initialize the username and password fields, focus on username
// -----
function InitForm(thisForm) {
  thisForm.Username.value = "";
  thisForm.Password.value = "";
  thisForm.Username.focus();
}

// -----
// Validate the username and password, if valid send to next page
// -----
function ValidateForm(thisForm) {
  validPwd = ValidatePwd(thisForm.Username.value,thisForm.Password.value);
  if (validPwd != true) {
    alert("Invalid username/password!");
    InitForm(thisForm);
  }
  else {
    self.location = "internal/internal_index.htm";
  }
}

// -----
// Validate the username and password against an array
// -----
function ValidatePwd(Username,Password) {
  testUser = Username.toLowerCase();  // Username is not case sensitive
  testPwd = Password;                 // Password is case sensitive

  var Usernames = new Array("reunion","baleyjk");
  var Passwords = new Array("run1400","effective");
  var validPwd = new Boolean(false);

  for (i in Usernames) {
    if ((testUser == Usernames[i]) && (testPwd == Passwords[i])) {
      validPwd = true;
      break;
    }
  }
return validPwd;
}

// -->