While prostitution is illegal in Thailand, erotic massage parlors can be registered as legitimate business.