// JavaScript Document

window.onload = function () {
    var firstName = document.getElementById("firstName");
    var lastName = document.getElementById("lastName");
    var email = document.getElementById("email");
    var ssn = document.getElementById("ssn");

    if (email) {
        email.onfocus = function () {
            if (this.value == "Email Address") {
                this.value = "";
            }
        }
        email.onblur = function () {
            if (this.value == "") {
                this.value = "Email Address";
            }
        }
    }
    if (ssn) {
        ssn.onfocus = function () {
            if (this.value == "Last 4 Digits of SSN") {
                this.value = "";
            }
        }
        ssn.onblur = function () {
            if (this.value == "") {
                this.value = "Last 4 Digits of SSN";
            }
        }
    }

    if (firstName) {
        firstName.onfocus = function () {
            if (this.value == "First Name") {
                this.value = "";
            }
        }

        firstName.onblur = function () {
            if (this.value == "") {
                this.value = "First Name";
            }
        }
    }

    if (lastName) {
        lastName.onfocus = function () {
            if (this.value == "Last Name") {
                this.value = "";
            }
        }

        lastName.onblur = function () {
            if (this.value == "") {
                this.value = "Last Name";
            }
        }
    }


}
