// this file is dynamically generated
function validatefields1(form){
var alertmsg = "Form One: Please enter the following required information:\n\n";
var options = 0;
var answers_num = 0;
if(form.answertext2.value == "") alertmsg = alertmsg + "Please answer question # 1.\n";
if (alertmsg == "Form One: Please enter the following required information:\n\n"){
	return true;
}
else { 
	alert(alertmsg);
	return false;
}
}
function validatefields2(form){
var alertmsg = "Form Title: Please enter the following required information:\n\n";
var options = 0;
var answers_num = 0;
if(form.answertext4.value == "") alertmsg = alertmsg + "Please answer question # 1.\n";
options = 0;
if(form.choice6[1-1].checked == true)options++;
if(form.choice6[2-1].checked == true)options++;
if(form.choice6[3-1].checked == true)options++;
if(form.choice6[4-1].checked == true)options++;
if(form.choice6[5-1].checked == true)options++;
if(form.choice6[6-1].checked == true)options++;
answers_num = 1;
if (options < answers_num) alertmsg = alertmsg + "You must select at least " + answers_num + " option(s) for question # 2.\n";
options = 0;
if(form.choice7[1-1].checked == true)options++;
if(form.choice7[2-1].checked == true)options++;
if(form.choice7[3-1].checked == true)options++;
if(form.choice7[4-1].checked == true)options++;
if(form.choice7[5-1].checked == true)options++;
if(form.choice7[6-1].checked == true)options++;
answers_num = 2;
if (options < answers_num) alertmsg = alertmsg + "You must select at least " + answers_num + " option(s) for question # 4.\n";
if (alertmsg == "Form Title: Please enter the following required information:\n\n"){
	return true;
}
else { 
	alert(alertmsg);
	return false;
}
}

