function pop(page,largeur,hauteur){
	var top		= (screen.height-hauteur)/2;
	var left	= (screen.width-largeur)/2;
	var fenetre = window.open(page,"pop_up"+Math.round((Math.random()*10000000000000)),"top="+top+",left="+left+",width="+largeur+", height="+hauteur+", resizable=yes,scrollbars=yes");
	fenetre.focus();
}
function pop2(page,largeur,hauteur){
	var top		= (screen.height-hauteur)/2;
	var left	= (screen.width-largeur)/2;
	var fenetre = window.open(page,"pop_up"+Math.round((Math.random()*10000000000000)),"top="+top+",left="+left+",width="+largeur+", height="+hauteur+",scrollbars=yes,status=yes,toolbar=yes,resizable=yes,menubar=yes,location=yes");
	fenetre.focus();
}
function pop3(page,largeur,hauteur){
	var top		= (screen.height-hauteur)/2;
	var left	= (screen.width-largeur)/2;
	var fenetre = window.open(page,"pop_up"+Math.round((Math.random()*10000000000000)),"top="+top+",left="+left+",width="+largeur+", height="+hauteur+",scrollbars=no,status=no,toolbar=no,resizable=no,menubar=no,location=no");
	fenetre.focus();
}

//

function timerRedirect(temps,myUrl){counter=setTimeout("redirect('"+myUrl+"')", temps*1000);}
function redirect(myUrl){document.location.href = myUrl;}

function setClassName(oElm,className){oElm.className = className;}

function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
		window.onload = func;
	}else{
		window.onload = function(){
			if (oldonload){oldonload();}
	      	func();
	    }
	}
}
// addLoadEvent(nameOfSomeFunctionToRunOnPageLoad);
//addLoadEvent(function(){setClassName(document.body,'');});
