// this file is dynamically generated
function validatefields591(form){
var alertmsg = 'How to Get Out of a Religious Rut: Please enter the following required information:\n\n';
var options = 0;
var answers_num = 0;
if(form.answertext4060.value == "") alertmsg = alertmsg + "Please answer question # 1.\n";
if(form.answertext4063.value == "") alertmsg = alertmsg + "Please answer question # 2.\n";
var options = 0;var answers_num = 0;
if(form.choice4070[1-1].checked == true)options++;
if(form.choice4070[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 # 3.\n";
var options = 0;var answers_num = 0;
if(form.choice4077[1-1].checked == true)options++;
if(form.choice4077[2-1].checked == true)options++;
if(form.choice4077[3-1].checked == true)options++;
if(form.choice4077[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 # 4.\n";
var options = 0;var answers_num = 0;
if(form.choice4078[1-1].checked == true)options++;
if(form.choice4078[2-1].checked == true)options++;
if(form.choice4078[3-1].checked == true)options++;
if(form.choice4078[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 # 5.\n";
var options = 0;var answers_num = 0;
if(form.choice4079[1-1].checked == true)options++;
if(form.choice4079[2-1].checked == true)options++;
if(form.choice4079[3-1].checked == true)options++;
if(form.choice4079[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 # 6.\n";
var options = 0;var answers_num = 0;
if(form.choice4081[1-1].checked == true)options++;
if(form.choice4081[2-1].checked == true)options++;
if(form.choice4081[3-1].checked == true)options++;
if(form.choice4081[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 # 7.\n";
var options = 0;var answers_num = 0;
if(form.choice4082[1-1].checked == true)options++;
if(form.choice4082[2-1].checked == true)options++;
if(form.choice4082[3-1].checked == true)options++;
if(form.choice4082[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 # 8.\n";
var options = 0;var answers_num = 0;
if(form.choice4086[1-1].checked == true)options++;
if(form.choice4086[2-1].checked == true)options++;
if(form.choice4086[3-1].checked == true)options++;
if(form.choice4086[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 # 9.\n";
var options = 0;var answers_num = 0;
if(form.choice4090[1-1].checked == true)options++;
if(form.choice4090[2-1].checked == true)options++;
if(form.choice4090[3-1].checked == true)options++;
if(form.choice4090[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 # 10.\n";
var options = 0;var answers_num = 0;
if(form.choice4091[1-1].checked == true)options++;
if(form.choice4091[2-1].checked == true)options++;
if(form.choice4091[3-1].checked == true)options++;
if(form.choice4091[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 # 11.\n";
var options = 0;var answers_num = 0;
if(form.choice4092[1-1].checked == true)options++;
if(form.choice4092[2-1].checked == true)options++;
if(form.choice4092[3-1].checked == true)options++;
if(form.choice4092[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 # 12.\n";
var options = 0;var answers_num = 0;
if(form.choice4093[1-1].checked == true)options++;
if(form.choice4093[2-1].checked == true)options++;
if(form.choice4093[3-1].checked == true)options++;
if(form.choice4093[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 # 13.\n";
if(form.answertext7670.value == "") alertmsg = alertmsg + "Please answer question # 14.\n";
if(form.answertext7671.value == "") alertmsg = alertmsg + "Please answer question # 15.\n";
if(form.answertext7672.value == "") alertmsg = alertmsg + "Please answer question # 16.\n";
var options = 0;var answers_num = 0;
if(form.choice7711[1-1].checked == true)options++;
if(form.choice7711[2-1].checked == true)options++;
if(form.choice7711[3-1].checked == true)options++;
if(form.choice7711[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 # 17.\n";
var options = 0;var answers_num = 0;
if(form.choice7712[1-1].checked == true)options++;
if(form.choice7712[2-1].checked == true)options++;
if(form.choice7712[3-1].checked == true)options++;
if(form.choice7712[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 # 18.\n";
var options = 0;var answers_num = 0;
if(form.choice7713[1-1].checked == true)options++;
if(form.choice7713[2-1].checked == true)options++;
if(form.choice7713[3-1].checked == true)options++;
if(form.choice7713[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 # 19.\n";
var options = 0;var answers_num = 0;
if(form.choice7714[1-1].checked == true)options++;
if(form.choice7714[2-1].checked == true)options++;
if(form.choice7714[3-1].checked == true)options++;
if(form.choice7714[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 # 20.\n";
var options = 0;var answers_num = 0;
if(form.choice7715[1-1].checked == true)options++;
if(form.choice7715[2-1].checked == true)options++;
if(form.choice7715[3-1].checked == true)options++;
if(form.choice7715[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 # 21.\n";
if(form.answertext7716.value == "") alertmsg = alertmsg + "Please answer question # 22.\n";
var options = 0;var answers_num = 0;
if(form.choice7717[1-1].checked == true)options++;
if(form.choice7717[2-1].checked == true)options++;
if(form.choice7717[3-1].checked == true)options++;
if(form.choice7717[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 # 23.\n";
if(form.answertext7718.value == "") alertmsg = alertmsg + "Please answer question # 24.\n";
var options = 0;var answers_num = 0;
if(form.choice7719[1-1].checked == true)options++;
if(form.choice7719[2-1].checked == true)options++;
if(form.choice7719[3-1].checked == true)options++;
if(form.choice7719[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 # 25.\n";
var options = 0;var answers_num = 0;
if(form.choice7720[1-1].checked == true)options++;
if(form.choice7720[2-1].checked == true)options++;
if(form.choice7720[3-1].checked == true)options++;
if(form.choice7720[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 # 26.\n";
if(form.answertext7721.value == "") alertmsg = alertmsg + "Please answer question # 27.\n";
if(form.answertext7722.value == "") alertmsg = alertmsg + "Please answer question # 28.\n";
if(form.answertext7723.value == "") alertmsg = alertmsg + "Please answer question # 29.\n";
if(form.answertext7724.value == "") alertmsg = alertmsg + "Please answer question # 30.\n";
var options = 0;var answers_num = 0;
if(form.choice7725[1-1].checked == true)options++;
if(form.choice7725[2-1].checked == true)options++;
if(form.choice7725[3-1].checked == true)options++;
if(form.choice7725[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 # 31.\n";
var options = 0;var answers_num = 0;
if(form.choice7726[1-1].checked == true)options++;
if(form.choice7726[2-1].checked == true)options++;
if(form.choice7726[3-1].checked == true)options++;
if(form.choice7726[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 # 32.\n";
var options = 0;var answers_num = 0;
if(form.choice7727[1-1].checked == true)options++;
if(form.choice7727[2-1].checked == true)options++;
if(form.choice7727[3-1].checked == true)options++;
if(form.choice7727[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 # 33.\n";
if(form.answertext7728.value == "") alertmsg = alertmsg + "Please answer question # 34.\n";
if(form.answertext7729.value == "") alertmsg = alertmsg + "Please answer question # 35.\n";
var options = 0;var answers_num = 0;
if(form.choice7730[1-1].checked == true)options++;
if(form.choice7730[2-1].checked == true)options++;
if(form.choice7730[3-1].checked == true)options++;
if(form.choice7730[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 # 36.\n";
if(form.answertext7731.value == "") alertmsg = alertmsg + "Please answer question # 37.\n";
var options = 0;var answers_num = 0;
if(form.choice7732[1-1].checked == true)options++;
if(form.choice7732[2-1].checked == true)options++;
if(form.choice7732[3-1].checked == true)options++;
if(form.choice7732[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 # 38.\n";
if(form.answertext7733.value == "") alertmsg = alertmsg + "Please answer question # 39.\n";
var options = 0;var answers_num = 0;
if(form.choice7734[1-1].checked == true)options++;
if(form.choice7734[2-1].checked == true)options++;
if(form.choice7734[3-1].checked == true)options++;
if(form.choice7734[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 # 40.\n";
if(form.answertext7735.value == "") alertmsg = alertmsg + "Please answer question # 41.\n";
if(form.answertext7736.value == "") alertmsg = alertmsg + "Please answer question # 42.\n";
if(form.answertext7737.value == "") alertmsg = alertmsg + "Please answer question # 43.\n";
if(form.answertext7738.value == "") alertmsg = alertmsg + "Please answer question # 44.\n";
if(form.answertext7739.value == "") alertmsg = alertmsg + "Please answer question # 45.\n";
if (alertmsg == 'How to Get Out of a Religious Rut: Please enter the following required information:\n\n'){
	return true;
}
else { 
	alert(alertmsg);
	return false;
}
}
