Military and civilian rescue teams in China's earthquake-devastated Sichuan province raced against time Wednesday to reach tens of thousands of people trapped in rubble, while troops were sent to repair a cracked dam upstream from one of the worst-hit ci