var windowWidth;
var windowHeight;
var pageWidth;
var pageHeight;


function getWindowDimensions()
{

if (self.innerHeight) // all except Explorer
{
	windowWidth = self.innerWidth;
	windowHeight = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
{
	windowWidth = document.documentElement.clientWidth;
	windowHeight = document.documentElement.clientHeight;
}
else if (document.body) // other Explorers
{
	windowWidth = document.body.clientWidth;
	windowHeight = document.body.clientHeight;
}




if(document.body)
{
	var test1 = document.body.scrollHeight;
	var test2 = document.body.offsetHeight
	if (test1 > test2) // all but Explorer Mac
	{
		pageWidth = document.body.scrollWidth;
		pageHeight = document.body.scrollHeight;
	}
	else // Explorer Mac;
	     //would also work in Explorer 6 Strict, Mozilla and Safari
	{
		pageWidth = document.body.offsetWidth;
		pageHeight = document.body.offsetHeight;
	}
}
else
{
	pageWidth = windowWidth;
	pageHeight = windowHeight;
}

}

// Als

function laadzoekframe()
{
	var searchelement;

	//alert('hoi')

	searchelement = document.getElementById("searchresults");

	if (searchelement != null)
	{

		querystring = window.location.search.substring(1);


		searchelement.innerHTML = "<iframe name='zoekresultaat' id='zoekresultaat' width='100%' height='650px' src='/modules/search/search_iframe.php?"+querystring+"' frameborder='0'></iframe>";


	}

}


