/* Function for opening link in a new window.
   Function for opening a popup window.

*/

/* ---------- function new_window --------------- */
function new_window(theLink)
{
  window.open(theLink);
  return false;
}

/* ---------- function popUpWindow --------------- */
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
  return false;
}

