			function checkForm(form)
			{
				var errors = '';
				var numErrors = 0;
				
				if (form.amount_requested.value<1) {
					errors += '- Amount Requested\n';
					numErrors++;
				}
				
				if (!isValidLength(form.loan_purpose.value,2)) {
					errors += '- Purpose of Loan\n';
					numErrors++;
				}
				
				
				if (!isValidLength(form.FirstName.value,2)) {
					errors += '- First Name\n';
					numErrors++;
				}
				
				if (!isValidLength(form.LastName.value,2)) {
					errors += '- Last Name\n';
					numErrors++;
				}
				
                if (!isValidEmail(form.email.value,2)) {
                    errors += '- Email address\n';
                    numErrors++;
                }

                if (!isValidLength(form.home_phone.value,2)) {
                    errors += '- Contact Phone Number\n';
                    numErrors++;
                }

                if (!isValidLength(form.addr.value,2)) {
                    errors += '- Address\n';
                    numErrors++;
                }

                if (!isValidLength(form.city.value,2)) {
                    errors += '- City\n';
                    numErrors++;
                }

                if (form.cboState.value<1) {
                    errors += '- Province\n';
                    numErrors++;
                }
                if (!isValidLength(form.postal_code.value,2)) {
                    errors += '- Postal code\n';
                    numErrors++;
                }
                if (!isValidLength(form.income_type.value,2)) {
                    errors += '- Type of Income\n';
                    numErrors++;
                }
                if (!isValidLength(form.annual_income.value,2)) {
                    errors += '- Total Annual Income\n';
                    numErrors++;
                }


                if (!isValidLength(form.co_first_name.value,2)) {
                    errors += '- Co-Applicant First Name\n';
                    numErrors++;
                }
                if (!isValidLength(form.co_last_name.value,2)) {
                    errors += '- Co-Applicant Last Name\n';
                    numErrors++;
                }
                if (!isValidLength(form.co_income_type.value,2)) {
                    errors += '- Co-Applicant Type of Income\n';
                    numErrors++;
                }
                if (!isValidLength(form.co_annual_income.value,2)) {
                    errors += '- Co-Applicant Total Annual Income\n';
                    numErrors++;
                }


				
				if (numErrors) {
					errors = 'Your form cannot be submitted. Please check the following field' + ((numErrors > 1) ? 's' : '') + ':\n' + errors + 'Please fix ' + ((numErrors > 1) ? 'these' : 'this') + ' problem' + ((numErrors > 1) ? 's' : '') + ' and resubmit the form.';
					alert(errors);
					return false;
				}
				return true;
			}
			
