function roll(theObject,onORoff) { theColors = ['#E2FFDE','yellow']; theObject.style.backgroundColor=theColors[onORoff]; }