function addButtonToButtonBar(text) {
	var buttonBar = $('controls');
	var button = new Element('div', {
		'class': 'button',
		'html': text,
	});
	buttonBar.adopt(button);

	return button;
}

