thanks for your answer. i just want to know a bit more about choosing which partition to boot from. the thing is, when i first install xp onto the hdd, i installed it in C drive. after that, i partitioned the hdd to have another drive, D. the next time that i boot, the computer actually booted from D drive so i had to reformat. now, when i want to install vista, i would have to create another drive, say, E. most of the time i would use vista, unless there's an error or compatibility issue. so how do i set the com to boot from E drive?
It all has to do with the Boot Loader. A BL is a program that lists all available bootable operating systems and allows you to choose which one. After you install Vista, it will recognize that XP is there too, and allow you the option to boot into either one.
Again, going back to partitions, it's always best to set them up *before* you install OS's, not resize after the fact. Personally, I'd wipe everything from the Drive, then set up your partitions (say, C D and E). C could be for XP, D for Vista, and E for your personal files so you have less of a risk losing important data if you need to ever do a re-install. But, that's just me, and I'm incredibly OCD

Here's my partition layout:
Drive 1:
Partition 1 - XP OS
Partition 2 - XP Software
Partition 3 - My personal files
Drive 2:
Partition 1 - Swap
Partition 2 - Ubuntu Root
Partition 3 - Ubuntu Home
Partition 4 - Kubuntu Root
Partition 5 - Kubuntu Home
Partition 6 - Backup of my personal files