var childWin = null;
var windowName = "Baroque Music Player";

function popUp(mylink)
{

	var href;
	if (typeof(mylink) == 'string')
		href=mylink;
	else
		href=mylink.href;
	poponload(href);
	return false;
}


function OpenAudio(URL) {
	if (childWin) 
	{
		if (childWin.closed) 
		{
			childWin = null;
			return popUp(URL)
		} 
		else 
		{
			childWin.focus()
			return false;
		}
	} 
	else 
	{
		return popUp(URL);
	}
}

function poponload(href)
{
childWin = window.open (href, "mywindow",
    "location=0,status=1,scrollbars=0,toolbar=0,width=376,height=171");
childWin.moveTo(0,0);
childWin.focus();
}
