Take a look at the light in the passenger door switch, when it isn't working and see if the light is or is not on.. If it's not on, when the switch isn't working, the it is most likely the window...