Scaling Approach to Spin-Glass Phenomena