Potresti cambiare la classe all'oggetto:
document.getElmentByTagName('body')[0].className = 'nuovaclasse';
Oppure puoi cambiare i singoli attributi CSS:
function sfondo(colore) {
var bb = document.getElmentByTagName('body')[0];
bb.style.backgroundColor = colore;
bb.style.backgroundImage = 'url(sub.jpg)';
bb.style.backgroundPosition = '800px 5px';
bb.style.backgroundRepeat = 'no-repeat';
bb.style.backgroundAttachment = 'fixed';
}