
    var errfound; //for function error()

	function gjferror(elem, text) {
			if (errfound) return;
			window.alert (text);
			elem.focus();
			errfound=true;
	}

	function gjfValidLength(item, len) {
	//true if item.length >= len
			return (item.length >= len);
	}

