I think I can tell you why it happened, not sure exactly how to fix it though. When you install an OS it installs it's boot loader on the partition that is marked active regardless of what partition the OS is installed to. When you installed Ubuntu it installed its boot loader Grub. Grub was smart enough to see XP and added it as a boot option. Formating the partition Ubuntu was on didn't remove the boot loader because it (Grub) was on a different partition. Now as far as Microsoft operating systems go the general rule of thumb is oldest first. Ignoring Grub for the moment, when you install Windows 7 it replaces the XP boot loader with it's own and adds XP as a boot option. Assuming you installed windows 7 to a partition other than the...