Three days before the New Hampshire primary and an hour before the start of back-to-back televised debates Saturday night, a new poll released by CNN and WMUR-TV showed that the Democratic race for president is a cliffhanger and the Republican race is close.

Democratic Sens. Hillary Rodham Clinton, third in the Iowa caucus on Thursday, and Barack Obama, the Iowa winner, are deadlocked at 33 percent; former Sen. John Edwards trailed by 13 percentage points.

On the Republican side, Sen. John McCain had a slight lead — also at 33 percent — over former Massachusetts Gov. Mitt Romney, at 27 percent. Romney, long the leader in Iowa and New Hampshire, lost to Arkansas Gov. Mike Huckabee in Iowa. The survey shows former New York City Mayor Rudy Giuliani farther behind at 14 percent.

Huckabee appeared to get little bounce in New Hampshire from his Iowa win, coming in fourth at 11 percent.

The University of New Hampshire telephone poll for CNN/WMUR-TV was conducted Friday night and Saturday afternoon. Both surveys of 313 likely Republican primary voters and 359 likely Democratic voters had a margin of sampling error of plus or minus 5 percentage points.