function popup(url) {
	var width  = 700;
	var height = 670;
	var left   = (screen.width  - width)/2;
	var top    = (screen.height - height)/2;
	var scr = 'width='+width+', height='+height;
	scr += ', top='+top+', left='+left;
	scr += ', directories=no';
	scr += ', location=no';
	scr += ', menubar=no';
	scr += ', resizable=no';
	scr += ', scrollbars=no';
	scr += ', status=no';
	scr += ', toolbar=no';
	openWindow = window.open(url,'windowname', scr);
		if (window.focus) {
			openWindow.focus()
		}
		return false;
}

function popImage(imageURL){
	var width  = 150;
	var height = 100;
	var left = 100;
	var top = 100;
	var scr = 'width='+width+', height='+height;
	scr += ', top='+top+', left='+left;
	scr += ', directories=no';
	scr += ', location=no';
	scr += ', menubar=no';
	scr += ', resizable=no';
	scr += ', scrollbars=no';
	scr += ', status=no';
	scr += ', toolbar=no';
	newImage = window.open('about:blank','',scr);
	with (newImage.document){
		writeln('<html><head><title>KPL (at) Delta Chapter</title><style>body{border:0;margin:0px;}</style>');
		writeln('<sc'+'ript>');
		writeln('function reSizeToImage(){');
		writeln('window.resizeTo(600,600);');
		writeln('width=600-(document.body.clientWidth-document.images[0].width);');
		writeln('height=600-(document.body.clientHeight-document.images[0].height);');
		writeln('window.resizeTo(width,height);}');
		writeln('</sc'+'ript>');
		writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage()">');
		writeln('<a href="javascript:window.close();"><img src='+imageURL+' alt="Click to Close"></a></body></html>');
		close();
	}
}