Brendan, thanks for being thoughful and supplying your solution. I just needed sonething very similar yesterday. Regards Adam -- Posted via http://www.ruby-forum.com/.