I am buying a new phone on the '3' network, the phone is locked to this however my sim card is vodafone and i need to use this sim card with the phone.

How do i unlock my phone so it works, ideally enter a code in myself? Don't really want too pay loads to get ripped off by some, got told today £10, but surely you can do it for free somehow?

Thanks. xx.