	function InvokeAction(Element, A)
	{
		if (Element.form)
		{
			Element.form.action += A;
			Element.form.submit();
		}
		else
		{
			document.forms[Element].action += A;
			document.forms[Element].submit();
		}
	}
	
	function Rollon(RollId)
	{
		document.getElementById(RollId).style.BackgroundImage = 'Images/HeadermenuBGhover.jpg';
	}
	
	function Rolloff(RollId)
	{
		document.getElementById(RollId).style.BackgroundImage = 'Images/HeadermenuBG.jpg';
	}
	
	var xmlhttp;
	function loadXMLDoc(url, state_Change)
	{
		xmlhttp=null
		// code for Mozilla, etc.
		if (window.XMLHttpRequest)
		{
			xmlhttp=new XMLHttpRequest();
		}
		// code for IE
		else if (window.ActiveXObject)
		{
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
		
		if (xmlhttp!=null)
		{		
			xmlhttp.onreadystatechange=state_Change;
			xmlhttp.open("GET",url,true);
			xmlhttp.send(null);			
		}
		else
		{
			alert("Deze functie wertk niet.\nJe browser ondersteund geen XMLHTTP.");
		}
	}
	
	function GetSubCategories(CategoryId, Selected)
	{
		loadXMLDoc("Ajax/Searchfilters.asp?Action=GetSubCategories&CategoryId=" + CategoryId + "&Selected=" + Selected, ShowSubCategories);
	}
	
	
	function ShowSubCategories()
	{		
		
		if (xmlhttp.readyState==4)
		{			
			if (xmlhttp.status==200)
			{
				document.getElementById("SubCats").innerHTML = xmlhttp.responseText;
				//alert(xmlhttp.responseText)
			}
			else
				alert("Error loading Article");
		}
	}
	
	function GetSubSubCategories(CategoryId, Selected)
	{
		loadXMLDoc("Ajax/Searchfilters.asp?Action=GetSubSubCategories&CategoryId=" + CategoryId + "^Selected=" + Selected, ShowSubSubCategories);	
	}
	
	
	function ShowSubSubCategories()
	{
		if (xmlhttp.readyState==4)
		{
			if (xmlhttp.status==200)
				document.getElementById("SubSubCats").innerHTML = xmlhttp.responseText
			else
				alert("Error loading Article");
		}
	}
		
	function ClearAllFilters()
	{
		document.getElementById("SubSubCats").innerHTML =""	
		document.getElementById("SubCats").innerHTML =""	
	}
