Motivated by mounting medical costs, lawmakers and executives are urging doctors to embrace prescribing medications online. The move could save billions of dollars per year, and proponents say electronic prescriptions will make transactions more efficient, reduce medication errors and entice doctors to prescribe less expensive drugs.