function OpenPopup(url,dimX,dimY)
{
	x = (screen.width-dimX)/2;
	y = (screen.height-dimY)/2;
	/*window.open(url,'',"width ="+dimX+",height="+dimY+",status = no,left="+x+",top="+y);*/
	window.open(url,'',"width ="+dimX+",height="+dimY+",status = no,toolbar=no,menubar=no,location=no, scrollbars=no, resizable=yes, fullscreen = no,left="+x+",top="+y);
}

function ferme()
{
	window.close();
}

function ouvreAdresse(url)
{
	window.opener.location.href = url;
	window.close();
}

var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari";
else if (checkIt('omniweb')) browser = "OmniWeb";
else if (checkIt('opera')) browser = "Opera";
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab";
else if (checkIt('msie')) browser = "MSIE";
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator";
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac";
	else if (checkIt('win')) OS = "Windows";
	else OS = "an unknown operating system";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

function montre (id) {
	var e = document.getElementById (id);
	if (e.style.display == "none") {
		e.style.display = "block";
	} else {
		e.style.display = "none";
	}
}


