// alpha question
function initialiseAlphaQuestion() {
	initialiseQuestion();
	alphaElement = findElementByClassName(document.forms[0], "odinalpha");
	alphaElement.focus();
	if (odinbrowser && odinbrowser.isIE) {
		questionConstraints.questionForm.attachEvent("onsubmit", ValidateAlphaAnswer);
	} else {
		questionConstraints.questionForm.onsubmit = ValidateAlphaAnswer;
	}
}
function initialiseAlphaFormElements() {
}
// all events that are called for an alpha question field
function OdinOnAlphaKeyDown(event, sender) {
	if (window.event) {
		event = window.event;
	}
	if (event.keyCode == 13) {
		if (window.event) {
			event.returnValue = false;
			event.cancelBubble = true;
		} else {
			event.preventDefault();
			event.stopPropagation();
		}
		clickOK();
	}
}
//-----------------------------------------------------------------------------
// A linked validation error text has been clicked
//-----------------------------------------------------------------------------
function validationErrorClick(error) {
}
function ValidateAlphaAnswer(event) {
	// only validate if OK button is pressed and if no *NON is specified
	if (clickedButton == "OK" && questionConstraints.allowNon != true) {
		if (alphaElement) {
			if (!alphaElement.value || alphaElement.value.length == 0) {
				reportValidationError(1, null);
// will have to be enabled for if reporting validation errors is in place
//				alphaElement.focus();
//				return false;
			}
		}
	}
	return true;
}

