add:   function passwordFn() { this.status = false;  this.check = function() { var msgbox = $("#passmsg2"); var pass1 = $("#id_newpass1").val(); var pass2 = $("#id_newpass2").val();  if (pass1.length > 0 && pass2.length > 0) { if (pass1 != pass2) { msgbox.css("color", "red"); msgbox.text("The passwords are not equal."); } else { msgbox.css("color", "green"); msgbox.text("Ok."); this.status = true; } } else if (pass1.length > 0 || pass2.length > 0) { msgbox.text(""); } } }  var pass = new passwordFn(); $("#id_newpass1").blur(pass.check); $("#id_newpass2").blur(pass.check);  
context: $(function(){  // On focus, light the focused input  $("input[@type=password]").focus(function() {		$(this).css("background", "white");  });    // On blur, unlight the focused input  $("input[@type=password]").blur(function() {		$(this).css("background", "#E6E6E6");  });  	$("#id_newpass1").focus();});
meta: 6154	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6154/6e0932fd671eb1e6c29abfc3bdc3f6a6de054b8f/jquery.changepass.js/buggy/demo/media/js/jquery.changepass.js