U get the unlocking code from
Unlocking4U - The Easiest Way to Unlock your Phone .It provides the unlocking code & instructions for your Motorola mobile..By using this you can unlock your mobile easily..
Or
The unlock code to open the device to all networks is available thro your network provider, but is normally only available when the contract is up or at leat 3 months has gone by on a payg contract. Also be ready to pay a fee for this code.
The security code which allows the user to lock their handsets to stop other people from putting thier own sim cards in etc is normally in the instruction manual that came with the fone. Although the user can change this to one of their own so if this fone is 2nd hand and the codes been changed then speak to the original owner to get the code. The instruction manual can normally be downloaded via the manufacturer's website in pdf form.
If the above does not resolve then you can have the fone flashed to return everything to default although you will lose all downloaded data. This process can be actioned at certain carphone warehouses. Check
www.carfonewarehouse.com to see if your nearest has a repair centre in it. It does not matter if it was purchased from them as they do this under the warranty. You must however show proof of purchase.
Good luck.
__________________