How to program an ATMEGA328 or ATMEGA328P

Hello everyone. I need someone to tell me how to program an ATMEGA328 or ATMEGA328P. I have the seperate chip. It is not connected to the Arduino board. I have an Arduino Uno and Duemilanove if that helps. Just tell me what I need and how to do it.
Any help would be greatly appreciated!

Hello everyone. I need someone to tell me how to program an ATMEGA328 or ATMEGA328P. I have the seperate chip. It is not connected to the Arduino board. I have an Arduino Uno and Duemilanove if that helps. Just tell me what I need and how to do it.
Any help would be greatly appreciated!

Please do not cross-post. This wastes time and resources as people attempt to answer your question on multiple threads.

Threads merged.

So, you ignored my reply, and made another post. Why?

First time I saw this page. AWESOME! We need a bow-down smiley!