
 var pubT, pub = 0;
var display=true;
function afficheadminminad(){
if(!display){
with(document.admin){
codesecret.style.visibility="visible";
secretcode.style.visibility="visible";
mariane.style.visibility="visible";
}
with(document.minad){

repatout.style.visibility="visible";
code.style.visibility="visible";
		    }display=true;
}else {display=false;admin();}

}
function admin(){
with(document.admin){
codesecret.style.visibility="hidden";
secretcode.style.visibility="hidden";
mariane.style.visibility="hidden";
}

with(document.minad){

code.style.visibility="hidden";
repatout.style.visibility="hidden";}
}

function session(){
setTimeout('document.suivisession.submit()',300);
}



function accesgratuit(){
window.open("montreModeObtentCode.html","","toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=yes,copyhistory=0,menuBar=0,width=450,height=270");
}

function annoncesgratuites(){

window.open("accesgratuit.html","","toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=yes,copyhistory=0,menuBar=0,width=450,height=270");

}

function rechPseudoCode(){
window.open("rechpseudocodes.html","","toolbar=0,location=0,directories=0,status=0,scrollbars=yes,resizable=yes,copyhistory=0,menuBar=0,width=450,height=270");
}

function AfficheVisites(){
window.open("visiteurs.html","","toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=yes,copyhistory=0,menuBar=0,width=50,height=50");
}


function VersionNavigateur(Netscape, Explorer) {
  if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
    return true;
else return false;
}



var flag=true;
var pas=3,nbpas=0;
var dim=0;
dim=600;
var  collection=document.all.tags('H3');
function changeWeightColor(){
if(flag==true){flag=false;
collection.taill.style.fontWeigth='bold';collection.taill.style.color='forestgreen';
collection.tail.style.fontWeigth='bold';collection.tail.style.color='forestgreen';
collection.ta.style.fontWeigth='bold';collection.ta.style.color='forestgreen';

   }
                else{flag=true;
collection.taill.style.fontWeigth='normal';collection.taill.style.color='white';
collection.tail.style.fontWeigth='normal';collection.tail.style.color='white';
collection.ta.style.fontWeigth='normal';collection.ta.style.color='white';

}/*fin else*/
}/*fin fonction*/
function verifSubmit(){
with(document.acceuil){
if(isNaN(codesecret.value)){alert("Votre code n'est pas valide");return 0;}
submit();}}


function  verifSubmitGestReserv(){with(document.gestReservContact){submit();};}
function  verifSubmitGestContact(){with(document.gestReservContact){submit();};}

function  verifSubmitRech(){
var lettre='a';
with(document.recherche){
if(! chose[0].checked && !chose[1].checked && !chose[2].checked && !chose[3].checked && !chose[4].checked && !chose[5].checked && !chose[6].checked && !chose[7].checked &&!chose[8].checked && !chose[9].checked)
{alert("Il faut cocher Objet ou Emploi ou Animal ou Imobilier ou Transaction ");return 0;}
if(! locaventedon[0].checked && !locaventedon[1].checked && !locaventedon[2].checked && !locaventedon[3].checked && !locaventedon[4].checked && !chose[1].checked && !chose[6].checked)
{alert("Il faut cocher location ou vente ou don ou échange ou les 4 ");return 0;}
if(!neufocca[0].checked && !neufocca[1].checked && !neufocca[2].checked && !chose[1].checked && !chose[6].checked )
{alert("Il faut cocher neuf ou occasion  ou les 2");return 0;}
if(isNaN(departement.value)){
lettre=departement.value;if(lettre=="tous")departement.value=0;else
if(lettre.charAt(1)=='A' || lettre.charAt(1)=='a' || lettre.charAt(1)=='B' || lettre.charAt(1)=='b')departement.value=96;
else{ alert("departement non numérique");return;}
}
submit();

}}
function  verifCodPubSubmit(){;}
function checkAnimServ(){with(document.recherche ){
if (theme.value=="animaux")chose[2].checked=true;
if(theme.value=="emplois")chose[1].checked=true;}}




/*
function action(){
if (VersionNavigateur(3.0,4.0)) {pubs=new CreerArray('logoga18.gif','logoga18.gif','logoga18.gif','logoga1.gif','logoga1.gif','logoga1.gif','logoga1.gif');
 AfficherPub(pubs,300);}
}
*/
function modifpseudo(){
window.open("modifpseudo.html","","toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menuBar=0,width=300,height=410");
}

function affichStatGagnants(){
window.open("affichstatggt.html","","toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=yes,copyhistory=0,menuBar=0,width=400,height=410");
}

function faq(){
window.open("faq.html","","toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=yes,copyhistory=0,menuBar=0,width=400,height=410");
}
function changStylePos(){
 document.all.pubImg.style.width=document.all?document.body.clientWidth:window.innerWidth; 
/*document.all.imag.style.width=document.all?document.body.clientWidth:window.innerWidth;*/
document.all.magie.style.width=document.all?document.body.clientWidth:window.innerWidth;
}

function tableau (n) {
  var nb;
  this.length = n;
  for (var i = 1; i <=n; i++)
    if (i<10) {
      nb = i+"";
      nb = nb.substring(0,1);   	
      this[i] = nb;
    }
  return this;
}
function conversion(couleur) {
  var hexa1;
  var hexa2;
  var couleurHexa;
  tabHex = new tableau(16);
  tabHex[10]="A"; tabHex[11]="B"; tabHex[12]="C"; tabHex[13]="D"; tabHex[14]="E"; tabHex[15]="F";
  indice = 1;
  hexa2 = (couleur%16);
  hexa1 = parseInt(couleur/16);
  hexa2 = tabHex[hexa2];
  if (hexa2 == null)
    hexa2 = "0";
  hexa1 = tabHex[hexa1];
  if (hexa1 == null)
    hexa1 = "0";
  couleurHexa = hexa1 + hexa2;
  return couleurHexa;
}
function degrade(texte, taille, police, RGB) {
  var facteur = 256/(texte.length+1);
  var i;
  var c1,c2,c3;
  for (i=0;i<texte.length;i++)   {
    ton=facteur*i;
    if (RGB == 0) {
      c1 = 'FF'
      c2 = conversion(ton);
      c3 = c2;
    }
    else if (RGB == 1) {
      c1 = conversion(ton);
      c2 = 'FF'
      c3 = c1;
    }
    else {
      c1 = conversion(ton);
      c2 = c1;
      c3 = 'FF'
    }
   document.write ('<FONT SIZE=' + taille + ' FACE="' + police + '" COLOR="#' + c1 + c2 + c3 + '">' + texte.substring (i,i+1) + '</FONT>');
  } 
}

function chargePrésentation(){
window.open("presentation.html","","toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menuBar=0,width=500,height=510");
}

