  $(function() {
    $('.error').hide();
    $(".button").click(function() {
      // validate and process form here
      
      $('.error').hide();
  		var email = $("input#email").val();
  		if (email == "") {
        $("label#email_error").show();
        $("input#email").focus();
        return false;
      }
        var dataString = '&amp;email=' + email;
  //alert (dataString);return false;
  $.ajax({
    type: "POST",
    url: "http://www.mitcio.com/2009_test/cgi-bin/cc_add_cio.php",
    data: dataString,
    success: function() {
      $('#contact_form').html("<div id='message'></div>");
      $('#message').html("Congratulations, your email has been added.")
      .append()
      .hide()
      .fadeIn(1500, function() {
        $('#message')("<img id='checkmark' src='images/check.png' />");
      });
    }
  });
  return false;
  
    });
  });
runOnLoad(function(){
  $("input#name").select().focus();
});  
  
  
  
  
  