    function bCS(objX,colorY,switchZ) { // b (background) C (color) S (switch)

	   // set global colors - if colorY is 1, we use these
	   var offColor = "";
	   var onColor = "#EEEEEE";
	   
	   // tests for proper DOM
	   if (document.getElementById) {
		 if ((switchZ == 1) && (colorY == 1)) { // turn on global color
				objX.style.backgroundColor = onColor;
			}
		else if ((switchZ == 1) && (colorY != 1)) { // turn on specified color
				objX.style.backgroundColor = colorY;
			}
		else if ((switchZ == 0) && (colorY == 1)) { // turn off global color
				objX.style.backgroundColor = offColor;
			}
		else if ((switchZ == 0) && (colorY != 1)) { // turn off specified color
				objX.style.backgroundColor = colorY;
			}
		}
   }

