$(document).ready(function() {
  $('#contact_form').ajaxForm({
   dataType: 'json',
   success: function(data, code, set) {
     if (data.status == 'ok') {
      set.clearForm();
      $('#contact_pod_error').html("<div>Thanks for contacting us</div>");
      $('#contact_pod_form').hide();
     } else {
      $('#contact_pod_error').html("<div><h2>Please correct the following problems</h2><p>" + data.message + "</p></div>");
     }
   }
 }); 
});
