/* AUTEUR: MSCLUB.COM */
/* DATE DE CREATION: 25/10/2002 */

var AccesAnnu="Accès à l'Annuaire de l'Hébergement Rural en France";

function Navig() {
var adresse = document.hrmap1.heberg.options[document.hrmap1.heberg.selectedIndex].value;
if (adresse != "0") {
location= adresse;
} else {
alert("Choisissez un Département");
}
}

function liens(DEP){   window.open("afflien.php" + '?Dep='+ DEP,"Liens","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=400,height=500,left=0,top=0");
}


function fenetreaide(fic){   window.open(fic,"Aide","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=450,height=400,left=0,top=0");
}

function Recom(){   window.open("recom.php","Recommandation","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=400,height=550,left=0,top=0");
}

function RecomHR(Ref){   window.open("recomhr.php?RefHR="+Ref,"Recommandation","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=400,height=550,left=0,top=0");
}

function fenetrehr(REF){   
window.open("fichehr.php3" + '?Ref='+ REF,"HR","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=640,height=500,left=0,top=0");
}

function conditions(){   window.open("conditions.html","Conditions","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=450,height=400,left=0,top=0");
}

function aidemap(){   window.open("aidemap","Aide MAP","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=600,height=500,left=0,top=0");
}

function CheckLen(Target) 
{
StrLen = Target.value.length
CharsLeft = StrLen;
document.Formulaire.caracteres.value = CharsLeft;
}
function CheckLenM(Target) 
{
StrLen = Target.value.length
CharsLeft = StrLen;
document.Formulaire.caracteresM.value = CharsLeft;
}


function netie(net, ie) {
  if ((navigator.appVersion.substring(0,3) >= net && navigator.appName ==
'Netscape' && net != -1) || (navigator.appVersion.substring(0,3) >= ie &&
navigator.appName.substring(0,9) == 'Microsoft' && ie != -1))
    return true;
else return false;
}

function VersionNav(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;
}


function CreerArray() {
    this.length = CreerArray.arguments.length;
    for (var i = 0; i < this.length; i++)
      this[i+1] = CreerArray.arguments[i];
}
 var pubT, pub1, pub2= 0;
 
 function AfficherPub(pubs,pubDelai1) {
   pubDelai = pubDelai1;

   if (pub1 == pubs.length)
     pub1 = 0;
   if (pub2 == pubs.length)
     pub2 = 0;

   document.pubImg1.src = pubs[++pub2];
   document.pubImg2.src = pubs[++pub2];   
   document.pubImg3.src = pubs[++pub2];
   
   pubT = setTimeout("AfficherPub(pubs,pubDelai)", pubDelai1);
}


function highlight(which,color){
if (document.all||document.getElementById)
which.style.backgroundColor=color
}

function verifForm(formulaire) 
{ 
if(formulaire.SNom.value == "" || formulaire.SPrenom.value == "" || formulaire.SAdresse.value == "" || formulaire.SCP.value == "" || formulaire.SVille.value == "" || formulaire.STel.value == "" || formulaire.SEmail.value == "") 
alert('UN CHAMP OBLIGATOIRE (*) N\'EST PAS REMPLI\n');
else 
formulaire.submit();  
} 


function verifFormContact(formulaire) 
{ 
if(formulaire.SEmail.value == "" || formulaire.STel.value == "" ) 
alert('UN CHAMP OBLIGATOIRE (*) N\'EST PAS REMPLI\n');
else 
formulaire.submit();  
}


function AjoutPanier(Ref){   window.open("ajoutpanier.php?RefHR="+Ref,"Ajout au panier","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=400,height=550,left=0,top=0");
} 

function map(Ref){   
window.open("map.php" + '?Ref='+ Ref,"MAP HR","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=600,height=700,left=0,top=0");
}

