function openFocusWindow(theURL, winName, features)
{
  newWindow = window.open(theURL, winName, features);
  newWindow.focus();
}

function picturePopup(imageName, winName,alt)
{
	var xPos = Math.abs((screen.width-100)/2);
	var yPos = Math.abs((screen.height-100)/2);
	var imgWidth = 0;
	var imgHeight = 0;
	var tmp = new Image();
	tmp.imageName = imageName;
	tmp.alt = alt;
	tmp.newWindow = window.open('', winName, "width=100,height=100,left="+xPos+",top="+yPos);
	tmp.onload = function() {
		var xPos = Math.abs((screen.width-this.width)/2);
		var yPos = Math.abs((screen.height-this.height)/2);
		this.newWindow.moveTo(xPos,yPos);
		this.newWindow.document.open();
		this.newWindow.document.write('<html><title>'+this.alt+'</title>');
		this.newWindow.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
		this.newWindow.document.write('<center><img name="myImg" src='+this.imageName+'></center>');
		this.newWindow.document.write('</body></html>');
		this.newWindow.document.close();
		this.newWindow.resizeBy(this.width-this.newWindow.document.body.clientWidth,this.height-this.newWindow.document.body.clientHeight);
		this.newWindow.focus();
	}
	tmp.src=imageName;
}

function popup()
{
	picturePopup('images/spectacle.jpg', 'spectacle', 'D&icirc;ner spectacle');
}