function submitIt(newacqForm) {

// check to see if the user has filled in a valid e-mail address
// If the user didn't fill in an e-mail address, an alert message appears
	if (newacqForm.email.value == "") {
		alert ("Please enter your e-mail address")
		return false
	}
// This is a simple check for errors in the e-mail address. However it won't catch every mistake.
	invalidChars = " /:,;"
	for (i=0; i<invalidChars.length; i++) {
		badChar = invalidChars.charAt(i)
		if (newacqForm.email.value.indexOf(badChar,0) > -1) {
			alert("Please check your e-mail address and correct any errors")
			return false
		}
	}
	if (newacqForm.email.value.indexOf ('@',0) == -1 ||   // check for the "at" sign in the address
		newacqForm.email.value.indexOf ('.',0) == -1 &&   // check for at least one period
		newacqForm.email.value != "") {   // however, the e-mail form field isn't empty
			alert("Please check your e-mail address and correct any errors")
			return false
	}

// check to see if the user has indicated his or her UCB status using the radio buttons
	affiliation = -1
	for (i=0; i<newacqForm.status.length; i++) {
		if (newacqForm.status[i].checked) {
			affiliation = i
		}
	}
	if (affiliation == -1) {
		alert("Please indicate your UCB affiliation.")
		return false
	}

// check to see if the user has indicated whether or not notification is desired
	notification = -1
	for (i=0; i<newacqForm.notify.length; i++) {
		if (newacqForm.notify[i].checked) {
			notification = i
		}
	}
	if (notification == -1) {
		alert("Please indicate whether or not you would like to be notified when the new book is available.")
		return false
	}

	return true
}
