function validateRegister() {
	var theForm = document.getElementById('theForm');
	
	if(theForm.name.value == "") {
		alert("Please enter your name.");
		theForm.name.focus();
		return;
	} else if(theForm.url.value == "") {
		alert("Please enter your web site's URL.");
		theForm.url.focus();
		return;
	} else if(!getEmailIsValid(theForm.email.value)) {
		alert("Sorry, the email address is invalid, please enter again.");
		theForm.email.focus();
		return;
	} else if(theForm.password.value == "") {
		alert("Please enter your password.");
		theForm.password.focus();
		return;
	} else if(theForm.password.value != theForm.passwordRetype.value) {
		alert("Your password and your retyped password do not match.");
		theForm.password.focus();
		return;
	}
  
	theForm.submit();
}