not sure how to open it if it was bought locally, but i know if it was given by a family member over seas (ex. USA), they can call the company they got the phone from (for me it was verizon) and ask them to unlock it. but it has to be the account holder who does the unlocking.
i've done it on a couple phones from t mobile also