// Colorise all text/password input boxes on a page
// License: http://www.gnu.org/licenses/gpl.txt
// Homepage: http://blog.leenix.co.uk/2009/07/jquery-onfocusonblur-text-box-color.html

var gotFocusColor = '#FCFFC5'; // background color when input is selected
var lostFocusColor = '#FFFFFF'; // background color to return to when focus is lost

jQuery(document).ready(function() {
	jQuery("input:[type=text], input:[type=password], input:[type=radio], input:[type=checkbox], input:[type=textarea], input:[type=select]").focus(function () {
		this.style.background=gotFocusColor;
	});
	jQuery("input:[type=text], input:[type=password], input:[type=radio], input:[type=checkbox], input:[type=textarea], input:[type=select]").blur(function () {
		this.style.background=lostFocusColor;
	});
});



