Tim and Jurij,

Thanks both for your good explanation and solution. I have had this problem and spent the best part of two days trying to figure it out.

I'ts now fixed.

-- Tony