und nochmal,
function hinterlegen (x){
for(i=0; i<document.getElementsByName(x).length; i++)(
document.getElementsByName(x)[i].style.backgroundColor='silver';
}
}
ich hatte den Punt vor style auch noch vergessen, also ".style.backgroundColor"
Gruß Gernot