$(document).ready(function(){
$("#interesteInForm").submit(function(){

// 'this' refers to the current submitted form
var str = $(this).serialize();

   $.ajax({
   type: "POST",
   url: "http://www.myxfat.com/wp-content/themes/twentyten/contact.php",
   data: str,
   success: function(msg){

if(msg == 'SENT') // Message Sent? Show the 'Thank You' message and hide the form
{
alert("Thank you!");
}
else
{
result = msg;
}

$(this).html(result);

}

 });

return false;

});

});





