Confirm() always return true?
<pre><code>&lt;script type="text/javascript"&gt;
//Confirm Delete
function confirms(id) {

   var test=confirm("Confirm Delete?");

   if(test== true)
       window.location="&lt;?php echo $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']; ?&gt;&amp;did="+id;
   else
       window.location="&lt;?php echo $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']; ?&gt;&amp;did="+id;
}
&lt;/script&gt;
</code></pre>
