function getImage(windowTitle, fileName, windowWidth, windowHeight)
	{
//	var location = '../../OneAndOne/wrenbury/';
//	fileName = location + fileName;
	openWindow(windowTitle, fileName, windowWidth, windowHeight);
	}

function openWindow(windowTitle, fileName, windowWidth, windowHeight)
	{
	var winStats = 'toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,width=';
	winStats += windowWidth;
	winStats += ', height=';
	winStats += (windowHeight + 32);		// allow extra height for close button
	
	// build up call to displayed file now for simplicity

	var sourceCall = '<img src="' + fileName + '" width="' + windowWidth + '" height="' + windowHeight + '" border="0" alt="" onmousedown="copywarn()" />';

	// open new window

	floater=window.open("","",winStats);

	// build up HTML in new window to display selected picture, with close button and required header

	floater.document.open();
	floater.document.writeln("<head>");
	floater.document.writeln("<title>" + windowTitle + "</title>");
	floater.document.writeln("<script type='text/javascript'>");
	floater.document.writeln("function copywarn()");
	floater.document.writeln("{");
	floater.document.writeln("if (event.button==2)");
	floater.document.writeln("{");
	floater.document.writeln("alert ('© Wrenbury Village Website');");
	floater.document.writeln("}}");
	floater.document.writeln("</script>");
	floater.document.writeln("<meta http-equiv='imagetoolbar' content='no' />");
	floater.document.writeln("</head>");
	floater.document.writeln("<body style='margin:0'>");
	floater.document.writeln("<div align='center'>");
	floater.document.writeln(sourceCall);
	floater.document.writeln("<input type='button' value='Close window' style='cursor:hand' onclick='self.close()'>");
	floater.document.writeln("</div>");
	floater.document.writeln("</body>");
	floater.document.writeln("</html>");
	floater.document.close();
	floater.focus();
	}