Where do I Buy Japanese Train Tickets on the Internet?

This is a fairly simple bleg with, I think, a self-explanatory title. I need to find a website where I can buy Japanese train tickets and/or a Japan Rail pass on the internet, preferably with a relative minimum of hassle. Thanks!

UPDATE: Thanks so much to all the readers who provided helpful suggestions.