$(function(){
$("#ContactForm").submit(function(){
$("#submitf").value='Please wait...';
$.post("process.php?send=comments", $("#ContactForm").serialize(),
function(data){
if(data.frm_check == 'error'){
$("#message_post").html("
ERROR: " + data.msg + "!
");
document.ContactForm.submitf.value='Resend >>';
document.ContactForm.submitf.disabled=false;
} else {
$("#message_post").html("Your message has been sent successfully!
");
$("#submitf").value='Send >>';
}
}, "json");
return false;
});
});