$(function() {
    $('#user-login-form input[@name=name]').
    focus(function() {
        if (this.value == '') {
            this.value = '';
        }
    }).
    blur(function() {
        if (this.value == '') {
            this.value = '';
        }
    });

    $('#user-login-form input[@name=pass]').
    focus(function() {
        this.type = 'password';

        if (this.value == '') {
            this.value = '';
        }
    }).blur(function() {
        if (this.value == '') {
            this.type  = '';
            this.value = '';
        }
    });

    $('#login-form-submit').click(function() {
        $('#user-login-form')[0].submit();
        return false;
    });
});