var clickedButton = "";
// JavaScript for questionnaire buttons
function OdinButtonClick(event, button) {
	clickedButton = button.id.substring(10, button.id.length);
	button.className = 'odinbutton odinbuttonclicked ' + button.id + ' ' + button.id + 'clicked';
}
function OdinButtonMouseDown(event, button) {
}
function OdinButtonMouseUp(event, button) {
	button.className = 'odinbutton odinbuttonnormal ' + button.id + ' ' + button.id + 'normal';
}
function OdinButtonMouseOver(event, button) {
	button.className = 'odinbutton odinbuttonhovered ' + button.id + ' ' + button.id + 'hovered';
}
function OdinButtonMouseOut(event, button) {
	button.className = 'odinbutton odinbuttonnormal ' + button.id + ' ' + button.id + 'normal';
}
function OdinButtonFocus(event, button) {
	button.className = 'odinbutton odinbuttonfocused ' + button.id + ' ' + button.id + 'focused';
}
function OdinButtonBlur(event, button) {
	button.className = 'odinbutton odinbuttonnormal ' + button.id + ' ' + button.id + 'normal';
}
function clickOK() {
	var button = document.getElementById("odinbuttonOK");
	if (button != null) {
		button.click();
	} else {
		button = document.getElementById("odinbuttonSTART");
		if (button != null) {
			button.click();
		}
	}
}
