From the Answers @ Ace section of the Ace website comes a great how-to for framing and hanging doors. This step-by-step will take you through the process. Starting with the framing using 2x4s, hanging then mortising the door for hinges, and finally installing a cylinder lock. Look for a post on securing your home and dead bolt locks coming soon.
>Framing and Hanging Doors [Ace Hardware]