Pakistan was thrust into political uncertainty on the eve of its presidential election as the Supreme Court ruled Friday that no winner will be declared until it decides whether President Gen. Pervez Musharraf is an eligible candidate.

The surprise ruling jeopardizes Musharraf's bid to secure a new five-year term in Saturday's vote by lawmakers, in which he is heavily favored, and clouds the gathering prospect of a liberal, pro-U.S. alliance with former Premier Benazir Bhutto.

Musharraf's opponents in the election are contesting whether he can run for office while still serving as army chief, calling it unconstitutional. They had asked the Supreme Court to delay the vote.

Presiding Justice Javed Iqbal said the election by the national and provincial assemblies could take place on schedule. But he said the official results could only be announced after it had ruled on the petitions.

He said hearings will resume on Oct. 17 — meaning that even if Musharraf gets the most votes, he would have to wait at least 11 days before knowing whether he was re-elected. His current presidential term expires Nov. 15.

"Pakistan will be in a state of political limbo for quite some time," said analyst Talat Masood.

The government said it would respect Friday's decision.

"We have always accepted and respected court rulings, and we also accept today's ruling," Deputy Information Minister Tariq Azim told The Associated Press.

A lawyer for retired justice Wajihuddin Ahmed, Musharraf's chief presidential rival and one of the petitioners, acknowledged that the ruling was only a partial triumph.

"We have achieved 60 percent victory," Hamid Khan, a lawyer for Ahmed, told AP. "We are very hopeful that we will be successful in the Supreme Court."

Musharraf, who seized power in a 1999 coup and is a staunch U.S. ally, has seen his authority and popularity slide since he made a botched attempt to fire the Supreme Court's chief justice in March. His administration has also struggled against a wave of Islamic militancy.

He has promised to quit his army post and restore civilian rule by Nov. 15 if he is re-elected.

However, Attorney General Malik Mohammed Qayyum said on Geo television that he might continue as military chief if the court proceedings drag on.

Qayyum said he hoped a ruling would come within a week after the hearings resume. He also said the unofficial result of the election could still be announced after Saturday's vote, although the official notification would have to wait for the ruling.

The Election Commission declined to say whether there would be a new election or if the second-placed candidate would become president if the winner of Saturday's ballot is disqualified.

"This is a very sensitive matter. No comment," commission secretary Kanwar Dilshad said.

Ikram Sehgal, a political analyst and newspaper columnist, predicted Musharraf's allies would cast a proportion of their ballots for Senate chairman Mohammedmian Soomro, who was fielded in the event that Musharraf is disqualified.

Bhutto's party has also nominated a candidate, but with a political deal with Musharraf in the offing, it was not immediately clear whether he would run or not.

Other opposition parties have already quit parliament to erode the legitimacy of the election — meaning that they can muster few votes to challenge Musharraf and his covering candidate. On Friday, 35 lawmakers resigned from the assembly in North West Frontier Province.

Musharraf and Bhutto appear to have agreed on the text of an ordinance granting amnesty to former officials that would quash long-standing corruption cases against her and other politicians — likely heading off a threat to withdraw her Pakistan People's Party lawmakers from the assemblies.

Musharraf is also reaching out to Bhutto in order to broaden his support and underpin an effort to counter extremism and terrorism.

"This is the biggest challenge which we have to address, otherwise Pakistan will not be able to progress," Musharraf said Thursday.

Overnight talks produced a "major breakthrough" on the ordinance, a government official said Friday, speaking on condition of anonymity because he is not an official spokesman.

Sheikh Rashid Ahmed, a senior minister, said on Geo television that the Cabinet approved the ordinance Friday and sent it to Musharraf for his signature. Bhutto said she would judge the ordinance only once it was promulgated and published.

Bhutto, who plans to return from exile Oct. 18, also wants a constitutional amendment to let her seek a third term as prime minister and a reduction of the president's sweeping powers.

However, officials in her party said those issues would be resolved later, probably after parliamentary elections due by January.