ST. PETERSBURG, Florida (CNN) -- The acrimony from the Republican campaign trail carried over quickly into the CNN/YouTube GOP presidential debate Wednesday.

The debate marked the first time the candidates had faced off on the same stage in over a month.

With five weeks to go until the first contest of the 2008 nominating season, the Republican candidates engaged in a free-for-all, trying to differentiate their views on immigration, the Iraq war, abortion, gun control and even whether they believed every word in the Bible was true.

Unlike previous debates in which the candidates focused most of their attacks on Democratic front-runner Hillary Clinton, Wednesday night's attacks were launched at each other.

Former New York Mayor Rudy Giuliani and former Massachusetts Gov. Mitt Romney traded jabs over illegal immigration, something they have been arguing about on the trail for the past month.

"In his case, there were six sanctuary cities. He did nothing about them. There was a sanctuary mansion -- at his own home, illegal immigrants were being employed," Giuliani said.

Romney denied Giuliani's allegation, and the two raised their voices as they tried to talk over each other.

In his quest to appeal to the hard-line immigration wing of the party, Romney also turned some of his fire on the same topic toward former Arkansas Gov. Mike Huckabee, who has been rising in the polls.

Rep. Tom Tancredo, who has anchored his candidacy on securing the borders and cracking down on illegal immigration, seemed delighted with the give and take, saying the other candidates were trying to "out-Tancredo" him.

Huckabee drew one of the night's largest cheers when he said that one of the agencies he would abolish to control federal spending was the Internal Revenue Service.

"Most people in this country are more afraid of an audit than they are of a mugging, and there's a reason why," he said.

David Bohrman, CNN senior vice president and executive producer of the debate, said, "We regret this incident. CNN would not have used the general's question had we known that he was connected to any presidential candidate." Political Ticker

Kerr told CNN after the debate that he has not worked for the Clinton campaign and was representing no one other than himself. Kerr also said he is a member of the Log Cabin Republicans, a national gay and lesbian Republican grass-roots organization.

"Yeah, the Bible is the word of God. ... I might interpret the word differently than you interpret the word, but I read the Bible and I believe the Bible is the word of God," Romney said.

When asked about abortion, Romney said he was wrong in favoring a woman's right to choose -- his position when he was elected governor of Massachusetts.

"If people in this country are looking for someone who's never made a mistake on a policy issue and is not willing to admit they're ever wrong, they're going to have to find somebody else. On abortion, I was wrong," he said.

His remarks came in response to the 30-second video produced for the debate by Thompson's campaign, which included a clip of Romney expressing support for Roe vs. Wade during a 1994 debate against Sen. Ted Kennedy.

When asked what women and doctors should be charged with if abortion was to become illegal, Paul said it was not an issue for the president or the federal government.

"We don't need a federal abortion police, that's the last thing we need," Paul said. He added that the issue should be left to the states and courts and not federal authorities.

On the issues of taxes, Thompson said he'd "never met a tax he liked."

"I've got a tax-cut bill on the table. But I don't do pledges to anybody but the American people," he said.

His response was met by a "Go, Fred, go!" from a member of the audience.

On the issue of trade with China, Rep. Duncan Hunter said China is "cheating on trade ... and it's in the interest of the United States to stop China's cheating. Buy American this Christmas season -- that might keep your neighbor from losing his job."

The candidates fielded video questions submitted by the public via the YouTube Web site, just as Democratic White House candidates did in July.

The debate was the first time the GOP candidates had faced off on the same stage in over a month.

CNN's political team viewed nearly 5,000 videos for the GOP debate -- about 2,000 more than they saw for the Democrats' debate.E-mail to a friend