<!--
  function validateEmails() {
	var mailOK
	mailOK = validEmail(document.SendForm.from.value, document.SendForm.emailcheck.value)
	if (mailOK == true) {
		document.SendForm.submit();
	}
}

function validEmail(email, checkemail){
	var periodPos
	var atPos
	
	invalidChars = "/:,;"
	if (email=="") {
		alert("You must enter an email address")
		return false
	}
	for (i=0; i<invalidChars.length;i++) {
		badChar = invalidChars.charAt(i)
		if (email. indexOf(badChar,0) >-1) {
			alert("You have used illegal characters within your email address")
			return false
		}
	}
	atPos = email.indexOf("@",1)
	if (atPos == -1){
		alert("please add a @ symbol")
		return false
	}
	if (email.indexOf("@", atPos + 1) > -1) {
		alert("You can only add one @ symbol")
		return false
	}
	periodPos = email.indexOf(".",atPos)
	if (periodPos == -1) {
		alert("You need a . after the @")
		return false
	}
	/* quick fix reduced to 3 on 10-03-03 */
	if (periodPos + 3 > email.length) {
		alert("You need at least 3 characters after the .")
		return false
	}
	if (email != checkemail) {
		alert("The two email addresses that you have entered are NOT matched! Please verify.")
		return false
	}	
	return true
}
//-->	
