function setColours(object, foreground, background) {
var style;

if((style = object.style)) {
if('string' == typeof foreground) {style.color = foreground;}
if('string' == typeof background) {style.backgroundColor = background;}
}
}