Combining JS Function

Hey, is there a way I can call this differently so both IDs are called within 1 setFooter?


window.onload = function() {
	setFooter('footer-left');
	setFooter('footer-right');
}