A GENERALIZED K CORRECTION FOR TYPE IA SUPERNOVAE: COMPARING R-BAND PHOTOMETRY BEYOND Z=0.2 WITH B, V, AND R-BAND NEARBY PHOTOMETRY