var popbackground="white";

function detectexist(obj){ 
	return (typeof obj !="undefined");
	}

function jkpopimage (imgpath, popwidth, popheight, textdescription, title) {
leftpos=(detectexist(window.screenLeft)) ? screenLeft+document.body.clientWidth/2-popwidth/2 : detectexist(window.screenX)? screenX+innerWidth/2-popwidth/2 : 0;
toppos=(detectexist(window.screenTop)) ? screenTop+document.body.clientHeight/2-popheight/2 : detectexist(window.screenY)? screenY+innerHeight/2-popheight/2 : 0;
if (window.opera){
	leftpos-=screenLeft;
	toppos-=screenTop;
}

var winattributes='width='+popwidth+',height='+popheight+',scrollbars=no,resizable=no,left=400,top=100';

	if (typeof jkpopwin=="undefined" || jkpopwin.closed) { 
		jkpopwin=window.open("","",winattributes)
		}
		
jkpopwin.document.open();
jkpopwin.document.write('<html><head><title>'+title+' '+textdescription+'</title></head><body style="margin-top:0px;margin-left:0px;padding:0px" topmargin="0" leftmargin="0"><img src="'+imgpath+'" style="border:0px" alt="'+textdescription+'" /></body></html>');
jkpopwin.document.close();
jkpopwin.focus();
}