Thankyou I think that API will do the job. I've used it before but had forgotten about it!