<script type="text/javascript"> 
        // wait for the DOM to be loaded 
        $(document).ready(function() { 
            // bind 'myForm' and provide a simple callback function 
            $('#form1').ajaxForm(function() { 				
				$('#form1').fadeOut("slow");
				$('#thanks').fadeIn("slow"); 
			}); 
		});
</script>
