/****************************************************************************************
DYNPOPUP (Popup dynamique)

Version 0.9.7

Copyright (C) 2006-2007  Sylvain FATOME
This program is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation; 
either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program
(in the directory docs); 
if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
Boston, MA  02110-1301, USA.

Contact : galawa@free.fr

Web : http://smitst.homelinux.com
****************************************************************************************/

<!-- Fonction afficher une popup centrée -->
function popupon(idobjet)
{
	if (idobjet)
	{
		objet=document.getElementById(idobjet);
		var top=Math.floor((screen.height-objet.offsetHeight)/2);
		var left=Math.floor((screen.width-objet.offsetWidth)/2);
		objet.style.top=top+"px";
		objet.style.left=left+"px";
		objet.style.visibility="visible";		
	}
}

<!-- Fonction cacher une popup -->
function popupoff(idobjet)
{
	if (idobjet)
	{
		objet=document.getElementById(idobjet);
		objet.style.visibility = "hidden";
	}
}

