function validateRequest(f) {
	var pattern = "";
	validateMsg = "";
	validateCount = 0;
	focusSet = 0;

// Check that all fields are populated correctly
	
	if ( f.lastname.value == "" ) {
		validateMsg = "    Patient Last Name\n";
		validateCount += 1;
		f.lastname.focus();
		focusSet = 1;
	}
	if ( f.firstname.value == "" ) {
		validateMsg += "    Patient First Name\n";
		validateCount += 1;
		f.firstname.focus();
		if ( ! focusSet ) {
			f.firstname.focus();
			focusSet = 1;
		}
	}
	if ( f.birth.value == "" ) {
		validateMsg += "    Date of Birth\n";
		validateCount += 1;
		f.birth.focus();
		if ( ! focusSet ) {
			f.birth.focus();
			focusSet = 1;
		}
	}
	if ( f.by.value == "" ) {
		validateMsg += "    Signed Up By\n";
		validateCount += 1;
		f.by.focus();
		if ( ! focusSet ) {
			f.by.focus();
			focusSet = 1;
		}
	}
	if ( f.email.value == "" ) {
		validateMsg += "    E-mail Address To Receive Reminders\n";
		validateCount += 1;
		f.email.focus();
		if ( ! focusSet ) {
			f.email.focus();
			focusSet = 1;
		}
	}

// Announce any missing fields

	if ( validateCount > 0 ) {
		var instructions = "Please complete the following field";
		if ( validateCount > 1 ) {
			instructions += "s:\n";
		}
		else {
			instructions += ":\n";
		}
		alert( instructions + validateMsg );
		return false;
	}

// Announce any missing fields

	if ( f.annual.checked == false && f.flushots.checked == false ) {
		alert("Please check at least one box for\nthe reminders you wish to receive");
		f.annual.focus();
		return false;
	}
	return true;
}


