/**
  * Checks the register form for errors
  */

function checkRegisterForm() {

	error = false;
	errorText = 'You must correct the following errors before continuing:' + "\n\n";
	if (document.getElementById('name').value == '') {
		error = true;
		errorText += ' * You must enter your name' + "\n";
	}
	
	if (document.getElementById('email').value == '') {
		error = true;
		errorText += ' * You must enter your email address' + "\n";
	}
	
	if (document.getElementById('phone').value == '') {
		error = true;
		errorText += ' * You must enter your phone number' + "\n";
	}
	
	if (error == true) {
		alert(errorText);
		return false;
	} 
	return false;
}