	function checkEmail() {
		var strEmail = reg_form.email.value;
		if (strEmail == "") {
			window.alert("Please enter your e-mail address");
			reg_form.email.focus();
			return false;
		}
		if (strEmail.indexOf("@") == -1) {
			window.alert("Invalid e-mail address");
			reg_form.email.select();
			reg_form.email.focus();
			return false;
		}
		if (strEmail.indexOf(".") == -1) {
			window.alert("Invalid e-mail address");
			reg_form.email.select();
			reg_form.email.focus();
			return false;
		}
		return true;
	}

	function checkPassword() {
		var strPass1 = reg_form.password1.value;
		var strPass2 = reg_form.password2.value;
		if (strPass1.indexOf(" ") != -1) {
			window.alert("Your password can not have spaces in it");
			reg_form.password1.select();
			reg_form.password1.focus();
			return false;
		}
		if (strPass1.length < 6) {
			window.alert("Your password needs to be at least 6 characters long");
			reg_form.password1.select();
			reg_form.password1.focus();
			return false;
		}
		if (strPass1 != strPass2) {
			window.alert("The word you entered in \"Confirm password\" doesn't match the word in \"Password\"");
			reg_form.password1.select();
			reg_form.password1.focus();
			return false;
		}
		return true;
	}

	function checkUserName() {
		if (reg_form.user_name.value == "") {
			window.alert("Please select a user name");
			reg_form.user_name.select();
			return false;
		}
		return true;
	}

	function checkSSN() {
		if (reg_form.ssn.value == "") {
			window.alert("Please enter your social security number");
			reg_form.ssn.select();
			return false;
		}
		return true;
	}

	function checkTitle() {
		if (reg_form.title.value == "") {
			window.alert("Please enter your title");
			reg_form.title.select();
			return false;
		}
		return true;
	}

	function checkFirstName() {
		if (reg_form.first_name.value == "") {
			window.alert("Please enter your first name");
			reg_form.first_name.select();
			return false;
		}
		return true;
	}

	function checkLastName() {
		if (reg_form.last_name.value == "") {
			window.alert("Please enter your last name");
			reg_form.last_name.select();
			return false;
		}
		return true;
	}

	function checkGender() {
		if (reg_form.gender.options[reg_form.gender.selectedIndex].value == "") {
			window.alert("Please specify your gender");
			return false;
		}
		return true;
	}

	function checkAge() {
		if (reg_form.age.value == "") {
			window.alert("Please enter your age");
			reg_form.age.select();
			return false;
		}
		return true;
	}

	function checkMaritalStatus() {
		if (reg_form.marital_status.options[reg_form.marital_status.selectedIndex].value == "") {
			window.alert("Please specify your marital status");
			return false;
		}
		return true;
	}

	function checkCompanyName() {
		if (reg_form.company_name.value == "") {
			window.alert("Please enter your company's name");
			reg_form.company_name.select();
			return false;
		}
		return true;
	}

	function checkOccupation() {
		if (reg_form.occupation.options[reg_form.occupation.selectedIndex].value == "") {
			window.alert("Please specify your occupation");
			return false;
		}
		return true;
	}

	function checkCountry() {
		if (reg_form.country.options[reg_form.country.selectedIndex].value == "") {
			window.alert("Please select your country");
			return false;
		}
		return true;
	}

	function checkState() {
		if (reg_form.state.value == "") {
			window.alert("Please enter your state / province");
			reg_form.state.select();
			return false;
		}
		return true;
	}

	function checkCity() {
		if (reg_form.city.value == "") {
			window.alert("Please enter the name of your city");
			reg_form.city.select();
			return false;
		}
		return true;
	}

	function checkZip() {
		if (reg_form.zip.value == "") {
			window.alert("Please enter your zip / postal code");
			reg_form.zip.select();
			return false;
		}
		return true;
	}

	function checkAddress() {
		if (reg_form.address.value == "") {
			window.alert("Please enter your street address");
			reg_form.address.select();
			return false;
		}
		return true;
	}

	function checkPhone() {
		if (reg_form.phone.value == "") {
			window.alert("Please enter your telephone number");
			reg_form.phone.select();
			return false;
		}
		return true;
	}

	function checkMobile() {
		if (reg_form.mobile.value == "") {
			window.alert("Please enter your mobile telephone number");
			reg_form.mobile.select();
			return false;
		}
		return true;
	}

	function checkImage(blnRequired) {
		var strPath = reg_form.image.value;
		if (strPath == "" && blnRequired == true) {
			window.alert("Please select a picture");
			return false;
		}
		if (strPath != "") {
			var strPathLC = strPath.toLowerCase()
			if (strPathLC.slice(strPath.length - 4) == ".gif") {
				window.alert("Unfortunately we can't accept gif images since they utilize lzw compression. Please select another picture format.");
				return false;
			}
			if (strPathLC.slice(strPath.length - 4) == ".tif") {
				window.alert("Unfortunately we can't accept tiff images that utilize lzw compression. Please select another picture format.");
				return false;
			}
		}
		return true;
	}
