Checkbox not running selected items instead it runs all
===

JQuery script which opens selected box in new window one by one for specific time. But It Runs all Boxes on click button whether i check anything or not I am So Confused.

My Jquery Code

    function bon()
    {
    	var field = document.getElementsByName('list');
    	var len = field.length;		
    	var j=0;
    	for (i = 0; i < field.length; i++)
    	{
    		lk[j] = document.getElementById('addlink_'+i).value;	
    		j++;	
    	}
     win = window.open("","myWindow","height=500,width=500,menubar=no,status=no"); 
     process();
     var interval  =  document.getElementById('interval').value;
    window.setInterval(function(){ process();}, interval);		
    }
    function process()
    {
    		if(oldval<lk.length)
    		{
        		 	 var ln =lk[oldval];
    				 win.location.href =ln;	
                     //$.post("updateclick.php",{dbid:recordid},function(data) {  document.getElementById(countid).innerHTML = data; });				 
                     oldval =oldval+1;
    		}
    		else
    		{
    			 window.location.href=location.href;
    		}
    }
    function process1(a,b)
    {
    	if(document.getElementById('chkbox_'+a).checked==true)
    	{
    		
    	}
    	else
    	{
    		thisimg(a,b);
    	}
    }

And My Css Code Is:

    <div class='posts'><input style='float:left; height:85px;' type='checkbox' name='list' value='chck_".$counter."' id='chkbox_".$counter."'/><div class='title box' onclick='process1(".$counter.",".$row['id'].")'><div style='float:left;' onclick='thisimg(".$counter.",".$row['id'].")'><img src='".$imgpath."' height='50' width='50' /></div> <div class='click' style='float:right;'><b>Clicks <br/> <div id='count_".$counter."'> ".$click." </div> <input type='hidden' id='addlink_".$counter."' value='".$app_link."' rel='nofollow'</b></div><div style='float:left; width:100px; overflow:hidden; white-space: pre;'> <b> ".$title."</b><br/>".$beforetime."</div></div></div>

This is My Button Code:

    <select id="interval">
        <option value="5000"> 5 Seconds</option>
        <option value="10000"> 10 Seconds</option>
      </select>
      <input class="butn" type="button" value="Collect" onclick="bon()" />

Please Help I am Very Confused.

Thank You For Reading.
