// validateBarcode.js
// Robert Day 2004
// Simple function to pattern match against Bolton barcodes

function allowThrough(f) {
	// This next line does the pattern match and needs to be specific to each authorities barcode pattern
	var p = /^\d{9}/;
	// The rest is generic code
	if (p.test(f.barcode.value)){return true;}
	alert('Sorry.\n\nYou appear to have entered an invalid barcode.\n\nPlease try again.');
	f.barcode.focus();
	f.barcode.select();
	return false;
}

