function onLoginClick()
{
    document.getElementById('loginLeft').style.display = "block";
    document.getElementById('EmailL').focus();
    document.getElementById('loginLink').style.visibility = "hidden";
}

function onCancelClick()
{
    document.getElementById('loginLeft').style.display = "none";
    document.getElementById('loginLink').style.visibility = "visible";
}

function checkLogin()
{
    var vEmail, vPassword;
    with(window.document.login_left)
    {
        vEmail = EmailL;
        vPassword = PasswordL;
    }
    if ( trim(vEmail.value) == "" ) 
    {
        alert('Please enter your email.');
        vEmail.focus();
        return false;
    }
    else if ( trim(vPassword.value) == "" ) 
    {
        alert('Please enter your password.');
        vPassword.focus();
        return false;
    }

    return true;
}
