ejs_photo = new Array;
			num = 0;
			delaiEnSecondes = 5;  
			function ejs_aff_photos(){
			if(document.getElementById){
			document.getElementById("ejs_photo_box").innerHTML =  
			"<A HREF=\"http://www.rezebasket.com/?page=photos\"><CENTER><BR><IMG SRC='"+ejs_photo[num]+"' BORDER=0 HEIGHT=250></A></CENTER>";
			}
			if(num==(ejs_photo.length-1)) num = -1;
			num = num + 1;
			setTimeout("ejs_aff_photos()", delaiEnSecondes*1000);
			}
			
function noclic(clic)
{
var mess="Clic droit désactivé"; //Vous pouvez changer ce message
if (navigator.appName == 'Netscape' && clic.which==3) {
alert(mess);
}

else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(mess);
}}

if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
function chgfond(couleur)   {
document.bgColor=couleur;
}
function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("Le Site du Rezé Basket 44","http://www.rezebasket.com/index.php",""); }
else { window.external.AddFavorite("http://www.rezebasket.com/index.php","Le Site du Rezé Basket 44"); } 
}
var nbimage= 20;
var width;
var height;
var url;
var alte;
function banniere()
{
numimage= Math.round(Math.random()*(nbimage-1)+1);
if (numimage <= 10)
{
gotosite = "";
url = "Presentation.png";
alte = "Présentation";
}
if (numimage > 10)
{
gotosite = "";
url = "logo.jpg";
alte = "Présentation";
}
if(gotosite != "")
	{
	document.write ('<A HREF="' + gotosite + '">');	
	}
document.write('<IMG SRC="/_photos/miniature.php?pic=../' + url + '&w_max=270&h_max=150" ALT="' + alte + '" BORDER=0 />')
if(gotosite != "")
	{
	document.write('</A>')
	}
}
function postnews(f1){
		if(f1.titre.value == "") 
		{ 
        alert ('veuillez entrer un titre'); 
        f1.titre.focus(); 
        return false; 
    	}
		
		if(f1.texte.value == "") 
		{ 
        alert ('veuillez entrer votre texte'); 
        f1.texte.focus(); 
        return false; 
    	}
}
function validation(formulaire) 
{ 
	 	var msg="Mention d’information !\n\nLes informations recueillies sont nécessaires pour votre adhésion.\n\nElles font l’objet d’un traitement informatique et sont destinées au secrétariat de l’association. En application des articles 39 et suivants de la loi du 6 janvier 1978 modifiée, vous bénéficiez d’un droit d’accès et de rectification aux informations qui vous concernent.\n\nSi vous souhaitez exercer ce droit et obtenir communication des informations vous concernant, veuillez vous adresser à : contact@rezebasket.com\n\n"
		if(!confirm(msg)){window.top.popup=0;window.top.location.replace("http://www.rezebasket.com/");}
        if(formulaire.Nom.value == "") 
		{ 
        alert ('veuillez entrer votre Nom'); 
        formulaire.Nom.focus(); 
        return false; 
    	}
		
		if(formulaire.PreNom.value == "") 
		{ 
        alert ('veuillez entrer votre PreNom'); 
        formulaire.PreNom.focus(); 
        return false; 
    	}
		
		if(formulaire.Pseudo.value == "") 
		{ 
        alert ('veuillez entrer un Pseudo'); 
        formulaire.Pseudo.focus(); 
        return false; 
    	} 
		
		if(formulaire.pass1.value != formulaire.pass2.value)
		{
		alert ('Les mots de passe saisis sont différents');
		formulaire.pass1.focus();
		return false;
		}
		var email = formulaire.email.value; 
        if (email.search(/^[_a-z0-9-]+(.[_a-z0-9-]+)*[^._-]@[a-z0-9-]+(.[a-z0-9]{2,4})*$/) == -1)
        { 
            alert ('entrez une adresse Email valide'); 
            formulaire.email.focus(); 
            return false; 
        } 
		 
		else {
			return true;
		formulaire.submit();
		alert ('Merci de votre inscription');
		}
}
function checkBlank(input,msg)
{
  
  if (input.value == null || input.value.length == 0) {
    alert ("Saisir Vos identifiant et mot de passe");
    return false;
  }
  
  var str = input.value;
  for (var i = 0; i < str.length ;i++){
    var ch = str.substring(i,i+1);
    if ( ch == " ") {
      alert ("Saisir Vos identifiant et mot de passe");
      return false;
    }
  }
  return true;
}
function checkForm(form)
{
   if (
      !checkBlank(form.id) ||
      !checkBlank(form.mdp)) {
    form.id.focus();
    return false;
    }
	form.submit();
	return true;
}
var nbrimage= 60;
var adresse;
var nom;
function flash()
{
numimage= Math.round(Math.random()*(nbimage-1)+1);
if (numimage <= 10)
{
adresse = "flash1.png";
nom = "flash";
}
if (numimage > 10 && numimage <= 20)
{
adresse = "flash2.png";
nom = "flash";
}
if (numimage > 20 && numimage <= 30)
{
adresse = "flash3.png";
nom = "flash";
}
if (numimage > 30 && numimage <= 40)
{
adresse = "flash4.png";
nom = "flash";
}
if (numimage > 40 && numimage <= 50)
{
adresse = "flash5.png";
nom = "flash";
}
if (numimage > 50)
{
adresse = "flash6.png";
nom = "flash";
}
document.write('<div width="230" align="center" valign="top" style="background-image: url(/' + adresse + ');background-repeat: no-repeat;">')
}
if ( document.all )
{
	function blink_show()
	{
		blink_tags  = document.all.tags('blink');
		blink_count = blink_tags.length;
		for ( i = 0; i < blink_count; i++ )
		{
			blink_tags[i].style.visibility = 'visible';
		}
		
		window.setTimeout( 'blink_hide()', 700 );
	}
	
	function blink_hide()
	{
		blink_tags  = document.all.tags('blink');
		blink_count = blink_tags.length;
		for ( i = 0; i < blink_count; i++ )
		{
			blink_tags[i].style.visibility = 'hidden';
		}
		
		window.setTimeout( 'blink_show()', 250 );
	}
	
	window.onload = blink_show;
}
