function checkBatchISBNs (theForm) {
		var tmpStr = theForm.txtISBNList.value;
		var tmpArr;
		var i;

		/*
		* Replace all non-alphanumeric characters with ", " and
		* remove the trailing ", " if it exists
		*/
		tmpStr = tmpStr.replace(/\-/g, "");
		tmpStr = tmpStr.replace(/[^0-9a-z]+/ig, ", ");
		tmpStr = tmpStr.replace(/(^, |, $)/, "");

		/*
		* After stripping all non-alphanumeric characters,
		* make sure we have at least on ISBN entered
		*/
		if (theForm.txtISBNList.value.length == 0) {
			alert("Please enter at least one ISBN");
			return(false);
			}

		/* Check that all ISBNs entered are 10 characters long */
		tmpArr = tmpStr.split(", ");
		for (i = 0; i < tmpArr.length; i++) {
			if (tmpArr[i].length !=10 && tmpArr[i].length !=13){
				alert("It appears that not all of the ISBNs entered are 10 digits long.\n\nPlease check that all your ISBNs are correct and then click \"Search\" again.\n");
				return(false);
				}
			}

		theForm.txtISBNList.value = tmpStr;

		return(true);
		}
