function setUrl () {
	url = getInputValue ("rssfile");
	url += "?per=" + getInputValue ("periode");
	if (getInputValue ("nieuws")) url += "&nws=" + getInputValue ("nieuws");
	if (getInputValue ("verhalen")) url += "&vhl=" + getInputValue ("verhalen");
	if (getInputValue ("forum")) url += "&rfm=" + getInputValue ("forum");
	if (getInputValue ("id_regio")) url += "&rg=" + getInputValue ("id_regio");
	if (getInputValue ("stamboom")) url += "&sfm=" + getInputValue ("stamboom");
	if (getInputValue ("waterforum")) url += "&wfm=" + getInputValue ("waterforum");
	if (getInputValue ("relaties")) url += "&rel=" + getInputValue ("relaties");
	setInputValue ("url", url);
}
function kopieerNaarKlembord () {
	var r = document.forms[0].elements["url"].createTextRange();
	r.select ();
	r.execCommand('copy');
}
function openNieuwWindow () {
	var w = window.open (getInputValue ("url"), "rss");
}
function formOk () {
	return false;
}
function inputOnChange (obj) {
	setUrl ();
}
function buttonOnClick (obj) {
	switch (obj.name) {
		case "kopieer":
			kopieerNaarKlembord ();
			break;
		case "open":
			openNieuwWindow ();
			break;
	}
}
function bodyOnLoad () {
	setUrl ();
}
