function validationformulairecar(){
if (document.forms.formcar.departureCity.value == "") {window.alert("Lieu de retrait du véhicule manquant !");return false;}
return true;}

function validationformulaireenvol(){
if (document.forms.formulaire.departureAirport.value == "") {window.alert("Vous partez d'où ?");return false;}
if (document.forms.formulaire.arrivalAirport.value == "") {window.alert("Vous arrivez où ?");return false;}
return true;}

function validationannuaire(){
if (document.forms.annuaire.annu_title.value == "") {window.alert("Titre manquant !");return false;}
if (document.forms.annuaire.annu_desc.value == "") {window.alert("Description manquante !");return false;}
if (document.forms.annuaire.annu_url.value == "") {window.alert("Adresse Web manquante !");return false;}
if (document.forms.annuaire.annu_tag.value == "") {window.alert("Mots clés manquants !");return false;}
if (document.forms.annuaire.annu_type.value == "") {window.alert("Type manquant !");return false;}
if (document.forms.annuaire.annu_lang.value == "") {window.alert("Langue manquante !");return false;}
if (document.forms.annuaire.annu_lien.value == "") {window.alert("Adresse du lien retour manquante !");return false;}
if (document.forms.annuaire.annu_name.value == "") {window.alert("Nom manquant !");return false;}
if (document.forms.annuaire.annu_mail.value == "") {window.alert("Email manquant !");return false;}
if (document.forms.annuaire.annu_pass.value == "") {window.alert("Mot de passe manquant !");return false;}
return true;}

function validationanecdote(){
if (document.forms.postanecdote.actu_acteur.value == "") {window.alert("Pseudo manquant !");return false;}
if (document.forms.postanecdote.actu_mail.value == "") {window.alert("Email manquant !");return false;}
if (document.forms.postanecdote.actu_cat.value == "") {window.alert("Categorie manquante !");return false;}
if (document.forms.postanecdote.actu_title.value == "") {window.alert("Titre manquant !");return false;}
if (document.forms.postanecdote.actu_desc.value == "") {window.alert("Description manquante !");return false;}
return true;}

function ajouter_favori(texte,url){ 
if (window.sidebar){window.sidebar.addPanel(texte, url,"http://www.billetavion.info/");} 
else if( document.all ){window.external.AddFavorite(url, texte);} else { return true;}}

//AFFICHAGE FLASH
function Flash(swf, hauteur, largeur, couleur, nom, remp) {
document.write('<object type="application/x-shockwave-flash" data="'+swf+'" width="'+hauteur+'" height="'+largeur+'">'+"\n");
document.write('<param name="movie" value="'+swf+'" />'+"\n");
document.write('<param name="bgcolor" value="'+couleur+'" />'+"\n");
document.write('<param name="quality" value="high" />'+"\n");
document.write('<param name="movie" value="'+swf+'" />'+"\n");
document.write(remp+"\n");
document.write("</object>\n");}

// MENU DEROULANT
window.onload=montre;
function montre(id,affiche){
var d = document.getElementById(id);
if (d && !affiche){d.style.display='none';
var c=d.parentNode;
if (c.parentNode.parentNode.parentNode.tagName!='DIV'){
c.firstChild.style.color='#06c';
c.firstChild.style.background='#fff';}}
else if (d && affiche){ d.style.display='block';
var c=d.parentNode;
if (c.parentNode.parentNode.parentNode.tagName!='DIV'){
c.firstChild.style.color='#fff';
c.firstChild.style.background='#06c';}}}