function focus_login()
{
  if (document.login_form != null) {
    document.login_form.username.focus();
  }
}

function check_form()
{
  if (document.login_form != null) {
    if (document.login_form.username.value == '')
    {
      alert("Please enter your username");
      document.login_form.username.focus();
      return false;
    }
    if (document.login_form.password.value == '')
    {
      alert("Please enter your password");
      document.login_form.password.focus();
      return false;
    }
  }
}
