> Just came up with this function, don't know where else to put it so ...... You could put it into the Python Cookbook: http://aspn.activestate.com/ASPN/Cookbook/Python or at faqts: http://www.faqts.com/knowledge_base/index.phtml/fid/545. Daniel