// Javascript Document

function popImage(imageURL,imageTitle,_width,_height){
	leftPos = 0;
	topPos = 0;
	if (screen) {
		leftPos = (screen.width / 2) - _width/2;
		topPos = (screen.height / 2) - _height/2;
	}
	mywindow = window.open ("about:blank","imageWindow","location=0, status=1, scrollbars=0, width="+_width+", height="+_height+", left="+leftPos+",top="+topPos);
	with (mywindow.document){
		writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');
		writeln('<sc'+'ript>');
		writeln('function doTitle(){document.title="'+imageTitle+'";}');
		writeln('</sc'+'ript>');
		writeln('</head><body bgcolor=000000 scroll="no" onload="doTitle();self.focus()">');
		writeln('<img name="Harster Image" src='+imageURL+' style="display:block"></body></html>');
		close();		
	}
}
