The thickness dependence of anisotropic magnetoresistance in a Co35Pd65 film