Alert Box with specific functionality
<p>I am getting a JS Alert-box When I am leaving my tabs 1st time.
But would like to get it as windows alert - any idea on basis of my code.
Also that should have a OK and Cancel Button - Ok > Next Tab
                                               Cancel> Same tab </p>

<pre><code>$(document).ready(function () {
    B.initB();
var 3firstTimeMsg = true;
var 4FirstTimeMsg = true;
$(".3a-tab").click(function(){
    if(3firstTimeMsg == true)
        {
            alert("If you leave this page, any information you've entered will be lost.");
            3firstTimeMsg = false;
        }   
    });
    $(".3b-tab").click(function(){
    if(4FirstTimeMsg == true)
    {
        alert("If you leave this page, any information you've entered will be lost.");
        4FirstTimeMsg = false;
    }
    });
});
</code></pre>
