function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function newWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var myTWin = window.myTWin;

function OpenMyWin(link,winName,width,height)
{
  var retValue=true;
  if (myTWin!=null && !myTWin.closed)
  {
    myTWin.focus();
    myTWin.location.href=link.href;
  }
  else
  {
    myTWin=window.open(link.href,winName, "toolbar=0, status=0, menubar=0, scrollbars=0, resizable=0, width="+width+", height="+height);
    if (myTWin==null || typeof(myTWin)=="undefined")
      retValue=false;
    else
    {
      link.target=winName;
      myTWin.focus();
    }
  }
  return retValue;
}

function printok() {
  window.print();
  window.close();
  }
