  /*
********************************************************
FUNCTIONS IN THIS FILE
********************************************************
  centerPopUp(strUrl, strName, intHeight, intWidth)
  CloseWindow()
********************************************************
PAGE-LEVEL VARIABLES
********************************************************
*/
var newWindow;

function centerPopUp(strUrl, strName, intHeight, intWidth){
  var screenHeight;
  var screenWidth;
  var strOpener;
  var xCenter;
  var yCenter;  
  
  strOpener =   "height=" + intHeight + ",innerHeight=" + intHeight + ",width=" + intWidth;
  strOpener +=  ",innerWidth=" + intWidth;
	if (window.screen) 
	{
		screenHeight = screen.availHeight - 30;
		screenWidth = screen.availWidth - 10;
		xCenter = (screenWidth - intWidth) / 2;
		yCenter = (screenHeight - intHeight) / 2;
		strOpener += ",left=" + xCenter + ",screenX=" + xCenter;
		strOpener += ",top=" + yCenter+ ",screenY=" + yCenter;
	}
	strOpener = strOpener += ", menubar=no, scrollbars=no, status=0, location=0, directories=0, resizable=1";
	newWindow = window.open(strUrl, strName, strOpener);
	//return window.open(strUrl, strName, strOpener);
	newWindow.focus();
	return newWindow;
}


function openNew(sUrl){
  var screenHeight;
  var screenWidth;
  var strOpener;
  var xCenter;
  var yCenter;  
  var newWindow; 
  
  strOpener = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=450,height=450";
  if (window.screen) 
	{
		screenHeight = screen.availHeight - 30;
		screenWidth = screen.availWidth - 10;
		xCenter = (screenWidth - 450) / 2;
		yCenter = (screenHeight - 450) / 2;
		strOpener += ",left=" + xCenter + ",screenX=" + xCenter;
		strOpener += ",top=" + yCenter+ ",screenY=" + yCenter;
	}
  
  //newWindow = window.open(sUrl, "newWindow", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=450,height=400"); 
  newWindow = window.open(sUrl, "newWindow", strOpener); 
  newWindow.focus();
}



function CloseWindow()
{
	self.close();
}