To Unlock Samsung I900 Galaxy S and its US variant the Captivate, Variant etc,

Simply go to Android Market and search for Samsung Galaxy S Unlock Tool. Install and run it, You will get code and even Unfreeze code !!!

NO ROOTING REQUIRED!

Voila!!

(shamelessly stolen from gsmhosting.com)