Add check Box in PHP results and use java to open them one by one after some time
===

Here is My JavaScript.


    function thisimg(id,recordid)
    {
    var newid = "addlink_"+id;
    var countid = "count_"+id;
    var url = "../updateclick.php";
    $.post(url,{dbid:recordid},function(data) {  document.getElementById(countid).innerHTML = data; });
    var url =document.getElementById(newid).value;
    window.open (url,"mywindow","status=1");
    }


Here Is My PHP echo

    echo "<div class='title box'  onclick='thisimg(".$counter.",".$row['id'].")'><div style='float:left'><img src='".$imgpath."' alt='SimCity Social $name' title='$caption' 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> ".$name."</b><br/>".$beforetime."</div></div>";

I want to Modify this code to add check box inside the Title Box and and modify the JavaScript auto function to open checked title Box '$app_link' URL in new window for 10 sec and close it. every checked box URL open one by one for 10 sec. Please give some suggestion or sample code to start with.

Please help. 

Thank You For Reading..