Open the case. You'll see a circular, button-cell battery on the motherboard. Remove this battery, and leave it switched off without the battery for about 15 minutes or so (I think), put the battery back in, and switch on.
The motherboard will then have "forgotten" the password, and all the old BIOS settings.