
 var arrDanger = 
    new Array("", "Anti-Slip", "Glow-in Dark Flange", "Magnetic", "Press-on", "Reflective Press-on");
 var arrWarning = 
    new Array("", "Anti-Slip", "Fluorescent", "Press-on");
 var arrFire = 
    new Array("", "Anti-Slip", "G-I-D Press-on", "Press-on");
 var arrSmoking = 
    new Array("", "Anti-Slip", "Magnetic", "Press-on", "Reflective Press-on");
 var arrAlllabels = 
    new Array("", "Anti-Slip", "Durapress", "Fluorescent", "Glow-in Dark Flange", "G-I-D Press-on", "Magnetic", "Press-on", "Reflective Press-on");



 function setMaterial() {
  var selectType = document.theForm.labeltype;
  var selectMaterial = document.theForm.pother3;
  var theType = selectType.options[selectType.selectedIndex].value;
//  var theType = selectType.options.selectedIndex;

  
  if (theType == "danger"){
     selectMaterial.options.length = 0;
     for(var i=0; i<arrDanger.length; i++)
       selectMaterial.options[selectMaterial.options.length] 
          = new Option(arrDanger[i]);
       selectMaterial.options[0].selected = true;
     }

  if (theType == "warning"){
     var selectMaterial = document.theForm.pother3;
     selectMaterial.options.length = 0;
     for(var i=0; i<arrWarning.length; i++)
       selectMaterial.options[selectMaterial.options.length] 
          = new Option(arrWarning[i]);
       selectMaterial.options[0].selected = true;
     }
  if (theType == "fire"){
     var selectMaterial = document.theForm.pother3;
     selectMaterial.options.length = 0;
     for(var i=0; i<arrFire.length; i++)
       selectMaterial.options[selectMaterial.options.length] 
          = new Option(arrFire[i]);
       selectMaterial.options[0].selected = true;
     }
  if (theType == "smoking"){
     var selectMaterial = document.theForm.pother3;
     selectMaterial.options.length = 0;
     for(var i=0; i<arrSmoking.length; i++)
       selectMaterial.options[selectMaterial.options.length] 
          = new Option(arrSmoking[i]);
       selectMaterial.options[0].selected = true;
     }
  if (theType == "alllabels"){
     var selectMaterial = document.theForm.pother3;
     selectMaterial.options.length = 0;
     for(var i=0; i<arrAlllabels.length; i++)
       selectMaterial.options[selectMaterial.options.length] 
          = new Option(arrAlllabels[i]);
       selectMaterial.options[0].selected = true;
     }

}
  

   function clearIt() {
  var selectType = document.theForm.labeltype;
  var selectMaterial = document.theForm.pother3;
     selectType.options.length = 6;
     selectMaterial.options.length = 0;
 }

