function submitForm() {
	checkForm ('on');
	document.advProdSearch.submit();
}
function checkForm(inpVal) {
	var checkVal = new Array;
	var toepasVal = document.advProdSearch.toepas.options[document.advProdSearch.toepas.selectedIndex].text;
	var snVal = document.advProdSearch.sn.options[document.advProdSearch.sn.selectedIndex].text;
	var afmcatVal = document.advProdSearch.afmcat.options[document.advProdSearch.afmcat.selectedIndex].text;
	var aantlichtVal = document.advProdSearch.type.options[document.advProdSearch.type.selectedIndex].text;
	var dmodeVal = document.advProdSearch.dmode.value;
	if (toepasVal=='all') {
		document.advProdSearch.toepas.options[document.advProdSearch.toepas.selectedIndex].text = '';
	}
	if (snVal=='all') {
		document.advProdSearch.sn.options[document.advProdSearch.sn.selectedIndex].text = '';
	}
	if (afmcatVal=='all') {
		document.advProdSearch.afmcat.options[document.advProdSearch.afmcat.selectedIndex].text = '';
	}
	if (aantlichtVal=='all') {
		document.advProdSearch.type.options[document.advProdSearch.type.selectedIndex].text = '';
	}
	if (inpVal!='on') {
		document.advProdSearch.dmode.value ='filterAndList';
		switch (lang) {
			case 'en' : {
				document.advProdSearch.action='product_module_en.html';
				break;
			}
			case 'nl' : {
				document.advProdSearch.action='product_module.html';
				break;
			}
			case 'gr' : {
				document.advProdSearch.action='product_module_gr.html';
				break;
			}
		}
		document.advProdSearch.submit();
	} else {
			if (dmodeVal == '')
			{
				document.advProdSearch.dmode.value ='filter';
			}
			else{
				document.advProdSearch.dmode.value ='filterAndList';
				}
				
	}
}
