Mojo, you are a legend.

The code you posted is something I have been looking for!! thankyou very much.