/*
general.js (this script) copyright (c) Steve Tucker 2006.
Pretty please do not use this script without my knowledge and permission
but by all means feel free to read through it for educational and learning purposes.
Cheers!
*/


function highlight_rows() {
	if (!document.getElementsByClassName) return false;
	if (!document.getElementsByClassName('textbox')) return false;
	
	var $fields = document.getElementsByClassName('textbox');

	for (var $i=0; $i<$fields.length; $i++) {
		$fields[$i].onfocus = function() {
			this.style.backgroundColor = '#FCF8F8';
		}
		$fields[$i].onblur = function() {
			this.style.backgroundColor = '#FFFFFF';
		}
	}
}
addLoadEvent(highlight_rows);



