Thanks a lot John, much appreciated.
It works almost perfectly, and nothing I can't fix without dissecting the code for a little while.
A.