/\~|\`|\#|\%|\^|\&|\*|\(|\)|\+|\=|\{|\}|\[|\]|\<|\>|\;|\|/

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+3 > from.length)	{
		return false
	}
	return true
	}

function validate(thisform) {

	if (thisform.elements[9].value == "") {
		alert("Please enter your e-mail address\n\n\nThank you.")
		thisform.elements[9].focus()
		thisform.elements[9].select()
		return false
	}

	if (!validEmail(thisform.elements[9].value))  {
		alert("Please enter your correct e-mail address.\n\n\nThank you.")
		thisform.elements[9].focus()
		thisform.elements[9].select()
		return false
	}

	return true
	}
