function validEmail(email) {
	invalidChars = " /:,;"
	if (email == "") {
		return false
	}
	for (i=0; i<invalidChars.length; i++) {
		badChar = invalidChars.charAt(i)
		if (email.indexOf(badChar,0) > -1) {
			return false
		}
	}
	atPos = email.indexOf("@",1)
	if (atPos == -1) {
		return false
	}
	if (email.indexOf("@",atPos+1) != -1) {
		return false
	}
	periodPos = email.indexOf(".",atPos)
	if (periodPos == -1) {
		return false
	}
	if (periodPos+3 > email.length)	{
		return false
	}
	return true
}
	
function validForm(quote) {
	if (quote.first.value == "") {
		alert("Please enter your First Name.")
		quote.first.focus()
		return false
	}
	if (quote.last.value == "") {
		alert("Please enter your Last Name.")
		quote.last.focus()
		return false
	}
	if (quote.company.value == "") {
		alert("Please enter your Company Name.")
		quote.company.focus()
		return false
	}
	if (!validEmail(quote.email.value)) {
		alert("Please enter a valid e-mail address for your self (like name@domain.com).")
		quote.email.focus()
		quote.email.select()
		return false
	}
	if (quote.phone.value == "") {
		alert("Please enter your phone number.")
		quote.phone.focus()
		return false
	}
	if (quote.comments.value == "") {
		alert("Please enter a comment.")
		quote.comments.focus()
		return false
	}
	return true
}