
function padDate(val) 
{
	return (val < 10) ? '0' + val : val;
}

String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g, "");
}

function checkLeaderForm(thisform)
{
	// FIRSTNAME
	if (document.thisform.firstname.value.trim() == "")
	{
		alert('Please enter your first name.');
		document.thisform.firstname.focus();
		return false;
	}
	
	// LASTNAME
	if (document.thisform.lastname.value.trim() == "")
	{
		alert('Please enter your last name.');
		document.thisform.lastname.focus();
		return false;
	}
	
	// ADDRESS
	if (document.thisform.address.value.trim() == "")
	{
		alert('Please enter your street address.');
		document.thisform.address.focus();
		return false;
	}
	
	// CITY
	if (document.thisform.city.value.trim() == "")
	{
		alert('Please enter your city.');
		document.thisform.city.focus();
		return false;
	}
	
	// ZIP
	if (document.thisform.zip.value.trim() == "")
	{
		alert('Please enter your zip code.');
		document.thisform.zip.focus();
		return false;
	}
	else
	{
		var zip = document.thisform.zip.value;
		valid_zip=/^[0-9]{5}$/;
	
		if (!valid_zip.test(zip))
		{
			alert('Invalid zip code.\n' + 
				  'Please use the format of the example below.\n' + 
				  '(ex. 92626)');
			document.thisform.zip.focus();
			return false;
		}
	}
	
	// CELL PHONE
	if (document.thisform.cellphone.value.trim() == "")
	{
		alert('Please enter your cell phone.');
		document.thisform.cellphone.focus();
		return false;
	}
	else
	{
		var cell_phone = document.thisform.cellphone.value;
		valid_phone=/^[0-9]{3}[\-]{1}[0-9]{3}[\-]{1}[0-9]{4}$/;
	
		if (!valid_phone.test(cell_phone))
		{
			alert('Invalid phone number.\n' + 
				  'Please use the format of the example below.\n' + 
				  '(ex. 111-222-3333)');
			document.thisform.cellphone.focus();
			return false;
		}
	}
	
	// EMAIL & CONFIRM EMAIL
	if (document.thisform.email1.value.trim() == "")
	{
		alert('Please enter your email address.');
		document.thisform.email1.focus();
		return false;
	}
	else
	{
		if (document.thisform.email2.value.trim() == "")
		{
			alert('Please confirm your email address.');
			document.thisform.email2.focus();
			return false;
		}
		else if (document.thisform.email1.value != document.thisform.email2.value)
		{
			document.thisform.email1.value = ""
			document.thisform.email2.value = ""
			alert('Email addresses do not match.\n' + 
				  'Please re-enter your email address.');
			document.thisform.email1.focus();
			return false;
		}
	}
	
	// DATE OF BIRTH
	var now = new Date();
	var month = padDate(now.getMonth() + 1);
	var day = padDate(now.getDate());
	var year = padDate(now.getFullYear());
	var today = year + "" + month + "" + day;
	var birthDate = document.thisform.birthday.value;

	//alert("'" + today + "', '" + birthDate + "'");
	
	if (birthDate >= today)
	{
		alert('Please enter your date of birth.');
		//document.thisform.birthday.focus();
		return false;
	}
	
	// MARITAL STATUS
	if (document.thisform.maritalstatus[0].checked == false && document.thisform.maritalstatus[1].checked == false)
	{
		alert ('Please select your marital status.');
		document.thisform.maritalstatus[0].focus();
		return false;
	}
	
	/* COLLEGE OR UNIVERSITY
	if (document.thisform.college.value.trim() == "")
	{
		alert('Please enter your college.');
		document.thisform.college.focus();
		return false;
	}
	
	// DEGREE
	if (document.thisform.degree.value.trim() == "")
	{
		alert('Please enter your degree.');
		document.thisform.degree.focus();
		return false;
	}
	
	// GRADUATION DATE
	var now = new Date();
	var month = padDate(now.getMonth() + 1);
	var day = padDate(now.getDate());
	var year = padDate(now.getYear());
	var today = month + "/" + day + "/" + year;
	var gradDate = document.thisform.graduationdate.value;

	if (gradDate == today)
	{
		alert('Please enter your graduation date.');
		//document.thisform.graduationdate.focus();
		return false;
	}
	*/
	
	// AVAILABILITY TO MEET
	if (document.thisform.mon_before_9am.checked == false && document.thisform.mon_after_6pm.checked == false && 
		document.thisform.tue_before_9am.checked == false && document.thisform.tue_after_6pm.checked == false && 
		document.thisform.wed_before_9am.checked == false && document.thisform.wed_after_6pm.checked == false && 
		document.thisform.thu_before_9am.checked == false && document.thisform.thu_after_6pm.checked == false && 
		document.thisform.fri_before_9am.checked == false && document.thisform.fri_after_6pm.checked == false)
	{
		if (document.thisform.otherdays.value.trim() == "")
		{
			alert ('Please check your availability to meet or\n' + 
				   'enter other days/times.');
			document.thisform.mon_before_9am.focus();
			return false;
		}
	}
	
	// DO YOU CONSIDER ROCKHARBOR (RH) YOUR HOME CHURCH?
	if (document.thisform.mi1[0].checked == false && document.thisform.mi1[1].checked == false)
	{
		alert('Please answer the question,\n' + 
			  '"Do you consider ROCKHARBOR (RH) your home church?"');
		document.thisform.mi1[0].focus();
		return false;
	}
	
	// WHICH WEEKEND SERVICE TIME DO YOU NORMALLY ATTEND AT RH?
	if (document.thisform.mi2.value.trim() == "")
	{
		alert('Please answer the question,\n' + 
			  '"Which weekend service time do you normally attend at RH?"');
		document.thisform.mi2.focus();
		return false;
	}
	
	// ON AVERAGE, HOW MANY WEEKEND SERVICES DO YOU ATTEND EACH MONTH?
	if (document.thisform.mi3[0].checked == false && document.thisform.mi3[1].checked == false && 
		document.thisform.mi3[2].checked == false && document.thisform.mi3[3].checked == false)
	{
		alert('Please answer the question,\n' + 
			  '"On average, how many weekend services do you attend each month?"');
		document.thisform.mi3[0].focus();
		return false;
	}
	
	// ARE YOU CURRENTLY INVOLVED IN A LIFE GROUP?
	if (document.thisform.mi4[0].checked == false && document.thisform.mi4[1].checked == false)
	{
		alert('Please answer the question,\n' + 
			  '"Are you currently involved in a life group?"');
		document.thisform.mi4[0].focus();
		return false;
	}
	
	// ARE YOU CURRENTLY INVOLVED IN SOME OTHER FORM FOR ACCOUNTABILITY OR SPIRITUAL GROWTH GROUP?
	if (document.thisform.mi5[0].checked == false && document.thisform.mi5[1].checked == false)
	{
		alert('Please answer the question,\n' + 
			  '"Are you currently involved in some other form of\n' + 
			  'accountability or spiritual growth group?"');
		document.thisform.mi5[0].focus();
		return false;
	}
	
	//   'IF' mi6)  IF YOU ARE INVOLVED IN A SMALL GROUP, OTHER THAN A LIFE GROUP, PLEASE DESCRIBE THE GROUP.
	// 'THEN' mi6a) WHAT IS THE PURPOSE OF THE GROUP? HOW OFTEN DO YOU MEET? ARE YOU STUDYING ANY SPECIFIC MATERIALS?
	if (document.thisform.mi6.value.trim() != "")
	{
		if (document.thisform.mi6a.value.trim() == "")
		{
			alert('Please answer the question,\n' + 
				  '"What is the purpose of the group?\n' + 
				  'How often do you meet?\n' + 
				  'Are you studying any specific materials?"');
			document.thisform.mi6a.focus();
			return false;
		}
	}
	
	// PLEASE DESCRIBE ANY VOLUNTEER OPPORTUNITIES OR MINISTRIES YOU HAVE PARTICIPATED IN AT RH.
	// (EX: MISSIONS, MEN'S MINISTRY, YOUTH, ETC...)
	if (document.thisform.mi7.value.trim() == "")
	{
		alert('Please enter the following,\n' + 
			  '"Please describe any volunteer opportunities or\n' + 
			  'ministries you have participated in at RH.\n' + 
			  '(ex: missions, men’s ministry, youth, etc...)"');
		document.thisform.mi7.focus();
		return false;
	}
	
	// PLEASE DESCRIBE ANY VOLUNTEER OPPORTUNITIES OR MINISTRIES YOU HAVE PARTICIPATED IN OTHER CHURCH OR PARA-CHURCH MINISTRIES.
	if (document.thisform.mi8.value.trim() == "")
	{
		alert('Please enter the following,\n' + 
			  '"Please describe any volunteer opportunities or ministries\n' + 
			  'you have participated in other church or para-church ministries."');
		document.thisform.mi8.focus();
		return false;
	}
	
	// PLEASE EXPLAIN WHY YOU WOULD LIKE TO BE A RHD (ROCKHARBOR DISCIPLESHIP) LEADER.
	if (document.thisform.dgli1.value.trim() == "")
	{
		alert('Please enter the following,\n' + 
			  '"Please explain why you would like to be a\n' + 
			  'RHD (ROCKHARBOR discipleship) leader."');
		document.thisform.dgli1.focus();
		return false;
	}
	
	// HAVE YOU HAD EXPERIENCE IN A DISCIPLESHIP GROUP, OR IN LEADING A SMALL GROUP?
	if (document.thisform.dgli2[0].checked == false && document.thisform.dgli2[1].checked == false)
	{
		alert('Please answer the question,\n' + 
			  '"Have you had experience in a discipleship group,\n' + 
			  'or in leading a small group?"');
		document.thisform.dgli2[0].focus();
		return false;
	}
	
	//   'IF' dgli2)  HAVE YOU HAD EXPERIENCE IN A DISCIPLESHIP GROUP, OR IN LEADING A SMALL GROUP?  "YES"
	// 'THEN' dgli2a) IF SO, WHEN AND WHERE?
	if (document.thisform.dgli2[0].checked == true)
	{
		if (document.thisform.dgli2a.value.trim() == "")
		{
			alert('Please answer the question,\n' + 
				  '"Is so, when and where?"');
			document.thisform.dgli2a.focus();
			return false;
		}
	}
	
	// DESCRIBE THE STRENGTHS YOU BELIEVE YOU WILL BRING TO A RHD GROUP.
	if (document.thisform.dgli3.value.trim() == "")
	{
		alert('Please enter the following,\n' + 
			  '"Describe the strengths you believe you\n' + 
			  'will bring to a RHD group."');
		document.thisform.dgli3.focus();
		return false;
	}
	
	// DESCRIBE, WHAT YOU BELIEVE, MAY BE YOUR WEAKNESSES IN LEADING A RHD GROUP.
	if (document.thisform.dgli4.value.trim() == "")
	{
		alert('Please enter the following,\n' + 
			  '"Describe, what you believe, may be your\n' + 
			  'weaknesses in leading a RHD group."');
		document.thisform.dgli4.focus();
		return false;
	}
	
	// PLEASE DESCRIBE HOW YOU BECAME A FOLLOWER OF CHRIST.
	if (document.thisform.si1.value.trim() == "")
	{
		alert('Please enter the following,\n' + 
			  '"Please describe how you became a follower of Christ."');
		document.thisform.si1.focus();
		return false;
	}

	// PLEASE DESCRIBE YOUR RELATIONSHIP WITH GOD RIGHT NOW.
	// (E.G. PRAYER, PERSONAL STUDY TIME, FELLOWSHIP, ETC...)
	if (document.thisform.si2.value.trim() == "")
	{
		alert('Please enter the following,\n' + 
			  '"Please describe your relationship with God right now.\n' + 
			  '(e.g. prayer, personal study time, fellowship, etc...)"');
		document.thisform.si2.focus();
		return false;
	}
	
	// PLEASE DESCRIBE YOUR VIEW OF THE BIBLE.
	// WHAT IS ITS PURPOSE?
	if (document.thisform.si3.value.trim() == "")
	{
		alert('Please answer the question,\n' + 
			  '"Please describe your view of the Bible.\n' + 
			  'What is its purpose?"');
		document.thisform.si3.focus();
		return false;
	}
	
	// DO YOU TRAVEL FOR WORK?
	if (document.thisform.lsi1[0].checked == false && document.thisform.lsi1[1].checked == false)
	{
		alert('Please answer the question, "Do you travel for work?"');
		document.thisform.lsi1[0].focus();
		return false;
	}
	
	//   'IF' lsi1)  DO YOU TRAVEL FOR WORK?  "YES"
	// 'THEN' lsi1a) IF SO, HOW OFTEN?
	if (document.thisform.lsi1[0].checked == true)
	{
		if (document.thisform.lsi1a.value.trim() == "")
		{
			alert('Please answer the question, "If so, how often?"');
			document.thisform.lsi1a.focus();
			return false;
		}
	}
	
	// WILL YOU BE AVAILABLE 3 HOURS A WEEK?
	if (document.thisform.lsi2[0].checked == false && document.thisform.lsi2[1].checked == false)
	{
		alert('Please answer the question,\n' + 
			  '"Will you be available 3 hours a week?"');
		document.thisform.lsi2[0].focus();
		return false;
	}
	
	// ARE YOU CURRENTLY IN THE MIDST OF MARITAL SEPARATION?
	if (document.thisform.lsi3[0].checked == false && document.thisform.lsi3[1].checked == false)
	{
		alert('Please answer the question,\n' + 
			  '"Are you currently in the midst of marital separation?"');
		document.thisform.lsi3[0].focus();
		return false;
	}
	
	//   'IF' lsi3)  ARE YOU CURRENTLY IN THE MIDST OF MARITAL SEPARATION?  "YES"
	// 'THEN' lsi3a) IF SO, PLEASE EXPLAIN.
	if (document.thisform.lsi3[0].checked == true)
	{
		if (document.thisform.lsi3a.value.trim() == "")
		{
			alert('Please enter the following, "If so, please explain."');
			document.thisform.lsi3a.focus();
			return false;
		}
	}
	
	// ARE YOU DIVORCED?
	if (document.thisform.lsi4[0].checked == false && document.thisform.lsi4[1].checked == false)
	{
		alert('Please answer the question, "Are you divorced?"');
		document.thisform.lsi4[0].focus();
		return false;
	}
	
	//   'IF' lsi4)  ARE YOU DIVORCED?  "YES"
	// 'THEN' lsi4a) IF SO, HOW LONG HAS IT BEEN SINCE YOUR DIVORCE?
	if (document.thisform.lsi4[0].checked == true)
	{
		if (document.thisform.lsi4a.value.trim() == "")
		{
			alert('Please answer the question,\n' + 
				  '"If so, how long has it been since your divorce?"');
			document.thisform.lsi4a.focus();
			return false;
		}
	}
	
	//   'IF' lsi4)  ARE YOU DIVORCED?  "YES"
	// 'THEN' lsi4b) DID YOU RECEIVE COUNSEL/CARE DURING OR AFTER YOUR DIVORCE?
	if (document.thisform.lsi4[0].checked == true)
	{
		if (document.thisform.lsi4b[0].checked == false && document.thisform.lsi4b[1].checked == false)
		{
			alert('Please answer the question,\n' + 
				  '"Did you receive counsel / care during or after your divorce?"');
			document.thisform.lsi4b[0].focus();
			return false;
		}
	}
	
	// HAVE YOU EVER BEEN ARRESTED OR CONVICTED OF A CRIME?
	if (document.thisform.lsi5[0].checked == false && document.thisform.lsi5[1].checked == false)
	{
		alert('Please answer the question,\n' + 
			  '"Have you ever been arrested or convicted of a crime?"');
		document.thisform.lsi5[0].focus();
		return false;
	}
	
	//   'IF' lsi5)  HAVE YOU EVER BEEN ARRESTED OR CONVICTED OF A CRIME?  "YES"
	// 'THEN' lsi5a) IF SO, PLEASE EXPLAIN.
	if (document.thisform.lsi5[0].checked == true)
	{
		if (document.thisform.lsi5a.value.trim() == "")
		{
			alert('Please enter the following, "If so, please explain."');
			document.thisform.lsi5a.focus();
			return false;
		}
	}
	
	//   'IF' lsi5)  HAVE YOU EVER BEEN ARRESTED OR CONVICTED OF A CRIME?  "YES"
	// 'THEN' lsi5b) DID YOU RECEIVE COUNSEL/CARE DURING OR AFTER THAT EXPERIENCE?
	if (document.thisform.lsi5[0].checked == true)
	{
		if (document.thisform.lsi5b[0].checked == false && document.thisform.lsi5b[1].checked == false)
		{
			alert('Please enter the following,\n' + 
				  '"Did you receive counsel / care during or after that experience?"');
			document.thisform.lsi5b[0].focus();
			return false;
		}
	}
	
	// HAVE YOU STRUGGLED WITH ALCOHOL OR DRUG ABUSE, SEXUAL ADDICTION, GAMBLING OR OTHER ADDICTIVE BEHAVIOR?
	if (document.thisform.lsi6[0].checked == false && document.thisform.lsi6[1].checked == false)
	{
		alert('Please answer the question,\n' + 
			  '"Have you struggled with alcohol or drug abuse, sexual addiction,\n' + 
			  'gambling or other addictive behavior?"');
		document.thisform.lsi6[0].focus();
		return false;
	}
	
	// EVEN IF YOU DO NOT AGREE, HAS ANYONE CLOSE TO YOU INDICATED THAT YOU HAD A PROBLEM WITH ADDICTIVE BEHAVIOR?
	if (document.thisform.lsi7[0].checked == false && document.thisform.lsi7[1].checked == false)
	{
		alert('Please answer the question,\n' + 
			  '"Even if you do not agree, has anyone close to you indicated\n' + 
			  'that you had a problem with addictive behavior?"');
		document.thisform.lsi7[0].focus();
		return false;
	}
	
	//   'IF' lsi7)  EVEN IF YOU DO NOT AGREE, HAS ANYONE CLOSE TO YOU INDICATED THAT YOU HAD A PROBLEM WITH ADDICTIVE BEHAVIOR?  "YES"
	// 'THEN' lsi7a) IF SO, DID YOU RECIEVE COUNSEL/CARE TO DEAL WITH THE ADDICTION? PLEASE DESCRIBE.
	if (document.thisform.lsi7[0].checked == true)
	{
		if (document.thisform.lsi7a.value.trim() == "")
		{
			alert('Please answer the question,\n' + 
				  '"If so, did you receive counsel/care to deal\n' + 
				  'with the addiction? Please describe."');
			document.thisform.lsi7a.focus();
			return false;
		}
	}

	// HAVE YOU BEEN THROUGH COUNSELING/THERAPY AT ANY TIME?
	// DESCRIBE YOUR EXPERIENCE.
	if (document.thisform.lsi8.value.trim() == "")
	{
		alert('Please answer the question,\n' + 
			  '"Have you been through counseling/therapy at any time?\n' + 
			  'Describe your experience."');
		document.thisform.lsi8.focus();
		return false;
	}
	
	// REFERENCE NAME 1
	if (document.thisform.refname1.value.trim() == "")
	{
		alert('Please enter a reference name.');
		document.thisform.refname1.focus();
		return false;
	}
	
	// REFERENCE PHONE 1
	if (document.thisform.refphone1.value.trim() == "")
	{
		alert('Please enter the reference phone number.');
		document.thisform.refphone1.focus();
		return false;
	}
	else
	{
		var ref_phone1 = document.thisform.refphone1.value;
		valid_phone=/^[0-9]{3}[\-]{1}[0-9]{3}[\-]{1}[0-9]{4}$/;
	
		if (!valid_phone.test(ref_phone1))
		{
			alert('Invalid phone number.\n' + 
				  'Please use the format of the example below.\n' + 
				  '(ex. 111-222-3333)');
			document.thisform.refphone1.focus();
			return false;
		}
	}
	
	// REFERENCE EMAIL 1
	if (document.thisform.refemail1.value.trim() == "")
	{
		alert('Please enter the reference email.');
		document.thisform.refemail1.focus();
		return false;
	}
	
	// REFERENCE RELATIONSHIP 1
	if (document.thisform.refrelationship1.value.trim() == "")
	{
		alert('Please enter the reference relationship.');
		document.thisform.refrelationship1.focus();
		return false;
	}
	
	// REFERENCE YEARS KNOWN 1
	if (document.thisform.refyearsknown1.value.trim() == "")
	{
		alert('Please enter the number of years known.');
		document.thisform.refyearsknown1.focus();
		return false;
	}
	
	// REFERENCE NAME 2
	if (document.thisform.refname2.value.trim() == "")
	{
		alert('Please enter a reference name.');
		document.thisform.refname2.focus();
		return false;
	}
	
	// REFERENCE PHONE 2
	if (document.thisform.refphone2.value.trim() == "")
	{
		alert('Please enter the reference phone number.');
		document.thisform.refphone2.focus();
		return false;
	}
	else
	{
		var ref_phone2 = document.thisform.refphone2.value;
		valid_phone=/^[0-9]{3}[\-]{1}[0-9]{3}[\-]{1}[0-9]{4}$/;
	
		if (!valid_phone.test(ref_phone2))
		{
			alert('Invalid phone number.\n' + 
				  'Please use the format of the example below.\n' + 
				  '(ex. 111-222-3333)');
			document.thisform.refphone2.focus();
			return false;
		}
	}
	
	// REFERENCE EMAIL 2
	if (document.thisform.refemail2.value.trim() == "")
	{
		alert('Please enter the reference email.');
		document.thisform.refemail2.focus();
		return false;
	}
	
	// REFERENCE RELATIONSHIP 2
	if (document.thisform.refrelationship2.value.trim() == "")
	{
		alert('Please enter the reference relationship.');
		document.thisform.refrelationship2.focus();
		return false;
	}
	
	// REFERENCE YEARS KNOWN 2
	if (document.thisform.refyearsknown2.value.trim() == "")
	{
		alert('Please enter the number of years known.');
		document.thisform.refyearsknown2.focus();
		return false;
	}

	// SIGNATURE
	if (document.thisform.signature.value.trim() == "")
	{
		alert('Please enter your full name before submitting the form.');
		document.thisform.signature.focus();
		return false;
	}

	return true;
}

