* Ruling party seeks more judicial control
* Top police chiefs removed from posts
* Concern about erosion of judicial independence (Adds prosecutor statement, denial from sources in PM's office)
By Gulsen Solaker and Orhan Coskun
ANKARA, Jan 8 (Reuters) - Turkey's deputy police chief has been sacked, the most senior commander yet targeted in a purge of a force heavily influenced by a cleric accused by Prime Minister Tayyip Erdogan of plotting to seize the levers of state power.
Erdogan's AK Party meanwhile submitted plans to parliament to allow government more say over the naming of prosecutors and judges. Erdogan argues that a judiciary and police in the sway of the Hizmet (Service) movement of cleric Fethullah Gulen contrived a graft investigation now shaking his administration.
The police website said the deputy head of the national police, Muammer Bucak, and provincial chiefs, among them the commanders in the capital Ankara and the Aegean province of Izmir, were removed from their posts overnight.
The government has ousted hundreds of police since the graft affair erupted on Dec. 17 with the detention of dozens of people including businessmen close to the government and three cabinet ministers' sons. Among the dozens questioned, most have been released. A remaining 24, including two of the ministers' sons, remain in custody, according to local media.
The scandal has shaken investor confidence in Turkey before elections this year and heightened concern about the erosion of judicial independence, something which in the longer term could damage Ankara's bid for membership of the European Union.
"We urge Turkey, as a candidate country committed to the political criteria of accession..., to take all the necessary measures to ensure that allegations of wrongdoing are addressed without discrimination," a spokesman for the European Commission said when asked in Brussels about the affair.
Details of the corruption allegations have not been made public, but are believed to relate to construction and real estate projects and Turkey's gold trade with Iran, according to Turkish newspaper reports citing prosecutors' documents.
The affair, exposing a deep rift within the Turkish political establishment, has shaken markets, driving the lira to new lows. Ratings agency Fitch warned that "strains on institutional integrity" were among the factors which could weaken Turkey's creditworthiness.
Moody's, which raised Turkey to investment grade last May, said domestic political risk was already factored into its rating, suggesting it plans no imminent change.
Continued uncertainty or even instability could present hazards for the region, where Ankara has extended its role under Erdogan. Turkey borders Iraq, Iran and Syria and hosts hundreds of thousands of Syrian refugees.
GRIP ON JUDICIARY
Erdogan has cast the graft investigation, which poses arguably the biggest challenge of his 11-year rule, as an attempted "judicial coup" backed by foreign forces. His allies argue that the accusations have been fabricated.
Zekeriya Oz, an Istanbul prosecutor who initially led the case but has been reassigned, said he was indirectly threatened by Erdogan through two people he met in a hotel in Bursa province. He said they asked him to halt the investigation.
"These people I met ... told me that the prime minister was angry at me and that...I should write a letter to him to apologise. They said the investigations against the government should immediately be halted, otherwise I would be harmed and there would be grave consequences for me," Oz said in a statement reported by local media.
Sources in Erdogan's office denied Oz's statement, saying the premier had sent no such people to meet the prosecutor.
The corruption scandal exposed a long-standing rift between Erdogan and Hizmet, which exercises influence through a network of contacts built on sponsorship of schools and other social and media organisations. The two have accused each other of manipulating police and judiciary and threatening stability.
Gulen, who lives in the United States, denies involvement in launching the investigation, which broke into the public view three months before local elections that will constitute a test of Erdogan's long-standing popularity.
The ruling party bill on the judiciary, published on parliament's website, proposes changes to the structure of the High Council of Judges and Prosecutors (HSYK), the body responsible for appointments in the judiciary, which Erdogan has criticised since the corruption scandal erupted last month.
It allows the undersecretary of the justice minister to be elected as chairman of the HSYK board, a move which would give the government a tighter grip over the choice of judges.
Mustafa Sentop, a deputy chairman of the AKP, said the bill was meant to stop a "parallel structure" - a term Erdogan's supporters use to refer to Hizmet - from wielding influence.
"We aim to ensure the independence and neutrality of the judiciary and to prevent a parallel structure, groups within the HSYK, from achieving political goals through the judiciary," he told Reuters. "This is not an attempt to intervene against an independent judiciary," he said.
But the dispute is damaging faith in Turkey's institutions.
"All this will act as a drag on investment, growth and development, while weighing against the EU accession drive," said Timothy Ash, head of emerging markets at Standard Bank.
"This has been a gift to Turkey's opponents and critics in Europe." (Additional reporting by Asli Kandemir, Humeyra Pamuk and Ece Toksabay in Istanbul, Adrian Croft in Brussels; Writing by Nick Tattersall; Editing by Ralph Boulton/Mark Heinrich)
Our Standards: The Thomson Reuters Trust Principles.