Generalizations of the Theorems of Pappus