Are these clauses identical?
<p>I'm looking at a javascript that my colleague wrote and I think that it looks like it does the same in both clauses:</p>

<pre><code>function doSubmitOversikt(action, command, status) {

    var checked = document.getElementById("klarbox").checked;

    if(status &amp;&amp; !checked) {

        if (confirm("Ärendet är satt som Klar (formell handläggning första delen klar). Vill du verkligen ångra detta? Att ångra kan innebära att ärendet behöver arras om i CICS.")) {

            document.actionForm.action.value = action;
            document.actionForm.actionCommand.value = command;  
            document.actionForm.submit();
            disableAll();

        }
    } else {

        document.actionForm.action.value = action;
        document.actionForm.actionCommand.value = command;  
        document.actionForm.submit();
        disableAll();
    }

}
</code></pre>

<p>What will be the difference between the above code and to unconditionally do</p>

<pre><code>    document.actionForm.action.value = action;
    document.actionForm.actionCommand.value = command;  
    document.actionForm.submit();
    disableAll();
</code></pre>

<p>?</p>
