An eletrical glitch in the system caused the elevator to stop asending. Two persons were on the elevator at the time and were confined to it for approximately 2 hours. The elevator service company found the glitch and reset the system. The elevator was tested and found to be operating properly by the elevator company.