//initially sets the popup to null
var poppedWindow = null;

function popUp(URL) {
day = new Date();
id = day.getTime();

if (poppedWindow == null){
	poppedWindow = window.open(URL, 'Lens', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=425,height=350');
}else{
poppedWindow.location.href = URL;
}
}

//cleans up The parent page with the links and sets it to null
function cleanupParent() {
	poppedWindow = null;
}