/** CONTACT FORM CODE **/
$(document).ready(function(){
$("#ajax-contact-form").submit(function(){

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

   $.ajax({
   type: "POST",
   url: "contact.php",
   data: str,
   success: function(msg){

$("#note").ajaxComplete(function(event, request, settings){

	$("#ajax-contact-form").hide();
	result = msg;

	$(this).html(result);

});

}

 });

return false;

});

});
/** END CONTACT FORM CODE **/
