function validEmail(from) {
	invalidChars = " /:,;"
	if (from == "") {
		return false
	}
	for (i=0; i<invalidChars.length; i++) {
		badChar = invalidChars.charAt(i)
		if (from.indexOf(badChar,0) != -1) {
			return false
		}
	}
	atPos = from.indexOf("@",1)
	if (atPos == -1) {
		return false
	}
	if (from.indexOf("@",atPos+1) != -1) {
		return false
	}
	periodPos = from.indexOf(".",atPos)
	if (periodPos == -1) {
		return false
	}
	if (periodPos+2 > from.length)	{
		return false
	}
	return true
	}

function validate(thisform) {
	if (thisform.elements[2].value == "") {
		alert("Please enter your e-mail address\n\n\nThank you.")
		thisform.elements[2].focus()
		thisform.elements[2].select()
		return false
	}
	if (!validEmail(thisform.elements[2].value))  {
		alert("Please enter your valid e-mail address.\n\n\nThank you.")
		thisform.elements[2].focus()
		thisform.elements[2].select()
		return false
	}
	return true
	}
	


