/************************************************************************
 * ChangeColor: This function, when passed a division (or span) name and
 * a color, changes the text color of that division, if it exists.
 * (IE4+, NS4+ only)
 * To get this to work in NS, you have to surround the text you want to
 * highlight with <SPAN id=blah style="position:relative">some text</span>
 * The id speced is what you pass into the 'div' argument.  The
 * 'style="position:relative"' is key for netscape v4.
 */

function ChangeColor(div, color) {
	if((document.getElementById) && (eval("document.getElementById('" + div + "')"))) {
		eval("document.getElementById('" + div + "').style.background='" + (color ? color : 0) + "'");
	}
	else if ((document.layers) && (document.layers[div])) {
		document.layers[div].bgColor=(color?color:null);
	}
}

/*
// old function
function ChangeColor(div, color){
	if((document.all) && (eval('document.all.'+div))) {
		eval('document.all.'+div+'.style.background="'+(color?color:0)+'"');		
		}
	else if ((document.layers) && (document.layers[div])) {
		document.layers[div].bgColor=(color?color:null);
		}
	}
*/
