This simple Javascript will convert a base 2 binary number into a base 10 decimal number, and vice versa. Works in all browsers!