var defaultOdd = 3; // Specifies the default (1=Fractional, 2=American, 3=Decimal)
var bColr = new Array ('#dbe5d5', '#339999','#cccc99')
var selOp = new Array(12,12,14,14) // Selected (initially viewed) option nubrer of the four lists
var Op0 = new Array(
['-13.0___','7/4','+175','2.75'],
['-11.5___','17/10','+170','2.70'], 
['-12.0___','33/20','+165','2.65'],
['-11.5___','8/5','+160','2.60'],
['-11.0___','29/20','+145','2.45'],
['-10.5___','13/10','+130','2.30'],
['-10.0___','6/5','+120','2.20'],
['-9.5___','23/20','+115','2.15'],
['-9.0___','11/10','+110','2.10'],
['-8.5___','21/20','+105','2.05'],
['-8.0___','1/1','+100','2.00'],
['-7.5___','20/21','-105','1.95'],
['-7.0___','9/10','-111','1.90'],
['-6.5___','5/6','-120','1.83'],
['-6.0___','10/13','-130','1.76'],
['-5.5___','5/7','-140','1.71'],
['-5.0___','2/3','-150','1.66'],
['-4.5___','5/8','-160','1.62'],
['-4.0___','4/7','-175','1.57'],
['-3.5___','20/39','-195','1.51'],
['-3.0___','20/43','-215','1.46'],
['-2.5___','20/47','-235','1.42'],
['-2.0___','2/5','-250','1.40'],
['-1.5___','5/13','-260','1.38'],
['-1.0___','10/27','-270','1.37'],
['+1.0___','5/14','-280','1.35'],
['+1.5___','5/16','-320','1.31']
)
 
var Op1 = new Array(
['+1.0___','7/4','+175','2.75'],
['+1.5___','17/10','+170','2.70'], 
['+2.0___','33/20','+165','2.65'],
['+2.5___','8/5','+160','2.60'],
['+3.0___','29/20','+145','2.45'],
['+3.5___','13/10','+130','2.30'],
['+4.0___','6/5','+120','2.20'],
['+4.5___','23/20','+115','2.15'],
['+5.0___','11/10','+110','2.10'],
['+5.5___','21/20','+105','2.05'],
['+6.0___','1/1','+100','2.00'],
['+6.5___','20/21','-105','1.95'],
['+7.0___','9/10','-111','1.90'],
['+8.5___','5/6','-120','1.83'],
['+8.0___','10/13','-130','1.76'],
['+8.5___','5/7','-140','1.71'],
['+9.0___','2/3','-150','1.66'],
['+9.5___','5/8','-160','1.62'],
['+10.0___','4/7','-175','1.57'],
['+10.5___','20/39','-195','1.51'],
['+11.0___','20/43','-215','1.46'],
['+11.5___','20/47','-235','1.42'],
['+12.0___','2/5','-250','1.40'],
['+12.5___','5/13','-260','1.38'],
['+13.0___','10/27','-270','1.37'],
['+13.5___','5/14','-280','1.35'],
['+14.0___','5/16','-320','1.31']
)

var Op2 = new Array(
['50.0___','9/5','+180','2.80'],
['49.5___','16/9','+178','2.78'],
['49.0___','7/4','+175','2.75'],
['48.5___','17/10','+170','2.70'], 
['48.0___','33/20','+165','2.65'],
['47.5___','8/5','+160','2.60'],
['47.0___','29/20','+145','2.45'],
['46.5___','13/10','+130','2.30'],
['46.0___','6/5','+120','2.20'],
['45.5___','23/20','+115','2.15'],
['45.0___','11/10','+110','2.10'],
['44.5___','21/20','+105','2.05'],
['44.0___','1/1','+100','2.00'],
['43.5___','20/21','-105','1.95'],
['43.0___','9/10','-111','1.90'],
['42.5___','5/6','-120','1.83'],
['42.0___','10/13','-130','1.76'],
['41.5___','5/7','-140','1.71'],
['41.0___','2/3','-150','1.66'],
['40.5___','5/8','-160','1.62'],
['40.0___','4/7','-175','1.57'],
['39.5___','20/39','-195','1.51'],
['39.0___','20/43','-215','1.46'],
['38.5___','20/47','-235','1.42'],
['38.0___','2/5','-250','1.40'],
['37.5___','5/13','-260','1.38'],
['37.0___','10/27','-270','1.37'],
['36.5___','5/14','-280','1.35'],
['36.0___','5/16','-320','1.31']
)

