// Membership FOrm Checker

		function validEmail(email) {
			invalidChars = " /:,;"
	
			if (email == "") {						// cannot be empty
				return false
			}
			for (i=0; i<invalidChars.length; i++) {	// does it contain any invalid characters?
				badChar = invalidChars.charAt(i)
				if (email.indexOf(badChar,0) > -1) {
					return false
				}
			}
			atPos = email.indexOf("@",1)			// there must be one "@" symbol
			if (atPos == -1) {
				return false
			}
			if (email.indexOf("@",atPos+1) != -1) {	// and only one "@" symbol
				return false
			}
			periodPos = email.indexOf(".",atPos)
			if (periodPos == -1) {					// and at least one "." after the "@"
				return false
			}
			if (periodPos+3 > email.length)	{		// must be at least 2 characters after the "."
				return false
			}
			return true
		}

		function isNum(passedVal) {					// Is this a number?
			if (passedVal == "") {
				return false
			}
			for (i=0; i<passedVal.length; i++) {
				if (passedVal.charAt(i) < "0") {
					return false
				}
				if (passedVal.charAt(i) > "9") {
					return false
				}
			}
			return true
		}

		function validZip(inZip) {					// Is this a valid Zip code?
			if (inZip == "") {
				return true
			}
			if (isNum(inZip)) {						// Check if Zip is numeric
				return true
			}
			return false
		}

		function submitIt(join) {
			// check to see if the email's valid
			if (!validEmail(join.email.value)) {
				alert("Please enter a valid e-mail address.")
				join.email.focus()
				join.email.select()
				return false
			}
			if (join.email2.value == "") {
				alert("Please confirm your e-mail address.")
				join.email2.focus()
				return false
			}
			if (join.email.value != join.email2.value) {
				alert("E-mails don't match. Please check.")
				join.email.focus()
				return false
			}
				if (join.first_name.value == "") {
				alert("Please tell us your first name.")
				join.first_name.focus()
				return false
			}
				if (join.last_name.value == "") {
				alert("Please tell us your last name.")
				join.last_name.focus()
				return false
			}
			if (join.state.value == "") {
				alert("Please tell us your state.")
				join.state.focus()
				return false
			}
	
			if (!validZip(join.zip.value)) {
				alert("That is an invalid Zip code.")
				join.zip.focus()
				join.zip.select()
				return false
			}
	
			// If we made it to here, everything's valid, so return true
			return true
		}