
	function checkMailForm()
	{
		var SomethingMissing = false;
		//--------------------------------------your NAME-- || (document.mailForm.name.value == "YourName")
		if(document.mailForm.name.value == "")
		{
			alert("Please enter YOUR name.")
			document.mailForm.name.focus();
			document.mailForm.name.select();
			SomethingMissing = false;
		} 
		//--------------------------------------your E-MAIL--
		else if(  (document.mailForm.return_email_address.value != "") || (document.mailForm.return_email_address.value == "email")  )
		{
			//==================================YOUR FULL e-mail
			// check to see if the email's valid                       //isNotTrue
			if( (!validEmail(mailForm.return_email_address.value))  ) //isNotTrue
			{
					alert("Invalid email address \nPlease enter YOUR FULL e-mail address")
					mailForm.return_email_address.focus();
					mailForm.return_email_address.select();
					return false;
			}
			else
			{
				return true;
			}
			//==================================
		}
		else 
		{
			//process();
			SomethingMissing = true;
   	}
		return SomethingMissing;
}

function validEmail(email) 
{
	invalidChars = " /:,;"
	for(e=0; e<invalidChars.length; e++) 
	{													// does it contain any invalid characters?
		
		badChar = invalidChars.charAt(e)
		if (email.indexOf(badChar,0) > -1) 
		{
			return false
		}
	}
	atPos = email.indexOf("@",1)				// there must be one "@" symbol
	if (atPos == -1) 
	{
		return false
	}
	if (email.indexOf("@",atPos+1) != -1) 
	{													// and only one "@" symbol
		return false
	}
	periodPos = email.indexOf(".",atPos)
	if (periodPos == -1) 
	{													// and at least one "." after the "@"
		return false
	}
	if (periodPos+2 > email.length)	
	{													// must be at least 2 characters after the "."
		return false
	}
	return true
}

