
//http://www.talkphp.com/vbarticles.php?do=article&articleid=58&title=simple-ajax-with-jquery
function register()
{
//	$("#response").html("<p>Test</p>");
	$.ajax(
	{
		type: "POST",
		url: "scripts/subscribe.php",
		data: "email=" + document.getElementById("email").value,
		success: function(html)
		{
			$("#response").html(html);
		}
	});
}

function unregister()
{
	$.ajax(
	{
		type: "POST",
		url: "scripts//subscribe.php",
		data: "email=" + document.getElementById("email").value + "&afmelden=true",
		success: function(html)
		{
			$("#response").html(html);
		}
	});
}

	
