You can't add binary numbers straight.2.
numbers with an initial 0
e.g 015 (equal to 13 in decimal)
numbers with an initial 0x
e.g 0x1A (equal to 26 in decimal)
numbers with an initial 1 - 9
in you case you must first add the numbers, and then convert them.
when refering to a object in a form you must use:
where formname is the Name of the form (not the ID) and the same with the object
if you want to refer to the ID you must use document.getElementById('objectID')
toString will create a string that contains the number.
and adding strings will place them one after the other.
e.g. "11" + "22" = "1122"
while 11 + 22 = 33
you can use
Num=Num*1; to convert a string that contains only a number in one of the above formats (8,10,16), to a real decimal number.