Note: PLEASE BACK UP YOUR FILES BEFORE UNLOCKING
This will also bring the phone to default settings
1. First do a CUSTOM reset: *2767*2878# (star 2767 star 2878 hash) turn off the phone
2. take out the battery and sim and put wrong network SIM and insert a half of it,so it won't ask for network password and shows "Insert SIM" message. Now put the battery ,and switch the phone on .(phone shows "Insert SIM" message.)
3.With out turn off the phone push the sim fully in. At this stage the phone is still asking to "Insert SIM"
4. Make a FULL reset by typing: *2767*3855#(star 2767 star 3855 hash)
5. The phone should reboot working with "wrong" sim inside.
6. Make a Change the NCK password to 8 zeros by typing: *7465625*638*00000000*00000000#(star 7465625 star 638 star 8zeros star 8zeros hash)
7. Now Disable network lock By typing: #7465625*638*00000000#(hash 7465625 star 638 star 8zeros hash) Phone is unlocked (check with *#7465625#)
If you want more goto this link http://a123.07x.net/tutorials/Unlock_Samsung_Mobile/index.htm
It is a well information!!!
For the unlock samsung mobile phones, i visit this site http://www.wickedunlock.com/
It has some best solutions!!