var Op3 = new Array(
['36.0___','9/5','+180','2.80'],
['36.5___','16/9','+178','2.78'],
['37.0___','7/4','+175','2.75'],
['37.5___','17/10','+170','2.70'], 
['38.0___','33/20','+165','2.65'],
['38.5___','8/5','+160','2.60'],
['39.0___','29/20','+145','2.45'],
['39.5___','13/10','+130','2.30'],
['40.0___','6/5','+120','2.20'],
['40.5___','23/20','+115','2.15'],
['41.0___','11/10','+110','2.10'],
['41.5___','21/20','+105','2.05'],
['42.0___','1/1','+100','2.00'],
['42.5___','20/21','-105','1.95'],
['43.0___','9/10','-111','1.90'],
['43.5___','5/6','-120','1.83'],
['44.0___','10/13','-130','1.76'],
['44.5___','5/7','-140','1.71'],
['45.0___','2/3','-150','1.66'],
['45.5___','5/8','-160','1.62'],
['46.0___','4/7','-175','1.57'],
['46.5___','20/39','-195','1.51'],
['47.0___','20/43','-215','1.46'],
['47.5___','20/47','-235','1.42'],
['48.0___','2/5','-250','1.40'],
['48.5___','5/13','-260','1.38'],
['49.0___','10/27','-270','1.37'],
['49.5___','5/14','-280','1.35'],
['50.0___','5/16','-320','1.31']
)

function displayIt(j){

for (var i=0;i<selOp[0];i++)document.forms['F1'].List0.options[i] = new Option(Op0[i][0] + Op0[i][j])
document.forms['F1'].List0.options[i] = new Option(Op0[i][0] + Op0[i][j])
document.forms['F1'].List0.options[i].selected = true
for (var i=selOp[0]+1;i<Op0.length;i++)document.forms['F1'].List0.options[i] = new Option(Op0[i][0] + Op0[i][j])

for (var i=0;i<selOp[1];i++)document.forms['F1'].List1.options[i] = new Option(Op1[i][0] + Op1[i][j])
document.forms['F1'].List1.options[i] = new Option(Op1[i][0] + Op1[i][j])
document.forms['F1'].List1.options[i].selected = true
for (var i=selOp[1]+1;i<Op1.length;i++)document.forms['F1'].List1.options[i] = new Option(Op1[i][0] + Op1[i][j])

for (var i=0;i<selOp[2];i++)document.forms['F1'].List2.options[i] = new Option(Op2[i][0] + Op2[i][j])
document.forms['F1'].List2.options[i] = new Option(Op2[i][0] + Op2[i][j])
document.forms['F1'].List2.options[i].selected = true
for (var i=selOp[2]+1;i<Op2.length;i++)document.forms['F1'].List2.options[i] = new Option(Op2[i][0] + Op2[i][j])

for (var i=0;i<selOp[3];i++)document.forms['F1'].List3.options[i] = new Option(Op3[i][0] + Op3[i][j])
document.forms['F1'].List3.options[i] = new Option(Op3[i][0] + Op3[i][j])
document.forms['F1'].List3.options[i].selected = true
for (var i=selOp[3]+1;i<Op3.length;i++)document.forms['F1'].List3.options[i] = new Option(Op3[i][0] + Op3[i][j])

document["all"].optab.style.backgroundColor=bColr[j-1]
}

