function PopupPic (theURL) {
	var protocol ="";
	var basePath = new String (window.location);
	// for debug purposes uncomment next line
	// var protocol = "file:///t:";
	// for staging purposes uncomment next line
	// var protocol = "/teufelskerle";
	
	// extract base path of document
	basePath = basePath.substring(0, basePath.lastIndexOf("/")+1)
	// show photo with absolute (i.e. basePath + theURL) HREF
	// assume theURL being relative to the base of the calling document
	window.location = protocol + "/global/photo.html?"+ basePath + theURL;
}

