Jochen,

Unfortunately the function is in the same script - I think I'm going blind trying to spot the error. I'll have another look at it and post code if I'm still without a resolution

Mark

_________________________
Mark Pietersz