TOKYO - Japanese voters swept the opposition to a historic victory in an election on Sunday, ousting the long-ruling conservative party and handing the novice Democrats the job of reviving a struggling economy.

The win by the Democratic Party of Japan (DPJ) ends a half-century of almost unbroken rule by the Liberal Democratic Party (LDP) and breaks a deadlock in parliament, ushering in a government that has promised to focus spending on consumers, cut wasteful budget outlays and reduce the power of bureaucrats.

But the untested party will have to move quickly to keep support among voters worried about a record jobless rate and a rapidly aging society that is inflating social security costs.

The people are angry with politics now and the ruling coalition. We felt a great sense of people wanting change for their livelihoods and we fought this election for a change in government, said Democratic Party leader Yukio Hatoyama.

Media projections showed the Democrats set for a landslide win, possibly taking two-thirds of the seats in parliament's powerful 480-member lower house. That matched earlier forecasts of a drubbing for Prime Minister Taro Aso's LDP.

The ruling party loss ended a three-way partnership between the LDP, big business and bureaucrats that turned Japan into an economic juggernaut after the country's defeat in World War Two. That strategy foundered when Japan's bubble economy burst in the late 1980s and growth has stagnated since.

This is about the end of the post-war political system in Japan, said Gerry Curtis, a Japanese expert at Columbia University. It marks the end of one long era, and the beginning of another one about which there is a lot of uncertainty.

FROM STALEMATE TO CHANGE

Financial markets wanted an end to a stalemate in parliament, where the Democrats and their allies control the less powerful upper chamber and can delay bills. However but bond yields may rise if a new government increases spending.

Media exit polls showed the Democratic Party had won around 320 lower house seats -- almost triple its 115 before the election. The LDP slumped to just over 100 seats from 300.

Aso said he took responsibility for the defeat, adding an LDP leadership race to pick a successor should be held soon.

Support for the LDP, which swept to a huge election win in 2005 on charismatic leader Junichiro Koizumi's pledges of reform, has crumbled due to scandals, policy flip-flops and a perceived inability to address the problems of a fast-aging population.

But voter backing for the Democrats is less than exuberant.

It's going to be challenging for the DPJ to allocate money properly, but I think we should give them a shot, said 38-year-old restaurant owner Yasuhiro Kumazawa. If it doesn't work out, we can re-elect the LDP again in four years.

Hatoyama, 62, the wealthy grandson of a former prime minister, often invoked change during the campaign, a theme that resonated with voters, even if they were unsure his party would pull Japan out of its worst recession in 60 years.

I don't like what's going on now in this country. Things have to change, said Kazuya Tsuda, a 78-year-old retired doctor in Tokyo who voted for the Democratic Party.
The Democrats have pledged to refocus spending on households with child allowances and aid for farmers while taking control of policy from bureaucrats, often blamed for Japan's failure to tackle problems such as a creaking pension system.

(The Democrats) are saying that they will escape from bureaucratic dominance of politics, but they must also skillfully use bureaucrats to implement their policies, said Norihiko Narita, a professor at Surugadai University near Tokyo.

Hatoyama said he wanted to form a coalition with smaller parties whose cooperation is needed in the upper house, but said he wouldn't decide personnel in his new government right away.

DIPLOMATIC SHIFT

The Democrats want to forge a diplomatic stance more independent of the United States, raising concerns about possible friction in the alliance.

The LDP is probably going to be missed more in Washington than in Japan, said Michael Auslin at the American Enterprise Institute in Washington.

The party has vowed to build better ties with the rest of Asia, often strained by bitter wartime memories.

The Democrats have a positive attitude toward relations with China, said Liu Jiangyong, a Japan expert at Tsinghua University in Beijing. But there are still problems in bilateral relations, which need hard work from both sides to resolve.

Economic experts worry spending plans by the Democrats, a mix of former LDP members, ex-Socialists and younger conservatives founded in 1998, will inflate Japan's massive public debt and push up government bond yields.

The party has vowed not to raise the 5 percent sales tax for four years while it focuses on cutting wasteful spending and tackling problems such as a shrinking and greying population.

The biggest reason was that the LDP wasn't able to fully deliver clear policies to deal with the unprecedented aging, shrinking population and bring comfort to voters, said Yoshihide Suga, deputy chairman of the LDP's Election Strategy Council.

Japan is aging more quickly than any other rich country, inflating social security costs. More than a quarter of Japanese will be 65 or older by 2015.

The economy returned to growth in the second quarter, mostly because of short-term stimulus around the world, but the jobless rate rose to a record 5.7 percent in July.

(Editing by Dean Yates and Rodney Joyce)