A trader smiles as he works on the floor of the New York Stock Exchange after the closing bell in New York, November 11, 2011. Stocks surged Friday after Greece and Italy made steps forward in solving their debt issues.

Stocks surged Friday, erasing their losses for the week, after Italy and Greece moved closer to getting their financial crises under control. The Dow Jones industrial average jumped back above 12,000.

Italy's benchmark stock index leapt 3.7 percent and its borrowing costs plunged after the country's Senate passed a crucial austerity budget demanded by the European Union. Other European stock markets and the euro also pushed higher as investors became more confident that Italy would avoid a fiscal disaster.

The passage clears the way for Italian Premier Silvio Berlusconi to step down. Berlusconi was widely considered an obstacle to serious economic reforms. The yield on Italy's benchmark two-year bond dropped 0.43 percentage point to 5.69 percent. That's a sign bond investors think Italy will succeed in managing its massive debt load.

The Dow Jones industrial average jumped 259.89 points, or 2.2 percent, to 12,153.68. It closed below 12,000 the previous two days. Friday's rally pushed the Dow up 1.4 percent for the week.

Together with a 112-point gain the day before, the Dow has now made up most of the 389-point plunge it took on Wednesday. That sell-off was triggered by a spike in Italy's borrowing costs and a breakdown in talks to name a new prime minister in Greece.

In Greece, too, there was good news for the markets Friday. Lucas Papademos, a former central banker, was sworn in as interim prime minister. Lucas Papademos took over a coalition government after a two-week political crisis that jeopardized the country's ability to continue receiving emergency loans.

Plenty of uncertainty still hangs over financial markets. Brian Gendreau, senior investment strategist at Cetera Financial Group, noted that the VIX index is still above 30, a sign that traders expect stocks to stay volatile.

Gendreau expects the S&P 500 to trade in a range of 1,200 to 1,275 until Europe's debt crisis gets closer to resolution and the U.S. Congress signs off on a larger debt-cutting plan. A supercommittee in Congress has until Nov. 23 to agree on a deficit-reduction package of at least $1.2 trillion over a decade.

— Viacom Inc., the parent of Nickelodeon, said it will move its stock listing to the Nasdaq Stock Market from the New York Stock Exchange next month because it's more "cost effective." The company's class B stockrose 3 percent.

— E-Trade Financial Corp. sank 4.1 percent. The online broker said late Thursday that it had decided against putting itself up for sale. E-Trade's largest shareholder, the hedge fund Citadel Advisors, had been pushing for a sale.

U.S. bond trading was closed for Veterans Day.

Five stocks rose for every one that fell on the New York Stock Exchange. Volume was light at 3.3 billion shares.