// this file is dynamically generated
function validatefields982(form){
var alertmsg = 'AHS Instrument Rental Contract: Please enter the following required information:\n\n';
var options = 0;
var answers_num = 0;
if(form.answertext9055.value == "") alertmsg = alertmsg + "Please answer question # 1.\n";
if(form.answertext9064.value == "") alertmsg = alertmsg + "Please answer question # 2.\n";
if(form.answertext9052.value == "") alertmsg = alertmsg + "Please answer question # 3.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice9053.length;i++){if(form.choice9053[i].selected==true)options++;}
if (options == 0) alertmsg = alertmsg + "You must select at least 1 option for question # 4.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice9054.length;i++){if(form.choice9054[i].selected==true)options++;}
if (options == 0) alertmsg = alertmsg + "You must select at least 1 option for question # 5.\n";
var options = 0;var answers_num = 0;
if(form.choice9056[1-1].checked == true)options++;
if(form.choice9056[2-1].checked == true)options++;
if(form.choice9056[3-1].checked == true)options++;
if(form.choice9056[4-1].checked == true)options++;
if(form.choice9056[5-1].checked == true)options++;
if(form.choice9056[6-1].checked == true)options++;
if(form.choice9056[7-1].checked == true)options++;
if(form.choice9056[8-1].checked == true)options++;
if(form.choice9056[9-1].checked == true)options++;
answers_num = 1;
if (options < answers_num) alertmsg = alertmsg + "You must select at least " + answers_num + " option(s) for question # 6.\n";
if(form.answertext9058.value == "") alertmsg = alertmsg + "Please answer question # 7.\n";
if(form.answertext9059.value == "") alertmsg = alertmsg + "Please answer question # 8.\n";
var options = 0;var answers_num = 0;
for(i=1;i<form.choice9060.length;i++){if(form.choice9060[i].selected==true)options++;}
if (options == 0) alertmsg = alertmsg + "You must select at least 1 option for question # 9.\n";
var options = 0;var answers_num = 0;
if(form.choice9063[1-1].checked == true)options++;
if(form.choice9063[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 # 12.\n";
if(form.user_email.value == "") alertmsg = alertmsg + "Please enter your Email Address.\n";
if (alertmsg == 'AHS Instrument Rental Contract: Please enter the following required information:\n\n'){
	return true;
}
else { 
	alert(alertmsg);
	return false;
}
}

