You should find the answer here
http://tinyurl.com/npqcw
But if it isn't there all you need do is remove the mains adaptor the battery and then open the NB and unplug the battery in shrink wrap.
This will =clear the BIOS and return it to it's default settings. After you replace the CMOS Battery replace the NB's main battery and the mains adaptor and boot up you'll get an error message telling you something is wrong and to press one of the Function keys to enter BIOS/Setup or another one to continue. Press the one to enter BIOS/Setup and set the time and date and then save and exit this should be enough to get you out of the trouble that you have got yourself into.
Just for the record the IBM T40 series of NB's will not allow you to wipe the BIOS and the only solution is a replacement M'Board so it's a very good idea [b]NEVER[/b] to use the BIOS Password Option. Soon most Note Books will be like this so it's something that you need to keep in mind. Also if you have encrypted your files there is going to be a Chip on the M'Board that stores the encryption key and without it you'll loose all of your data and it will not be possible to recover it.
Col