//FRENCH FLIGHT SAFETY, Powered by BLUE ACACIA : WEB AGENCY, Créateur de liens
function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' ) {
window.sidebar.addPanel("FRENCH FLIGHT SAFETY.com","http://www.frenchflightsafety.com","");
}else {
window.external.AddFavorite("http://www.frenchflightsafety.com","FRENCH FLIGHT SAFETY.com");
}
}
function setpng(img) {
if(document.all && (IEver=parseFloat(navigator.appVersion.split("MSIE")[1])) && (IEver>=5.5) && (IEver<7) && document.body.filters && img) {
imgName=img.src.toUpperCase();
if(imgName.substring(imgName.length-3,imgName.length)=="PNG") {
img.outerHTML="";
}
}
}
function photo_afficher(image){
var texte_image=image;
document.photo_magasin.src='photos/magasins/photos/'+texte_image+'';
}
function savoir(d,e) {
//alert("pouet !");
//alert(d);
var i;
for (i=1;i<=e;i++) {
document.getElementById("savoir_mode_livraison"+i).style.display = 'none';
}
document.getElementById(d).style.display = '';
}
function savoir_menu(d) {
//alert("pouet !");
//alert(d);
if (document.getElementById(d).style.display=='') {
document.getElementById(d).style.display='none';
}else{
document.getElementById(d).style.display='';
}
}
function verifier_formulaire_afficher_article() {
//alert("pouet !");
//var choix=document.fomulaire_gamme.choix_gamme.value;
//alert(choix);
document.formulaire_afficher_article.submit();
}
function theglossaire(obj) {
if(document.getElementById(obj).style.visibility == 'visible'){
document.getElementById(obj).style.visibility = 'hidden';
}else{
document.getElementById(obj).style.visibility = 'visible';
}
}
function verification_date()
{
var reg = new RegExp("[0-9]{2}/[0-9]{2}/[0-9]{4}");
if (document.recherche.date_debut.value != '')
{
if (reg.test(document.recherche.date_debut.value) == false)
{
document.getElementById('message').innerHTML = 'La date est erronée : jj/mm/aaaa';
return (false);
}
}
if (document.recherche.date_fin.value != '')
{
if (reg.test(document.recherche.date_fin.value) == false)
{
document.getElementById('message').innerHTML = 'La date est erronée : jj/mm/aaaa';
return (false);
}
}
return true;
}
function getFlashMovie(movieName) {
var isIE = navigator.appName.indexOf("Microsoft") != -1;
return (isIE) ? window[movieName] : document[movieName];
}
function callToActionscript(nom_flash, str) {
getFlashMovie(nom_flash).sendToActionscript(str);
}
function sendToJavaScript(val) {
document.getElementById('boxX').value = val;
}