function REG(theForm){

	if(theForm.form_name.value == ""){
		alert("Please enter your Full Name!")
		theForm.form_name.focus()
		theForm.form_name.select()
		return false
	}
	
	if(!validEmail(theForm.form_email.value)){
		alert("Please enter a valid Contact Email Address!")
		theForm.form_email.focus()
		theForm.form_email.select()
		return false
	}

	if(theForm.form_message.value == ""){
		alert("Please enter your Message!")
		theForm.form_message.focus()
		theForm.form_message.select()
		return false
	}
	
	return true
}
//---------------------------------------------------------------------------------------------
function validEmail(email){
	invalidChar = "/:,;"
	if(email == ""){
		return false
	}
	for(i=0; i<invalidChar.length; i++){
		badChar = invalidChar.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
}