	// -----------------------------------------------------------------------
	// NAVIGATEUR
	var NS4 = (document.layers) ? 1 : 0;
	var NS6 = (document.getElementById) ? 1 : 0;
	var IE4 = (document.all) ? 1 : 0;

	// -----------------------------------------------------------------------
	// OUVERTURE DE POP UP
	function openWindow(url, name, w, h, r, s, m,left, top) {
		popupWin = window.open(url, name, 'width=' + w + ',height=' + h + ',resizable=' + r + ',scrollbars=' + s + ',menubar=' + m + ',left=' + left + ',top=' + top);
	}
	// -----------------------------------------------------------------------
	// OUVERTURE DE POP UP
	function seeImage(url, w, h) {
		percent=0;
		if(w>screen.availWidth){
			nw=screen.availWidth-100;
			percent=100*nw/w;
			nh=percent*h/100;
		}else{
			nw=w;
			nh=h;
		}
		if((h>screen.availHeight && percent==0) || (nh>screen.availHeight)){
			nh=screen.availHeight-100;
			percent=100*nh/h;
			nw=percent*w/100;
		}else{
			nw=w;
			nh=h;
		}		popupWin = window.open('popup.php?img='+url, 'image', 'width=' + nw + ',height=' + nh + ',resizable=no,scrollbars=no,menubar=no,left=0,top=0');
	}

	function swapImg(imgFile, imgName){
		if (document.images){
			var img2load= new Image();
			img2load.src = imgFile;
			document[imgName].src = img2load.src;
		}
	}

	// -----------------------------------------------------------------------
	// VALIDATION D'UN EMAIL
	function checkMail(MAIL){
		var x = MAIL;
		var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		if (filter.test(x)) {
			return false;
		}else{
			return true;
		}
	}

	function changeDisplay(div, displayStyle){
		if (NS4) { 
			modMC = document[div];
		}else if (NS6) { 
			modMC = document.getElementById(div).style;
		}else if (IE4) { 
			modMC = [div].style;
		}
		modMC.display=displayStyle;
	}
