utils.rb - Utility functions
Copyright (C) 2005,2006 Masao Mutoh
You may redistribute it and/or modify it under the same license terms as Ruby or LGPL.