			function checkForm(form)
			{

				var errors = '';
				var numErrors = 0;
				
				if (form.Name.value<1) {
					errors += '- First name\n';
					numErrors++;
				}
				
				if (!isValidLength(form.lastName.value,2)) {
					errors += '- Last name\n';
					numErrors++;
				}
				
				
				if (!isValidLength(form.Company.value,2)) {
					errors += '- Company name\n';
					numErrors++;
				}
				
				if (!isValidLength(form.phone.value,2)) {
					errors += '- Phone\n';
					numErrors++;
				}
				
                if (!isValidEmail(form.email.value,2)) {
                    errors += '- Email address\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;
			}
			