Javascript - number bases

Convert number (specify base) to its decimal equivalent

This program converts a number of the specified base, back to its
decimal equivalent.