// Adaptation de la taille en fonction du navigateur (surtout pour Mac)
var frameWidth = 0;
var frameHeight = 0;

if (self.innerWidth)
{
  frameWidth = self.innerWidth;
  frameHeight = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientWidth)
{
	frameWidth = document.documentElement.clientWidth;
	frameHeight = document.documentElement.clientHeight;
}
else if (document.body)
{
	frameWidth = document.body.clientWidth;
	frameHeight = document.body.clientHeight;
}

self.moveTo(( aW-popW )/2, ( aH-popH-1.5*titlebarHeight-1.5*toolbarHeight-1.5*menubarHeight )/2);
resizeBy(popW-frameWidth, popH-frameHeight);
self.focus();

