function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
function afficher(img,titre,desc)
	{
		if (document.layers)
			{var skn = eval(document.zone);}
		else
			{
				if (document.getElementById)
					{var skn= eval("document.getElementById('zone')");}
				else
					{if (document.all){var skn = eval(document.all.zone);}}
			}
			var maxWidth = 450;
			var maxHeight = 250;
			// Declarations des variables "Nouvelle Taille"
			var dW = 0;
			var dH = 0;
			// Declaration d'un objet Image
			var oImg = new Image();
			// Affectation du chemin de l'image a l'objet
			oImg.src = img;
			// On recupere les tailles reelles
			var h = dH = oImg.height;
			var w = dW = oImg.width;
			// Si la largeur ou la hauteur depasse la taille maximale
			if ((h >= maxHeight) || (w >= maxWidth)) {
			// Si la largeur et la hauteur depasse la taille maximale
			if ((h >= maxHeight) && (w >= maxWidth)) {
			  // On cherche la plus grande valeur
			  if (h > w) {
				dH = maxHeight;
				// On recalcule la taille proportionnellement
				dW = parseInt((w * dH) / h, 10);
			  } else {
				dW = maxWidth;
				// On recalcule la taille proportionnellement
				dH = parseInt((h * dW) / w, 10);
			  }
			} else if ((h > maxHeight) && (w < maxWidth)) {
			  // Si la hauteur depasse la taille maximale
			  dH = maxHeight;
				// On recalcule la taille proportionnellement
			  dW = parseInt((w * dH) / h, 10);
			} else if ((h < maxHeight) && (w > maxWidth)) {
			  // Si la largeur depasse la taille maximale
			  dW = maxWidth;
				// On recalcule la taille proportionnellement
			  dH = parseInt((h * dW) / w, 10);
			}
			}
			var content ="<img style='border:1px solid black' width='"+dW+"' height='"+dH+"' src='"+img+"'align='center'><br><b>"+titre+"</b> <br>"+desc+"<br><BR>";
			skn.innerHTML = content;
	}