A dishwasher is NOT the best way or the remotest possible way to clean bottles! The temperature changes will crack bottles. The grit in the bottles will destroy the dishwasher!
I know at least one collector here who uses a dishwasher from time to time and had at least one nice jar crack [] . I agree with Mike, clean them by hand and be on the safe side.
Well, I wouldn't use it on a rare jar, but alot of average bottles and mason jars and milk bottles work very well in a dishwasher.
Of course you won't put a bottle full of dirt in your dishwasher so you shouldn't worry about it destroying your dishwasher.
Like I said before, wide mouth bottles work best.