We screwed up horribly by invading Iraq. Invading Iran would be far worse. They are a significantly larger country, with a significantly more fanatical populace, and the regime has a lot more popular support. If we thought pacifying Iraq, after the invasion, was hard, it's nothing compared to what Iran would be. It would be like Afghanistan, in terms of challenging terrain, but with more than twice the population and much better armed and trained. And invading Iran would almost certainly cause huge additional problems in Iraq, given its Shiite majority.
It's too bad the Iran appears to be flirting with the idea of arming itself with nukes. But that's the predictable fallout of Bush's insane foreign policy. Any dictator disliked by Washington had two models to look at: Hussein and Kim Jong Il. One had nukes, the other didn't. The one who had nukes --and thus the ability to retaliate strongly against American aggression-- lived out his days peacefully, as leader of his country, and when he passed from natural causes he left his nation to his son. The one without nukes wound up hiding in a spider hole until being seized, handed over to his enemies, and then executed in front of a crowd of taunting jackals. Which of the two models would YOU be wanting to emulate, if you were among the leaders in Iran? The choice is clear. They should arm themselves with nukes as quickly as possible.