At O Smach, FUNCINPEC-aligned troops fought along with the Khmer Rouge forces against CPP-aligned troops until February 1998, when a ceasefire brokered by the Japanese government came into effect. In March 1998, Ranariddh was convicted in absentia by a military court of illegally smuggling ammunitions in May 1997, and of colluding with the Khmer Rouge to cause instability in the country. He was sentenced to a total of 35 years' imprisonment, but this was nullified by a pardon from Sihanouk. Ranariddh returned to Cambodia at the end of March 1998 to lead FUNCINPEC's election campaign, which focused on pro-monarchical sentiments and anti-Vietnamese rhetoric. FUNCINPEC faced numerous obstacles, including lack of access to television and radio channels which had come under CPP's exclusive control following the 1997 clashes, and the difficulties of its supporters in getting to party rallies. In the vote on 26 July 1998, FUNCINPEC polled 31.7 percent and secured 43 out of a total of 122 parliamentary seats. The CPP won the elections by polling 41.4 percent of all votes and securing 64 parliamentary seats. The Sam Rainsy Party (SRP), Rainsy's renamed KNP, was in third place with 14.3 percent of the vote and 15 parliamentary seats.