Measurement of the D+->pi(+) pi(0) and D+-> K+ pi(0) branching fractions