// THIS CODE OPENS A POP-UP WINDOW

var popUpWin=0;

function popUpGlossary(term){
	popUpWindow('/glossary/genGlossaryPopUp.asp?Term=' + escape(term), 0, 0, 350, 300, 'glossary', 'yes')
}

function popUpWindow(URLStr, left, top, width, height, winName, scrollbar) {
if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 800, yMax=600;

    var xOffset = (xMax - width)/2;
	var yOffset = (yMax - height)/2;


  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, winName, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scrollbar+',resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+xOffset+', top='+yOffset+',screenX='+xOffset+',screenY='+yOffset+'');
  popUpWin.focus();	
}

function popUpWindow_resizable(URLStr, left, top, width, height, winName, scrollbar,resizable) {
if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 800, yMax=600;

    var xOffset = (xMax - width)/2;
	var yOffset = (yMax - height)/2;


  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, winName, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scrollbar+',resizable='+resizable+',copyhistory=yes,width='+width+',height='+height+',left='+xOffset+', top='+yOffset+',screenX='+xOffset+',screenY='+yOffset+'');
  popUpWin.focus();	
}
