function openwindow(theURL,winName,width,height) {
    	popup = window.open(theURL,winName,'width=' + width + ',height=' + height + ',resizable=no,scrollbars=no,menubar=no,toolbar=no,location=no,directories=no,status=no');
	moveToCenter (popup,width,height);
}
function moveToCenter (wind, winX, winY) {
	screenWidth = screen.availWidth;
	screenHeight = screen.availHeight;
	finalX = (screenWidth / 2) - (winX/2);
	finalY = (screenHeight / 2) - (winY/2);
	wind.moveTo (finalX, finalY);
	wind.focus();
}
function openwindow_full(fichier,nom)
{	var floater = null;
	var chaine = 'width='+(screen.width)+',height='+(screen.height+10)+',toolbars=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no';
	floater=window.open(fichier,nom,chaine);
	floater.moveTo(-4,-25);
}
function shake(n)
{ 
  var i,j; 
  if(top.moveBy)
  { 
    for(i=10; i>0; i--)
      for(j=n; j>0; j--)
	  {
        top.moveBy(0,i); 
        top.moveBy(i,0); 
        top.moveBy(0,-i); 
        top.moveBy(-i,0); 
      } 
  } 
} 
