function liste(f,q,t){var l0=f.elements.list0;var l1=f.elements["list"+(q-1)];var l2=f.elements["list"+q];var index=l1.selectedIndex;for(i=q;i<=t;i++){f.elements["list"+i].options.length=0}if(index==0){f.elements.list1.options.length=0;f.elements.list2.options.length=0;if(document.getElementById("optGroup")){f.elements.list2.removeChild(optGroup)}if(document.getElementById("optGroup2")){f.elements.list2.removeChild(optGroup2)}f.elements.list1.options[0]=new Option("2-","0");f.elements.list2.options[0]=new Option("3-","0");f.elements.list0.selectedIndex=0;f.elements.list0.focus()}if(index>0){var xhr_object=null;if(window.XMLHttpRequest){xhr_object=new XMLHttpRequest()}else{if(window.ActiveXObject){xhr_object=new ActiveXObject("Microsoft.XMLHTTP")}else{alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");return}}xhr_object.open("POST","/inclus/_getdata.php?q="+q,true);xhr_object.onreadystatechange=function(){if(xhr_object.readyState==4){eval(xhr_object.responseText)}};xhr_object.setRequestHeader("Content-type","application/x-www-form-urlencoded");var data="champ="+escape(l1.options[index].value)+"&form="+f.name+"&select=list"+q;xhr_object.send(data)}}function checkform(a){if(a.list0.value==0){alert("Veuillez choisir une région...");return false}else{if(a.list0.value==0){alert("Veuillez choisir un département...");return false}else{if(a.list2.value==0){alert("Veuillez choisir une ville.");return false}}}return true}function test(d){if(d.list0.value==0||d.list1.value==0||d.list2.value==0){alert("Formulaire incomplet !")}else{var a="";var c=form_selects.list2.options[form_selects.list2.selectedIndex].value;var e=c.split("/");var b=0;if(b!=0){a="/restaurants/"+form_selects.list0.options[form_selects.list0.selectedIndex].value+"/"+form_selects.list1.options[form_selects.list1.selectedIndex].value+"/"+form_selects.list2.options[form_selects.list2.selectedIndex].value+"/voir-tous-les-restaurants-a-"+e[1]+"-et-de-cuisine-"+noaccent(form_selects.cuisine.options[form_selects.cuisine.selectedIndex].text)+"-"+form_selects.cuisine.options[form_selects.cuisine.selectedIndex].value+"-p0.html"}else{a="/restaurants/"+form_selects.list0.options[form_selects.list0.selectedIndex].value+"/"+form_selects.list1.options[form_selects.list1.selectedIndex].value+"/"+form_selects.list2.options[form_selects.list2.selectedIndex].value+"/voir-tous-les-restaurants-a-"+e[1]+"-p0.html"}a=a.toLowerCase();document.location.href=a.replace(/\s/g,"-")}}var message="";function clickIE(){if(document.all){(message);return false}}function clickNS(a){if(document.layers||(document.getElementById&&!document.all)){if(a.which==2||a.which==3){(message);return false}}}if(document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS}else{document.onmouseup=clickNS;document.oncontextmenu=clickIE}document.oncontextmenu=new Function("return false");