You can try this..
How to Unlock your iPhone 3G | PCWorld