It occurred because prevStyleSpec and prevStyle were being set by the function start_style. They are now set by end_style, which is logical! John -- John J. boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities For a description of the software and to download it go to http://www.jjb-software.com