HELENA, Mont. -- Democratic Sen. Jon Tester is hanging on in a brutal re-election battle in Montana despite a drag from President Barack Obama, who is poised to lose big in this sparsely populated, libertarian-minded state.

His opponent, Republican Rep. Denny Rehberg, has been unable to pull ahead of the first-term senator after trying to tie him to Obama and the president's signature health care law. Victory probably lies in the dwindling ranks of undecided voters.

"In Montana, I know where Rep. Rehberg stands at, and I know where Sen. Tester stands at," said Great Falls retiree Dale Specht, a member of the roughly 6 percent of voters in the state who haven't settled on a candidate. "I am just trying to figure out who is going to do the best job for our state of Montana."

Both candidates have preached their independent credentials as outside spending bombards TV viewers across Montana's vast expanse with unprecedented waves of attack ads – nearly $12 million worth so far.

National Democratic Party groups, unions and Democratic-aligned super PACs, such as the Majority PAC, have spent slightly more than $7.3 million mainly on attack ads against Rehberg, the state's lone House member since 2001. The Karl Rove-founded Crossroads groups, the U.S. Chamber of Commerce and other conservative campaign funding operations have spent $4.3 million on ads critical of Tester.

The race remains one of the half-dozen or so pure toss-ups that will determine whether Democrats continue to control the Senate or Republicans take it over.

Tester may well be helped by Montana's relatively low 6.3 percent unemployment rate. Booming oil fields in the eastern part of the state have blunted the recession's effect and taken some of the sting out of the GOP's national effort to blame family-level fiscal hardships on Obama and Democrats like Tester.

Montana has a rich history of ticket-splitting. In both 2004 and 2008, Montanans picked the Republican presidential candidate while electing a Democratic governor. The state legislature is now dominated by Republicans, but control has shifted back and forth over the past decade.

In some ways the race is reminiscent of 1996, when Rehberg nearly ousted Democratic Sen. Max Baucus from office over Baucus's fleeting support of gun control during Bill Clinton's presidency.

"The good news for Tester is that he has does have a real independent streak, particularly on a series of issues that are near and dear to the hearts of many Montanans," said University of Montana political scientist Robert Saldin. "But in this particular year, with this particular president at the top of the ticket, it's far from clear whether that will be enough."

Tester, 56, looks more like the grain farmer he is than a typical U.S. senator, and retains much of the everyman appeal that propelled him to a razor-close upset win in 2006 over three-term Republican incumbent Conrad Burns.

Tester says openly that if he loses he will be content to return to his relatively modest Big Sandy homestead to plow fields and fix equipment. He vowed in a recent interview with The Associated Press that he would never return to Washington as a lobbyist, as many ex-officeholders have.

However, Tester doesn't plan on losing. He is campaigning furiously with a more complex strategy. He recently held a weekend concert with Pearl Jam – bassist Jeff Ament is a friend from Big Sandy – at the University of Montana to rally his base.

"It doesn't matter what the polls say, it's going to be close," Tester said.

What he almost never mentions is Obama or his vote for the president's health care overhaul – though when asked, the senator says he wouldn't take it back.

Instead, Tester touts his independence on issues such as wolves, big business bailouts, energy development important in the booming oil fields in eastern Montana, and proposed administration agricultural rules considered laughable by many family farmers. He says his top issue after re-election would be to resuscitate a bipartisan balanced budget solution that has languished in Congress.

Tester also has been fighting Rehberg's attacks with plenty of his own, portraying the six-term congressman as a land developer – rather than a rancher – and a Washington insider with few accomplishments.

Tester blames Rehberg for failing to persuade the GOP-controlled House to pass a farm bill. He also accuses the Republican of taking lavish trips overseas on the taxpayers' tab and points to Rehberg being caught on tape saying he relies on lobbyists for his information.

As many voters hold negative views about Rehberg as Tester.

It didn't help Rehberg's case that late last year he had to drop a lawsuit he filed against his hometown's firefighters as political damage from it mounted. Three years ago, Rehberg, 57, also made headlines after he and staffers were seriously injured when a boat being operated by a GOP state senator crashed after a night of drinking.

Democrats also hope the Libertarian candidate on the ticket steals some anti-government conservative voters from Rehberg's side.

Rehberg, meanwhile, is sticking to his strategy of denouncing Obama administration policies and attacking Tester for backing many of them. Rehberg argues that Tester is not the independent-minded farmer the state thought it was going to get.

