// wuphys js
function NewWindow(tompage, tomname, w, h, scroll,tools,status) {
	var winl = (screen.width - w) / 8;
	var wint = (screen.height - h) / 8;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable,menubar=yes,toolbar='+tools+',location='+status+',status='+status;
	win = window.open(tompage, tomname, winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

var popUpWin=0;
function NewWindow2(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=yes,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

var popUpWin3=0;
function NewWindow3(URLStr, left, top, width, height,location,status)
{
  if(popUpWin3)
  {
    if(!popUpWin3.closed) popUpWin3.close();
  }
  popUpWin3 = open(URLStr, 'popUpWin', 'toolbar=no,location='+location+'no,directories=no,status='+status+',menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}