forget my posts, Steve's solution is much more maintanable when you(or someone else)'ll revisit the code in a couple of years. i would go with what he wrote. Cheers, Ido.