function getwindowsize() {	if (navigator.userAgent.indexOf("MSIE") > 0) {		xs = document.body.clientWidth;		ys = document.body.clientHeight;	} else {		xs = window.outerWidth;		ys = window.outerHeight;	}}function naarhetmidden() {	getwindowsize();	//alert("x: " + xs);	//alert("y: " + ys);	//alert("helft-x: " + parseInt(xs/4));	//alert("helft-y: " + parseInt(ys/4));	//alert("xs: " + xs + "  ys: " + ys + "  xs/4: " +  parseInt(xs/4) + "  ys/4: " + parseInt(ys/4) );	//alert( parseInt((dx/2)-(xs/2)) + " - " + parseInt((dy/2)-(ys/2)) );	if (document.location.href.indexOf("?")>0) {		varurl = document.location.href;		gesplitst = varurl.split('?');		vartox = gesplitst[1].split('&');		toisx = vartox[0].split('x=');		tox = toisx[1];		if (tox>0 && document.location.href.indexOf("&")>0) {			vartoy = gesplitst[1].split('&');			toisy = vartoy[1].split('y=');			toy = toisy[1];			// alert("tox: " + tox + "  toy: " + toy);						// nu de nieuwe coordinaten gebruiken als midden, en het schermvenster verschil eraf halen			// alleen als er een geldige tox en toy uitkomt!			if (tox>0 && toy>0) {				//alert("tox: " + tox + "  toy: " + toy);				window.scrollTo(parseInt(tox-(xs/2)),parseInt(toy-(ys/2)));			}		}	} else {		// schermgrootte uit html-bestand delen door 2 en daar de helft van schermgrootte afhalen		window.scrollTo(parseInt((dx/2)-(xs/2)),parseInt((dy/2)-(ys/2)));	}}
