/*******************************************************************************
 * PopUps.js
 *
 * 	Create pop-up windows given the URL, width, height
 *
 * Revision History:
 *
 * January 2008 Kraig Kistler
 *		-	created
 *******************************************************************************/

//PASS WIDTH AND HEIGHT
function ShowPopup(popupURL, intWinWidth, intWinHeight) 
{
  var now = new Date();
  var x, y;
  
  if (intWinWidth == '')
    intWinWidth = 400;
  if (intWinHeight == '')
    intWinHeight = 500;
  
  //Position coordinates
  x = screen.width - (intWinWidth + 10);
  y = 0;
  
  //Show the popup window
  var popup = window.open(popupURL,"Definitions",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=' + intWinWidth + ',height=' + intWinHeight + ',top=' + y + ',left=' + x);
  popup.focus();
}

//PASS TITLE, WIDTH AND HEIGHT
function ShowPopup2(popupURL, sTitle, intWinWidth, intWinHeight) 
{
  var now = new Date();
  var x, y;
  
  if (intWinWidth == '')
    intWinWidth = 400;
  if (intWinHeight == '')
    intWinHeight = 500;
  
  //Position coordinates
  x = screen.width - (intWinWidth + 10);
  y = 0;
  
  //Show the popup window
  var popup = window.open(popupURL, sTitle ,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=' + intWinWidth + ',height=' + intWinHeight + ',top=' + y + ',left=' + x);
  popup.focus();
}

