// JavaScript Document
	// un peu de travail cotˇ client
	function overGal (idLum) {
	mini_fonLum = "mini_fonLum".idLum;
	fonLum = "fonLum".idLum;
	img = "j_gfx/biper.gif";
	document.mini_fondLum.src=img,document.fondLum.src=img;
	}
	function adresse() {
		var adresse;
				adresse = window.location.href;
				document.write(adresse);
	}
	//
			var chemin = "j_gfx/";
			var ext = ".gif";
	function gfxpage(page,lang,bin) {
		//document.write(url);
		window.document.ghost.src=chemin + lang + "_" + page + "_" + bin + ext;
	}
	function gfxpage0() {
		//document.write(url);
		window.document.ghost.src="spacer"  + ext;
	}
	function gfxpage2(page,lang,bin) {
		//document.write(url);
		window.document.ghost2.src=chemin + lang + "_" + page + "_" + bin + ext;
	}
			function prechargement(lang,bin) {
		window.document.image_chargee = new Array();
			var chemin = "j_gfx/";
			var ext = ".gif";
			var liste_images = new Array('acc','cat_h','cat_f','lks','vzrm','ct');
			for ( i = 0; i < liste_images.length; i++ ) {
				window.document.image_chargee[i] = new Image;
				window.document.image_chargee[i].src = chemin + lang + "_" + liste_images[i] + "_" + bin + ext;
				//window.document.write(chemin + lang + "_" + liste_images[i] + "_" + bin + ext);
			}
		}
//
	function fermer() {
		if (window.Fen) window.Fen.close();
	}
	// fonction affichage du copyright .. de base .. pratique dans les frames
	function AffCopy() {
		document.write("<font face=\"Arial, Helvetica, sans-serif\" size=\"1\" color=\"#5511AA\">- MAXIME DE MOOR 2007 - TOUS DROITS R&Eacute;SERV&Eacute;S -</font>");	
	}
	// fonction transferts de GET .. pratique dans les frames
	function Go_Bot(a) {
		this.document.location.href='bot.php?refa='+a+'&refb=b&refc=c';
	}
	// fonction transferts de GET .. pratique dans les frames, une variante
	function Go_frame(iframe,location) {
		parent.frames[''+iframe+''].window.location=''+location+'';
	}
	function m_j(location) {
	document.form.cache.value=''+location+'';
	document.map = 'menu.txt';
	parent.frames['Layer1'].window.location = 'menu.txt';
	
		//parent.frames[''+iframe+''].window.location=''+location+'';
	}
function lireCookie(rubrique)
{
var localisation,longueur;
localisation=document.cookie.indexOf(rubrique);
if(localisation==-1) return "";
longueur=document.cookie.indexOf(";",localisation);
if(longueur==-1) longueur=document.cookie.length;
writeIt = unescape(document.cookie.substring(localisation+rubrique.length+1,longueur));
document.write(writeIt);
}
function RecupererValCookie (rang) {  
var finchaine = document.cookie.indexOf (";", rang);  
if (finchaine == -1)    
	{finchaine = document.cookie.length;}
return unescape(document.cookie.substring(rang, finchaine));
}

function RecupererCookie (nom) {  
var argument = nom + "=";  
var longueurArgument = argument.length;  
var NbreCookies = document.cookie.length;  
var i = 0;  
while (i < NbreCookies) {    
	var j = i + longueurArgument;    
	if (document.cookie.substring(i, j) == argument)      
		{return RecupererValCookie (j);}
	i = document.cookie.indexOf(" ", i) + 1;    
	if (i == 0) break;   
}  
return null;
}
function EffacerCookie (nom) {
var Expiration = new Date();  
Expiration.setTime (Expiration.getTime() - 1);  
var cval = RecupererCookie (nom);  
document.cookie = nom + "=" + cval + "; expires=" + Expiration.toGMTString();
}
function ecrireCookie(rubrique,texte)
{
var aujourdhui=new Date();
var date=new Date();
date.setTime(aujourdhui.getTime()+1000*60*60*24*365);
document.cookie=rubrique+"="+escape(texte)+"; expires="+date.toGMTString();
}



	function return_m_j()
	{
		document.write(this.document.form.cache.value);
	}
	function returnTest(test)
	{
		document.write(test);
	}
	function loadLayer(ref)
	{
		parent.frames['VISITEUR'].window.location='_bat/INC/'+ref+'.php';
	}
	// -------------------------------------------------------------------------

function popfaq() {
	alert("<?=session_id()?>");
}

function ferme() {
	self.window.close();
}
function popAjout(url_bat,phpEx,plusget,page_suf) {
	window.open( url_bat+'aj_'+page_suf+'.'+phpEx+plusget, '', 'height=552, width=680, location=1, scrollbars=1, status=1' );
}
function popModif(url_bat,phpEx,plusget) {
	window.open( url_bat+'mod_post.'+phpEx+plusget, '', 'height=552, width=680, location=1, scrollbars=1, status=0' );
}
function popSuppr(url_bat,phpEx,plusget) {
	window.open( url_bat+'suppr_post.'+phpEx+plusget, '', 'height=552, width=680, location=1, scrollbars=1, status=1' );
}
function popupdoc( url, height, width ) {
	window.open( url, '', 'height=' + height + ', width=' + width + ', scrollbars=no, status=1, location=1' );
}
function popAdm (url_bat,page,phpEx,plusget) {
	window.open( url_bat+page+'.'+phpEx+plusget, '', 'height=680, width=780, location=1, scrollbars=1, status=1' );
}
function popmini(plusurl) {
	window.open( 'AReserve/wop.php' + plusurl + '', '', 'height=436, width=436, location=1, scrollbars=1, status=1' );
}
function popSize(cat,plusurl,h,w) {
	window.open( '../j_doc/'+cat+'/'+plusurl, '', 'height='+h+', width='+w+', location=0, scrollbars=1, status=1' );
}
function popSizeDirect(plusurl,h,w) {
	window.open( plusurl, '', 'height='+h+', width='+w+', location=0, scrollbars=1, status=1' );
}
function wop(plusurl) {
	this.document.location.href=('index.php' + plusurl);
}
function popupmbr() {
	window.open( 'AReserve/fo_admembre.inc.php', '', 'height=510, width=492, scrollbars=yes, status=1' );
}
function popclose() {
	window.open( 'fo_admembre.inc.php', '', 'height=510, width=492, scrollbars=yes, status=1' );
	this.window.close();
}
	// -------------------------------------------------------------------------
function barrestatus() {
window.defaultStatus = "__http://maximedemoor.online.fr__";
}
function antispoum() {
//-->
//emp¸che insertion dans des cadres
		if(top!=self) {
		  top.location=self.location;
		}
}