i think you have simlock there which in normal samsung it should be eight zeroes.. like 00000000 its Not network lock. try first with 00000000 if it doesnt work then better try full reset. and before that make a backup of your contactlist and all necessary things.. just search for d520 full reset in search if you didnt find it then i will try to find it for ya
cheers