Generalized Sierpinski Functions and Fragmentable Compact Spaces