resistance calculator
Note: This is a "changed" version from http://javascript.internet.com