/* validate email address */
function checkemail() 
{
	//Muzza's email validation function
	
	//find out if the @ sign is present in the email address
	$atLocation = strpos(document.solutionsform.emailaddress.value, '@',5);
	
	//find out if a dot is present in the email address
	$dotLocation = strpos(document.solutionsform.emailaddress.value, '.',2);
	
	//if an @ sign or a dot is NOT present in the email address it is invalid. Tell the user.
	if($atLocation === false || $$dotLocation === false)
	{
		alert( 'The email address you entered is invalid, please re-enter it.' );
		return false
	}
	//a dot or a @ sign is present so it is a valid email address
	else
	{
		return true;
	}
}