document.write(""); function changer_langue(langue){ var strURL = new String(document.location); if (langue == "an"){ strURL = strURL.replace("_fr","_an") } if (langue == "fr"){ strURL = strURL.replace("_an","_fr"); } location.href=strURL; } function modalwin_popup(url, nom, mwidth, mheight, configuration) { if (document.all&&window.print) //if ie5 window.showModalDialog(url,nom,"help:no;resizable:no;edge:raised;status:no;dialogWidth:"+mwidth+"px;dialogHeight:"+mheight+"px"); else window.open(url,nom,configuration); }; function valider_demande_information(){ if(document.demande.nom.value=="" || document.demande.courriel.value==""){ alert("Les champs suivants doivent être remplis :\n\n- Nom et prénom\n- Courriel"); } else{ document.demande.submit(); } } function inscription_lettre(lang){ if (document.getElementById("nom").value=="") { if(lang=="fr"){ alert("Vous devez entrer votre nom"); return; } else{ alert("Please enter your name"); return; } } if (document.getElementById("courriel").value=="") { if(lang=="fr"){ alert("Vous devez entrer votre courriel"); return; } else{ alert("Please enter your email address"); return; } } else { var rep; if(lang=="fr"){ rep=confirm("Voulez-vous vraiment vous abonner à cette liste d'envoi?"); } else{ rep=confirm("Are you sure you want to subscribe to this list?"); } var url_iframe = "http://www2.d4m.com/soluss/atr/abonnement_motoneige_" + lang + ".asp?"; if (rep==true){ if (document.getElementById("nom").value!="") url_iframe += "nom="+document.getElementById("nom").value; if (document.getElementById("courriel").value!="") url_iframe += "&courriel="+document.getElementById("courriel").value; document.getElementById("iframe").src=url_iframe; } } }