function IsEmail(t) { var e = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; return e.test(t) ? !0 : !1 } $(document).ready(function() { $("#submit_button").click(function() { var t = $("form").serialize(); $("#submit_button").attr("disabled", "disabled"), $.ajax({ type: "POST", url: "register-submit.zvx", data: t, success: function(t) { "regd" == t ? $("#tfrm").html("
Registration successfull.
Please check your mail.
close this window
") : $("#message_sent").fadeTo(200, .1, function() { $("#submit_button").attr("disabled", !1), $(this).html(t).fadeTo(900, 1, function() { $(this).fadeOut(5e3) }) }) } }) }) });