thanks, it works perfectly. This is exactly what i needed.

Thank you for all your help.