"It is the cumulative effect of all the taxes and regulations that are stifling businesses," Rehberg told campaign supporters at one Helena campaign stop, reinforcing his primary theme. "Government is not going to create the jobs. Montanans do."

Also on HuffPost:

Loading Slideshow...
  • Prosecution For Financial Fraud Hit A 20-Year Low During The Obama Administration

    Despite Obama's <a href="http://www.thedailybeast.com/newsweek/2012/05/06/why-can-t-obama-bring-wall-street-to-justice.html" target="_hplink">promises to crack down</a> on Wall Street, federal prosecutions of financial fraud hit a 20-year low last year, according to a <a href="http://www.huffingtonpost.com/2011/11/15/financial-fraud-prosecution_n_1095933.html" target="_hplink">November study from a watchdog group</a>. The number of these types of prosecutions has been falling every year since 1999 -- in other words, there were more prosecutions during every year of George W. Bush's presidency than during every year of Obama's.

  • Income Inequality Is Worse Under Obama Than Under Bush

    The rich took home a <a href="http://www.huffingtonpost.com/2012/04/11/income-inequality-obama-bush_n_1419008.html" target="_hplink">greater share of America's income pie</a> from 2009 to 2010 than they did between 2002 and 2007, according to an April analysis from Emmanuel Saez, a professor at the University of California, Berkeley. That means the gap between the rich and the poor was more pronounced under Obama's presidency than under George W. Bush's.

  • Obama Wants To Lower The Corporate Tax Rate

    Some of America's most profitable companies used a variety of loopholes to pay <a href="http://www.huffingtonpost.com/2011/11/03/major-corporations-tax-subsidies_n_1073548.html" target="_hplink">less than zero in taxes</a> between 2008 and 2010, according to a November 2011 report by the Citizens for Tax Justice. But the Obama administration wants to make it even easier for corporations to have a smaller tax bill; Obama proposed a tax overhaul that would <a href="http://www.huffingtonpost.com/2012/02/22/barack-obama-proposing-to_n_1292939.html" target="_hplink">cut the corporate tax rate</a> from 35 percent to 28 percent.

  • Health Care Reform Won't Make Health Care Cheaper For Most Americans

    Once the health care law takes effect, insurance companies will be footing the bill for millions of previously uninsured Americans and for those who were denied coverage for pre-existing conditions. And health insurance companies will <a href="http://www.huffingtonpost.com/2012/04/20/health-care-costs-rise_n_1440584.html" target="_hplink">likely pass on to consumers the cost</a> of insuring the new patients. After Massachusetts enacted a similar health care plan in 2006, premiums for an individual plan in the state <a href="http://www.huffingtonpost.com/2012/06/28/health-insurance-ruling-supreme-court-costs_n_1634555.html" target="_hplink">rose 18 percent</a> over three years.

  • Obama's Housing Programs Have Largely Been A Failure

    In 2009, Obama announced the Home Affordable Mortgage Program, promising to help 3 to 4 million borrowers, but as of January -- more than three years into the program -- HAMP had <a href="http://www.huffingtonpost.com/2012/01/27/hamp-loan-modification-expands_n_1237169.html" target="_hplink">only reached 1 million borrowers</a>. In an aim to give the program legs, administration <a href="http://www.huffingtonpost.com/2012/01/27/hamp-loan-modification-expands_n_1237169.html" target="_hplink">officials changed the rules</a> in January to make more borrowers eligible. Still, the fixes were likely too little too late, experts said at the time.

  • Homeowners Haven't Seen Much Out Of That Huge Mortgage Deal

    The Obama Administration touted the $25 billion mortgage deal it reached with 49 states and the big banks to settle allegations that banks mishandled mortgages. As part of the settlement, banks said they would <a href="http://www.huffingtonpost.com/2012/06/12/national-mortgage-settlement-_n_1589499.html" target="_hplink">offer at least $10 billion</a> in loan forgiveness to homeowners. But months after the deal was inked, <a href="http://www.huffingtonpost.com/2012/08/29/debt-relief-mortgage-settlement_n_1839923.html" target="_hplink">banks have been slow</a> to hand out the money.

  • Democrats Have Received Lots Of Campaign Cash From Bain Employees

    The Democratic National Convention will feature <a href="http://www.huffingtonpost.com/2012/09/03/bain-capital_n_1852302.html" target="_hplink">employees of firms run by Bain Capital</a> -- the private equity firm where Mitt Romney was formerly CEO -- likely in an aim to raise questions about Romney's tenure at the now-controversial company. But Democratic candidates and committees had <a href="http://articles.boston.com/2012-05-23/nation/31814221_1_obama-campaign-mitt-romney-romney-claims" target="_hplink">actually netted double the amount of campaign cash from Bain workers</a> as of May than their Republican counterparts since 2008, according to the <em>Boston Globe</em>. Now, Republicans are beating their Democratic colleagues in Bain cash, with <a href="http://www.opensecrets.org/overview/topcontribs.php" target="_hplink">58 percent of donations from Bain</a> employees going to Republican candidates and parties, according to the Center for Responsive Politics. <strong>CORRECTION:</strong><em> An earlier version of this slide misstated that Democrats were receiving more donations from Bain employees than Republicans. That was the case in May. As of September Republicans are receiving more donations from Bain employees.</em>

  • Goldman And Other Wall St. Firms Have Largely Escaped Punishment For Their Role In The Financial Crisis

    The announcement last month that the Justice Department wouldn't be prosecuting Goldman Sachs over allegations surrounding the financial crisis was <a href="http://www.huffingtonpost.com/2012/08/15/matt-taibbi-eric-holder_n_1784167.html" target="_hplink">a reminder for many</a> that the Obama Administration has largely let banks off the hook for their role in the meltdown. And regulators and officials may be running out of time; <a href="http://dealbook.nytimes.com/2012/08/09/goldman-says-sec-has-ended-mortgage-investigation/?ref=business" target="_hplink">the statute of limitations</a> for crimes related to the financial crisis is fast approaching, according to <em>The New York Times</em>.

  • The Revolving Door Is Alive And Well In Obama Administration

    Many current and former members of the Obama Administration have ties to Wall Street. The <a href="http://www.huffingtonpost.com/2012/08/30/wall-street-washington_n_1842517.html" target="_hplink">list includes</a> the president's current and former chiefs of staff -- Jacob Lew and Bill Daley, respectively -- as well as his former budget director, Peter Orszag, and others.

  • Too Big To Fail Banks Have Grown Under Obama

    At the end of 2011, five big banks, including Bank of America and JPMorgan Chase, held <a href="http://www.bloomberg.com/news/2012-04-16/obama-bid-to-end-too-big-to-fail-undercut-as-banks-grow.html" target="_hplink">56 percent of the U.S. economy</a>, according to Bloomberg, compared to 43 percent five years earlier. That's right, the too-big-to-fail banks have actually gotten bigger.

  • The U.S. Has Gained A Lot Of Low-Wage Jobs During The Recovery

    Welcome to the U.S. of Low-Wage America. Most of the jobs lost during the recession paid middle wages, while most of those <a href="http://www.huffingtonpost.com/2012/08/31/low-wage-jobs_n_1846733.html" target="_hplink">gained during the recovery were low-wage jobs</a>, according to a recent study from the National Employment Law Project.

  • Incomes Declined More During The Recovery Than The Recession

    Median <a href="http://www.nytimes.com/2011/10/10/us/recession-officially-over-us-incomes-kept-falling.html" target="_hplink">household income fell 6.7 percent</a> between June 2009, when the recession technically ended, and June 2011, according to a Census Bureau study cited by <em>The New York Times</em>. That's more than the 3.2 percent incomes fell during the recession, between 2007 and 2009.

  • Payroll Tax Cut May Expire On Obama's Watch

    Last December, congressional Democrats managed to save the payroll tax cut for one more year, giving 122 million workers a few extra bucks each paycheck, but now that <a href="http://online.wsj.com/article/SB10000872396390444130304577561410867407728.html" target="_hplink">boost may quietly disappear</a>, according to the <em>Wall Street Journal</em>. That's because the White House won't be pushing for another payroll tax cut extension this year.

  • Many Top Obama Donors Are Employees Of Major Corporations

    Of the top 10 companies with employees donating money to Obama's campaign, three are big banks: JPMorgan Chase, Citigroup and Goldman Sachs, according to <a href="http://www.opensecrets.org/pres08/contrib.php?cid=N00009638" target="_hplink">the Center for Responsive Politics</a>. Some of Obama's other major contributors include employees from big companies such as Microsoft and Google.