function newsletter(){
        var str = $("#newsletter").serialize();
        $.ajax({
            type: "POST",
            dataType: "json",
            cache: false,
            url: "actions.php",
            data: str,
            success: function(response){
                if(response['error']){
                    $("#error_msg").html(response['error_msg']);
                }else{
                    $("#error_msg").html(response['msg']);
                }
            }
        });
    }
