If you have an ATi or nVidia card, I think there is an option in their respective control centers that will let you do such a thing.
Next to that... you may want to grab (if you are on XP) TweakUI from Microsoft. This has an option that prevents windows from stealing focus.