Novak Djokovic and Andy Murray had to survive marathon five-set encounters to lead their countries into a Davis Cup quarterfinal match up Sunday.