<!--
function populate()
{
// This function repopulates the ymin and ymax menus based 
// on the choice from the yunits menu.  If JavaScript is
// turned off, the user should just not see the limits change

// determine the scaling from the yunits selection
var box = document.forms[0].yunits;
var yun = box.options[box.selectedIndex].value;
switch(yun)
{
case 'cm2':
scfac=0;
break
case 'pb':
scfac=36;
break
case 'fb':
scfac=39;
break
case 'zb':
scfac=45;
break
}

// rescale each ymin label (NOT the value!)
yminbox = document.forms[0].ymin;
for (ii=0; ii<yminbox.length; ii++)
{
// grab the value
var curval = parseInt(yminbox.options[ii].value);
// set the text
yminbox.options[ii].text = curval+scfac;
}

// rescale each ymax label (NOT the value!)
ymaxbox = document.forms[0].ymax;
for (ii=0; ii<ymaxbox.length; ii++)
{
// grab the value
var curval = parseInt(ymaxbox.options[ii].value);
// set the text
ymaxbox.options[ii].text = curval+scfac;
}

//set the unit labels
document.getElementById("ymintxt").innerHTML = yun;
document.getElementById("ymaxtxt").innerHTML = yun;

}
//-->
