function validateLoan()
{
	reReg = /^\s{0,}$/
	
	if(reReg.test(document.frmLoan.txtVisaLine.value) && document.frmLoan.selApplyfor.value == "VISA Credit Limit Increase")
	{
		alert("Please input the credit line you request for VISA Credit Card.");
		document.frmLoan.txtVisaLine.focus();
		return false;
	}

	//if(reReg.test(document.frmLoan.txtCardNum.value) && document.frmLoan.selApplyfor.value == "VISA Credit Card")
	//{
	//	alert("Please enter the number of cards you are applying for.");
	//	document.frmLoan.txtCardNum.focus();
	//	return false;
	//}

	if(reReg.test(document.frmLoan.txtLName.value))
	{
		alert("Please enter your last name to proceed.");
		document.frmLoan.txtLName.focus();
		return false;
	}

	if(reReg.test(document.frmLoan.txtFName.value))
	{
		alert("Please enter your first name to continue.");
		document.frmLoan.txtFName.focus();
		return false;
	}

	if(reReg.test(document.frmLoan.txtDOB.value))
	{
		alert("Please enter your Date of Birth to continue.");
		document.frmLoan.txtDOB.focus();
		return false;
	}	
	
	if(!isDOB(document.frmLoan.txtDOB.value))
	{
		alert("You must enter a valid Date of Birth to continue.");
		document.frmLoan.txtDOB.focus();
		return false;
	}
		
	if(reReg.test(document.frmLoan.txtMMaiden.value))
	{
		alert("Please enter your mother's maiden name to continue.");
		document.frmLoan.txtMMaiden.focus();
		return false;
	}

	if(reReg.test(document.frmLoan.txtAddress.value))
	{
		alert("Please enter your address to continue.");
		document.frmLoan.txtAddress.focus();
		return false;
	}

	if(reReg.test(document.frmLoan.txtCity.value))
	{
		alert("Please enter the city name to continue.");
		document.frmLoan.txtCity.focus();
		return false;
	}

	if(isNull(document.frmLoan.selState.value))
	{
		alert("Please select the state to continue.");
		document.frmLoan.selState.focus();
		return false;
	}

	if(reReg.test(document.frmLoan.txtZip.value))
	{
		alert("Please enter the zip code to continue.");
		document.frmLoan.txtZip.focus();
		return false;
	}

	if(!isZip(document.frmLoan.txtZip.value))
	{
		alert("You must enter a valid zip code to continue.");
		document.frmLoan.txtZip.focus();
		return false;
	}

	
	if(reReg.test(document.frmLoan.txtCUAcct.value))
	{
		alert("Please enter the credit union account # to continue.");
		document.frmLoan.txtCUAcct.focus();
		return false;
	}
	
	//if(reReg.test(document.frmLoan.txtLenRes.value))
	//{
	//	alert("Please enter the length of residence to continue.");
	//	document.frmLoan.txtLenRes.focus();
	//	return false;
	//}

	//if(!document.frmLoan.radioRentOwn[0].checked && !document.frmLoan.radioRentOwn[1].checked)
	//{
	//	alert("Please choose rent or own to continue.");
	//	document.frmLoan.radioRentOwn[0].focus();
	//	return false;
	//}

	//if(reReg.test(document.frmLoan.txtSSN.value))
	//{
	//	alert("Please enter your social security number to continue.");
	//	document.frmLoan.txtSSN.focus();
	//	return false;
	//}	
	
	if(!reReg.test(document.frmLoan.txtSSN.value))
	{
		if(!isSSN(document.frmLoan.txtSSN.value))
		{
			alert("You must enter a valid social security number to continue.");
			document.frmLoan.txtSSN.focus();
			return false;
		}
	}	
	
	if(!reReg.test(document.frmLoan.txtPAddress.value) && reReg.test(document.frmLoan.txtPLenRes.value))
	{
		alert("Please enter the length of residence for your previous address.");
		document.frmLoan.txtPLenRes.focus();
		return false;
	}

	if(reReg.test(document.frmLoan.txtHPhone.value))
	{
		alert("Please enter your Home Phone number to continue.");
		document.frmLoan.txtHPhone.focus();
		return false;
	}	
	
	if(!isPhone(document.frmLoan.txtHPhone.value))
	{
		alert("You must enter a valid Home Phone number to continue.");
		document.frmLoan.txtHPhone.focus();
		return false;
	}

	if(reReg.test(document.frmLoan.txtEmail.value))
	{
		alert("Please enter your E-mail to continue.");
		document.frmLoan.txtEmail.focus();
		return false;
	}	
	
	if(!isEmail(document.frmLoan.txtEmail.value))
	{
		alert("You must enter a valid E-mail address to continue.");
		document.frmLoan.txtEmail.focus();
		return false;
	}
	
	if(!reReg.test(document.frmLoan.txtEmployer.value))
	{
		if(reReg.test(document.frmLoan.txtPosition.value))
		{
			alert("Please enter your position to continue.");
			document.frmLoan.txtPosition.focus();
			return false;
		}
		
		if(reReg.test(document.frmLoan.txtEmpPhone.value))
		{
			alert("Please enter your employer's phone number to continue.");
			document.frmLoan.txtEmpPhone.focus();
			return false;
		}

		if(reReg.test(document.frmLoan.txtLenEmp.value))
		{
			alert("Please enter the length of employment to continue.");
			document.frmLoan.txtLenEmp.focus();
			return false;
		}

		if(reReg.test(document.frmLoan.txtIncome.value))
		{
			alert("Please enter your gross income to continue.");
			document.frmLoan.txtIncome.focus();
			return false;
		}
		
		if(!document.frmLoan.radioMonthYear[0].checked && !document.frmLoan.radioMonthYear[1].checked)
		{
			alert("Please choose monthly or yearly for gross income to continue.");
			document.frmLoan.radioMonthYear[0].focus();
			return false;
		}	
	}

	if(!reReg.test(document.frmLoan.txtFEmployer.value))
	{
		if(reReg.test(document.frmLoan.txtFLenEmp.value))
		{
			alert("Please enter your length of employment during former employment.");
			document.frmLoan.txtFLenEmp.focus();
			return false;
		}	

		if(reReg.test(document.frmLoan.txtFPosition.value))
		{
			alert("Please enter your former position to continue.");
			document.frmLoan.txtFPosition.focus();
			return false;
		}	
	}

	if(!reReg.test(document.frmLoan.txtMortPayment.value))
	{
		if(reReg.test(document.frmLoan.txtMortBalance.value))
		{
			alert("Please enter the mortgage balance to continue.");
			document.frmLoan.txtMortBalance.focus();
			return false;
		}	

		if(reReg.test(document.frmLoan.txtMarketVal.value))
		{
			alert("Please enter the market value (house) to continue.");
			document.frmLoan.txtMarketVal.focus();
			return false;
		}	
	}

	
	if(!reReg.test(document.frmLoan.txtCheckAcct.value))
	{
		if(reReg.test(document.frmLoan.txtCheckBalance.value))
		{
			alert("Please enter the checking account balance to continue.");
			document.frmLoan.txtCheckBalance.focus();
			return false;
		}
	}

	if(!reReg.test(document.frmLoan.txtSavAcct.value))
	{
		if(reReg.test(document.frmLoan.txtSavBalance.value))
		{
			alert("Please enter the Savings account balance to continue.");
			document.frmLoan.txtSavBalance.focus();
			return false;
		}
	}

	if(document.frmLoan.chkCoApplicant.checked)
	{
		if(reReg.test(document.frmLoan.txtCoName.value))
		{
			alert("Please enter the co-applicant's name to continue.");
			document.frmLoan.txtCoName.focus();
			return false;
		}		
		
		if(reReg.test(document.frmLoan.txtRelation.value))
		{
			alert("Please enter co-applicant's relationship with you to continue.");
			document.frmLoan.txtRelation.focus();
			return false;
		}	
		
		//if(reReg.test(document.frmLoan.txtCoSSN.value))
		//{
		//	alert("Please enter the co-applicant's social security # to continue.");
		//	document.frmLoan.txtCoSSN.focus();
		//	return false;
		//}

		if(!reReg.test(document.frmLoan.txtCoSSN.value))
		{
			if(!isSSN(document.frmLoan.txtCoSSN.value))
			{
				alert("You must enter a valid co-applicant's social security number to continue.");
				document.frmLoan.txtCoSSN.focus();
				return false;
			}
		}		

		if(reReg.test(document.frmLoan.txtCoDOB.value))
		{
			alert("Please enter the co-applicant's Date of Birth to continue.");
			document.frmLoan.txtCoDOB.focus();
			return false;
		}

		if(!isDOB(document.frmLoan.txtCoDOB.value))
		{
			alert("You must enter a valid co-applicant's Date of Birth to continue.");
			document.frmLoan.txtCoDOB.focus();
			return false;
		}

		if(reReg.test(document.frmLoan.txtCoAddress.value))
		{
			alert("Please enter the co-applicant's Address to continue.");
			document.frmLoan.txtCoAddress.focus();
			return false;
		}

		if(reReg.test(document.frmLoan.txtCoMMaiden.value))
		{
			alert("Please enter mother's maiden name of co-applicant to continue.");
			document.frmLoan.txtCoMMaiden.focus();
			return false;
		}	
	
		//if(reReg.test(document.frmLoan.txtCoLenRes.value))
		//{
		//	alert("Please enter the co-applicant's length of residence to continue.");
		//	document.frmLoan.txtCoLenRes.focus();
		//	return false;
		//}

		//if(!document.frmLoan.radioCoRentOwn[0].checked && !document.frmLoan.radioCoRentOwn[1].checked)
		//{
		//	alert("Please choose rent or own for co-applicant to continue.");
		//	document.frmLoan.radioCoRentOwn[0].focus();
		//	return false;
		//}

		
		//if(reReg.test(document.frmLoan.txtCoMonthPay.value))
		//{
		//	alert("Please enter the co-applicant's monthly payment to continue.");
		//	document.frmLoan.txtCoMonthPay.focus();
		//	return false;
		//}

		if(!reReg.test(document.frmLoan.txtCoEmployer.value))
		{
			if(reReg.test(document.frmLoan.txtCoLenEmp.value))
			{
				alert("Please enter co-applicant's length of employment to continue.");
				document.frmLoan.txtCoLenEmp.focus();
				return false;
			}

			if(reReg.test(document.frmLoan.txtCoEmpPhone.value))
			{
				alert("Please ente employer's phone number of co-applicant to continue.");
				document.frmLoan.txtCoEmpPhone.focus();
				return false;
			}

			if(reReg.test(document.frmLoan.txtCoIncome.value))
			{
				alert("Please enter co-applicant's gross income to continue.");
				document.frmLoan.txtCoIncome.focus();
				return false;
			}
			
			if(!document.frmLoan.radioCoMonthYear[0].checked && !document.frmLoan.radioCoMonthYear[1].checked)
			{
				alert("Please choose monthly or yearly for co-applicant's gross income to continue.");
				document.frmLoan.radioCoMonthYear[1].focus();
				return false;
			}
			
			if(reReg.test(document.frmLoan.txtCoPosition.value))
			{
				alert("Please enter co-applicant's current position to continue.");
				document.frmLoan.txtCoPosition.focus();
				return false;
			}
		}

		if(!reReg.test(document.frmLoan.txtCoFEmployer.value))
		{
			if(reReg.test(document.frmLoan.txtCoFLenEmp.value))
			{
				alert("Please enter your length of employment during former employment for co-applicant.");
				document.frmLoan.txtCoFLenEmp.focus();
				return false;
			}	
		}
	}
		
	document.frmLoan.submit();
}