// this file is dynamically generated
function validatefields878(form){
var alertmsg = 'Awana Leadership Registration: Please enter the following required information:\n\n';
var options = 0;
var answers_num = 0;
if(form.answertext8766.value == "") alertmsg = alertmsg + "Please answer question # 1.\n";
if(form.answertext8767.value == "") alertmsg = alertmsg + "Please answer question # 2.\n";
if(form.answertext8768.value == "") alertmsg = alertmsg + "Please answer question # 3.\n";
if(form.answertext8769.value == "") alertmsg = alertmsg + "Please answer question # 4.\n";
var options = 0;var answers_num = 0;
if(form.choice8771[1-1].checked == true)options++;
if(form.choice8771[2-1].checked == true)options++;
if(form.choice8771[3-1].checked == true)options++;
if(form.choice8771[4-1].checked == true)options++;
if(form.choice8771[5-1].checked == true)options++;
if(form.choice8771[6-1].checked == true)options++;
if(form.choice8771[7-1].checked == true)options++;
answers_num = 1;
if (options < answers_num) alertmsg = alertmsg + "You must select at least " + answers_num + " option(s) for question # 5.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice8772.length;i++){if(form.choice8772[i].selected==true)options++;}
if (options == 0) alertmsg = alertmsg + "You must select at least 1 option for question # 6.\n";
var options = 0;var answers_num = 0;
if(form.choice8773[1-1].checked == true)options++;
if(form.choice8773[2-1].checked == true)options++;
if(form.choice8773[3-1].checked == true)options++;
answers_num = 1;
if (options < answers_num) alertmsg = alertmsg + "You must select at least " + answers_num + " option(s) for question # 7.\n";
if (alertmsg == 'Awana Leadership Registration: Please enter the following required information:\n\n'){
	return true;
}
else { 
	alert(alertmsg);
	return false;
}
}
