﻿function LogIn_Body_OnLoad() {
    var usernameObj = document.getElementById("username");
    usernameObj.focus();
}

function LogIn_Username_OnFocus() {
    var usernameObj = document.getElementById("username");
    usernameObj.setAttribute("class", "username_nobg");
}

function LogIn_Username_OnBlur() {
    var usernameObj = document.getElementById("username");
    if (usernameObj.value.length == 0) {
        usernameObj.setAttribute("class", "username_yesbg");
    } else {
        // stays in username_nobg class
    }
}

function LogIn_Password_OnFocus() {
    var passwordObj = document.getElementById("password");
    passwordObj.setAttribute("class", "password_nobg");
}

function LogIn_Password_OnBlur() {
    var passwordObj = document.getElementById("password");
    if (passwordObj.value.length == 0) {
        passwordObj.setAttribute("class", "password_yesbg");
    } else {
        // stays in password_nobg class
    }
}

