function checkFrm(f){
	if(f.firstname.value == ""){
		alert("Please enter your first name.")
		f.firstname.focus()
		return false
	}
	if(f.lastname.value == ""){
		alert("Please enter your last name.")
		f.lastname.focus()
		return false
	}
	if(f.phone.value == ""){
		alert("Please enter your phone number.")
		f.phone.focus()
		return false
	}
	if(f.email.value == ""){
		alert("Please enter your email address")
		f.email.focus()
		return false
	}
	invalidChars = " /:,;"
	str_email = f.email.value
	for(var i = 0; i < invalidChars.length; i++){
		badChar = invalidChars.charAt(i)
		if(str_email.indexOf(badChar,0) != -1){
			msg = new Array()
				msg[0] = "An Email Address cannot contain a blank space"
				msg[1] = "An Email Address cannot contain a slash"
				msg[2] = "An Email Address cannot contain a colon"
				msg[3] = "An Email Address cannot contain a comma"
				msg[4] = "An Email Address cannot contain a semi-colon"
		alert(msg[i])
		f.email.select()
		return false
		}
	}
	atPos = str_email.indexOf("@", 1)
	if(atPos == -1){
		alert("An Email Address must contain an '@' sign")
		f.email.select()
		return false
	}
	if(str_email.indexOf("@",atPos + 1) != -1){
		alert("There can only be one '@' sign in an email address")
		f.email.select()
		return false
	}
	periodPos = str_email.indexOf(".",atPos)
	if(periodPos == -1){
		alert("An email address must have a period at some point after the '@' sign")
		f.email.select()
		return false
	}
	if(periodPos + 3 > str_email.length){
		alert("A valid email address has at least two characters after the period")
		f.email.select()
		return false
	}
return true
}
