function set_list(filename) {
        $.ajax({
                url: filename,
                type: "GET",
                dataType: "html",
                success: function(data) {
                        $("#list").html(data);
                }
        });
}

function send_nl() {
        $.ajax({
                url: "send_nl.php",
                type: "POST",
                dataType: "html",
                data: $("#nlForm").serialize(),
                success: function(data) {
			$("#nl_mail").val("");
			$("#confirm_nl_popup")
				.html(data)
                        	.dialog("open");
                }
        });
}

$(document).ready(function($) {
        $("#confirm_nl_popup").dialog( {
                width: 300,
                height: 100,
                autoOpen: false,
                resizable: false,
                draggable: false,
                modal: true
       	});

	$("input:radio[id='action0']").attr("checked", "checked");
});

