function validate()
{
	var emailexp=/^[a-z0-9][a-z_0-9\.]*[a-z_0-9]+@[a-z_0-9]+[a-z_0-9\.]*\.[a-z]{2,5}$/;
	var errors = "";
	
	name = document.getElementById('name').value;
	email1 = document.getElementById('email1').value;
	email2 = document.getElementById('email2').value;
	email3 = document.getElementById('email3').value;
	email4 = document.getElementById('email4').value;
	email5 = document.getElementById('email5').value;
	
	if(name == "")
	{
		errors += 'Please provide your name so that those you share our mission with will know that they are not receiving spam.\n';
	}
	
	if(email1 != "" && emailexp.test(email1) == false)
	{
		errors += 'The first email address is invalid\n';
	}
	
	if(email2 != "" && emailexp.test(email2) == false)
	{
		errors += 'The second email address is invalid\n';
	}
	
	if(email3 != "" && emailexp.test(email3) == false)
	{
		errors += 'The third email address is invalid\n';
	}
	
	if(email4 != "" && emailexp.test(email4) == false)
	{
		errors += 'The fourth email address is invalid\n';
	}
	
	if(email5 != "" && emailexp.test(email5) == false)
	{
		errors += 'The fifth email address is invalid\n';
	}
	
	if(name != "" && email1 == "" )
	{
		errors += "Please provide at least one email address";
	}
	
	if(errors != "")
	{
		alert(errors);
		return false;
	}
	else
	{
		return true;
	}
}
