function validateRegistrationForm(){
	var textboxes = ['username', 'password', 'retype_password', 'firstname', 'lastname', 'district', 'school'];
	var textnames = ['Pick a Username', 'Pick a Password', 'Retype Password', 'First Name', 'Last Name', 'District', 'School'];
	
	for(var i=0;i<textboxes.length;i++){
		var elm = get(textboxes[i]);
		if(elm.value.isBlank()){
			alert('Please fill in the "'+textnames[i]+'" text box. \nIt can\'t be empty.');
			elm.focus();
			return false;
		}
	}
	
	/*
	if(!get('agreement').checked){
		alert("Please check the \"I agree to the above\" checkbox first.");
		return false;
	}
	*/
	
	if(get('password').value != get('retype_password').value){
		alert("The password you originally typed does not match the password you retyped.");
		get('retype_password').select();
		get('retype_password').focus();
		return false;
	}
	
	if(!get('agreement').checked){
		alert("Please check the \"I agree to the above\" checkbox first.");
		return false;
	}
	
	return true;
}