They used to be quite easy to get without a prescription from chemists in Bangkok.
They've tightened it up now, but I believe there are still a couple of places that will help you out.
One of them has been doing it for years and must make fairly generous contributions to the yearly Songkran fund.