function confirm_email(thisform)
{	if(!thisform.mbtitype.selectedIndex)
	{	thisform.mbtitype.focus();
		alert("Please select your personality type.");
		return false;
	}
	if(!thisform.username.value)
	{	thisform.username.focus();
		alert("Please enter a username.");
		return false;
	}
	if(!thisform.password.value)
	{	thisform.password.focus();
		alert("Please enter a password.");
		return false;
	}
	if(!thisform.password2.value)
	{	thisform.password2.focus();
		alert("Please verify your password.");
		return false;
	}
	if(thisform.password.value != thisform.password2.value)
	{	thisform.password.focus();
		alert("Your passwords do not match. Please re-enter them.");
		return false;
	}
	if(thisform.password.value.length < 4)
	{	thisform.password.focus();
		alert("Password must contain at least 4 characters.");
		return false;
	}
	if(!thisform.email.value)
	{	thisform.email.focus();
		alert("Please enter your email address. ");
		return false;
	}
	if(!thisform.birth_month.selectedIndex)
	{	thisform.birth_month.focus();
		alert("Please select your date of birth.");
		return false;
	}
	if(!thisform.birth_day.selectedIndex)
	{	thisform.birth_day.focus();
		alert("Please enter your date of birth.");
		return false;
	}
	if(!thisform.birth_year.value)
	{	thisform.birth_year.focus();
		alert("Please enter your date of birth.");
		return false;
	}
	if(!thisform.gender.selectedIndex)
	{	thisform.gender.focus();
		alert("Please select your gender.");
		return false;
	}
	if(!thisform.sexual_orientation.selectedIndex)
	{	thisform.sexual_orientation.focus();
		alert("Please select your sexual orientation.");
		return false;
	}
	var message = "Please make sure your email address is spelled correctly: " + thisform.email.value;
	if(!confirm(message))
	{	thisform.email.focus();
		return false;
	}
}