Here is Thaksin’s letter of resignation from Thai Rak Thai. An English translation is available here.