		function validateForm() {
			var alertMsgHeader = "We could not submit your information for the following reasons: \n\n";
			var alertMsg = "";
			var thisForm = document.getElementById('frmVolunteer');
			var isValidFile = verifyFileType(thisForm.resumeFile.value);
			var isValidEmail = verifyEmail(thisForm.txtEmail.value);
			
			if(thisForm.txtFirstName.value == "") {
				alertMsg += "- Please enter a valid first name\n";
			}
			
			if(thisForm.txtLastName.value == "") {
				alertMsg += "- Please enter a valid last name\n";
			}
			
			if(thisForm.txtAddress1.value == "") {
				alertMsg += "- Please enter a valid address\n";
			}
			
			if(thisForm.txtCity.value == "") {
				alertMsg += "- Please enter a valid city\n";
			}
			
			if(thisForm.txtProvince.value == "") {
				alertMsg += "- Please enter a valid province\n";
			}
			
			if(thisForm.txtPostal.value == "") {
				alertMsg += "- Please enter a valid postal code\n";
			}			
			
			if(thisForm.txtEmail.value != thisForm.txtConfirmEmail.value) {
				alertMsg += "- The email address you entered did not match the confirmation email address field\n";
			}
			
			if(!isValidEmail) {
				alertMsg += "- Please enter a valid email address\n";
			}
			
			if(thisForm.cboPosition.value == "") {
				alertMsg += "- Please select the primary position you are applying for\n";
			}
			
			if(thisForm.resumeFile.value == "") {
				if(thisForm.txtCover.value == "") {
					alertMsg += "- Please provide a cover letter about yourself\n";
				}
				
				if(thisForm.txtResume.value == "") {
					alertMsg += "- Please list experience/expert abilities\n";
				}
			} else {
				if(!isValidFile) {
					alertMsg += "- Please select a resume file of the file type: .docx, .doc, .rtf, .pdf or .txt\n";
				}
			}
			
			if(!thisForm.chkWEE.checked && !thisForm.chkWEA.checked && !thisForm.chkWEM.checked && !thisForm.chkWDE.checked && !thisForm.chkWDA.checked && !thisForm.chkWDM.checked) {
				alertMsg += "- Please indicate your availability\n";
			}
			
			if(!isValidFile) {
				
			}
					
			if(alertMsg.length) {
				alert(alertMsgHeader+alertMsg);
				return false;
			} else {
				thisForm.submit();
				return true;
			}
		}
		
		function verifyEmail(checkEmail) {
			if ( checkEmail != "" )	{
				if ( (checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')) ) {
					return false;
				} else {
					var iChars = "*|,\":<>[]{}`\';()&$##% ";	// invalid chars (don't forget a space char)
					for (var i = 0; i < checkEmail.length; i++)	{
						if ( iChars.indexOf(checkEmail.charAt(i)) != -1 ) {
							return false;
						}
					}
					return true;	// place after the end 'for loop' bracket
				}
			} else {
				return false;
			}
		}
		
		function verifyFileType(fieldValue) {
			if (fieldValue != "") {
				var regExp=/\.docx|.doc|.rtf|.pdf|.txt$/;
				if (!regExp.test(fieldValue)) {
					return false;
				}
			}
			return true;
		}
