//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated.  All rights reserved.

function checkform()
{


  validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
  strEmail = document.BEE.email.value;

   // search email text for regular exp matches

	if (document.BEE.lastname.value == '')
	{
		// something else is wrong
		alert('Please enter your name');
		return false;
	}
	else if (document.BEE.email.value == '')
	{
		// something else is wrong
		alert('Please enter your email address');
		return false;
	}
	else if (document.BEE.email.value == '')
	{
		// something else is wrong
		alert('Please enter your email address');
		return false;
	}


	else if (strEmail.search(validRegExp) == -1) 
   {
      alert('A valid e-mail address is required.\nPlease amend and retry');
      return false;
    } 


	// If the script gets this far through all of your fields
	// without problems, it's ok and you can submit the form

	return true;
}
