  $(function() {
    $("#submitform").click(function() {
      $("#msg").hide();
      $("#wait").fadeIn("fast");
      $.ajax({
      type: "POST",
      url: "/signup.php",
      data: $('#theform').serialize(),
      success: function(response) {
        if (response.indexOf('ok') > 0){
         $("#pt3").slideDown(1000); 
         $("#pt5").slideDown(1000);
        }
        $("#wait").hide();
        $("#msg").html(unescape(response))
        $("#msg").fadeIn(1000); 
      }
     });
    return false;
    });

$("#submitform1").click(function() {
      $("#msg").hide();
      $("#wait").fadeIn("fast");
      $.ajax({
      type: "POST",
      url: "/cancel.php",
      data: $('#theform').serialize(),
      success: function(response) {
        if (response.indexOf('ok') > 0){
         $("#pt3").fadeOut(1000);
         $("#pt5").fadeOut(1000);
        }
        $("#wait").hide();
        $("#msg").html(unescape(response))
        $("#msg").fadeIn(1000);
      }
     });
    return false;
    });


    });
