      function setSeries(sr) {
         if(sr.length > 0) {
            resetForm(0);
            stSelBox = document.getElementById('style0');
            while (stSelBox.firstChild)
               remove(stSelBox.firstChild);

            if((sr == 'N1') || (sr == 'N2') || (sr == 'F')) {
               elm = document.createElement('OPTION');
               elm.value = '';
               elmTxt = document.createTextNode('');
               elm.appendChild(elmTxt);
               stSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = 'Standard-Picket';
               elmTxt = document.createTextNode('Standard-Picket');
               elm.appendChild(elmTxt);
               stSelBox.appendChild(elm);
            } else {
               elm = document.createElement('OPTION');
               elm.value = '';
               elmTxt = document.createTextNode('');
               elm.appendChild(elmTxt);
               stSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = 'Standard-Picket';
               elmTxt = document.createTextNode('Standard-Picket');
               elm.appendChild(elmTxt);
               stSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = 'Double-Picket';
               elmTxt = document.createTextNode('Double-Picket');
               elm.appendChild(elmTxt);
               stSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = 'Puppy-Picket';
               elmTxt = document.createTextNode('Puppy-Picket');
               elm.appendChild(elmTxt);
               stSelBox.appendChild(elm);
            }

            for(var i = 1; i < 7; i++)
               document.getElementById('series'+i).value = sr;
         } else
            resetForm(1);
      }

      function setSeriesIndustrial(sr) {
         if(sr.length > 0) {
            resetForm(0);
            stSelBox = document.getElementById('style0');
            while (stSelBox.firstChild)
               remove(stSelBox.firstChild);

            elm = document.createElement('OPTION');
            elm.value = '';
            elmTxt = document.createTextNode('');
            elm.appendChild(elmTxt);
            stSelBox.appendChild(elm);
            elm = document.createElement('OPTION');
            elm.value = 'Standard-Picket';
            elmTxt = document.createTextNode('Standard-Picket');
            elm.appendChild(elmTxt);
            stSelBox.appendChild(elm);
            elm = document.createElement('OPTION');
            elm.value = 'Double-Picket';
            elmTxt = document.createTextNode('Double-Picket');
            elm.appendChild(elmTxt);
            stSelBox.appendChild(elm);
            elm = document.createElement('OPTION');
            elm.value = 'Puppy-Picket';
            elmTxt = document.createTextNode('Puppy-Picket');
            elm.appendChild(elmTxt);
            stSelBox.appendChild(elm);

            for(var i = 1; i < 7; i++)
               document.getElementById('series'+i).value = sr;
         } else
            resetForm(1);
      }

      function setStyleIndustrial(st) {
         if(st.length > 0) {
            var heightValue = document.getElementById('height0').value;
            var tv;
            for(var i = 1; i < 7; i++)
               document.getElementById('style'+i).value = st;

            chSelBox = document.getElementById('channels0');
            while (chSelBox.firstChild)
               remove(chSelBox.firstChild);

            elm = document.createElement('OPTION');
            elm.value = '';
            elmTxt = document.createTextNode('');
            elm.appendChild(elmTxt);
            chSelBox.appendChild(elm);

            if((st == 'Puppy-Picket') || (heightValue == '84"') || (heightValue == '96"') || ((st == 'Double-Picket') && ((heightValue == '60"') || (heightValue == '72"'))))
               tv = 'N/A';
            else
               tv = 'Two';
            elm = document.createElement('OPTION');
            elm.value = tv;
            elmTxt = document.createTextNode(tv);
            elm.appendChild(elmTxt);
            chSelBox.appendChild(elm);
            if((heightValue == '84"') || (heightValue == '96"') || ((st == 'Puppy-Picket') && ((heightValue == '60"') || (heightValue == '72"'))))
               tv = 'N/A';
            else
               tv = 'Three';
            elm = document.createElement('OPTION');
            elm.value = tv;
            elmTxt = document.createTextNode(tv);
            elm.appendChild(elmTxt);
            chSelBox.appendChild(elm);
            if((heightValue == '84"') || (heightValue == '96"') || (st == 'Puppy-Picket'))
               tv = 'Four';
            else
               tv = 'N/A';
            elm = document.createElement('OPTION');
            elm.value = tv;
            elmTxt = document.createTextNode(tv);
            elm.appendChild(elmTxt);
            chSelBox.appendChild(elm);
         }
      }

      function setChannels(st, h) {
         if(st.length > 0 && h.length > 0) {
            chSelBox = document.getElementById('channels0');
            while (chSelBox.firstChild)
               remove(chSelBox.firstChild);

            if(h.length > 0) {
               elm = document.createElement('OPTION');
               elm.value = '';
               elmTxt = document.createTextNode('');
               elm.appendChild(elmTxt);
               chSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               if(st == 'Standard-Picket') {
                  if(h == '72"') {
                     elm.value = 'N/A';
                     elmTxt = document.createTextNode('N/A');
                  } else {
                     elm.value = 'Two';
                     elmTxt = document.createTextNode('Two');
                  }
               } else if(st == 'Double-Picket') {
                  if(h == '54"' || h == '60"' || h == '72"') {
                     elm.value = 'N/A';
                     elmTxt = document.createTextNode('N/A');
                  } else {
                     elm.value = 'Two';
                     elmTxt = document.createTextNode('Two');
                  }
               } else if(st == 'Puppy-Picket') {
                  elm.value = 'N/A';
                  elmTxt = document.createTextNode('N/A');
               }
               elm.appendChild(elmTxt);
               chSelBox.appendChild(elm);

               elm = document.createElement('OPTION');
               if(st == 'Puppy-Picket') {
                  if(h == '54"' || h == '60"' || h == '72"') {
                     elm.value = 'N/A';
                     elmTxt = document.createTextNode('N/A');
                  } else {
                     elm.value = 'Three';
                     elmTxt = document.createTextNode('Three');
                  }
               } else {
                  elm.value = 'Three';
                  elmTxt = document.createTextNode('Three');
               }
               elm.appendChild(elmTxt);
               chSelBox.appendChild(elm);

               elm = document.createElement('OPTION');
               if(st == 'Puppy-Picket') {
                  elm.value = 'Four';
                  elmTxt = document.createTextNode('Four');
               } else {
                  elm.value = 'N/A';
                  elmTxt = document.createTextNode('N/A');
               }
               elm.appendChild(elmTxt);
               chSelBox.appendChild(elm);
            }
         }
      }

      function setStyle(st) {
         if(st.length > 0) {
            for(var i = 1; i < 7; i++)
               document.getElementById('style'+i).value = st;

            setChannels(st, document.getElementById('height0').value);
         }
      }

      function setHeight(h) {
         document.getElementById('arborPanelHeight6').value = h;
         setChannels(document.getElementById('style0').value, h);
      }

      function setHeightIndustrial(h) {
         document.getElementById('arborPanelHeight6').value = h;

         var st = document.getElementById('style0').value;
         var tv;

         chSelBox = document.getElementById('channels0');
         while (chSelBox.firstChild)
            remove(chSelBox.firstChild);

         elm = document.createElement('OPTION');
         elm.value = '';
         elmTxt = document.createTextNode('');
         elm.appendChild(elmTxt);
         chSelBox.appendChild(elm);

         if((st == 'Puppy-Picket') || (h == '84"') || (h == '96"') || ((st == 'Double-Picket') && ((h == '60"') || (h == '72"'))))
            tv = 'N/A';
         else
            tv = 'Two';
         elm = document.createElement('OPTION');
         elm.value = tv;
         elmTxt = document.createTextNode(tv);
         elm.appendChild(elmTxt);
         chSelBox.appendChild(elm);
         if((h == '84"') || (h == '96"') || ((st == 'Puppy-Picket') && ((h == '60"') || (h == '72"'))))
            tv = 'N/A';
         else
            tv = 'Three';
         elm = document.createElement('OPTION');
         elm.value = tv;
         elmTxt = document.createTextNode(tv);
         elm.appendChild(elmTxt);
         chSelBox.appendChild(elm);
         if((h == '84"') || (h == '96"') || (st == 'Puppy-Picket'))
            tv = 'Four';
         else
            tv = 'N/A';
         elm = document.createElement('OPTION');
         elm.value = tv;
         elmTxt = document.createTextNode(tv);
         elm.appendChild(elmTxt);
         chSelBox.appendChild(elm);
      }

      function setPostLength(pl, c) {
         if(pl.length > 0) {
            psSelBox = document.getElementById('postSize'+c);
            var psSelIndx = psSelBox.selectedIndex;
            while (psSelBox.firstChild)
               remove(psSelBox.firstChild);

            if(pl == 'Flange') {
               elm = document.createElement('OPTION');
               elm.value = '';
               elmTxt = document.createTextNode('');
               elm.appendChild(elmTxt);
               psSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = '2 x 2';
               elmTxt = document.createTextNode('2 x 2');
               elm.appendChild(elmTxt);
               psSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = '2 1/2 x 2 1/2';
               elmTxt = document.createTextNode('2 1/2 x 2 1/2');
               elm.appendChild(elmTxt);
               psSelBox.appendChild(elm);
            } else {
               elm = document.createElement('OPTION');
               elm.value = '';
               elmTxt = document.createTextNode('');
               elm.appendChild(elmTxt);
               psSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = '2 x 2';
               elmTxt = document.createTextNode('2 x 2');
               elm.appendChild(elmTxt);
               psSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = '2 1/2 x 2 1/2';
               elmTxt = document.createTextNode('2 1/2 x 2 1/2');
               elm.appendChild(elmTxt);
               psSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = '3 x 3';
               elmTxt = document.createTextNode('3 x 3');
               elm.appendChild(elmTxt);
               psSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = '4 x 4';
               elmTxt = document.createTextNode('4 x 4');
               elm.appendChild(elmTxt);
               psSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = '6 x 6';
               elmTxt = document.createTextNode('6 x 6');
               elm.appendChild(elmTxt);
               psSelBox.appendChild(elm);
            }

            if(psSelIndx <= psSelBox.options.length)
               psSelBox.selectedIndex = psSelIndx;
            else
               psSelBox.selectedIndex = 0;
            setWall(c);
         }
      }

      function setPostLengthIndustrial(pl, c) {
         if(pl.length > 0) {
            psSelBox = document.getElementById('postSize'+c);
            var psSelIndx = psSelBox.selectedIndex;
            while (psSelBox.firstChild)
               remove(psSelBox.firstChild);

            elm = document.createElement('OPTION');
            elm.value = '';
            elmTxt = document.createTextNode('');
            elm.appendChild(elmTxt);
            psSelBox.appendChild(elm);
            elm = document.createElement('OPTION');
            elm.value = '2 1/2 x 2 1/2';
            elmTxt = document.createTextNode('2 1/2 x 2 1/2');
            elm.appendChild(elmTxt);
            psSelBox.appendChild(elm);
            elm = document.createElement('OPTION');
            elm.value = '3 x 3';
            elmTxt = document.createTextNode('3 x 3');
            elm.appendChild(elmTxt);
            psSelBox.appendChild(elm);
            elm = document.createElement('OPTION');
            elm.value = '4 x 4';
            elmTxt = document.createTextNode('4 x 4');
            elm.appendChild(elmTxt);
            psSelBox.appendChild(elm);
            elm = document.createElement('OPTION');
            elm.value = '6 x 6';
            elmTxt = document.createTextNode('6 x 6');
            elm.appendChild(elmTxt);
            psSelBox.appendChild(elm);

            if(psSelIndx <= psSelBox.options.length)
               psSelBox.selectedIndex = psSelIndx;
            else
               psSelBox.selectedIndex = 0;
            setWall(c);
         }
      }

      function setPostSize(ps, c) {
         if(ps.length > 0) {
            var tv = '';
            plSelBox = document.getElementById('postLength'+c);
            var plSelIndx = plSelBox.selectedIndex;
            while (plSelBox.firstChild)
               remove(plSelBox.firstChild);

            elm = document.createElement('OPTION');
            elm.value = '';
            elmTxt = document.createTextNode('');
            elm.appendChild(elmTxt);
            plSelBox.appendChild(elm);
            tv = ((ps == '6 x 6') || (ps == '3 x 3')) ? 'N/A' : "5'";
            elm = document.createElement('OPTION');
            elm.value = tv;
            elmTxt = document.createTextNode(tv);
            elm.appendChild(elmTxt);
            plSelBox.appendChild(elm);
            elm = document.createElement('OPTION');
            elm.value = "6'";
            elmTxt = document.createTextNode("6'");
            elm.appendChild(elmTxt);
            plSelBox.appendChild(elm);
            tv = (ps == '6 x 6') ? 'N/A' : "7'";
            elm = document.createElement('OPTION');
            elm.value = tv;
            elmTxt = document.createTextNode(tv);
            elm.appendChild(elmTxt);
            plSelBox.appendChild(elm);
            elm = document.createElement('OPTION');
            elm.value = "8'";
            elmTxt = document.createTextNode("8'");
            elm.appendChild(elmTxt);
            plSelBox.appendChild(elm);
            tv = (ps == '6 x 6') ? 'N/A' : "9'";
            elm = document.createElement('OPTION');
            elm.value = tv;
            elmTxt = document.createTextNode(tv);
            elm.appendChild(elmTxt);
            plSelBox.appendChild(elm);
            tv = (ps == '2 x 2') ? 'N/A' : "10'";
            elm = document.createElement('OPTION');
            elm.value = tv;
            elmTxt = document.createTextNode(tv);
            elm.appendChild(elmTxt);
            plSelBox.appendChild(elm);
            tv = ((ps == '6 x 6') || (ps == '2 x 2')) ? 'N/A' : "11'";
            elm = document.createElement('OPTION');
            elm.value = tv;
            elmTxt = document.createTextNode(tv);
            elm.appendChild(elmTxt);
            plSelBox.appendChild(elm);
            tv = (ps == '2 x 2') ? 'N/A' : "12'";
            elm = document.createElement('OPTION');
            elm.value = tv;
            elmTxt = document.createTextNode(tv);
            elm.appendChild(elmTxt);
            plSelBox.appendChild(elm);

            plSelBox.selectedIndex = plSelIndx;
            setWall(c);
         }
      }

      function setWall(c) {
         if(c > 0) {
            ps = document.getElementById('postSize'+c)[document.getElementById('postSize'+c).selectedIndex].value;
            if(ps.length > 0) {
               var tv = '';
               wSelBox = document.getElementById('wall'+c);
               var wSelIndx = wSelBox.selectedIndex;
               while (wSelBox.firstChild)
                  remove(wSelBox.firstChild);

               elm = document.createElement('OPTION');
               elm.value = '';
               elmTxt = document.createTextNode('');
               elm.appendChild(elmTxt);
               wSelBox.appendChild(elm);
               if(ps == '2 x 2')
                  tv = 0.062;
               else {
                  if(ps == '2 1/2 x 2 1/2')
                     tv = 0.075;
                  else
                     tv = 0.125;
               }
               elm = document.createElement('OPTION');
               elm.value = tv;
               elmTxt = document.createTextNode(tv);
               elm.appendChild(elmTxt);
               wSelBox.appendChild(elm);
               if(ps == '2 x 2')
                  tv = 0.093;
               else {
                  if(ps == '2 1/2 x 2 1/2')
                     tv = 0.125;
                  else
                     tv = 'N/A';
               }
               elm = document.createElement('OPTION');
               elm.value = tv;
               elmTxt = document.createTextNode(tv);
               elm.appendChild(elmTxt);
               wSelBox.appendChild(elm);
               if(ps == '2 x 2')
                  tv = 0.125;
               else {
                  if(ps == '2 1/2 x 2 1/2')
                     tv = 'N/A';
                  else
                     tv = 'N/A';
               }
               elm = document.createElement('OPTION');
               elm.value = tv;
               elmTxt = document.createTextNode(tv);
               elm.appendChild(elmTxt);
               wSelBox.appendChild(elm);
            }
         }
      }

      function setColor(c) {
         if(c.length > 0) {
            for(var i=8; i < 15; i++)
               if(i < 14)
                  document.getElementById('description'+i).value = document.getElementById('options'+i).value + ' ' + c;
               else
                  document.getElementById('description'+i).value = document.getElementById('options'+i).value + ' ' + "<" + document.getElementById('optionsFinal'+i)[document.getElementById('optionsFinal'+i).selectedIndex].value + ">" + ' ' + c;
         }
      }

      function setSwing(sw) {
         if(sw.length > 0) {
            opSelBox = document.getElementById('gatesOpening5');
            while (opSelBox.firstChild)
               remove(opSelBox.firstChild);
            if(sw == 'Single') {
               elm = document.createElement('OPTION');
               elm.value = '';
               elmTxt = document.createTextNode('');
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "3'";
               elmTxt = document.createTextNode("3'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "3.5'";
               elmTxt = document.createTextNode("3.5'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "4'";
               elmTxt = document.createTextNode("4'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "5'";
               elmTxt = document.createTextNode("5'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "6'";
               elmTxt = document.createTextNode("6'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "7'";
               elmTxt = document.createTextNode("7'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "8'";
               elmTxt = document.createTextNode("8'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "9'";
               elmTxt = document.createTextNode("9'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "10'";
               elmTxt = document.createTextNode("10'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "11'";
               elmTxt = document.createTextNode("11'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "12'";
               elmTxt = document.createTextNode("12'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
            } else if(sw == 'Double') {
               elm = document.createElement('OPTION');
               elm.value = '';
               elmTxt = document.createTextNode('');
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "6'";
               elmTxt = document.createTextNode("6'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "7'";
               elmTxt = document.createTextNode("7'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "8'";
               elmTxt = document.createTextNode("8'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "10'";
               elmTxt = document.createTextNode("10'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "12'";
               elmTxt = document.createTextNode("12'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "14'";
               elmTxt = document.createTextNode("14'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "16'";
               elmTxt = document.createTextNode("16'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "18'";
               elmTxt = document.createTextNode("18'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "20'";
               elmTxt = document.createTextNode("20'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "22'";
               elmTxt = document.createTextNode("22'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "24'";
               elmTxt = document.createTextNode("24'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
            }

            //document.getElementById('kitsSingleDouble7').value = sw;
         }
      }

      function setSwingCommercial(sw) {
         if(sw.length > 0) {
            opSelBox = document.getElementById('gatesOpening5');
            while (opSelBox.firstChild)
               remove(opSelBox.firstChild);
            if(sw == 'Single') {
               elm = document.createElement('OPTION');
               elm.value = '';
               elmTxt = document.createTextNode('');
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "3'";
               elmTxt = document.createTextNode("3'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "3.5'";
               elmTxt = document.createTextNode("3.5'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "4'";
               elmTxt = document.createTextNode("4'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "5'";
               elmTxt = document.createTextNode("5'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "6'";
               elmTxt = document.createTextNode("6'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "7'";
               elmTxt = document.createTextNode("7'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "8'";
               elmTxt = document.createTextNode("8'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "9'";
               elmTxt = document.createTextNode("9'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "10'";
               elmTxt = document.createTextNode("10'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "11'";
               elmTxt = document.createTextNode("11'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "12'";
               elmTxt = document.createTextNode("12'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "13'";
               elmTxt = document.createTextNode("13'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "14'";
               elmTxt = document.createTextNode("14'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "15'";
               elmTxt = document.createTextNode("15'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "16'";
               elmTxt = document.createTextNode("16'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
            } else if(sw == 'Double') {
               elm = document.createElement('OPTION');
               elm.value = '';
               elmTxt = document.createTextNode('');
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "6'";
               elmTxt = document.createTextNode("6'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "7'";
               elmTxt = document.createTextNode("7'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "8'";
               elmTxt = document.createTextNode("8'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "10'";
               elmTxt = document.createTextNode("10'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "12'";
               elmTxt = document.createTextNode("12'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "14'";
               elmTxt = document.createTextNode("14'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "16'";
               elmTxt = document.createTextNode("16'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "18'";
               elmTxt = document.createTextNode("18'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "20'";
               elmTxt = document.createTextNode("20'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "22'";
               elmTxt = document.createTextNode("22'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "24'";
               elmTxt = document.createTextNode("24'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "26'";
               elmTxt = document.createTextNode("26'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "28'";
               elmTxt = document.createTextNode("28'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "30'";
               elmTxt = document.createTextNode("30'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = "32'";
               elmTxt = document.createTextNode("32'");
               elm.appendChild(elmTxt);
               opSelBox.appendChild(elm);
            }

            //document.getElementById('kitsSingleDouble7').value = sw;
         }
      }

      function setOtherGHK(ghk) {
         ghkSelBox = document.getElementById('otherKits7');
         while (ghkSelBox.firstChild)
            remove(ghkSelBox.firstChild);


         if(ghk.length > 0) {
            if(ghk == 'Latch Only') {
               elm = document.createElement('OPTION');
               elm.value = 'Lokk-Latch';
               elmTxt = document.createTextNode('Lokk-Latch');
               elm.appendChild(elmTxt);
               ghkSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = 'Magna-Latch';
               elmTxt = document.createTextNode('Magna-Latch');
               elm.appendChild(elmTxt);
               ghkSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = 'Z-Lokk';
               elmTxt = document.createTextNode('Z-Lokk');
               elm.appendChild(elmTxt);
               ghkSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = 'Lokk-Latch Deluxe';
               elmTxt = document.createTextNode('Lokk-Latch Deluxe');
               elm.appendChild(elmTxt);
               ghkSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = 'Gravity Latch';
               elmTxt = document.createTextNode('Gravity Latch');
               elm.appendChild(elmTxt);
               ghkSelBox.appendChild(elm);
            } else if(ghk == 'Drop Rod Only') {
               elm = document.createElement('OPTION');
               elm.value = 'Standard';
               elmTxt = document.createTextNode('Standard');
               elm.appendChild(elmTxt);
               ghkSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = 'Lokk-Bolt Security';
               elmTxt = document.createTextNode('Lokk-Bolt Security');
               elm.appendChild(elmTxt);
               ghkSelBox.appendChild(elm);
            } else if(ghk == 'Hinge Only') {
               elm = document.createElement('OPTION');
               elm.value = 'Tru-Close';
               elmTxt = document.createTextNode('Tru-Close');
               elm.appendChild(elmTxt);
               ghkSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = 'Tru-Close Heavy Duty';
               elmTxt = document.createTextNode('Tru-Close Heavy Duty');
               elm.appendChild(elmTxt);
               ghkSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = 'Kwik Fit';
               elmTxt = document.createTextNode('Kwik Fit');
               elm.appendChild(elmTxt);
               ghkSelBox.appendChild(elm);
               elm = document.createElement('OPTION');
               elm.value = 'Metal Hinges';
               elmTxt = document.createTextNode('Metal Hinges');
               elm.appendChild(elmTxt);
               ghkSelBox.appendChild(elm);
            }
         } else {
            elm = document.createElement('OPTION');
            elm.value = '';
            elmTxt = document.createTextNode('');
            elm.appendChild(elmTxt);
            ghkSelBox.appendChild(elm);
         }
      }

      function setDescFinalOpt(fo) {
         if(fo.length > 0)
            document.getElementById('description14').value = document.getElementById('options14').value + ' ' + "<" + fo + ">" + ' ' + document.getElementById('colors0')[document.getElementById('colors0').selectedIndex].value;
      }

      function setPanelWidth(pw) {
         if(pw.length > 0) {
            for(var i = 1; i < 7; i++)
               document.getElementById('panelsWidth'+i).value = pw;
         }
      }

      function remove(elem) {
         if (elem) elem.parentNode.removeChild(elem);
      }

      function resetForm(isSrsReset) {
         var inputs = document.getElementsByTagName('INPUT');
         var selects = document.getElementsByTagName('SELECT');

         if(inputs.length > 0) {
            for(var i=0; i < inputs.length; i++) {
               if(inputs[i].type == 'text' && inputs[i].className != 'opt' && inputs[i].className != 'srs pnls')
                  inputs[i].value = '';
            }
         }

         if(selects.length > 0) {
            for(var i=0; i < selects.length; i++)
               if(((isSrsReset == 0) && (selects[i].id == 'series0' || selects[i].id == 'panelsWidth0')) || selects[i].id == 'goform')
                  continue;
               else
                  selects[i].selectedIndex= 0;
         }
      }

      function gotoForm(fl) {
         if(fl.length > 0) {
            document.location.href = fl;
         }
      }

      function validate() {
         var series = document.getElementById('series0');
         var style = document.getElementById('style0');
         var height = document.getElementById('height0');
         var channels = document.getElementById('channels0');
         var colors = document.getElementById('colors0');

         if(series.selectedIndex != 0 || style.selectedIndex != 0 || height.selectedIndex != 0 || channels.selectedIndex != 0 || colors.selectedIndex != 0) {
            if(document.getElementById('panelsWidth0')) {
               if(document.getElementById('panelsWidth0').selectedIndex == 0) {
                  alert('Please select Panels Width!');
                  document.getElementById('panelsWidth0').focus();
                  return false;
               }
            }

            if(series.selectedIndex == 0) {
               alert('Please select SERIES!');
               series.focus();
               return false;
            }

            if(style.selectedIndex == 0) {
               alert('Please select PICKET STYLE!');
               style.focus();
               return false;
            }

            if(height.selectedIndex == 0) {
               alert('Please select HEIGHT!');
               height.focus();
               return false;
            }

            if(channels.selectedIndex == 0) {
               alert('Please select CHANNELS!');
               channels.focus();
               return false;
            }

            if(colors.selectedIndex == 0) {
               alert('Please select COLOR!');
               colors.focus();
               return false;
            }
         }

         document.itemform.confirmOK.value = 1;
         return true;
      }