prova a cambiare il doppio apice in singolo apice

codice:
/*Controllo Background Color */
function bg_color() {
if (bgchange.value=='0')
document.getElementById('bg').style.backgroundColor='silver';
else if (bgchange.value=='1')
document.getElementById('bg').style.backgroundColor='white';
else if (bgchange.value=='2')
document.getElementById('bg').style.backgroundColor='lightgreen';
else if (bgchange.value=='3')
document.getElementById('bg').style.backgroundColor='lightyellow';
}