title: javascript checkbox create element
body: <p>I am trying to add a checkbox list to a form.  When I use the following code, I get all the items in the array but no checkboxes, so I cannot select anything.  I'm sure there is a very simple solution to this, but I can't see what I'm doing wrong (I'm new at this).  Many thanks in advance for your help.  Here is the code:</p>
  
  <pre><code>var check_value = new Array()
  check_value[0] = "I work at home"
  check_value[1] = "Train/Subway"
  check_value[2] = "Walk"
  check_value[3] = "Bicycle"
  
  for(count in check_value)
      {
      var ptworkinfo=document.createElement("input");
      ptworkinfo.type="checkbox";
      ptworkinfo=(check_value[count] + "&lt;/br&gt;");
      ptworkinfo.id="ptworkinfo";
      document.write(ptworkinfo);
      count+=count;
      }
  </code></pre>