function valider() { if(document.form_inscr.chiffre.value != "7983657349") { alert("Le code est incorrect"); return false; } } function DivShow(objet) { var unidoc; if (document.getElementById){ unidoc = document.getElementById(objet).style; } else if (document.layers){ unidoc = document.layers[objet]; } else if (document.all){ unidoc = document.all[objet].style; } unidoc.visibility="visible"; } function DivHide(objet) { var unidoc; if (document.getElementById){ unidoc = document.getElementById(objet).style; } else if (document.layers){ unidoc = document.layers[objet]; } else if (document.all){ unidoc = document.all[objet].style; } unidoc.visibility= "hidden"; } function ConcHide(objet) { DivHide('conc1997'); DivHide('conc2000'); DivHide('conc2003'); } function LieuHide(objet) { DivHide('site'); DivHide('plan_acces'); } function ConcertHide(objet) { DivHide('gala'); DivHide('aperitif'); } function ShowImg(objet,newSrc) { document.images[objet].src=newSrc; } function loadIOLex(li,ww,hw,tlb,nomwin,tp,lft) { if(ww=="") { switch(screen.height) { case 480: ww="620"; hw="300"; break; case 600: ww="784"; hw="480"; break; case 768: ww="800"; hw="600"; break; case 1024: ww="800"; hw="600"; break; default: ww="800"; hw="600"; } } var wIOLEX = window.open(li,nomwin,'scrollbars=no,status=0,menubar=no,toolbar='+tlb+',resizable=no,width='+ww+',height='+hw+',top='+tp+',left='+lft+' '); wIOLEX.focus(); } function HideBlock(objet) { var unidoc; if (document.getElementById){ unidoc = document.getElementById(objet).style; } else if (document.layers){ unidoc = document.layers[objet]; } else if (document.all){ unidoc = document.all[objet].style; } unidoc.display="none"; } function get_level_hc(objet) { document.form_inscr.niveau.options[2] = null; document.form_inscr.niveau.options[2] = null; document.form_inscr.niveau.options[2] = null; if(document.form_inscr.instrument.value=="Harpe celtique") { // document.getElementById("log").innerHTML=document.form_inscr.instrument.value; document.form_inscr.niveau.options[2] = null; document.form_inscr.niveau.options[2] = null; document.form_inscr.niveau.options[2] = null; } else { var nouvel_element = new Option("« Jeune talent » (uniquement harpe à pédales)","« Jeune talent » (uniquement harpe à pédales)",false,false); document.form_inscr.niveau.options[document.form_inscr.niveau.length] = nouvel_element; var nouvel_element = new Option("« Excellence » (uniquement harpe à pédales)","« Excellence » (uniquement harpe à pédales)",false,false); document.form_inscr.niveau.options[document.form_inscr.niveau.length] = nouvel_element; var nouvel_element = new Option("« Soliste » (uniquement harpe à pédales)","« Soliste » (uniquement harpe à pédales)",false,false); document.form_inscr.niveau.options[document.form_inscr.niveau.length] = nouvel_element; } } function testform_contact(param){ if(document.forms.contactform.checkhum.value!="67985") { alert("Le code de vérification est incorrect"); return false; } document.forms.contactform.submit(); }