function openWin(windowURL, windowName, windowFeatures) {
	return window.open(windowURL, windowName, windowFeatures);
}

function openMailing() {
	windowURL = "http://www.wallabie.be/mailing/subscribe.php?company=20&lang=1";
	windowName = "Subscribe";
	windowFeatures = "width=500,height=650,toolbar=0,location=0,directories=0,status=1,menuBar=0,scrollBars=1,resizable=0";
	newWindow = openWin(windowURL, windowName, windowFeatures);
	newWindow.focus();
}

function setSearch(control, focus) {
	var text = "Zoeken...";
	if (control.value == text && focus)
	{
		control.value = '';
		control.style.color = '#000000';
		return;
	}
	if (control.value == '' && !focus)
	{
		control.value = text;
		control.style.color = '#dedede';
		return;
	}
}

function select_all(caller, name) {
	forminputs = document.forms.print.getElementsByTagName("input");
	for (i = 0; i < forminputs.length; i++) {
		// regex here to check name attribute
		var regex = new RegExp(name, "i");
		if (regex.test(forminputs[i].getAttribute("name"))) {
			//if (value == '1') {
				forminputs[i].checked = caller.checked;
			//} else {
				forminputs[i].checked = caller.checked;
			//}
		}
	}
}