1. First time the form is opened, Declare flag=true; Store this value of flag in the form during form load.
>>>> Then I press the submit button to save the form and it's values.
2. The second time the form is opened, it should check....... if flag=true, do this
<BODY style="margin:10px" onload="setTimeout('chkSubmit()',10000);" class="tabviewer">
and set flag=false.
3. Now when I open the same form again, Now since the flag=false it should just do
<BODY style="margin:10px" class="tabviewer">