<!-- -------------This adjusts width & height of new windows for IE-->
{	if (navigator.appName == 'Netscape')
	{
		adjWidth =  0;
		adjHeight = 0;
	}
	else
	{ //if MIE: add necessary px
		adjWidth =  0;
		adjHeight =  -19;
	}
}
<!-- -------------This adjusts width & height of new windows for IE-->
<!-- -------------This will open a new window and center it on the screen-->
var newWindow = null;
function openNewWindow(url,name,w,h)
	{
var neww = (adjWidth - (-w));
var newh = (adjHeight - (-h));
var winl = (screen.availWidth - neww) / 2;
var wint = ((screen.availHeight - newh) - 80) / 2;
  if (newWindow != null && newWindow.open) newWindow.close();
  newWindow = window.open(url,name,"toolbar=yes,location=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + neww + ",height=" + newh + ",top=" + wint + ",left=" + winl);
	}
<!-- -------------This will open a new window and center it on the screen-->




<!-- -------------This will open a new window and center it on the screen-->
var newWindow = null;
function openPopup(url,name,w,h)
	{
var neww = (adjWidth - (-w));
var newh = (adjHeight - (-h));
var winl = (screen.availWidth - neww) / 2;
var wint = ((screen.availHeight - newh) - 80) / 2;
  if (newWindow != null && newWindow.open) newWindow.close();
  newWindow = window.open(url,name,"toolbar=no,location=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + neww + ",height=" + newh + ",top=" + wint + ",left=" + winl);
	}
<!-- -------------This will open a new window and center it on the screen-->


