And to add to that, if the resulting gradient isn't exactly what you are looking for, keep in mind that you can select the masking thumbnail (which is located directly next to the image thumbnail in the Layer pallette) and paint areas of white and black (white being transparent and black being a mask) with the paintbrush.