function popfile(type,id) {
	if(type && id) {
		var w = 100;
		var h = 100;
		var t = (screen.height-h)/2;
		var l = (screen.width-w)/2;
		var	option = "location=no,status=yes,resizable=yes,";
		option += "scrollbars=yes,width="+w+",height="+h+",";
		option += "top="+t+",left="+l;
		nw = window.open('apercu47d9.html?type='+type+'&id='+id,'pw',option);
	}
}

function affiche(id,type) {
	if(!isNaN(id) && type) {
		window.location.href = 'index8c29.html?page=affiche&amp;type='+type+'&id='+id;
	}
}

function popwin(url,name,w,h,optionlist,align)
{
	if(align == "center")
	{
		t = ((screen.height-h)/2);
		l = ((screen.width-w)/2);
		optionlist += (optionlist != "" ? "," : "")+"top="+t+",left="+l;
	}
	optionlist = optionlist != "" ? ","+optionlist : "";
	eval(name+" = window.open('"+url+"','"+name+"','width="+w+",height="+h+optionlist+"');");
	eval(name+".focus();");
}
function photopop(id) {
	if(id) {
		popwin('pop5445.html?id='+id,'pop'+id,600,600,'status=no,scrollbars=yes,resizable=yes','center');
	}
}

function printMe() {
	w		= 700;
	h 		= 580;
	t 	= (screen.height - h)/2;
	l 	= (screen.width - w)/2;
	print_win = window.open('print.html','printed','width='+w+', height='+h+', top='+t+', left='+l+', menubar=no, scrollbars=yes, status=yes, resizable=no');
	print_win.focus();
}

function printprocess() {
	document.getElementById('contentTOprint').innerHTML = '<table border="0">'+opener.document.getElementById('contenu').innerHTML+'</table>';
	document.getElementById('url').innerHTML += '<hr><a class="ariane" href="'+opener.window.location.href+'" target="_blank">'+opener.window.location.href+'</a>';
	document.title = opener.document.title;
	window.print();
}

function sendMe()
{
	w		= 380;
	h 		= 270;
	t 	= (screen.height - h)/2;
	l 	= (screen.width - w)/2;
	window.open('sendP.html','friendwin','width='+w+',height='+h+',top='+t+',left='+l+',status=yes,scrollbars=no,location=no,menubar=no,resizable=no');
}

function checkemail(f) {
	if(f.adresse.value.length == 0 || f.adresse.value == "Votre e-mail") {
		alert("Adresse email saisie incorrecte.");
		return false;
	} else {
		return true;
	}
}

function mentions() {
	window.open('mentions.html','mentions','left=15,top=15,width=520,height=520,resizable=yes,scrollbars=yes,location=no,menubar=no,status=yes');  
}

function popup(id,L,H) {
	t 		= (screen.height - H)/2;
	l 		= (screen.width - L)/2;
	addwin = window.open('popup5445.html?id='+id,'popup','width='+L+', height='+H+', top='+t+', left='+l+', menubar=no, scrollbars=yes, resizable=yes');
	addwin.focus();
}

function lettre(let) {
	if(let) {
		w		= 520;
		h 		= 520;
		t 	= (screen.height - h)/2;
		l 	= (screen.width - w)/2;
		window.open('lettre0a6e.html?newsletter='+let,'lettre','width='+w+',height='+h+',top='+t+',left='+l+',status=yes,scrollbars=yes,location=no,menubar=no,resizable=no');
	}
}