function emptyForm(formId)
{
	f = document.getElementById(formId);
	for (x in f.elements)
	{
		if (f.elements[x] != null)
		{
			if (f.elements[x].type == 'text' || f.elements[x].type == 'textarea')
				f.elements[x].value = '';
		}
	}
}

function onLoadForm(widget)
{
	widget.addEventListener("submitted", function()
	{
		emptyForm("contactformulier");
		 alert("Bedankt voor het invullen.");
	});
}