// JavaScript Document

var popUpWin=0;

function popUp(URLStr, width, height)
{
var top=(screen.height-height)/2;     
var left=(screen.width-width)/2;
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=yes,scrollbars=no,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

var popUpWinCat = 0;

function popUpCatalogue(URLStr, width, height)
{

var top=(screen.height-height)/2;     
var left=(screen.width-width)/2;

  if(popUpWinCat)
  {
    if(!popUpWinCat.closed) popUpWinCat.close();
  }
  popUpWinCat = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function affiche(element)
	{
		var targetElement;
		targetElement = document.getElementById(element) ;
		if (targetElement.style.display == "none")
		{
			targetElement.style.display = "" ;
		} else {
			targetElement.style.display = "none" ;
		}
}