Actually, "It was thought that the planet served to partially shield the inner system from cometary bombardment. However, recent computer simulations suggest that Jupiter doesn't cause a net decrease in the number of comets that pass through the inner Solar System, as its gravity perturbs their orbits inward in roughly the same numbers that it accretes or ejects them."
http://en.wikipedia.org/wiki/Jupiter#Interaction_with_the_Solar_System
Actually, "It was thought that the planet served to partially shield the inner system from cometary bombardment. However, recent computer simulations suggest that Jupiter doesn't cause a net decrease in the number of comets that pass through the inner Solar System, as its gravity perturbs their orbits inward in roughly the same numbers that it accretes or ejects them." http://en.wikipedia.org/wiki/Jupiter#Interaction_with_the_Solar_System