Providing your iMac has an Intel chip in it, just go to your local Apple reseller and grab a copy of Snow Leopard for $30. It won't include iLife, but it's $30. If you really want iLife you can get it for another $50. Pop that disc into your drive, power it up holding the C key and use the disk utility there to format the drive, then install the OS.
Easy as that.