First you need to get download the old minecraft.jar file or or prefferably the entire bin folder corresponding to the desired version.
Download old Minecraft versions here. (this site also claims to be able to get specific requested versions, so technically you can get ANY version here (: )
Guide to install old Minecraft version here.