title: setting cookies for checkboxes
body: <p>this is the function i'm trying to set cookies for the chekboxes in my form   </p>
  
  <pre><code>function setCookie(c_name,value,exdays){    
      var exdate=new Date();
      exdate.setDate(exdate.getDate() + exdays);
      var c_value=escape(value) + ((exdays==null) ?
          "" : "; expires="+exdate.toUTCString());
      document.cookie=c_name + "=" + c_value;
  }
  
  function set_check(){
      var proceed = document.forms['form1']['proceed_opt[]'].checked;
      setCookie(proceed_opt[], proceed, 60*60*1);
      alert(proceed_opt[]);
  }
  </code></pre>
  
  <p>and the check-boxes in my form are like this..</p>
  
  <pre><code>        &lt;input type="checkbox" name="proceed_opt[]" value="I will upload new Image" onChange="set_check()";&gt;
            Insert Option &amp;quot;I will upload new Image&amp;quot;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td colspan="2"&gt;
              &amp;nbsp; 
            &lt;input type="checkbox" name="proceed_opt[]" value="I approve this sample for a Night Light" onChange="set_check()";&gt;
            Insert Option &amp;quot;&lt;font face="Arial, Helvetica, sans-serif" size="2"&gt;I approve this sample for a Night Light&lt;/font&gt;&amp;quot; 
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td colspan="2"&gt;
              &amp;nbsp; 
            &lt;input type="checkbox" name="proceed_opt[]" value="Select One" onChange="set_check()";&gt;
            Insert Option &amp;quot;&lt;font face="Arial, Helvetica, sans-serif" size="2"&gt;Select One&lt;/font&gt;&amp;quot; 
      &lt;/td&gt;
  &lt;/tr&gt;     
  &lt;tr&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td colspan='2'&gt;
           &amp;nbsp;
          &lt;input type="checkbox" name="proceed_opt[]" value="other" onChange="set_check()"&gt;
            Insert Option &amp;quot;Other See comments&amp;quot;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>But the cookies are not setting here...can anyone tell me how to set cookies for the check-boxes in the form...</p>