$(document).ready( function () { 
    $("#form_com").submit(function() {    
        s = $(this).serialize(); 
        id = $("#contentid").attr("value");
        $.ajax( { 
            type: "POST", 
            data: s, 
            url: "http://failblog.fr/cont/commentaires/envoi_com.inc.php", 
            success: function(retour) {
                $.ajax( {
                    type: "GET",  
                    url: "http://failblog.fr/cont/commentaires/recup_com.php?id="+id, 
                    success: function(retour) { 
                       $($("#recup").empty().append(retour)).slideDown("slow");
                    }
                });
                $($("#thx").empty().append(retour)).slideDown("slow");
                $("#form_com")[0].reset();
            }	 
        }); 
        return false; 
    });

    $("#nl").submit(function() { 
        s = $(this).serialize();
        $.ajax( { 
            type: "POST", 
            data: s, 
            url: "http://failblog.fr/cont/newsletter.php", 
            success: function(retour) {
                $($("#nlt").empty().append(retour)).slideDown("slow");
                $("#nl")[0].reset();
            }	 
        }); 
        return false; 
    });
});




