var bigImage;
var url;
var title;

function handlerFunction()
{
	var windowHandle = window.open("", "", "toolbar=no, location=no, menubar=no, scrollbars=no, status=no, width=" + bigImage.width + ", height=" + bigImage.height);
	windowHandle.document.writeln("<html><head><title>" + title + "</title></head>");
	windowHandle.document.writeln("<body style='margin-top: 0; margin-left: 0; cursor: pointer;' marginheight='0' marginwidth='0'>");
	windowHandle.document.writeln("<img src='" + url + "' onclick='window.close()' title='Klik om dit venster te sluiten'>");
	windowHandle.document.writeln("</body></html>");
	windowHandle.document.close();	
}

function fullsize(someUrl, someTitle)
{
	url = someUrl;
	title = someTitle;
	bigImage = new Image();
	bigImage.onload = handlerFunction;
	bigImage.src = url;
}
