/* (c) 2002 ST Communications.  All Rights Reserved. */
var wndHelp=null;
var wndMisc=null;
function showHelp(message)
{
  var url,width,height,couleurFond,fond,couleurTexte,typePolice,tailleCaracteres;
  url = '';
  width = 350; height = 125;
  couleurFond = '#FAF7C0';
  fond = '';
  couleurTexte = '#000000';
  typePolice = 'Times New Roman';
  tailleCaracteres = 3;

  openWindow(url,width,height,message,couleurFond,fond,couleurTexte,typePolice,tailleCaracteres)
}
function CloseWindow()
{
	if(wndHelp!=null && wndHelp.open)
		wndHelp.close()
	if(wndMisc!=null && wndMisc.open)
		wndMisc.close()
}
window.onfocus=CloseWindow;

function openWindow(url,width,height,message,couleurFond,fond,couleurTexte,typePolice,tailleCaracteres)
{
  var LeftPosition, TopPosition;
  LeftPosition=(screen.width)?(screen.width/2-width/2-10):100;
  TopPosition=0;
  wndHelp = window.open(url,'help','top='+TopPosition+',left='+LeftPosition+',toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+ width +',height='+ height+'');
  var texte = '<' + 'HTML' + '><' + 'HEAD' + '><' + 'TITLE' + '>http://www.eggstat.com</' + 'TITLE' + '><' + '/HEAD' + '><' + 'BODY BACKGROUND=' + '"' + fond + '"' + ' BGCOLOR=' + '"' + couleurFond + '">';
  texte += '<CENTER>';
  texte +='<FONT FACE="' + typePolice +'"';
  texte += ' SIZE=' + tailleCaracteres;
  texte += ' COLOR=' + '"' + couleurTexte +'">';
  texte += message + '</CENTER></FONT>';
  texte += '</' + 'BODY' + '><' + '/HTML' + '>';
  wndHelp.document.write(texte);
  if(wndHelp.focus)
	wndHelp.focus();
  wndHelp.document.close();
  return false;
}

function openURL(url,width,height)
{
  var LeftPosition, TopPosition;
  LeftPosition=(screen.width)?(screen.width/2-width/2-10):100;
  TopPosition=10;
  wndMisc = window.open(url,'misc','top='+TopPosition+',left='+LeftPosition+',toolbar=yes,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+ width +',height='+ height+'');
  if(wndMisc.focus)
	wndMisc.focus();
  return false;
}

