T-Shirt Masking Help (please)

I am trying to make a mask (I think) of a T-shirt (and other apparel) so that once it's loaded onto my site, someone can choose a color and it will apply. I have the software but cannot figure out how to actually make the image to be able to function? Is there a tutorial somewhere for that?