@Danny *********
you can either get it an immigration office before you leave, or get it at the airport.
That actually reminds me of a post i meant to make regarding U-Tapao. They have many international flights out of there but i couldn't see anywhere there last week to buy a reentry permit. I'm not saying you cant BUT its only a small terminal and i couldn't see anywhere there to do it.