found this on utube, real simple!
[ame=http://www.youtube.com/watch?v=tV51xsf-G8E]YouTube - How to Unlock and Jailbreak Iphone 3GS Firmware 3.0 Using PurpleRain[/ame]