
jQuery(function() {
        $('input[type=password], input[type=text], textarea').focus(function() {
                $(this).addClass('focus');
        });

        $('input[type=password], input[type=text], textarea').blur(function() {
                if ($(this).find('.focus')) {
                        $(this).removeClass('focus');
                }
        });
});
