function imagepopup(fn,w,h) {
	var st = (document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);

	var tmp = document.getElementById('imagepopup');
	if (tmp) tmp.parentNode.removeChild(tmp);

	var div = document.createElement('DIV');
	div.id='imagepopup';
	div.style.position='absolute';
	div.style.top=(st+137)+'px';
	div.style.width='100%';
	div.style.textAlign='center';

	var adiv = document.createElement('SPAN');
	adiv.style.position='absolute';
	adiv.style.marginTop='25px';
	adiv.style.marginLeft='25px';
	adiv.style.background='white';
	adiv.style.color='black';
	adiv.style.cursor='pointer';
	adiv.onclick=function() { this.parentNode.parentNode.removeChild(this.parentNode); }
	adiv.style.opacity=0.75;
	adiv.style.padding='5px';
	//adiv.style.marginRight='-'+w+'px';
	adiv.innerHTML='sluiten';

	var img = document.createElement('IMG');
	img.style.width=w+'px';
	img.style.height=h+'px';
	img.style.border='20px #4c240e solid';
	img.src=fn;
	div.appendChild(adiv);
	div.appendChild(img);

	var body = document.getElementsByTagName('BODY');
	body[0].appendChild(div);
}
