1. Place the onion in a clean pair of pantyhose, and tie a knot above the onion. You can stack more onions, separating each with a knot.
2. Hang in a cool, dry, dark place. When they are dry, separated, able to breathe, and suspended they should have a maximized shelf life.
3. When you need an onion, you just cut one off.