﻿
function pageLoaded() {

    try {
        document.body.focus();

        var usernameTB = document.getElementById("dnn_ctr401_Login_Login_DNN_txtUsername")
        usernameTB.onfocus = function clearText() {
            if (this.value == "Login")
                this.value = "";
        };

        usernameTB.onblur = function clearText() {
            if (this.value == "")
                this.value = "Login";
        };

        usernameTB.value = "Login";

        var passwordTB = document.getElementById('dnn_ctr401_Login_Login_DNN_txtPassword')
        passwordTB.onfocus = function clearText() {
            if (this.value == "passwordasdf")
                this.value = "";
        };
        passwordTB.onblur = function clearText() {
            if (this.value == "")
                this.value = "passwordasdf";
        };
        passwordTB.value = "passwordasdf";

    } catch (e) {

    }
}
var oldLoad = window.onload;
window.onload = function(){pageLoaded();oldLoad()};
