// Functie om de bovenste div net zo breed te maken als de td om het mainframe heen
window.onresize = fnSetSize;
window.onload = fnSetSize;


function fnSetSize()
{
	var tdElem = document.getElementById('mainframe');
	if (tdElem)
	{
		var divElem = top.topframe.document.getElementById('donkergeelblok');
		if (divElem)
		{	
			var newHeight = tdElem.offsetWidth + 77 + 'px';
			divElem.style.width = newHeight;
		}
	}
	
	if (document.frmemail) document.frmemail.swidth.value = screen.width;
	if (document.frmemail) document.frmemail.sheight.value = screen.height;
	if (document.frmemail) document.frmemail.colors.value = screen.colorDepth;
}

function popProjecten()
{
	var width = 924;
	var height = 668;
	var winleft = (screen.width - width) / 2;
	var winUp = (screen.height - height) / 2;
	winUp = winUp -40;
	var winProp = 'width='+width+',height='+height+',left='+winleft+',top='+winUp+',scrollbars=no,resizable=no,menubar=no,toolbar=no,personalbar=no,location=no,status=no';
	Win = window.open('http://www.ruimte-mobiliteit.nl/projecten/defaultstarter.aspx','naam', winProp)
}



