  jQuery(document).ready(function(){
    jQuery("input[type='password']").caps(function(caps){
      if(jQuery.browser.safari) return; // Safari already indicates caps lock
      if(caps){
        //jQuery('#password-errors').text('CAPS LOCK IS ON').css("background-color", "yellow").fadeIn();
        jQuery('.password-error').remove(); // get rid of any error messages that exist already
        jQuery(this).after('<div class="password-error"></div>');
        jQuery('.password-error').hide();
        jQuery('.password-error').text('CAPSLOCK IS ON').css("background-color", "yellow").fadeIn("slow");
      }else{
        //jQuery('#password-errors').fadeOut().empty();
        jQuery('.password-error').fadeOut("slow");
      }
    });
  });
