By Parisa Hafezi and Zahra Hosseinian
TEHRAN (Reuters) - Hardline President Mahmoud Ahmadinejad and his main moderate challenger both claimed to be leading in a hotly-contested election in Iran on Friday.
Millions of Iranians streamed to polling stations, causing voting to be extended by four hours to 10 p.m. (6:30 p.m. British time) to allow more people to cast ballots, the Interior Ministry said.
Those still queuing when the polling stations closed were allowed to stay to vote.
Sadegh Kharazi, a senior backer of former Prime Minister Mirhossein Mousavi, said surveys made by reformers showed that Mousavi was getting about 58-60 percent of the votes.
But an Ahmadinejad representative, Ali Asghar Zarei, said the incumbent was ahead with about the same level of support, the semi-official Mehr News Agency reported.
A victory for Mousavi might help ease tensions with the West, which is concerned about Tehran's nuclear ambitions, and improve chances of engagement with U.S. President Barack Obama who has talked about a new start in ties with Tehran.
In Washington, Obama said his administration was excited about the debate taking place in Iran and he hoped it would help the two countries to enagage "in new ways."
Long queues had formed at voting centres and officials said they expected a turnout of about 70 percent or more, approaching the record of nearly 80 percent when reformist Mohammad Khatami swept the 1997 presidential election.
Some people said they had waited for more than two hours to cast ballots, both in northern, affluent areas of Tehran where Mousavi draws support and in southern, poorer neighbourhoods seen as Ahmadinejad strongholds.
High turnout could indicate voting by many pro-reformers who stayed away when Ahmadinejad won four years ago on a pledge to revive the values of the 1979 Islamic revolution. Political analysts have said they expect a close race.
The vote has generated interest around the world with policymakers looking for signs of a change of approach by Tehran, whose ties with the West worsened under Ahmadinejad.
For Iranians it is a chance to pass judgement on his management of the Islamic Republic's oil exporting economy.
Although Ahmadinejad, 52, says his government has revived economic growth and curbed price rises, inflation and high unemployment were the main campaign issues. Official inflation is around 15 percent.
"MIRACLE"
Social issues, such as strict dress codes for women, as well as Iran's ties with the outside world, also featured in the campaign but the outcome of the vote will not bring a major shift in Iran's foreign policy, which is determined by Supreme Leader Ayatollah Ali Khamenei.
The United States has had no ties with Iran since shortly after the revolution but Obama said in Washington that the United States had "tried to send a clear message that we think there is the possibility of change" in relations.
Mousavi, 67, rejects Western demands that Iran halt uranium enrichment but analysts say he would bring a different approach to Iran-U.S. ties and talks on Tehran's nuclear programme, which the West fears is a cover to build bombs. Iran denies this.
"People's strong, revolutionary and clear decision will bring about a bright future for the nation," Ahmadinejad, a self-styled champion of the poor with strong support in rural areas, said while voting in a working class part of Tehran.
The three-week election campaign was marked by mudslinging, with Ahmadinejad accusing his rivals of corruption. They said he was lying about the state of the economy.
Ahmadinejad's election rivals, who also include liberal cleric Mehdi Karoubi and former Revolutionary Guard leader Mohsen Rezaie, have urged the Interior Ministry and Khamenei to ensure there is no vote rigging.
A Karoubi adviser told Reuters Ahmadinejad's three opponents were concerned about a lack of ballot papers, the closure of seven reformist websites and the blocking of text messages, which they had used in their campaigns.
Ahmadinejad has ruled out any possibility of fraud.
Preliminary results are expected early on Saturday. If none of the candidates win 50 percent of the votes, a run-off will be held on June 19 between the two front-runners.
Mousavi's wife Zahra Rahnavard broke new ground in the conservative Islamic state by actively campaigning for her husband, a move hailed by women's rights activists.
"I thank all the people for their green presence which created a miracle," Mousavi said, referring to the colours worn by his backers who thronged Tehran streets during the campaign, as he voted in Tehran with his wife at his side.
U.S. Secretary of State Hillary Clinton said the turnout was "a very positive sign that the people of Iran want their voices and their votes to be heard and counted."
(Additional reporting by Hossein Jaseb and Hashem Kalantari; writing by Fredrik Dahl and Dominic Evans; editing by Angus MacSwan)