function colorField(paramName, colorValue) { if (document.getElementById(paramName)) document.getElementById(paramName).style.background = colorValue; }