I've only just seen this script now. Thanks Rob, it will save me a fortune of time. Actually it would have saved me a whole lot more time if I had looked at it before doing the rivers on my challenge entry this month. Served me right for going to sleep.

Torq