In U.S., More Optimism About Iraq, Less About Afghanistan