Unfortunately not, except for certain reinvestments in qualified small business stock or empowerment zone business stock (see the Schedule D instructions for these special rollover rules). Apart from these exceptions, all of the gain on the sale of one stock must be reported even if other stock is purchased. The like-kind exchange rules do not apply to securities (stocks, bonds, notes, etc.).
A retirement account to which up to $4,000 (or $5,000 if you are 50 or over) may be contributed for 2007, but deductions for the contribution are restricted if you are covered by a company retirement plan. Earnings accumulate tax free.