An impedance approach has been implemented to design truncated 1D photonic crystals, sustaining optical surface modes, with any predetermined wavelength and wavevector. The implementation is realized as a free Windows program that calculates both the thicknesses of the double layers and the thickness of the final truncated layer at given refractive indices of the layers. The dispersion of the refractive indices can be given in the form of the Sellmeier/Drude formulas or in the form of a wavelength-n-k table. For mixed layers, the Maxwell Garnett theory can be used. This approach is suitable for studying and visualizing the field distribution inside photonic crystals, dispersion, and other aspects of the designed structures that sustain optical surface modes. Therefore, this program should promote scientific development and implementation of practical applications in this area.