This article provides a good rule of thumb for rebalancing your investment portfolio as you age. Simply put, the formula for forming a target asset allocation for retirement should be:

100 - age = percentage of stocks