// this file is dynamically generated
function validatefields122(form){
var alertmsg = 'Estimate Request: Please enter the following required information:\n\n';
var options = 0;
var answers_num = 0;
if(form.answertext1150.value == "") alertmsg = alertmsg + "Please answer question # 1.\n";
if(form.answertext1151.value == "") alertmsg = alertmsg + "Please answer question # 2.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice1154.length;i++){if(form.choice1154[i].selected==true)options++;}
if (options == 0) alertmsg = alertmsg + "You must select at least 1 option for question # 5.\n";
if(form.answertext1155.value == "") alertmsg = alertmsg + "Please answer question # 6.\n";
if(form.answertext1156.value == "") alertmsg = alertmsg + "Please answer question # 7.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice1165.length;i++){if(form.choice1165[i].selected==true)options++;}
var options = 0;var answers_num = 0;
for(i=1;i<form.choice1166.length;i++){if(form.choice1166[i].selected==true)options++;}
var options = 0;var answers_num = 0;
if(form.choice1162[1-1].checked == true)options++;
if(form.choice1162[2-1].checked == true)options++;
if(form.choice1162[3-1].checked == true)options++;
if(form.choice1162[4-1].checked == true)options++;
if(form.choice1162[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 # 17.\n";
var options = 0;var answers_num = 0;
if(form.choice1163[1-1].checked == true)options++;
if(form.choice1163[2-1].checked == true)options++;
if(form.choice1163[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 # 18.\n";
if(form.user_email.value == "") alertmsg = alertmsg + "Please enter your Email Address.\n";
if (alertmsg == 'Estimate Request: Please enter the following required information:\n\n'){
	return true;
}
else { 
	alert(alertmsg);
	return false;
}
}

