function doBlink() {
	var blink = document.all.tags("BLINK")
	for (var i=0; i<blink.length; i++)
		blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "" 
}

function startBlink() {
	if (document.all)
		setInterval("doBlink()",400)
}
window.onload = startBlink;


function afficher(Element1)
{ 
if (document.getElementById) 
document.getElementById(Element1).style.display = "";
} 
function afficher2()
{ 
if (document.getElementById) 
this.document.getElementById.style.display = "";
} 
function masquer(Element1)
{ 
if (document.getElementById) 
document.getElementById(Element1).style.display = "none";
}


function afficher_masquer(Element){if (document.getElementById) document.getElementById(Element).style.display = '';}


function montre(id) 
{
var d = document.getElementById(id);
	for (var i = 1; i<=50; i++) 
	{
		if (document.getElementById('REG'+i)) {document.getElementById('REG'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}


<!--INUTILE-->
function montre2(id) {
var d = document.getElementById('FICHE'+id);
var e = document.getElementById('TITREFICHE_A'+id);
var f = document.getElementById('TITREFICHE_B'+id);
	for (var i = 1; i<=10; i++) 
	{
		if (document.getElementById('FICHE'+i)) {document.getElementById('FICHE'+i).style.display='none';}
		if (document.getElementById('TITREFICHE_A'+i)) {document.getElementById('TITREFICHE_A'+i).style.display='';}
		if (document.getElementById('TITREFICHE_B'+i)) {document.getElementById('TITREFICHE_B'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
if (e) {e.style.display='none';}
if (f) {f.style.display='block';}
}

function montre3(id) {
var d = document.getElementById('FICHE'+id);
var e = document.getElementById('TITREFICHE_A'+id);
var f = document.getElementById('TITREFICHE_B'+id);
	for (var i = 1; i<=10; i++) 
	{
		if (document.getElementById('FICHE'+i)) {document.getElementById('FICHE'+i).style.display='none';}
		if (document.getElementById('TITREFICHE_A'+i)) {document.getElementById('TITREFICHE_A'+i).style.display='block';}
		if (document.getElementById('TITREFICHE_B'+i)) {document.getElementById('TITREFICHE_B'+i).style.display='none';}
	}
if (d) {d.style.display='none';}
if (e) {e.style.display='block';}
if (f) {f.style.display='none';}
}



var pPictures = ""
function popProfil(ID,PHOT,PSEU,DOMAINE,AGE,SEXE,RUBRIK,LELIEU) 
{
var W=screen.width*0.75
var H=screen.height
var URL="http://www.3d-rencontre.com/grand_profil.php?id="+ID+"&grandephot="+PHOT+"&pseudo="+PSEU+"&dom="+DOMAINE+"&age="+AGE+"&sexe="+SEXE+"&rubrik="+RUBRIK+"&lelieu="+LELIEU
var winconfig="width="+W+",height="+H+",scrollbars=1,resizable=1,toolbar=0,location=0,menubar=0,status=0,directories=0,top=0,left=0"
 
   if ( pPictures.focus) {pPictures.close();} 
   pPictures = window.open(URL,'',winconfig); 
   if ( self.focus ) pPictures.focus(); 
}

function popProfil2(ID,PHOT,PSEU,DOMAINE,AGE,SEXE,RUBRIK,LELIEU) 
{
var W=screen.width*0.75
var H=screen.height
var URL="http://www.3d-rencontre.com/grand_profil.php?id="+ID+"&grandephot="+PHOT+"&pseudo="+PSEU+"&dom="+DOMAINE+"&age="+AGE+"&sexe="+SEXE+"&rubrik="+RUBRIK+"&lelieu="+LELIEU
var winconfig="width="+W+",height="+H+",scrollbars=1,resizable=1,toolbar=0,location=0,menubar=0,status=0,directories=0,top=0,left=0"
 
   if ( pPictures.focus) {pPictures.close();} 
   pPictures = window.open(URL,'',winconfig); 
   if ( self.focus ) pPictures.focus(); 
}



var fermer='<? echo"$FERMER";?>';
function VOIRFICHE(num) 
{ 
  if(fermer!=2)
  {
     // Booléen reconnaissant le navigateur
     isIE = (document.all) 
     isNN6 = (!isIE) && (document.getElementById)
     // Compatibilité : l'objet menu est détecté selon le navigateur
     if (isIE) menu = document.all['FICHE' + num];
     if (isNN6) menu = document.getElementById('FICHE' + num);
  
/////////////////////Pour fermer les menus deja ouverts/////////////////////
    if(fermer==1){for (var i = 1; i<=100; i++){if (i != num){if (document.getElementById('FICHE'+i)){document.getElementById('FICHE'+i).style.display='none';}}}}
//////////////////////////////////////////////////////////////////////////////


   // On ouvre ou ferme
    if (menu.style.display == "none"){menu.style.display = ""}else {menu.style.display = "none"}


  }//fin de if(fermer2!=0)
}



function SwitchREGDEP(num,NOM) 
{ 
     // Bool&eacute;en reconnaissant le navigateur
     isIE = (document.all) 
     isNN6 = (!isIE) && (document.getElementById)
     // Compatibilit&eacute; : l'objet menu est d&eacute;tect&eacute; selon le navigateur
     if (isIE) objet = document.all[NOM+num];
     if (isNN6) objet = document.getElementById(NOM+num);  
/////////////////////Pour fermer les objets deja ouverts/////////////////////
     for (var i = 1; i<=30; i++){if (i != num){if (document.getElementById(NOM+i)){document.getElementById(NOM+i).style.display='none';}}}
//////////////////////////////////////////////////////////////////////////////
   // On ouvre ou ferme
     if (objet.style.display == "none"){objet.style.display = ""}else {objet.style.display = "none"}
	 
   //Le SELECT de tous les Departements est mis en valeur vide quand un onChange est eff&eacute;ctu&eacute; sur les pays
     if(NOM=="REGI"){for (var i = 1; i<=30; i++){if (document.getElementById('DEP'+i)){document.getElementById('DEP'+i).value='';}}}


     if(document.getElementById('VILLE')){document.getElementById('VILLE').value='';}
}


function VideVILLE(id)
{
if(document.getElementById('VILLE')){document.getElementById('VILLE').value='';}
}