
function submitCredentials()
{
    document.getElementById("Command").value = "Authenticate";
    document.forms[0].submit();
}

function helpMeCreatePassword()
{
    window.open("Authentication/ForgotPassword.aspx", "_self");
}

function createPassword()
{
    document.getElementById("Command").value = "CreatePassword";
    document.forms[0].submit();
}

function txUserName_KeyDown(e)
{
    if((e.keyCode == 13) || (e.which == 13))
    {
        setElementFocus("txPassword");
    }
}

function txPassword_KeyDown(e)
{
    if((e.keyCode == 13) || (e.which == 13))
    {
        document.getElementById("Command").value = "Authenticate";
        document.forms[0].submit();
    }
}

function txUserNamePC_KeyDown(e)
{
    if((e.keyCode == 13) || (e.which == 13))
    {
        createPassword();
    }
}






