function openpopup(){
	var fenetre=window.open('', 'popup', 'width=810,height=600,scrollbars=1,resizable=1,left=' + ((screen.width - 820)/2) + ',top=100');	
	fenetre.focus();
	}
function openpopupnews(){
	var fenetre=window.open('', 'popup', 'width=810,height=600,scrollbars=1,resizable=1,left=' + ((screen.width - 820)/2) + ',top=100');	
	fenetre.focus();
	}
function openpopupparutionpresse(){
	var fenetre=window.open('', 'popup', 'width=810,height=600,scrollbars=1,resizable=1,left=' + ((screen.width - 820)/2) + ',top=100');	
	fenetre.focus();
	}

//popup plein-ecran
function openpopupfull(){
	var fenetre=window.open('', 'fullpopup', 'fullscreen=yes,titlebar=yes,menubar=no,scrollbars=no,resizable=no,status=yes');
	fenetre.resizeTo(screen.availWidth,screen.availHeight);
	fenetre.moveTo(0,0);
	fenetre.focus();
	}






function randomchiffre(nbr) {
		var chaine="";
		var lettres = new Array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z");
		for (i=0; i<nbr; i++)
		{
			var nombre=Math.round(Math.random()*25);			
			chaine += lettres[nombre];
		}
		document.form.password.value = chaine;
	}

//effet de survol de images
var currentdiv=false;
if (document.captureEvents) {document.captureEvents(Event.MOUSEMOVE); } 

function roll(id,visible,e){
	var style = eval("document.getElementById(\""+id+"\").style");
	currentdiv = style;
	if (document.documentElement && document.documentElement.scrollTop) var scrollY = eval("document.documentElement.scrollTop");
	else if (document.body) var scrollY = eval("document.body.scrollTop");	
		
		if(navigator.appName.substring(0,3) != "Net"){// positionement avant affichage
			style.top=e.clientY+20+scrollY;
			style.left=e.clientX-125;
		} else {// pour netscape
			style.top = e.pageY+10+scrollY;
			style.left = e.pageX-125;
		}
		style.visibility=(visible)? "visible":"hidden";
}

function moving(e,id){
		//var style = eval("document.getElementById(\""+id+"\").style");
		//currentdiv = style;
		
		if (document.documentElement && document.documentElement.scrollTop){
			var scrollY = eval("document.documentElement.scrollTop");
			
		}
		else if (document.body) var scrollY = eval("document.body.scrollTop");
		
		if(currentdiv != false){
			
			if(navigator.appName.substring(0,3) != "Net"){
				//alert ("tot");
				currentdiv.top=e.clientY+20+scrollY;
				currentdiv.left=e.clientX-125;
			} else {
				currentdiv.top = e.clientY+20+scrollY+"px";
				currentdiv.left = e.clientX-125+"px";
				
				
			}
		} 
}


