<!--
	// Check to see if illegal chars are used (OK: a-z A-Z; 0-9; ,.' [space])
	// Parameters: "name" form field from function validate
	// Output: true/false
	function nameIllegalChars(str) {
		var illegalChars = /[^a-z0-9\,\.\-\ \']/i
		
		if (str.match(illegalChars)) {
			return false;
		} else {
			return true;
		}
	}
	
	// Check to see if name has 2+ words
	// Parameters: "name" form field from function validate
	// Output: true/false
	function fullName(str) {
		var nameFormat = /^([^,]+)\s+(\S+)$/
		
		if (str.match(nameFormat)) {
			return true;
		} else {
			return false;
		}
	}
	
	function validEmail(str) {
		var emailFormat = /^([\w\-\.]+)@((\[([0-9]{1,3}\.){3}[0-9]{1,3}\])|(([\w\-]+\.)+)([a-zA-Z]{2,7}))$/i
		
		if (str.match(emailFormat)) {
			return true;
		} else {
			return false;
		}
	}
	
	function validPhone1(str) {
		/* var phoneFormat = /[0-9]{3,}/ */
		var phoneFormat = /^(?!\d[1]{2}|[5]{3})([2-9]\d{2})$/
		
		if (str.match(phoneFormat)) {
			return true;
		} else {
			return false;
		}
	}
	
	function validPhone2(str) {
		var phoneFormat = /^(?!\d[1]{2}|[5]{3})([2-9]\d{2})([. -]*)\d{4}$/
		
		if (str.match(phoneFormat)) {
			return true;
		} else {
			return false;
		}
	}
	
	function validZip(str) {
		// Allows 5 digit, 5+4 digit and 9 digit zip codes
		var zip = /^(\d{5}-\d{4}|\d{5}|\d{9})$/;
		
		if (str.match(zip)) {
			return true;
		} else {
			return false;
		}
	}
	
	function noneChecked(str) {
		for (i=0; i<str.length; i++) {
			if (str[i].checked) {
				return false;
			}
		}
		return true;
	}
// -->
