Are you sure you want to replace the old carpeting with new? If you are going through all the trouble of tearing up the old stuff, why not consider something like a Rhino Liner coating instead. The stuff is much more durable and tremendously easier to clean than carpeting. Last longer too. Most Home Depot & Lowes stores carry this kind of semi-liquid coating which can be painted on, or in some cases sprayed on. Granted, it may not look as pretty as carpeting, but then again, after a few years I've never seen any carpeting that looks good anyway. JMO.
"A voyage in search of knowledge need never abandon the spirit of adventure."