Hi I have a form that is calling function when button "Calculate" is clicked. 
Following code works fine. I am trying to make it so that instead of onClick even it is submitted automatically when page is loaded. Please let me know. Thanks 

```
  <form id="FormCalculate" class="readonly">      
             <input type="hidden" name="readId" id="profreadId" value=""/>
             <input type="hidden" name="taskName" id="protaskName" value=""/>
             <div class="fMain">
             <label class="fMain" for="EmailAddress">Email Address:</label>
             <input type="text" class="form-field-medium" id="emailaddress"name="Email"/>
             </div>
             <div class="xyz">
             <input type="button" class="xyz" onclick="fnCalculate()" value="Calculate" />
             </div>          
          </form>

```

Than jQuery function is 

```
    function fnCalculate() {
               $("#calcStart").val(0);
               fnCrunching();
               $("#FormCalculate").submit();
           }

```