

//fonction d'ouverture de pop up
function AffichePopup(page,largeur,hauteur,scrollbar){
		var o;
		//pour centrer la popup
		var PosY = (screen.height-hauteur)/2;
		var PosX = (screen.width-largeur)/2;
		if(scrollbar) IsScroll = 1;
		else IsScroll = 0;
		o = window.open(page,'_blank','toolbar=0, location=0, directories=0, status=0, scrollbars='+IsScroll+', resizable=0, copyhistory=0, menuBar=0, width='+largeur+', height='+hauteur+', left='+PosX+', top='+PosY); 
		o.focus();
}

//ouverture du popup pour profil
function OuvrirProfil (url) { nomfenetre = Math.round(Math.random()*100000);  window.open (url, nomfenetre,"width=950,height=650,toolbar=no,location=no,status=no,scrollbars=1,menubar=no,resizable=yes,left=10,top=10") }






function on(x){q=x.bgColor;x.bgColor='#FFFF00';}
function off(x){x.bgColor=q;}
function cacher()
{
	var ns4=document.layers
	var ie4=document.all
	var ns6=document.getElementById&&!document.all
	if(ie4)
	{
		Layer1.style.visibility = 'hidden';
	}
	else if(ns4)
	{
		document.Layer1.visibility = 'hide';
	}
	else if(ns6)
	{
		var divns6 = document.getElementsByTagName("div")
		divns6['Layer1'].style.visibility = 'hidden';
	}
}