// Call with <A HREF="nrl.html" onclick="return popupnr(this, 'music')">music</A>

// Another version of this is in submit.js
var popupwindows = new Array();

function popupnr( url, windowname, refocus, width, height )
{
	if(typeof(popupwindows[windowname])!='undefined')
	  newwindow = popupwindows[windowname];
	else newwindow=null;

  if (newwindow==null || newwindow.closed || !newwindow.location) 
	{
		newwindow=window.open(url,windowname,'width='+width+',height='+height+',status=1,scrollbars=no,resizable=1');
		if (!newwindow.opener) newwindow.opener = self;
		popupwindows[windowname]=newwindow;
	}
	if (window.focus) { newwindow.focus() }
	return false;
}
