var win1Open = null
var win2Open = null
function openPopUp(windowURL, windowName, windowWidth, windowHeight)
{
  var winHandle = window.open(windowURL,windowName,"toolbar=no,scrollbars=yes,resizable=yes,width=" + windowWidth + ",height=" + windowHeight)
  return winHandle
}

function winClose()
{    // close all open pop-up windows   
  if(win1Open != null) win1Open.close() 
  if(win2Open != null) win2Open.close() 
}

function openPopUpWindow(){}  // does nothing but required by JavaScript & shows in status bar


// improved openPopUp function for Netscape 3+ 
function openPopUp(windowURL, windowName, windowWidth, windowHeight)
{
	var winHandle = window.open(windowURL,windowName,"toolbar=no,scrollbars=yes,resizable=yes,width=" + windowWidth + ",height=" + windowHeight)
	if(winHandle != null) winHandle.focus() //brings window to top
	return winHandle
}
