function columnarchief()
{
	var nieuwsarchief  = document.getElementById('columnarchief');
	var req = ajaxFunction();
	
	var combobox = $("#columnsearchcbox");
	var selectedmonth = combobox.val();
	req.open("POST", "columnarchief.php", true);
	req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	req.send('&MaandColumn=' + selectedmonth);
	
	req.onreadystatechange=function()
	{
		if(req.readyState == 4) 
		{
			//Verbinding in orde
			if (req.status == 200)
			{
				nieuwsarchief.innerHTML = '';
				nieuwsarchief.innerHTML = req.responseText;	
				for(var q = 0; q < selects.length; q++)
				{
					var selectWidth;
					(selects[q].className != '') ? selectWidth = parseInt(selects[q].className.replace(/width_/g, "")) : selectWidth = 150;
					var id = "optionsDiv"+q;
					var selectA = "sarea"+q;
					var selectArea = document.getElementById(selectA);
					var optionsDiv = document.getElementById(id);
					optionsDiv.style.width = selectWidth + 1 + 'px';
					optionsDiv.className = "optionsDivInvisible";
					optionsDiv.id = "optionsDiv"+q;
					optionsDiv.style.left = findPosX(selectArea) + 'px';
					optionsDiv.style.top = findPosY(selectArea) + selectAreaHeight - selectAreaOptionsOverlap + 'px';
				}
				
				var aDiv = fGetElementsByName_IE('div', 'nieuwsdivitemtekst');
				
				for (var iIndex=0; iIndex < aDiv.length; iIndex++)
				{
					$(aDiv[iIndex]).hover(		
					function()
					{
						$(this)[0].style.color=			"#84B92C";

					},
					function()
					{
						$(this)[0].style.color=			"#59595b";
						$(this)[0].style.cursor=		"pointer";
					});
				}
			}
		}
	}
}
function getColumnArchiefMiddle(iMonth)
{
	var middlediv = document.getElementById("currentnieuws");
	var req = ajaxFunction();
	
	req.open("POST", "volledigarchief.php", true);
	req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	req.send('&Maand=' + iMonth + '&action=getColumns');
	
	req.onreadystatechange=function()
	{
		if(req.readyState == 4) 
		{
			//Verbinding in orde
			if (req.status == 200)
			{
				middlediv.innerHTML = '';
				middlediv.innerHTML = req.responseText;
			}
		}
	}
	
}