BANGKOK (AFP) - Thailand's main opposition party said Saturday it could form a government with members of the ruling coalition that collapsed this week, freezing out allies of ousted former premier Thaksin Shinawatra. The surprise development comes just days after a court stripped Prime Minister Somchai Wongsawat of his position and disbanded the pro-Thaksin People Power Party in a vote fraud case, following months of anti-government protests. But remants of the PPP who have reformed under a new name insisted that they could still muster enough seats in parliament to form a new coalition, and vowed to name a new prime minister as planned on Sunday. Thaksin's powerful ex-wife Pojaman had flown into Bangkok late Friday, in a sign that plans for the PPP's successor party, Puea Thai (For Thais), to set up a new coalition government were running into trouble. "We have agreed to form a government to revive the country's economy and confidence," Sungthep Tuagsuban, secretary general of the main opposition Democrat Party, told reporters after meetings with the PPP's former allies. One of the five groups said to be joining the Democrat Party said that it would back the party's chief, Oxford-educated Abhisit Vejjajiva, to be Thailand's new prime minister. "Everybody agrees to support Abhisit," said Sanam Kajorn-pasart, an adviser to the Chart Thai party, which was the second biggest in the coalition that was brought down by the constitutional court on Tuesday. "I have been in politics for 30 years. This is the first time the country has experienced political deadlock which has no exit, and we have been told by the public to switch poles from the PPP to resolve the crisis," he added. The Democrat Party has 165 seats and the former PPP has 212, although 37 of those are from a faction that could defect in part or whole. The coalition parties have more than 60 seats in the 448-seat House of Representatives between them. Thaksin was ousted in a military coup in 2006 but his supporters won elections in December last year, triggering months of protests that culminated in demonstrators besieging Bangkok's airports earlier this month. Somchai is Thaksin's brother-in-law. Pro-government protesters last week described the court ruling that toppled the government as a "disguised coup" following months of destabilisation by the People's Alliance for Democracy (PAD) movement. Puea Thai, which had been set up as a shell party in anticipation of the verdict, said it would go ahead with a meeting on Sunday to choose a premier " but said the new leader would not necessarily be from the party. "We can confirm that we are able to form the government with the backing of 228 MPs," deputy parliamentary speaker and senior party member Apiwan Viriyavthai told a press conference. "It is not necessary that the PM comes from Puea Thai " we can discuss the PM later," he said. The PAD has vowed fresh protests if the new PM is too close to Thaksin. The alliance, whose actions also led to Thaksin's overthrow in 2006, accused the government of being a corrupt puppet for the billionaire tycoon, who remains in exile but is still loved by the urban and rural poor. The PAD draws support from Bangkok's elite and has backing from elements in the palace, military and bureaucracy. It wants to end the one-man, one-vote system and wants to include non-elected representatives in government.