At the beginning of the North Vietnamese invasion, the media, including conservative commentator William F. Buckley, predicted the downfall of the Republic of Vietnam; Buckley even called for the firing of General Creighton Abrams as an incompetent military leader. But the ARVN succeeded in defeating General Giap and his huge invading army. His forces were shattered at the Battle of An Lộc, where he threw several divisions at the entrenched South Vietnamese forces, ultimately losing over half of his army as casualties. General Giap's loss and subsequent retreat was viewed as so great a failure by the North Vietnamese Communist Party that Giap was relieved of his command. Although ARVN troops withstood and repelled the massive PAVN attack at An Lộc, American air power seems to have been a key to the ARVN success, just as it had been a key factor in supporting U.S. ground forces when they operated in South Vietnam prior to 1972. Thus, the 1973 withdrawal of U.S. military support and passage of Congressional resolutions cutting off U.S. funding for combat activities in Indochina (H.R. 9055 and H.J.Res. 636) opened the way for the 1975 defeat of the Republic of Vietnam.