I'm not Rolf (nor am I strictly speaking a physicist), but:
There isn't really a distinction between mass and energy. They are interconvertible (e.g., in nuclear fusion), and the gravitational effect of a given quantity of energy is the same as that of the equivalent mass.
There is potential energy in the magnetic field. That energy changes as magnets, lumps of iron, etc., move around. If you have a magnet and a lump of iron, and you move the iron away from the magnet, you're increasing the energy stored in the magnetic field (which is why you need to exert some force to pull them apart). If the magnet later pulls the lump of iron back towards it, the kinetic energy for that matches the reduction in potential energy stored in the magnetic field. And yes, making a magnet takes energy.
[EDITED to add: And, by the way, no they aren't silly questions.]
Hum, that's a reply to both you and army1987; I know mass and energy aren't really different and you can convert one to the other; but AFAIK (and maybe it's where I'm mistaken), if massless energy (like photons) are affected by gravity, they don't themselves create gravity. When the full reaction goes on in the Sun, fusing two hydrogen into an helium, releasing gamma ray and neutrinos in the process, the gamma ray doesn't generate gravity, and the resulting (helium + neutrino) doesn't have as much gravitational mass as the initial hydrogen did.
The same ha...
In response to falenas108's "Ask an X" thread. I have a PhD in experimental particle physics; I'm currently working as a postdoc at the University of Cincinnati. Ask me anything, as the saying goes.
This is an experiment. There's nothing I like better than talking about what I do; but I usually find that even quite well-informed people don't know enough to ask questions sufficiently specific that I can answer any better than the next guy. What goes through most people's heads when they hear "particle physics" is, judging by experience, string theory. Well, I dunno nuffin' about string theory - at least not any more than the average layman who has read Brian Greene's book. (Admittedly, neither do string theorists.) I'm equally ignorant about quantum gravity, dark energy, quantum computing, and the Higgs boson - in other words, the big theory stuff that shows up in popular-science articles. For that sort of thing you want a theorist, and not just any theorist at that, but one who works specifically on that problem. On the other hand I'm reasonably well informed about production, decay, and mixing of the charm quark and charmed mesons, but who has heard of that? (Well, now you have.) I know a little about CP violation, a bit about detectors, something about reconstructing and simulating events, a fair amount about how we extract signal from background, and quite a lot about fitting distributions in multiple dimensions.