I know this is doable, so do it until you get it. (HINT: Think curly braces.) A friend wrote something like this when we worked together at Ameritech. However, that was years ago, and I've lost touch with him. I am not about to give away his code without permission. (I'm kinda funny that way.)
--
tbone1
Ain't enough 'O's in 'stoopid' to describe that guy.
- Dave "the King" Wilson