function submitForm(form) {
	if ((getRadioButtonValue(form.over18) == "Yes") && (getRadioButtonValue(form.wageEarner) == "Yes")) {
		form.submit();
	} else {
		alert("You must be over 18 years old and a wage/salary earner to apply for a NAB personal loan");
	}
}

function getRadioButtonValue(radio) {
	var cValue = "";
	for (var i = 0; i < radio.length; i++) {
		if (radio[i].checked) { cValue = radio[i].value; break }
	}

	return cValue
}
