You Republicans have a poor memory about the 2008 presidential campaign, Iraq and Afghanistan.
Here's the scoop. Take a look at the campaign debate between Obama and McCain here;
From Obama's 2008 web site "Barack Obama will work with his military commanders to responsibly end the war in Iraq. Obama will refocus our resources on al Qaeda in Afghanistan and finish the fight with the terrorists who attacked us on 9/11." at http://www.barackobama.com/issues/index_campaign.php
He did exactly just that to the consternation of you and the Republican Party.