redirect from javascript function is not working
<p>I have one js file in which there is one function</p>

<pre><code>function deleterec(delid)    
{    
 if(confirm('Are you sure you want to "'+jQuery("#action").attr('value')+'" the selected record(s)?'))    
 {
    document.location.href = siteroot+"/admin/products/delete_store.php?delid="+delid;
 } 
 else
 {
    return false;
 }
</code></pre>

<p>In which delid are comma seperated id passed to function.
But in confirmation it does redirect to delete_store.php file in which i write this code</p>

<pre><code>if($_GET['delid']!="")    
{       
    mysql_query("delete from store where id in (".$_GET['delid'].")");    
    $_SESSION['msg'] = "&lt;span class='success'&gt;Record deleted successfully&lt;/span&gt;";      
}
</code></pre>

<p>But it not works,I think from js fuction it does not redirect to delete_store.php.</p>
