/* Fix for IE overlay issue */
function clearUsername()
{
    document.getElementById("lblUsername").style.marginLeft = "-5000px";
    document.getElementById("overUser").style.marginTop = "0px";
    document.getElementById("overUser").style.height = "0px";
    if (document.getElementById("txfPassword").value == '') {
        document.getElementById("lblPassword").style.marginLeft = "0px";
        document.getElementById("overPass").style.marginTop = "-24px";
        document.getElementById("overPass").style.height = "0px";
    }
    else {
        document.getElementById("lblPassword").style.marginLeft = "-5000px";
        document.getElementById("overPass").style.marginTop = "0px";
    }
}

function displayUsername()
{
    document.getElementById("lblUsername").style.marginLeft = "-5000px";
    document.getElementById("overUser").style.marginTop = "0px";
    document.getElementById("overUser").style.height = "0px";
    document.getElementById("txfUsername").focus();
}

function clearPassword() 
{
    var selected = document.activeElement.id;
    if (selected == 'txfPassword') {
        document.getElementById("lblPassword").style.marginLeft = "-5000px";
        document.getElementById("overPass").style.marginTop = "0px";
    }
    else {
        if (document.getElementById("txfPassword").value == '') {
            document.getElementById("lblPassword").style.marginLeft = "0px";
            document.getElementById("overPass").style.marginTop = "-24px";
            document.getElementById("overPass").style.height = "0px";
        } else {
            document.getElementById("lblPassword").style.marginLeft = "-5000px";
            document.getElementById("overPass").style.marginTop = "0px";
        }
    }
    if (document.getElementById("txfUsername").value == '') {
        document.getElementById("lblUsername").style.marginLeft = "0px";
        document.getElementById("overUser").style.marginTop = "-24px";
        document.getElementById("overUser").style.height = "0px";
    }
    else {
        document.getElementById("lblUsername").style.marginLeft = "-5000px";
        document.getElementById("overUser").style.marginTop = "0px";
    }
}

function displayPassword()
{
    document.getElementById("lblPassword").style.marginLeft = "-5000px";
    document.getElementById("overPass").style.marginTop = "0px";
    document.getElementById("txfPassword").focus();
}

