private boolean isLegalNameChar(char ch) {
		return ((ch >= 'a') && (ch <= 'z')) || ((ch >= 'A') && (ch <= 'Z'))
				|| ((ch >= '0') && (ch <= '9')) || (ch == '.') || (ch == '_')
				|| (ch == '$');
	}