On line 6 through line 10 on the JavaScript tab we use a for loop to see which radio option is checked.

The first line of the for loop checks the length of the choice (radio options) object. The length determines how many items are in the object starting with "0" as the first item.

For each item in the choice object, we check to see if it is checked. If it is, that choice item's value is assigned to the variable tempType. We'll use tempType to determine what conversion formula we will use.