function cancel_click()
{
  window.location = "about:blank";
  return;
}

function key_press()
{
  code = event.keyCode;
  if (code == 13)
  {
    submit_click();
    return false;
  }
  return true;
}

function startup(login)
{
  if (login == '0') alert("Username/Password not found.\nPlease try again.");
  ClientForm.Username.value = "";
  ClientForm.Password.value = "";
  ClientForm.Username.focus();
  return;
}

function submit_click()
{
  var username = ClientForm.Username.value;
  var password = ClientForm.Password.value;
  if (username.length == 0)
  {
    alert("Username field is required.\nPlease enter a value.");
    ClientForm.Username.focus();
    return;
  }
  if (password.length == 0)
  {
    alert("Password field is required.\nPlease enter a value.");
    ClientForm.Password.focus();
    return;
  }
  ClientForm.submit();
  return;
}

