function validate(form) {
	var f = form.elements, n = '';
	
	if(!f['name'].value) {
		n += '- Please fill in the first name field.\n';
	}
	if(!f['last_name'].value) {
		n += '- Please fill in the last name field.\n';
	}
	if(!f['email'].value) {
		n += '- Please fill in the e-mail field.\n';
	}
	if(n) {
		alert('The following problem(s) occurred:\n\n' + n);
		return false;
	}
	return true;
}