def intToID(idnum):
	"""
	Returns the ID name for the given ID number, spreadsheet-style, i.e. from a to z,
	then from aa to az, ba to bz, etc., until zz.
	"""
	rid = ''
	
	while idnum > 0:
		idnum -= 1
		rid = chr((idnum % 26) + ord('a')) + rid
		idnum = int(idnum / 26)
	
	return rid