Hi, I have posted the code with some documentation into the User Contributions area of TrapExit (http://forum.trapexit.org/viewtopic.php?t=5906). Any comments/fixes/etc. are welcome. Istvan