Plasmons and phonons in anisotropic systems and their effect on high-Tc superconductivity