/* ----------------------------------------------------------------------------------------------
Author: 	Brent McClintock --- bmcclintock@legis.state.pa.us
Date:		August 4, 2001
Purpose:  	used along with style-sheets to give 'roll-over' appearance to buttons
---------------------------------------------------------------------------------------------- */

// creates 'rollover' effect for buttons
// glow = 1(yes,on) or 0(no,off)
// bgColor, fgColor = background/foreground colors when button is "glowing"
function glowButton(object_id,glow,bgColor,fgColor)
{
	var objID = document.getElementById(object_id);
	if(glow == 1)
	{
		objID.style.backgroundColor = bgColor;		// GLOW 
		objID.style.color = fgColor;				// GLOW
		objID.style.borderStyle = "inset";			// "sink" button
	}	
	else	// return to style-sheet properties
	{ 
		objID.style.backgroundColor = '#000080'; 	// navy button
	  	objID.style.color = '#FFFFFF';				// white text
		objID.style.borderStyle = "outset";			// "raise" button
	} 	
}
