{* $Id$ *} {jq notonready=true} {* Test for caps lock - used below *} var divRegCapson = $('#divRegCapson'); function regCapsLock(e){ kc = e.keyCode?e.keyCode:e.which; sk = e.shiftKey?e.shiftKey:((kc == 16)?true:false); if(((kc >= 65 && kc <= 90) && !sk)||((kc >= 97 && kc <= 122) && sk)) { divRegCapson.show(); } else { divRegCapson.hide(); } } {/jq} {* The below assumes: (1) first password input id='pass1', (1.1) divs underneath the first password input as follows (to show password strength icon, text and bar):