Politicians of both parties are lamenting that a federal deficit seems certain this year. Analysts outside the government are more concerned with the budget's increasingly shaky longer-term prospects.

A $52 billion surplus projection for fiscal 2002 was put out last week by the leaders of the House and Senate budget committees. But that figure excluded bills to revive the economy and protect the nation against terrorist attacks.

Bearing price tags well into the tens of billions of dollars, those measures will produce a deficit in the double-digit billions of dollars for the fiscal year that began Oct. 1, experts agree. The deficit will be the first since 1997.

Rather than expressing alarm, economists say it makes sense for the government to run deficits for the next year or two as it tries to prop up the limp economy by pumping money into it through tax cuts and extra spending.

"It's quite appropriate that your surpluses should decline in an economic downturn," said Susan Hering, an economist with UBS Warburg, a financial services firm in Chicago.

But with layoffs piling up and consumer confidence plunging, no one can be certain how long the current downturn will last. The longer it goes on, the likelier long-term surpluses are to shrink.

In May, the CBO projected $5.6 trillion in surpluses from 2002 through 2011. Last week, the budget committee leaders said that figure now looks more like $2.6 trillion -- and could be as small as $240 billion.

The surpluses are important because politicians have been counting on them to dramatically reduce the national debt over the next decade. That would put the government on more solid financial ground and help shore up Social Security and Medicare for the looming retirement of the 76-million-strong baby boom generation.

Many analysts say it's not yet time to panic.

Politicians got a break because the problems with the economy and terrorism began when the budget was stupendously healthy, according to the analysts. A deficit this year in the tens of billions of dollars is insignificant, economists say, compared to the country's $10 trillion economy.

Yet analysts worry that, when writing legislation in coming weeks to stimulate the economy and buttress anti-terrorism efforts, lawmakers will enact permanent tax cuts and create new spending programs. The combination and a further weakening of the economy could dissolve projected surpluses.

"Should decisions over the next few months eliminate the fiscal flexibility we had in our future, that would be a very unfortunate turn of events," said Robert Reischauer, president of the Urban Institute, a research group, and former chief of the Congressional Budget Office.

Bush and leaders of Congress have spoken of the need to keep the economy and federal budget healthy over the long run, no matter what short-term steps they take in coming months.

"These are unusual times that require unusual measures," Senate Minority Leader Trent Lott, R-Miss., said last week. "But we should not loose the dogs of deficit spending forever."

The problem is that translating such sentiments into reality often leads to familiar partisan conflicts.

For example, the Democratic and Republican budget committee leaders announced a set of principles last week aimed at limiting the long-term fiscal harm any economic stimulus package might have. Such a package -- aimed at quickly rejuvenating the economy -- is beginning to work its way through Congress and could have a price tag of roughly $75 billion.

But those same lawmakers could not agree on where to look for future savings that can help the government return to healthy surpluses.

House Minority Leader Dick Gephardt, D-Mo., and many Democrats want to roll back parts of Bush's tax cut; many Republicans would rather trim federal spending.