/* ============================================================
   ============================================================ */


function checkForm(thisform)
{
	// FIRSTNAME
	if (document.thisform.firstname.value.trim() == "")
	{
		alert('Please enter your first name.');
		document.thisform.firstname.focus();
		return false;
	}
	
	// LASTNAME
	if (document.thisform.lastname.value.trim() == "")
	{
		alert('Please enter your last name.');
		document.thisform.lastname.focus();
		return false;
	}
	
	// EMAIL & CONFIRM EMAIL
	if (document.thisform.email1.value.trim() == "")
	{
		alert('Please enter your email address.');
		document.thisform.email1.focus();
		return false;
	}
	else
	{
		if (document.thisform.email2.value.trim() == "")
		{
			alert('Please confirm your email address.');
			document.thisform.email2.focus();
			return false;
		}
		else if (document.thisform.email1.value != document.thisform.email2.value)
		{
			document.thisform.email1.value = ""
			document.thisform.email2.value = ""
			alert('Email addresses do not match.\nPlease re-enter your email address.');
			document.thisform.email1.focus();
			return false;
		}
	}
	
	// CELL PHONE
	if (document.thisform.cellphone.value.trim() == "")
	{
		alert('Please enter your cell phone.');
		document.thisform.cellphone.focus();
		return false;
	}
	else
	{
		var cell_phone = document.thisform.cellphone.value;
		valid_phone=/^[0-9]{3}[\-]{1}[0-9]{3}[\-]{1}[0-9]{4}$/;
	
		if (!valid_phone.test(cell_phone))
		{
			alert('Invalid phone number.\nPlease use the format of the example below.\n(ex. 111-222-3333)');
			document.thisform.cellphone.focus();
			return false;
		}
	}
	
	// ADDRESS
	if (document.thisform.address.value.trim() == "")
	{
		alert('Please enter your street address.');
		document.thisform.address.focus();
		return false;
	}
	
	// CITY
	if (document.thisform.city.value.trim() == "")
	{
		alert('Please enter your city.');
		document.thisform.city.focus();
		return false;
	}
	
	// ZIP
	if (document.thisform.zip.value.trim() == "")
	{
		alert('Please enter your zip code.');
		document.thisform.zip.focus();
		return false;
	}
	else
	{
		var zip = document.thisform.zip.value;
		valid_zip=/^[0-9]{5}$/;
	
		if (!valid_zip.test(zip))
		{
			alert('Invalid zip code.\nPlease use the format of the example below.\n(ex. 92626)');
			document.thisform.zip.focus();
			return false;
		}
	}
	
	// DATE OF BIRTH
	var now = new Date();
	var month = padDate(now.getMonth() + 1);
	var day = padDate(now.getDate());
	var year = padDate(now.getFullYear());
	var today = year + "" + month + "" + day;
	var birthDate = document.thisform.birthday.value;

	//alert("'" + today + "', '" + birthDate + "'");
	
	if (birthDate >= today)
	{
		alert('Please enter your date of birth.');
		//document.thisform.birthday.focus();
		return false;
	}
	
	// GENDER
	if (document.thisform.gender[0].checked == false && document.thisform.gender[1].checked == false)
	{
		alert ('Please select your gender.');
		document.thisform.gender[0].focus();
		return false;
	}
	
	// MARITAL STATUS
	if (document.thisform.maritalstatus[0].checked == false && document.thisform.maritalstatus[1].checked == false)
	{
		alert ('Please select your marital status.');
		document.thisform.maritalstatus[0].focus();
		return false;
	}
	
	// CHILDREN
	if (document.thisform.children[0].checked == false && document.thisform.children[1].checked == false)
	{
		alert ('Please select if you have children or not.');
		document.thisform.children[0].focus();
		return false;
	}
	
	// OCCUPATION
	if (document.thisform.occupation.value.trim() == "")
	{
		alert('Please enter your occupation.');
		document.thisform.occupation.focus();
		return false;
	}
	
	// DISCIPLE
	if (document.thisform.disciple[0].checked == false && document.thisform.disciple[1].checked == false)
	{
		alert ('Please select if you want to be discipled or\nif you want to disciple others.');
		document.thisform.disciple[0].focus();
		return false;
	}
	
	// AVAILABILITY TO MEET
	if (document.thisform.mon_before_9am.checked == false && document.thisform.mon_after_6pm.checked == false && 
		document.thisform.tue_before_9am.checked == false && document.thisform.tue_after_6pm.checked == false && 
		document.thisform.wed_before_9am.checked == false && document.thisform.wed_after_6pm.checked == false && 
		document.thisform.thu_before_9am.checked == false && document.thisform.thu_after_6pm.checked == false && 
		document.thisform.fri_before_9am.checked == false && document.thisform.fri_after_6pm.checked == false)
	{
		if (document.thisform.otherdays.value.trim() == "")
		{
			alert ('Please check your availability to meet or\nenter other days/times.');
			document.thisform.mon_before_9am.focus();
			return false;
		}
	}
	
	// HOW LONG HAVE YOU BEEN WALKING WITH THE LORD?
	if (document.thisform.howlong.value.trim() == "")
	{
		alert('Please answer the question,\n"how long have you been walking with the Lord?".');
		document.thisform.howlong.focus();
		return false;
	}
	
	// WHAT MOVED YOU TOWARD THE IDEA OF MENTORING/DISCIPLESHIP?
	if (document.thisform.whyjoining.value.trim() == "")
	{
		alert('Please answer the question,\n"what moved you toward the idea of mentoring/discipleship?".');
		document.thisform.whyjoining.focus();
		return false;
	}
	
	// WHAT ARE YOU SPECIFICALLY LOOKING TO HAPPEN WITHIN YOUR DISCIPLESHIP GROUP?
	if (document.thisform.lookingfor.value.trim() == "")
	{
		alert('Please answer the question,\n"what are you specifically looking to happen within\nyour discipleship group?".');
		document.thisform.lookingfor.focus();
		return false;
	}
	
	// BRIEFLY SUMMARIZE YOUR CURRENT RELATIONSHIP WITH GOD INCLUDING STRENGTHS AND WEAKNESSES
	if (document.thisform.relationship.value.trim() == "")
	{
		alert('Please enter the following,\n"briefly summarize your current relationship with God\nincluding strengths and weaknesses.".');
		document.thisform.relationship.focus();
		return false;
	}
	
	return true;
}