Actually I am not even sure if this kind of form handling is even allowed, but here is what I want to do.

I have the following HTML form and piece of javascript code to submit the form to my email and show a 'thank you' page after submitting.

HTML Code:
<form id="form" method="post" name="form" onsubmit="submitForm();">
<input name="to" type="hidden" value="user@domain.com" /> 
<input name="feedback" type="hidden" value="thanks.htm" />
<table>
</tr>
<tr>
 <td>
  <label for="first_name">First Name</label>
 </td>
 <td>
  <input  type="text" name="first_name" maxlength="50" size="30">
 </td>
</tr>

<tr>
 <td>
  <label for="last_name">Last Name</label>
 </td>
 <td>
  <input  type="text" name="last_name" maxlength="50" size="30">
 </td>
</tr>
</table>

<input name="Submit" type="submit" value="Submit" />
</form>
Javascript:

Code:
$(document).ready(function(){

    function submitForm() { 
    	
    	emailForm("form"); 
    	
    } 
    
    function emailForm(myForm) {
		myForm.submit();
	} 
    
  });
But when the submit button is clicked, nothign happens. I appreciate if anyone could tell me what the problem is.

Thanks in advance,
Atrisa