function borderit(which,color){ //if IE 4+ or NS 6+ if (document.all||document.getElementById){ which.style.borderColor=color } } function bgit(which,color){ //if IE 4+ or NS 6+ if (document.all||document.getElementById){ which.style.backgroundColor=color } } function bgimage(which,color){ //if IE 4+ or NS 6+ if (document.all||document.getElementById){ which.style.backgroundImage=color } }