			function verifyEmail() {
				var checkEmail = document.kelowna.vc_email.value;
				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
					}
				}
			}

			function validateForm() {
				var alertMsgHeader = "We could not submit your contact request for the following reasons: \n\n";
				var alertMsg = "";
				var isValidEmail = verifyEmail();
				
				/*if ( document.kelowna.name.value == "" ) {
					alertMsg += "Please enter your name.\n";
				}*/
				if ( document.kelowna.vc_firstName.value == "" ) {
					alertMsg += "Please enter your first name.\n";
				}
				if ( document.kelowna.vc_LastName.value == "" ) {
					alertMsg += "Please enter your last name.\n";
				}
				if ( document.kelowna.vc_telephone.value == "" ) {
					alertMsg += "Please enter your phone number.\n";
				}
				if ( document.kelowna.vc_address1.value == "" ) {
					alertMsg += "Please enter your address.\n";
				}
				if ( document.kelowna.vc_city.value == "" ) {
					alertMsg += "Please enter your city.\n";
				}
				if ( document.kelowna.vc_province.value == "" ) {
					alertMsg += "Please enter your province.\n";
				}
				if ( document.kelowna.vc_country.value == "" ) {
					alertMsg += "Please enter your country.\n";
				}
				if ( document.kelowna.vc_postalCode.value == "" ) {
					alertMsg += "Please enter your postal code.\n";
				}
				if ( document.kelowna.captcha.value == "" ) {
					alertMsg += "Please enter text shown in image.\n";
				}
				/*if ( !isValidEmail ) {
					alertMsg += "Please enter a valid email address.\n";
				}*/
				// set var checkbox_choices to zero
				var checkbox_choices = 0;
				
				if(alertMsg.length) {
					alert(alertMsgHeader+alertMsg);
					return false;
				} else {
					document.kelowna.submit();
				}
			}
			

