Or, for the second leg, you can fly with Bangkok Air, who are much better at customer service, have a lounge for economy passengers to wait in, and can arrange all sorts of things (transfers, accommodation, etc) at BK airport. They're half the price if you book in Thailand than if you book here though.