		<!--
		function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		function setFooter() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var contentHeight = document.getElementById('container').offsetHeight;
					var footerElement = document.getElementById('footer');
					var footerHeight  = footerElement.offsetHeight;
					if (windowHeight - (contentHeight + footerHeight) >= 0) {
						footerElement.style.position = 'relative'; 
						footerElement.style.top = (windowHeight - (contentHeight + footerHeight)) + 'px';
					}
					else {
						footerElement.style.position = 'static'; 
					}
				}
			}
		}
		window.onload = function() {
			setFooter();
		}
		window.onresize = function() {
			setFooter();
		}
		//-->
		
function supprimerErreurs() {
    return true;
}
window.onerror = supprimerErreurs;

function AdminLostPwd() {
var w = 640;
var h = 140;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../admin/lost.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}


function voir(numero,w,h,titre) {
w = w + 2;
h = h + 1;
window.open('../scripts/popup.php?id='+numero+'&texte='+titre,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function voirfl(numero,w,h) {
window.open('popup_flash.php?id='+numero,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

/*
function compo(numero,w,h) {
window.open('../equipe/liste.php?id='+numero,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}
*/

function infos(numero,w,h) {
window.open(numero,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function online_pop(numero,etape) {
var w = 500;
var h = 550;
window.open('../raid2003/vittel_amazones_online_stage.php?date='+numero+'&etape='+etape,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function map2004(numero,w,h) {
// var w = 500;
// var h = 550;
window.open('../raid2004/parcours_popup.php?map='+numero,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=20,top=0');
}

function pop_pdf(etape,serie,w,h) {
window.open('../raid2003/pdf.php?etape='+etape+'&serie='+serie,"",'toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+w+',height='+h+',left=50,top=50');
}

function compo(numero,w,h) {
window.open('../raid2003/compo.php?id='+numero,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function compo2004(pic,numero,w,h) {
window.open('../raid2004/equipecompo.php?id='+numero+'&pic='+pic,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function compo2005(pic,numero,w,h) {
var t = 168; // 102
window.open('../raid2005/equipecompo.php?id='+numero+'&pic='+pic,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+(h+t)+',left=10,top=10');
}

function compo2006(pic,numero,w,h) {
var t = 350; // 280
var tw = 24; // 24
window.open('../raid2006/equipecompo.php?id='+numero+'&pic='+pic,"",'toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width='+(w+tw)+',height='+(h+t)+',left=10,top=10');
}

function compo2008(pic,numero,w,h) {
var t = 350; // 280
var tw = 24; // 24
window.open('../raid2008/equipecompo.php?id='+numero+'&pic='+pic,"",'toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width='+(w+tw)+',height='+(h+t)+',left=10,top=10');
}

function compo2009(pic,numero,w,h) {
var t = 350; // 280
var tw = 24; // 24
window.open('../raid2009/equipecompo.php?id='+numero+'&pic='+pic,"",'toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width='+(w+tw)+',height='+(h+t)+',left=10,top=10');
}

function archive04() {
var w = 300;
var h = 112;
window.open('../raid2004/archive_email.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function dossier05() {
var w = 300;
var h = 112;
window.open('../inscription/dossier.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function archive() {
var w = 300;
var h = 112;
window.open('../raid2003/index_mail_archive.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function archive1() {
var w = 300;
var h = 112;
window.open('../raid2003/index_mail_archive1.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function mailpdf(numero) {
var w = 300;
var h = 112;
window.open('../raid2004/articles_pdf.php?id='+numero,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function mailResultat(numero) {
var w = 300;
var h = 112;
window.open('../raid2004/resultat_pdf.php?serie='+numero,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function resultatspdf(numero) {
var w = 300;
var h = 112;
window.open('../raid2003/resultats_pdf1.php?serie='+numero,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function video15(numero,etape) {
var w = 280;
var h = 200;
window.open('../raid2003/images_video/video15.php?date='+numero+'&etape='+etape,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function video16(numero,etape) {
var w = 280;
var h = 200;
window.open('../raid2003/images_video/video16.php?date='+numero+'&etape='+etape,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function video17(numero,etape) {
var w = 280;
var h = 200;
window.open('../raid2003/images_video/video17.php?date='+numero+'&etape='+etape,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function video18(numero,etape) {
var w = 280;
var h = 200;
window.open('../raid2003/images_video/video18.php?date='+numero+'&etape='+etape,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function video19(numero,etape) {
var w = 280;
var h = 200;
window.open('../raid2003/images_video/video19.php?date='+numero+'&etape='+etape,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function video20(numero,etape) {
var w = 280;
var h = 200;
window.open('../raid2003/images_video/video20.php?date='+numero+'&etape='+etape,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function finalR(numero,etape) {
var w = 280;
var h = 200;
window.open('../raid2003/images_video/final.php?date='+numero+'&etape='+etape,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=10,top=10');
}

function tf1(numero,etape) {
var w = 340;
var h = 100;
window.open('../share/tf1.php?date='+numero+'&etape='+etape,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=100,top=100');
}

function voeux() {
var w = 586;
var h = 376;
window.open('../voeux/index.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left=100,top=100');
}

function bd() {
var w = 634;
var h = 444;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../bande_dessinee/maurice.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function allImages() {
var w = 600;
var h = 600;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../raid2003/image_archive.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function episode() {
var w = 500;
var h = 300;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../intro/intro.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function video_srilanka() {
var w = 500;
var h = 300;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../intro/video.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function video_ilemaurice() {
var w = 580;
var h = 360;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../video/video.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function videoraid2004(vid) {
var w = 500;
var h = 300;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../intro/index.php?video='+vid,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function minute(tv) {
var w = 440; /* 500 */
var h = 486; /* 454 */
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../video/video.php?ontv=',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
// window.open('../intro/26minutes.php?ontv='+tv,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function meetingDemande(id) {
var w = 500;
var h = 400;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../meeting/demande.php?id='+id,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function kenyaShow(id,ur) {
var w = 620;
var h = 680;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../kenya/show.php?imgUrl='+id+'&xmlUrl='+ur,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function kenyaMapAvion() {
var w = 600;
var h = 600;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../raid2005/kenyamap.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function manewsletter() {
var w = 300;
var h = 240;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../abonne/newsletter.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function codeRSS() {
var w = 800;
var h = 620;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../rss/code.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function lankaShow() {
var w = 620;
var h = 650;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../kenya/show2004.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function AbAdd() {
var w = 500;
var h = 540;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../newsletter/abonne.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function AbRecup() {
var w = 500;
var h = 200;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../newsletter/abonnerecup.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function plonge() {
var w = 400;
var h = 204;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../raid2005/infos.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function feedBack() {
var w = 520;
var h = 440;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../feedback/index.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function eqImgShow(d) {
var w = 540;
var h = 648;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../raid2005/equipeimage.php?dosD='+d,"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function cdromkenya() {
var w = 500;
var h = 540;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../raid2005/cdromkenya.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function Aide() {
var w = 280;
var h = 200;
var top=(screen.height-h)/2;
var left=(screen.width-w)/2;
window.open('../abonne/aide.php',"",'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',left='+(left-12)+',top='+top);
}

function verifTel(champ) {
var chiffres = new RegExp("[0-9+() \.-]"); /* Modifier pour : var chiffres = new RegExp("[0-9]"); */
var verif;
var points = 0; /* Supprimer cette ligne */
	for(x = 0; x < champ.value.length; x++) {
		verif = chiffres.test(champ.value.charAt(x));
		//if(champ.value.charAt(x) == "."){points++;} /* Supprimer cette ligne */
		//if(points > 1){verif = false; points = 1;} /* Supprimer cette ligne */
		if(verif == false){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
	}
}

function verif_nombre(champ) {
var chiffres = new RegExp("[0-9() \.-]"); /* Modifier pour : var chiffres = new RegExp("[0-9]"); */
var verif;
var points = 0; /* Supprimer cette ligne */
	for(x = 0; x < champ.value.length; x++) {
		verif = chiffres.test(champ.value.charAt(x));
		//if(champ.value.charAt(x) == "."){points++;} /* Supprimer cette ligne */
		//if(points > 1){verif = false; points = 1;} /* Supprimer cette ligne */
		if(verif == false){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
	}
}

function verifSms(champ) {
var chiffres = new RegExp("[0-9+]"); /* Modifier pour : var chiffres = new RegExp("[0-9]"); */
var verif;
var points = 0; /* Supprimer cette ligne */
	for(x = 0; x < champ.value.length; x++) {
		verif = chiffres.test(champ.value.charAt(x));
		//if(champ.value.charAt(x) == "."){points++;} /* Supprimer cette ligne */
		//if(points > 1){verif = false; points = 1;} /* Supprimer cette ligne */
		if(verif == false){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
	}
}

function verifTeam(champ) {
var chiffres = new RegExp("[0-9;]"); /* Modifier pour : var chiffres = new RegExp("[0-9]"); */
var verif;
var points = 0; /* Supprimer cette ligne */
	for(x = 0; x < champ.value.length; x++) {
		verif = chiffres.test(champ.value.charAt(x));
		//if(champ.value.charAt(x) == "."){points++;} /* Supprimer cette ligne */
		//if(points > 1){verif = false; points = 1;} /* Supprimer cette ligne */
		if(verif == false){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
	}
}

function verifDate(champ) {
var chiffres = new RegExp("[0-9-]"); /* Modifier pour : var chiffres = new RegExp("[0-9]"); */
var verif;
var points = 0; /* Supprimer cette ligne */
	for(x = 0; x < champ.value.length; x++) {
		verif = chiffres.test(champ.value.charAt(x));
		//if(champ.value.charAt(x) == "."){points++;} /* Supprimer cette ligne */
		//if(points > 1){verif = false; points = 1;} /* Supprimer cette ligne */
		if(verif == false){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
	}
}

function NomPrenom(champ) {
var chiffres = new RegExp("[a-zA-ZÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ '\.-]"); /* Modifier pour : var chiffres = new RegExp("[0-9]"); */
var verif;
var points = 0; /* Supprimer cette ligne */
	for(x = 0; x < champ.value.length; x++) {
		verif = chiffres.test(champ.value.charAt(x));
		//if(champ.value.charAt(x) == "."){points++;} /* Supprimer cette ligne */
		//if(points > 1){verif = false; points = 1;} /* Supprimer cette ligne */
		if(verif == false){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
	}
}

function ObjetMail(champ) {
var chiffres = new RegExp("[0-9a-zA-ZÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ '\.-]"); /* Modifier pour : var chiffres = new RegExp("[0-9]"); */
var verif;
var points = 0; /* Supprimer cette ligne */
	for(x = 0; x < champ.value.length; x++) {
		verif = chiffres.test(champ.value.charAt(x));
		//if(champ.value.charAt(x) == "."){points++;} /* Supprimer cette ligne */
		//if(points > 1){verif = false; points = 1;} /* Supprimer cette ligne */
		if(verif == false){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
	}
}

function mailCanada() {
  window.location.href="mailto:vittel-amazones@hotmail.com?Subject=Inscription Raid Vittel 2005";
}

function PopupPhoto(img,legende) {
	titre="Raid Amazones Image";
//	w=open("",'image','width=500,height=500,toolbar=no,scrollbars=no,resizable=yes');	
	w=open("",'image','width=600,height=600,toolbar=no,scrollbars=no,resizable=no,left=20,top=20');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE>");
	w.document.write("<meta http-equiv='imagetoolbar' content='false'>");
	w.document.write("</HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+22,document.images[0].height+114); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>"); // width+12 et height+94 sans marge
	w.document.write("<BODY onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=5 topMargin=5 marginwidth=5 marginheight=5><div align='center'><IMG src='"+img+"' border=1></div>");
	w.document.write("<p><div align='center'><font size='1' face='Verdana, Arial, Helvetica, sans-serif'>"+legende+"</font></div></p>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}

/***********************************************
* Gradual Highlight image script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var baseopacity=30

function slowhigh(which2){ // slowhigh
imgobj=which2
browserdetect=which2.filters? "ie" : typeof which2.style.MozOpacity=="string"? "mozilla" : ""
instantset(baseopacity)
highlighting=setInterval("gradualfade(imgobj)",50)
}

function slowlow(which2){ // slowlow
cleartimer()
instantset(baseopacity)
}

function instantset(degree){
if (browserdetect=="mozilla")
imgobj.style.MozOpacity=degree/100
else if (browserdetect=="ie")
imgobj.filters.alpha.opacity=degree
}

function cleartimer(){
if (window.highlighting) clearInterval(highlighting)
}

function gradualfade(cur2){
if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.1, 0.99)
else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

/*
See http://www.howtocreate.co.uk/perfectPopups.html and http://www.howtocreate.co.uk/jslibs/termsOfUse.html
for details and terms of use.
To call this script, use something like (the number is a delay before it closes or 0 for no timed closing -
the true/false says if the window should close when they switch to another window):
<script type="text/javascript"><!--
//you can style this, but don't try to text-align it to the right, it will break the resizing effect
//keep it narrow, if it is wider than the image, the window will wrap to this width
//the makeright class tells the script to automatically align it to the right
var extraHTML = '<br><a href="javascript:window.close()" style="text-decoration:none;color:#777;background-color:#bbb;font-weight:bold;border-left:2px solid #000;" class="makeright">Close<\/a>';
//--></script>
<a href="me.jpg" onclick="return popImageExtra(this.href,'Site author',true,3000,extraHTML);">link</a>
*/

//really not important (the first two should be small for Opera's sake)
PositionX = 200;
PositionY = 150;
defaultWidth  = 600;
defaultHeight = 600;

//don't touch (except to modify the window contents)
function popImageExtra(imageURL,imageTitle,AutoClose,oTimeClose,extraHTML){
	var imgWin = window.open('','_blank','scrollbars=no,resizable=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY);
	if( !imgWin ) { return true; } //popup blockers should not cause errors
	imgWin.document.write('<html><head><title>'+imageTitle+'<\/title><script type="text\/javascript">\n'+
		'function getRefToDivMod( divID, oDoc ) {\n'+
			'if( !oDoc ) { oDoc = document; }\n'+
			'if( document.layers ) {\n'+
			'if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {\n'+
			'for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {\n'+
			'y = getRefToDivNest(divID,oDoc.layers[x].document); }\n'+
			'return y; } }\n'+
			'if( document.getElementById ) { return oDoc.getElementById(divID); }\n'+
			'if( document.all ) { return oDoc.all[divID]; }\n'+
			'return document[divID];\n'+
		'}\n'+
		'function resizeWinTo() {\n'+
			'if( !document.images.length ) { document.images[0] = document.layers[0].images[0]; }'+
			'if( !document.images[0].height || window.doneAlready ) { return; }\n'+ //in case images are disabled
			'var oH = getRefToDivMod( \'myID\' ); if( !oH ) { return false; }\n'+
			'var oW = oH.clip ? oH.clip.width : oH.offsetWidth;\n'+
			'var oH = oH.clip ? oH.clip.height : oH.offsetHeight; if( !oH ) { return false; }\n'+
			'if( !oH || window.doneAlready ) { return; }\n'+ //in case images are disabled
			'window.doneAlready = true;\n'+ //for Safari and Opera
			'if(document.getElementsByTagName) {\n'+
				'for( var l = document.getElementsByTagName(\'a\'), x = 0; l[x]; x++ ) {\n'+
					'if(l[x].className==\'makeright\'&&!l[x].style.position){\n'+
						'l[x].style.position=\'relative\';\n'+
						'l[x].style.left=(document.images[0].width-(l[x].offsetWidth+l[x].offsetLeft))+\'px\';\n'+
			'}}}\n'+
			'var x = window; x.resizeTo( oW + 200, oH + 200 );\n'+
			'var myW = 0, myH = 0, d = x.document.documentElement, b = x.document.body;\n'+
			'if( x.innerWidth ) { myW = x.innerWidth-20; myH = x.innerHeight-20; }\n'+
			'else if( d && d.clientWidth ) { myW = d.clientWidth-20; myH = d.clientHeight-20; }\n'+
			'else if( b && b.clientWidth ) { myW = b.clientWidth-20; myH = b.clientHeight-20; }\n'+
			'if( window.opera && !document.childNodes ) { myW += 16; }\n'+
			'x.resizeTo( oW = oW + ( ( oW + 200 ) - myW ), oH = oH + ( (oH + 200 ) - myH ) );\n'+
			'var scW = screen.availWidth ? screen.availWidth : screen.width;\n'+
			'var scH = screen.availHeight ? screen.availHeight : screen.height;\n'+
			'if( !window.opera ) { x.moveTo(Math.round((scW-oW)/2),Math.round((scH-oH)/2)); }\n'+
			(oTimeClose?('window.setTimeout(\'window.close()\','+oTimeClose+');\n'):'')+
		'}\n'+
		'<\/script>'+
		'<meta http-equiv="imagetoolbar" content="false">'+
		'<style type="text/css">'+
		'body { margin: 0; text-align: center; font: 11px/1em Verdana, Arial, Helvetica, sans-serif; }'+
		'img { margin: 0 0 8px 0 }'+
		'</style>'+
		'<\/head><body onload="resizeWinTo();"'+(AutoClose?' onblur="self.close();"':'')+'>'+
		(document.layers?('<layer left="0" top="0" id="myID">'):('<div style="position:absolute;left:10px;top:8px;" id="myID">'))+
		'<img src='+imageURL+' alt="Loading image ..." border="1" title="" onload="resizeWinTo();">'+
		(extraHTML?extraHTML:'')+(document.layers?'<\/layer>':'<\/div>')+'<\/body><\/html>');
	imgWin.document.close();
	if( imgWin.focus ) { imgWin.focus(); }
	return false;
}

/* Script couleurs ! */
hexa = new MakeArray(16)
hexa[10] = "A"
hexa[11] = "B"
hexa[12] = "C"
hexa[13] = "D"
hexa[14] = "E"
hexa[15] = "F"

function MakeArray(n)
{
this.length = n
for (var i = 0; i <= n; i++)
this[i] = i
return this
}

function colours(text){

color = new Array()
color[0] = "FF9900"
color[1] = "999900"
color[2] = "996600"
color[3] = "993300"
color[4] = "009966"
color[5] = "FF3300"
color[6] = "006699"
color[7] = "003399"
color[8] = "990099"
color[9] = "FF3366"
color[10] = "666666"

var posa = 0
var posb = 1
while (posa <= text.length){
var pcolor= Math.floor(Math.random() * color.length )
/*
var r = Math.floor(Math.random() * 13) // 15 meilleurs resultat
var rr= Math.floor(Math.random() * 13)
var g = Math.floor(Math.random() * 13)
var gg = Math.floor(Math.random() * 13)
var b = Math.floor(Math.random() * 13)
var bb = Math.floor(Math.random() * 13)
*/
if (text.substring(posa,posb) == "<"){
var posaa = 0
posaa = posa
while (text.substring(posaa,posb) != ">"){
posaa++
posb++
}
document.write(text.substring(posa, posb))
posa = posb 
posb = posa + 1
}
//document.write("<font color=#"+hexa[r]+hexa[rr]+hexa[g]+hexa[gg]+hexa[b]+hexa[bb]+">")
document.write("<font color=#"+color[pcolor]+">")
document.write(text.substring(posa, posb)+"</font>")
posa++
posb++
}
}
/* Fin couleurs ! */

/***********************************************
* Dynamic Countdown script- © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function cdtime(container, targetdate){
if (!document.getElementById || !document.getElementById(container)) return
this.container=document.getElementById(container)
this.currentTime=new Date()
this.targetdate=new Date(targetdate)
this.timesup=false
this.updateTime()
}

cdtime.prototype.updateTime=function(){
var thisobj=this
this.currentTime.setSeconds(this.currentTime.getSeconds()+1)
setTimeout(function(){thisobj.updateTime()}, 1000) //update time every second
}

cdtime.prototype.displaycountdown=function(baseunit, functionref){
this.baseunit=baseunit
this.formatresults=functionref
this.showresults()
}

cdtime.prototype.showresults=function(){
var thisobj=this


var timediff=(this.targetdate-this.currentTime)/1000 //difference btw target date and current date, in seconds
if (timediff<0){ //if time is up
this.timesup=true
this.container.innerHTML=this.formatresults()
return
}
var oneMinute=60 //minute unit in seconds
var oneHour=60*60 //hour unit in seconds
var oneDay=60*60*24 //day unit in seconds
var dayfield=Math.floor(timediff/oneDay)
var hourfield=Math.floor((timediff-dayfield*oneDay)/oneHour)
var minutefield=Math.floor((timediff-dayfield*oneDay-hourfield*oneHour)/oneMinute)
var secondfield=Math.floor((timediff-dayfield*oneDay-hourfield*oneHour-minutefield*oneMinute))
if (this.baseunit=="hours"){ //if base unit is hours, set "hourfield" to be topmost level
hourfield=dayfield*24+hourfield
dayfield="n/a"
}
else if (this.baseunit=="minutes"){ //if base unit is minutes, set "minutefield" to be topmost level
minutefield=dayfield*24*60+hourfield*60+minutefield
dayfield=hourfield="n/a"
}
else if (this.baseunit=="seconds"){ //if base unit is seconds, set "secondfield" to be topmost level
var secondfield=timediff
dayfield=hourfield=minutefield="n/a"
}
this.container.innerHTML=this.formatresults(dayfield, hourfield, minutefield, secondfield)
setTimeout(function(){thisobj.showresults()}, 1000) //update results every second
}

/////CUSTOM FORMAT OUTPUT FUNCTIONS BELOW//////////////////////////////

//Create your own custom format function to pass into cdtime.displaycountdown()
//Use arguments[0] to access "Days" left
//Use arguments[1] to access "Hours" left
//Use arguments[2] to access "Minutes" left
//Use arguments[3] to access "Seconds" left

//The values of these arguments may change depending on the "baseunit" parameter of cdtime.displaycountdown()
//For example, if "baseunit" is set to "hours", arguments[0] becomes meaningless and contains "n/a"
//For example, if "baseunit" is set to "minutes", arguments[0] and arguments[1] become meaningless etc

function formatresults(){
var zeroH="";
var zeroM="";
var zeroS="";
if ( arguments[1] < 10 ) { zeroH="0"; }
if ( arguments[2] < 10 ) { zeroM="0"; }
if ( arguments[3] < 10 ) { zeroS="0"; }
if (this.timesup==false){//if target date/time not yet met
var displaystring=arguments[0]+" jours "+zeroH+arguments[1]+":"+zeroM+arguments[2]+":"+zeroS+arguments[3]+" "
}
else{ //else if target date/time met
var displaystring="Raid Amazones 2008"
}
return displaystring
}

// **************************
// Validation des formulaires
var couleurChampErreur = '#ffffff';
var couleurChampOK = '#ffffff';
var borderChampErreur = '1px solid #cc3300';
var borderChampOK = '1px solid #EAEAEA';

function validateEmpty(fld) {
    var error = "";
 
    if (fld.value.length == 0 || fld.value == 'false') {
        fld.style.background = couleurChampErreur; 
        fld.style.border = borderChampErreur; 
        error = "The required field has not been filled in.\n";
    } else {
        fld.style.background = couleurChampOK;
        fld.style.border = borderChampOK;
    }
    return error;  
}

function validateSelectlist(fld) {
    var error = "";
 
    if (fld.selectedIndex < 1) {
        fld.style.background = couleurChampErreur; 
        fld.style.border = borderChampErreur; 
        error = "The required field has not been filled in.\n";
    } else {
        fld.style.background = couleurChampOK;
        fld.style.border = borderChampOK;
    }
    return error;  
}

function validateCheckbox(fld) {
    var error = "";
 
    if (!fld.checked) {
        fld.style.background = couleurChampErreur; 
        fld.style.border = borderChampErreur; 
        error = "The required field has not been filled in.\n";
    } else {
        fld.style.background = couleurChampOK;
        fld.style.border = borderChampOK;
    }
    return error;  
}

function validateUsername(fld) {
    var error = "";
    var illegalChars = /\W/; // allow letters, numbers, and underscores
 
    if (fld.value == "") {
        fld.style.background = couleurChampErreur; 
        fld.style.border = borderChampErreur; 
        error = "You didn't enter a username.\n";
    } else if ((fld.value.length < 4) || (fld.value.length > 24)) {
        fld.style.background = couleurChampErreur; 
        fld.style.border = borderChampErreur; 
        error = "The username is the wrong length.\n";
    } else if (illegalChars.test(fld.value)) {
        fld.style.background = couleurChampErreur; 
        fld.style.border = borderChampErreur; 
        error = "The username contains illegal characters.\n";
    } else {
        fld.style.background = couleurChampOK;
        fld.style.border = borderChampOK;
    }
    return error;
}

function trim(s)
{
  return s.replace(/^\s+|\s+$/, '');
}

function validateEmail(fld) {
    var error="";
    var tfld = trim(fld.value);                        // value of field with whitespace trimmed off
    var emailFilter = /^[^@]+@[^@.]+\.[^@]*\w\w$/ ;
    var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/ ;
   
    if (fld.value == "") {
        fld.style.background = couleurChampErreur; 
        fld.style.border = borderChampErreur;
        error = "You didn't enter an email address.\n";
    } else if (!emailFilter.test(tfld)) {              //test email for illegal characters
        fld.style.background = couleurChampErreur; 
        fld.style.border = borderChampErreur;
        error = "Please enter a valid email address.\n";
    } else if (fld.value.match(illegalChars)) {
        fld.style.background = couleurChampErreur; 
        fld.style.border = borderChampErreur;
        error = "The email address contains illegal characters.\n";
    } else {
        fld.style.background = couleurChampOK;
        fld.style.border = borderChampOK;
    }
    return error;
}

function validatePassword(fld) {
    var error = "";
    var illegalChars = /[\W_]/; // allow only letters and numbers 
 
    if (fld.value == "") {
        fld.style.background = couleurChampErreur; 
        fld.style.border = borderChampErreur;
        error = "You didn't enter a password.\n";
    } else if ((fld.value.length < 7) || (fld.value.length > 16)) {
        error = "The password is the wrong length.\n";
        fld.style.background = couleurChampErreur; 
        fld.style.border = borderChampErreur;
    } else if (illegalChars.test(fld.value)) {
        error = "The password contains illegal characters.\n";
        fld.style.background = couleurChampErreur; 
        fld.style.border = borderChampErreur;
    } else if (!((fld.value.search(/(a-z)+/)) && (fld.value.search(/(0-9)+/)))) {
        error = "The password must contain at least one numeral.\n";
        fld.style.background = couleurChampErreur; 
        fld.style.border = borderChampErreur;
    } else {
        fld.style.background = couleurChampOK;
        fld.style.border = borderChampOK;
    }
   return error;
} 

function validatePwd(fld) {
    var error = "";
	var strongRegex = new RegExp("^(?=.{6,})(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*\\W).*$", "g");
	//var mediumRegex = new RegExp("^(?=.{6,})(((?=.*[A-Z])(?=.*[a-z]))|((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$", "g");
	var mediumRegex = new RegExp("^(?=.{6,})(((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$", "g");
	var enoughRegex = new RegExp("(?=.{6,}).*", "g"); 

	if (fld.value != "" && fld.value.length != 0 && !mediumRegex.test(fld.value) ) {
		fld.style.background = couleurChampErreur; 
		fld.style.border = borderChampErreur;
		error = "Please enter a strong password.\n";
    } else {
        fld.style.background = couleurChampOK;
        fld.style.border = borderChampOK;
    }
   return error;
}

function validatePwdChange(fld) {
    var error = "";
	var strongRegex = new RegExp("^(?=.{6,})(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*\\W).*$", "g");
	//var mediumRegex = new RegExp("^(?=.{6,})(((?=.*[A-Z])(?=.*[a-z]))|((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$", "g");
	var mediumRegex = new RegExp("^(?=.{6,})(((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$", "g");
	var enoughRegex = new RegExp("(?=.{6,}).*", "g"); 

	if ( !mediumRegex.test(fld.value) ) {
		fld.style.background = couleurChampErreur; 
		fld.style.border = borderChampErreur;
		error = "Please enter a strong password.\n";
    } else {
        fld.style.background = couleurChampOK;
        fld.style.border = borderChampOK;
    }
   return error;
}

function validateWords(fld) {
    var error = "";
	var myregexp = /\b(\w+)(?:\s+\1\b){3,}/;

	if ( myregexp.test(fld.value) ) {
		fld.style.background = couleurChampErreur; 
		fld.style.border = borderChampErreur;
		error = "Please enter correct words.\n";
    } else {
        fld.style.background = couleurChampOK;
        fld.style.border = borderChampOK;
    }
   return error;
}
// Fin validation des formulaires
// ******************************
