Why does the Earth have a magnetic field?

http://www.physics.org/article-questions.asp?id=64