Obama is doing a lousy job on foreign policy.