How to Reinstall Ubuntu Grub Bootloader after windows wipes it out

1. Boot with the liveCD
2. Open Terminal and type:

sudo grub
grub>
grub> find /boot/grub/stage1
(hd0,5)  {YOU WILL USE THIS FOR NEXT COMMAND}
grub> root (hd0,5)
grub> setup (hd0)
grub> quit