// this file is dynamically generated
function validatefields584(form){
var alertmsg = 'Step 1 of 2: Complete Registration Form: Please enter the following required information:\n\n';
var options = 0;
var answers_num = 0;
if(form.answertext4019.value == "") alertmsg = alertmsg + "Please answer question # 1.\n";
var options = 0;var answers_num = 0;
if(form.choice4020[1-1].checked == true)options++;
if(form.choice4020[2-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";
if(form.answertext4021.value == "") alertmsg = alertmsg + "Please answer question # 3.\n";
if(form.answertext4022.value == "") alertmsg = alertmsg + "Please answer question # 4.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice4023.length;i++){if(form.choice4023[i].selected==true)options++;}
if (options == 0) alertmsg = alertmsg + "You must select at least 1 option for question # 5.\n";
if(form.answertext4024.value == "") alertmsg = alertmsg + "Please answer question # 6.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice4025.length;i++){if(form.choice4025[i].selected==true)options++;}
if (options == 0) alertmsg = alertmsg + "You must select at least 1 option for question # 7.\n";
if(form.answertext4031.value == "") alertmsg = alertmsg + "Please answer question # 8.\n";
if(form.answertext4032.value == "") alertmsg = alertmsg + "Please answer question # 9.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice4035.length;i++){if(form.choice4035[i].selected==true)options++;}
if (options == 0) alertmsg = alertmsg + "You must select at least 1 option for question # 12.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice4036.length;i++){if(form.choice4036[i].selected==true)options++;}
if (options == 0) alertmsg = alertmsg + "You must select at least 1 option for question # 13.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice6481.length;i++){if(form.choice6481[i].selected==true)options++;}
if (options == 0) alertmsg = alertmsg + "You must select at least 1 option for question # 14.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice4037.length;i++){if(form.choice4037[i].selected==true)options++;}
var options = 0;var answers_num = 0;
if(form.choice16362[1-1].checked == true)options++;
if(form.choice16362[2-1].checked == true)options++;
answers_num = 1;
if (options < answers_num) alertmsg = alertmsg + "You must select at least " + answers_num + " option(s) for question # 17.\n";
if(form.answertext17146.value == "") alertmsg = alertmsg + "Please answer question # 18.\n";
if (alertmsg == 'Step 1 of 2: Complete Registration Form: Please enter the following required information:\n\n'){
	return true;
}
else { 
	alert(alertmsg);
	return false;
}
}
