function changeBgColor(id, color) 
{
 	var item;
	
	if (document.getElementById) 
	{
	   item = document.getElementById(id);
	} else if (document.all) 
	{
	  item = document.all(id);
	}
	
	if (item && item.style) 
	{
	  item.style.backgroundColor = color;
	}
}