Hi,
What you need is an array (3*5) in wich you will store R, X and B values for each conductor type. Columns should give the R, X and B and rows should be the index of conductor type/size selector.
<script language=JavaScript>
var data = new Array([0.080,0.369,0.0838]...