iOS: Forgotten passcode or device disabled after entering wrong passcode
http://support.apple.com/kb/HT1212
Follow the above procedure - You will have to restore your device to factory settings, and set up as new (Your backup may have the restrictions passcode in it.)
HTH