// this file is dynamically generated
function validatefields1783(form){
var alertmsg = 'Summer Enrichment Program Registration Form 2010: Please enter the following required information:\n\n';
var options = 0;
var answers_num = 0;
var options = 0;var answers_num = 0;
if(form.choice15874[1-1].checked == true)options++;
if(form.choice15874[2-1].checked == true)options++;
if(form.choice15874[3-1].checked == true)options++;
if(form.choice15874[4-1].checked == true)options++;
if(form.choice15874[5-1].checked == true)options++;
if(form.choice15874[6-1].checked == true)options++;
if(form.choice15874[7-1].checked == true)options++;
if(form.choice15874[8-1].checked == true)options++;
answers_num = 3;
if (options < answers_num) alertmsg = alertmsg + "You must select at least " + answers_num + " option(s) for question # 1.\n";
if(form.answertext15830.value == "") alertmsg = alertmsg + "Please answer question # 2.\n";
if(form.answertext15831.value == "") alertmsg = alertmsg + "Please answer question # 3.\n";
var options = 0;var answers_num = 0;
if(form.choice15833[1-1].checked == true)options++;
if(form.choice15833[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 # 5.\n";
if(form.answertext15834.value == "") alertmsg = alertmsg + "Please answer question # 6.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice15836.length;i++){if(form.choice15836[i].selected==true)options++;}
if(form.answertext15837.value == "") alertmsg = alertmsg + "Please answer question # 9.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice15838.length;i++){if(form.choice15838[i].selected==true)options++;}
if (options == 0) alertmsg = alertmsg + "You must select at least 1 option for question # 10.\n";
if(form.answertext15839.value == "") alertmsg = alertmsg + "Please answer question # 11.\n";
if(form.answertext15840.value == "") alertmsg = alertmsg + "Please answer question # 12.\n";
if(form.answertext15841.value == "") alertmsg = alertmsg + "Please answer question # 13.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice15849.length;i++){if(form.choice15849[i].selected==true)options++;}
var options = 0;var answers_num = 0;
if(form.choice15858[1-1].checked == true)options++;
if(form.choice15858[2-1].checked == true)options++;
if(form.choice15858[3-1].checked == true)options++;
if(form.choice15858[4-1].checked == true)options++;
if(form.choice15858[5-1].checked == true)options++;
answers_num = 1;
if (options < answers_num) alertmsg = alertmsg + "You must select at least " + answers_num + " option(s) for question # 29.\n";
var options = 0;var answers_num = 0;
if(form.choice15859[1-1].checked == true)options++;
if(form.choice15859[2-1].checked == true)options++;
if(form.choice15859[3-1].checked == true)options++;
if(form.choice15859[4-1].checked == true)options++;
answers_num = 1;
if (options < answers_num) alertmsg = alertmsg + "You must select at least " + answers_num + " option(s) for question # 30.\n";
if(form.answertext15876.value == "") alertmsg = alertmsg + "Please answer question # 32.\n";
if(form.answertext15877.value == "") alertmsg = alertmsg + "Please answer question # 33.\n";
if(form.answertext15878.value == "") alertmsg = alertmsg + "Please answer question # 34.\n";
if(form.answertext15879.value == "") alertmsg = alertmsg + "Please answer question # 35.\n";
if(form.answertext15880.value == "") alertmsg = alertmsg + "Please answer question # 36.\n";
var options = 0;var answers_num = 0;
if(form.choice15863[1-1].checked == true)options++;
if(form.choice15863[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 # 38.\n";
var options = 0;var answers_num = 0;
if(form.choice15865[1-1].checked == true)options++;
if(form.choice15865[2-1].checked == true)options++;
answers_num = 0;
if (options < answers_num) alertmsg = alertmsg + "You must select at least " + answers_num + " option(s) for question # 40.\n";
var options = 0;var answers_num = 0;
if(form.choice15869[1-1].checked == true)options++;
if(form.choice15869[2-1].checked == true)options++;
if(form.choice15869[3-1].checked == true)options++;
if(form.choice15869[4-1].checked == true)options++;
if(form.choice15869[5-1].checked == true)options++;
if(form.choice15869[6-1].checked == true)options++;
if(form.choice15869[7-1].checked == true)options++;
if(form.choice15869[8-1].checked == true)options++;
answers_num = 1;
if (options < answers_num) alertmsg = alertmsg + "You must select at least " + answers_num + " option(s) for question # 43.\n";
var options = 0;var answers_num = 0;
if(form.choice15871[1-1].checked == true)options++;
if(form.choice15871[2-1].checked == true)options++;
answers_num = 0;
if (options < answers_num) alertmsg = alertmsg + "You must select at least " + answers_num + " option(s) for question # 44.\n";
var options = 0;var answers_num = 0;
if(form.choice15882[1-1].checked == true)options++;
if(form.choice15882[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 # 45.\n";
if (alertmsg == 'Summer Enrichment Program Registration Form 2010: Please enter the following required information:\n\n'){
	return true;
}
else { 
	alert(alertmsg);
	return false;
}
}
