
<!--
var gmyWin=null;

function myOpenWindow(winURL, winName, winFeatures, winObj)
{
  var theWin; // this will hold our opened window

  // first check to see if the window already exists
  if (winObj != null) {
    // the window has already been created, but did the user close it?
    // if so, then reopen it. Otherwise make it the active window.
    if (!winObj.closed) {
      winObj.focus();
      return winObj;
    }
    // otherwise fall through to the code below to re-open the window
  }

  // if we get here, then the window hasn't been created yet, or it
  // was closed by the user.
  theWin = window.open(winURL, winName, winFeatures);
  return theWin;
}

//-->



function closethis()
{
 if(false == mywin.closed) 
 {
   mywin.close ();
 }
 else
 {
    alert('Audio player already closed!');
 }
}



function popupnr(mylink, windowname, refocus)
{
var mywin, href;

if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
mywin = window.open('', windowname, 'width=700,height=350,scrollbars=no,resize=no,top=0,left=0');

// if we just opened the window
if (
   mywin.closed || 
   (! mywin.document.URL) || 
   (mywin.document.URL.indexOf("about") == 0)
   )
   mywin.location=href;
else if (refocus)
   mywin.focus();
return false;

}


