How do I repair my windows? on 1996 Chevrolet 1500 Pickup

When I roll my windows up or down I can hear them catching on something (sometimes extremely loud). When this happens it sometimes catches the door latch and actually opens the door. Needless to say but it is really scary to have a door swing open when making a turn.

. .