if (self != top) top.location.href = window.location.href;
function openWindowCenter(x,y,url)
{
  var xMax = 640, yMax=480;
  if (document.all) var xMax = screen.width, yMax = screen.height;
  else if (document.layers) var xMax = window.outerWidth, yMax = window.outerHeight;
  var xOffset = (xMax - x)/2, yOffset = (yMax - y)/2;
  msgWindow = window.open(url,'newWin','directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,width='+x+',height='+y+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
}

