Thanks Martin,

This is absolutely brilliant... I think it would have taken me about a year to figure this out alone. You are a star!!!