var COL_GLOW="#e5e5e5";
var sPrev="", eventobj;
var intended=/INPUT|TEXTAREA|SELECT|OPTION/;

function chkValid(which) {
	if (!ie&&!dom) return;
	if (which.style&&intended.test(which.tagName)){
		if (nn6&&eventobj.nodeType==3) eventobj=eventobj.parentNode.parentNode;
		return true
	} else return false
}

function glow(e) {
	if (!ie&&!dom) return;
	eventobj=nn6?e.target:event.srcElement;
	if (sPrev!="") {
		if (chkValid(sPrev)) sPrev.style.backgroundColor="";
		sPrev=eventobj;
		if (chkValid(eventobj)) eventobj.style.backgroundColor=COL_GLOW;
	} else {
		if (chkValid(eventobj)) eventobj.style.backgroundColor=COL_GLOW;
		sPrev=eventobj;
	}
}

function normalize() {
	if (!ie&&!dom) return;
	if (sPrev!="") {if (chkValid(sPrev)) sPrev.style.backgroundColor="";}
}

