Javascript confirm box
<p>i try to use confirm box but it does not work after 'OK' pressing
this is my confirm box</p>

<pre><code>&lt;script language="JavaScript"&gt;
{literal}
function confirmBox()
{
 var where_to= confirm("Silmek istediğinizden emin misiniz?");
 if (where_to== true)
     return true;
 else{
     alert("Silme işleminden vazgeçtiniz yönlendiriliyorsunuz");
     return false;
 }
}
{/literal}
&lt;/script&gt;



 &lt;form name="removeFortune" method="post" action="#"&gt;
    &lt;table border="0" name="tableArticle"&gt;
     {foreach from=$articles value=article}
        &lt;tr&gt;
            &lt;td&gt;&lt;input type="checkbox" name="checkArticle[]" value="{$article.id}" /&gt;&lt;/td&gt;
            &lt;td&gt;{$article.title}&lt;/td&gt;
        &lt;/tr&gt;
        {/foreach}
    &lt;/table&gt;
    &lt;input type="submit" onclick="confirmBox()" name="removeArticle" value="Sil" /&gt;
    &lt;br /&gt;&lt;br /&gt;

    {$deleteMessage}

&lt;/form&gt;
</code></pre>
