function SubmitProc2(URL,height,width,winName) { winstyle="height="+height+",width="+width+",status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=yes,left=80,top=50"; MM_openBrWindow(URL,winName,winstyle); } function MM_openBrWindow(theURL,winName,features) { var winUpl if (winUpl) winUpl.close(); winUpl = window.open(theURL,winName,features); winUpl.focus(); } function preview(wref,wtit,wL,wH,url) { params="resizable=1,status=0,scrollbars=0,toolbar=0,width="+wL+",height="+wH; remote=window.open('preview.asp?p='+url,wref,params); remote.focus(); if (remote.opener==null) remote.opener=window; } var re_date = /^\d{1,2}\/\d{1,2}\/\d{2,4}$/; var re_email = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$/ ; var msg = ""; var msg_debut = "Attention,\n"; function valide() { if (document.Wiz.region_data.value == "0" || document.Wiz.region_data.value == "" ) { alert("Merci de choisir votre région"); document.Wiz.region_data.focus(); return (false); } if (document.Wiz.equipage.value == "0" ) { alert("Merci de choisir votre équipage"); document.Wiz.equipage.focus(); return (false); } with (document.Wiz) { t_date = re_date.test(Wiz.dates.value); // t_email = re_email.test(email.value); } if ( t_date) msg = "test correct."; else { msg = msg_debut; // if (!t_email) msg += "l'adresse email est incorrecte\n" ; if (!t_date) msg += "la date est incorrecte\n" ; //alert(msg); alert("Attention votre DATE DE DEPART,\n n'a pas été saisie correctement. "); document.Wiz.dates.focus(); return false; } } function selectfamily(Langue) { if(Langue.options[Langue.selectedIndex].value=="") { //alert('Veuillez sélectionner une gamme d\'articles dans le menu.'); parent.location.href ="?pays="+Langue.options[Langue.selectedIndex].value+"&equipage="+document.Wiz.equipage .value+"&dates="+document.Wiz.dates .value+"&duree_code="+document.Wiz.duree_code.options[document.Wiz.duree_code.selectedIndex].value; Langue.selectedIndex=0; } else { parent.location.href ="?pays="+Langue.options[Langue.selectedIndex].value+"&equipage="+document.Wiz.equipage .value+"&dates="+document.Wiz.dates .value+"&duree_code="+document.Wiz.duree_code.options[document.Wiz.duree_code.selectedIndex].value; Langue.selectedIndex=0; } } function pop_zoom() { var px px=document.Wiz.region_data.options[document.Wiz.region_data.selectedIndex].value.replace("C","") if (px==0) { alert('Sélectionnez d\'abord une region') } else { lib('wanim','iti','600','750','pop_iti_all.asp?iti='+px+'&L=') } } function s_region(f_choice, s_choice) { switch(f_choice.name) { } next_d = document.Wiz.canal s_base(next_d, s_choice) } function s_base(f_choice, s_choice) { swp = f_choice l_array = eval(s_choice) swp.length = l_array.length/2 for(i = 0; i < l_array.length; i++) { swp.options[i/2] = new Option(l_array[i++], l_array[i], false, false) } swp.options[0].selected = true } function lib(wref,wtit,wL,wH,url) { params="resizable=1,status=1,scrollbars=1,toolbar=0,width="+wL+",height="+wH; remote=window.open(url,wref,params); remote.focus(); if (remote.opener==null) remote.opener=window; } function validbutton1() { DateWindow=window.open("calendrier.asp?origine=dates","calendrier","width=215,height=180,top=120,left=120,resizable=yes,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,"); DateWindow.focus(); }