Giggled a bit when you said that you were buying a new computer simply because of a corrupt OS.
Borrow a whatever OS disc (or pirate XP temporarily) to troubleshoot everything. If it all works, buy win7 and install that, or buy an older OS such as XP if its an older model pavillion.