keep in one cookie 75 check boxes
<p>how i can use that code for keep in one cookie 75 check boxes, im testing the code and create 75 individuals cookies for 75 checkboxes, im new on that, thx for the help.</p>

<pre><code>function setCookie(c_name,value,expiredays) {
    var exdate=new Date()
    exdate.setDate(exdate.getDate()+expiredays)
    document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate)
}

function getCookie(c_name) {
    if (document.cookie.length&gt;0) {
        c_start=document.cookie.indexOf(c_name + "=")
        if (c_start!=-1) { 
            c_start=c_start + c_name.length+1 
            c_end=document.cookie.indexOf(";",c_start)
            if (c_end==-1) c_end=document.cookie.length
                return unescape(document.cookie.substring(c_start,c_end))
        } 
    }
    return null
}
onload=function(){
document.getElementById('squaredOne1').checked = getCookie('squaredOne1')==1? true : false;
document.getElementById('squaredOne2').checked = getCookie('squaredOne2')==1? true : false;
document.getElementById('squaredOne3').checked = getCookie('squaredOne3')==1? true : false;
document.getElementById('squaredOne4').checked = getCookie('squaredOne4')==1? true : false;
document.getElementById('squaredOne5').checked = getCookie('squaredOne5')==1? true : false;
}


function set_check(){
setCookie('squaredOne1', document.getElementById('squaredOne1').checked? 1 : 0, 100);
setCookie('squaredOne2', document.getElementById('squaredOne2').checked? 1 : 0, 100);
setCookie('squaredOne3', document.getElementById('squaredOne3').checked? 1 : 0, 100);
setCookie('squaredOne4', document.getElementById('squaredOne4').checked? 1 : 0, 100);
setCookie('squaredOne5', document.getElementById('squaredOne5').checked? 1 : 0, 100);
}
</code></pre>
