jQuery handler for closing a login box I'm sure there's a better more 'jQuery' like way of writing this.  In particular the selector $(this).closest('div.login-box') being in there twice. Perhaps it's possible to use $(this)?

$('.close-box').click(function () {
        $(this).closest('div.login-box').slideToggle("400");
        if ($(this).closest('div.login-box').attr('id') == "login-forgot") {
            clearForgottenPasswordInputs();
        }
    });
You could combine the calls:

if ($(this).closest('div.login-box')
           .slideToggle("400")
           .attr('id'))


However, I do not recommend this.
Although it will work, it's unnecessarily confusing.