var isIE6=(navigator.userAgent.indexOf("MSIE 6")!=-1)?true:false;var isIE7=(navigator.userAgent.indexOf("MSIE 7")!=-1)?true:false;var IE6Hack=Class.create({initialize:function(){this.IE6=(navigator.appVersion.indexOf("MSIE 6")!=-1)?true:false},pngFix:function(a){if(this.IE6){for(var b=0;b<document.images.length;b++){var c=document.images[b];this.pngFixItem(a,c);c.style.visibility="visible"}}},pngFixItem:function(b,a){if(this.IE6){if(a.src.substring(a.src.length-3,a.src.length)=="png"){a.style.height=a.style.width="";a.style.height=a.offsetHeight+"px";a.style.width=a.offsetWidth+"px";a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+a.src+",sizingMethod='scale')";a.src=b}}},pngFixRoll:function(a){if(this.IE6){Event.observe(a,"mouseover",this.pngRoll.bindAsEventListener(this,0,1));Event.observe(a,"mouseout",this.pngRoll.bindAsEventListener(this,1,0))}},pngRoll:function(c,a,b){Event.element(c).style.filter=Event.element(c).style.filter.replace("-"+a+".png","-"+b+".png")},fixLayerWithFrame:function(f,a,d){if(this.IE6&&$(a)){$(a).parentNode.removeChild($(a))}if(this.IE6&&!$(a)){var b=document.createElement("iframe");var c=f.appendChild(b);c.id=a;Element.setStyle(c,{position:"absolute",top:(d.top)?d.top+"px":f.offsetTop+"px",left:(d.left)?d.left+"px":f.offsetLeft+"px",width:(d.width)?d.width+"px":f.offsetWidth+"px",height:(d.height)?d.height+"px":f.offsetHeight+"px",filter:"alpha(opacity=0);",border:"10px",zIndex:-20})}}});var urlPixGif="/static/images/pix.gif";var myIE6Hack=new IE6Hack();var popInfosCloseTime=2000;var subMenuInit=-1;function MM_jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if(restore){selObj.selectedIndex=0}}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}var w3c=document.getElementById?true:false;var iex=document.all?true:false;var ns4=document.layers?true:false;function fixNetscape(){if(origWidth!=window.innerWidth||origHeight!=window.innerHeight){window.location.reload()}}if(ns4){origWidth=window.innerWidth;origHeight=window.innerHeight;window.onresize=fixNetscape}function newImage(a){img=new Image();img.src=a;return img}function imageSwap(a,b,c){if(ns4&&c!=null){document.layers[c].document.images[a].src=b.src}else{document.images[a].src=b.src}}function getStyle(name,nest){nest=nest?"document."+nest+".":"";if(document.getElementById(name)){return w3c?document.getElementById(name).style:iex?document.all[name].style:ns4?eval(nest+"document."+name):false}}Menus=new Object();var curMenu=null;MakeMenu=function(name,left,top,rollimg,rollout,rollover,rolldiv){this.name=name;this.left=left;this.top=top;this.timer=null;this.rollimg=rollimg;this.rollout=newImage(rollout);this.rollover=newImage(rollover);this.rolldiv=(rolldiv!=null)?rolldiv:null;this.obj=name+"Object";eval(this.obj+"=this")};MakeMenu.prototype.show=function(){clearTimeout(this.timer);getStyle(this.name).visibility="visible";imageSwap(this.rollimg,this.rollover,this.rolldiv);curMenu=this.name;if(this.w&&this.h){PI_rescueFrame($(this.name),0,this.w,this.h)}else{PI_rescueFrame($(this.name),0)}};MakeMenu.prototype.hide=function(){this.timer=setTimeout(this.obj+".hideIt()",50)};MakeMenu.prototype.hide2=function(){this.timer=setTimeout(this.obj+".hideIt()",50)};MakeMenu.prototype.hideIt=function(){getStyle(this.name).visibility="hidden";imageSwap(this.rollimg,this.rollout,this.rolldiv)};MakeMenu.prototype.startMenu=function(){var a;if(ns4){a='<layer name="'+this.name+'" left="'+this.left+'" top="'+this.top+'" z-index="2000" visibility="hidden" '}else{a='<div id="'+this.name+'" style="position:relative; left:'+this.left+"px; top:"+this.top+'px; z-index:2000; visibility:hidden" '}a+='onMouseOver="Menus.'+this.name+'.show()" onMouseOut="Menus.'+this.name+'.hide()">';return a};hideCur=function(){if(curMenu!=null){Menus[curMenu].hideIt();curMenu=null}};endMenu=function(){return ns4?"</layer>":"</div>"};createMenu=function(c,g,f,a,b,d,e){Menus[c]=new MakeMenu(c,g,f,a,b,d,e)};createLayer=function(a,c,b){Layer[a]=new MakeMenu(a,c,b)};makeMyLayer=function(a){if(!$("produit_"+a)){createLayer("produit_"+a,-62,-121);$("popUpProduit_"+a).wrap(Layers["produit_"+a].startEndLayer(230,230));$("popUpProduit_"+a).show()}};Layers=new Object();var curLayer=null;var openZoom;MakeLayer=function(name,left,top){this.name=name;this.left=left;this.top=top;this.timer=null;this.obj=name+"Object";eval(this.obj+"=this")};MakeLayer.prototype.show=function(){clearTimeout(this.timer);getStyle(this.name).visibility="visible";getStyle(this.name).display="block";var b=$(this.name).getElementsByTagName("img");if(b.length>0){for(var a=0;a<b.length;a++){myIE6Hack.pngFixItem(urlPixGif,b[a])}}curLayer=this.name;if(openZoom&&openZoom!=this){openZoom.hideIt()}openZoom=this;if(curLayer.indexOf("total")==-1){if(this.w&&this.h){PI_rescueFrame($(this.name),0,this.w,this.h)}else{PI_rescueFrame($(this.name),0)}}var c=this.name;Event.observe(document,"mouseup",function(){Layers[c].hide();Event.stopObserving(document,"mouseup")})};MakeLayer.prototype.hide=function(){this.timer=setTimeout(this.obj+".hideIt()",50)};MakeLayer.prototype.hideIt=function(){if($(this.name)){getStyle(this.name).visibility="hidden";getStyle(this.name).display="none"}};MakeLayer.prototype.startLayer=function(a,c){this.w=a;this.h=c;var b;if(ns4){b='<layer name="'+this.name+'" left="'+this.left+'" top="'+this.top+'" z-index="1000" visibility="hidden" '}else{b='<div id="'+this.name+'" style="position:relative; cursor:pointer; left:'+this.left+"px; top:"+this.top+'px; z-index:1000; visibility:hidden;" '}if(this.name.indexOf("produit")!=-1){b+='onClick="Layers.'+this.name+'.hide();">'}else{b+='onMouseOver="Layers.'+this.name+'.show()" onMouseOut="Layers.'+this.name+'.hide()">'}return b};MakeLayer.prototype.startEndLayer=function(a,c){this.w=a;this.h=c;var b;if(ns4){b=new Element("layer",{name:this.name,left:this.left,top:this.top,"z-index":"1000",visibility:"hidden"})}else{b=new Element("div",{id:this.name,style:"position:relative; left:"+this.left+"px; top:"+this.top+"px; z-index:1000; visibility:hidden"})}if(this.name.indexOf("produit")!=-1){b.writeAttribute("onClick","Layers."+this.name+".hide();")}else{b.writeAttribute("onMouseOver","Layers."+this.name+".show();");b.writeAttribute("onMouseOut","Layers."+this.name+".hide();")}return b};hideCur=function(){if(curLayer!=null){Layers[curLayer].hideIt();curLayer=null}};endLayer=function(){return ns4?"</layer>":"</div>"};createLayer=function(a,c,b){Layers[a]=new MakeLayer(a,c,b)};var Pops=new Object();var curPop=null;MakePop=function(name,left,top){this.name=name;this.left=left;this.top=top;this.timer=null;this.obj=name+"Object";eval(this.obj+"=this")};MakePop.prototype.show=function(){clearTimeout(this.timer);var a=this.name.split("_");var b=scrollNodes[a[1]-1];getStyle(this.name).top=(b.offsetTop+b.offsetHeight-30)+"px";getStyle(this.name).left=(b.offsetLeft-30-$("scMask").scrollLeft)+"px";getStyle(this.name).visibility="visible";curPop=this.name};MakePop.prototype.hide=function(){this.timer=setTimeout(this.obj+".hideIt()",50)};MakePop.prototype.hideIt=function(){getStyle(this.name).visibility="hidden"};MakePop.prototype.startLayer=function(a,c){this.w=a;this.h=c;var b;if(ns4){b='<layer name="'+this.name+'" left="'+this.left+'" top="'+this.top+'" z-index="1000" visibility="hidden" '}else{b='<div id="'+this.name+'" style="position:relative; left:'+this.left+"px; top:"+this.top+'px; z-index:1000; visibility:hidden" '}b+='onMouseOver="Pops.'+this.name+'.show()" onMouseOut="Pops.'+this.name+'.hide()">';return b};hideCur=function(){if(curPop!=null){Pops[curPop].hideIt();curPop=null}};endPop=function(){return ns4?"</layer>":"</div>"};createPop=function(a,c,b){Pops[a]=new MakePop(a,c,b)};function PI_rescueFrame(f,g,b,d){if(isIE6){if(!$("rescueFrame"+f.id)){var e=document.createElement("iframe");var a=f.appendChild(e);a.id="rescueFrame";a.style.position="absolute";if(g||g==0){a.style.top=g;a.style.left=g}else{a.style.top=f.offsetTop+"px";a.style.left=f.offsetLeft+"px"}a.style.width=(b)?b+"px":f.offsetWidth+"px";a.style.height=(d)?d+"px":f.offsetHeight+"px";if(a.style.height=="0px"&&$("pageFicheProduit")||f.id.indexOf("submenu")!=-1){var c=f.getElementsByTagName("div");if(c){a.style.height=c[0].offsetHeight}}a.style.border="10px";a.style.zIndex=-20}}}function openPlanning(){var a=document.getElementById("page").offsetHeight;$("colorZone").style.height=(a+"px");$("colorZone").style.visibility="visible";$("colorZone").style.display="block";$("popUpPlanning").style.visibility="visible";$("popUpPlanning").style.display="block"}function openCalendar(a){$("popUpPlanning").className="planningType"+a}function hidePlanning(){$("colorZone").style.visibility="hidden";$("colorZone").style.display="none";$("popUpPlanning").style.visibility="hidden";$("popUpPlanning").style.display="none";$("popUpPlanning").className="defaultPlanning"}function openCGV(){var a=document.getElementById("page").offsetHeight;$("colorZone").style.height=(a+"px");$("colorZone").style.visibility="visible";$("colorZone").style.display="block";$("popUpCGV").style.visibility="visible";$("popUpCGV").style.display="block"}function hideCGV(){$("colorZone").style.visibility="hidden";$("colorZone").style.display="none";$("popUpCGV").style.visibility="hidden";$("popUpCGV").style.display="none"}function openLostId(){var a=document.getElementById("page").offsetHeight;$("colorZone").style.height=(a+"px");$("colorZone").style.visibility="visible";$("colorZone").style.display="block";$("popUpLostId").style.visibility="visible";$("popUpLostId").style.display="block"}function hideLostId(){$("colorZone").style.visibility="hidden";$("colorZone").style.display="none";$("popUpLostId").style.visibility="hidden";$("popUpLostId").style.display="none"}function openAmmount(){var a=document.getElementById("page").offsetHeight;$("colorZone").style.height=(a+"px");$("colorZone").style.visibility="visible";$("colorZone").style.display="block";$("popUpAmmount").style.visibility="visible";$("popUpAmmount").style.display="block"}function hideAmmount(){$("colorZone").style.visibility="hidden";$("colorZone").style.display="none";$("popUpAmmount").style.visibility="hidden";$("popUpAmmount").style.display="none"}function openMag(){var a=document.getElementById("page").offsetHeight;$("colorZone").style.height=(a+"px");$("colorZone").style.visibility="visible";$("colorZone").style.display="block";$("popUpMagasin").style.visibility="visible";$("popUpMagasin").style.display="block"}function hideMag(){$("colorZone").style.visibility="hidden";$("colorZone").style.display="none";$("popUpMagasin").style.visibility="hidden";$("popUpMagasin").style.display="none"}function openTarifs(){var a=document.getElementById("page").offsetHeight;$("colorZone").style.height=(a+"px");$("colorZone").style.visibility="visible";$("colorZone").style.display="block";$("popUpTarifs").style.visibility="visible";$("popUpTarifs").style.display="block"}function hideTarifs(){$("colorZone").style.visibility="hidden";$("colorZone").style.display="none";$("popUpTarifs").style.visibility="hidden";$("popUpTarifs").style.display="none"}var menData=new Array();var menActive=-1;function buildSMen(){if($("menu")){var e=$("menu");var a=$$("#menu h4");for(var b=0;b<a.length;b++){if(a[b].parentNode.getElementsByTagName("ul")[0]){a[b].parentNode.id="menLeft"+b;var d=new Object();var c=$("menLeft"+b);d.link=c.getElementsByTagName("h4")[0].getElementsByTagName("a")[0];d.url=c.getElementsByTagName("h4")[0].getElementsByTagName("a")[0].href;d.click="javascript:showSMen("+b+");";d.add=c.getElementsByTagName("h4")[0].getElementsByTagName("span")[0].innerHTML;d.sub=c.getElementsByTagName("ul")[0];menData[b]=d;d.link.removeChild(c.getElementsByTagName("h4")[0].getElementsByTagName("span")[0]);d.link.setAttribute("href",d.click)}}if(subMenuInit!=-1){showSMen(subMenuInit)}}}function showSMen(d){if(menActive!=-1){hideSMen(menActive)}var c=menData[d];c.link.setAttribute("href",c.url);var b=document.createElement("span");var a=document.createTextNode(c.add);b.appendChild(a);c.link.appendChild(b);c.sub.style.display="block";menActive=d}function hideSMen(b){var a=menData[b];a.link.setAttribute("href",a.click);a.link.removeChild(a.link.getElementsByTagName("span")[0]);a.sub.style.display="none";menActive=-1}function showMenuLvl3(b,a){objNext=$(a).up().next();if(objNext&&objNext.getStyle("display")=="block"){appelZone(a,b)}$(a).up(2).select("ul").each(function(c){c.setStyle("display:none")});if(objNext){objNext.setStyle("display:block")}else{appelZone(a,b)}}function appelZone(a,c){var b=Tapestry.findZoneManager($(a));if(!b){return}b.updateFromURL("/listeproduits.layout.colonnegauche.colonnegauche.myid:dBClick/"+c)}function loadListProduit(b,a){new Ajax.Request("/ListeProduits/"+b,{method:"GET",parameters:"from=ok",onComplete:function(c){$("navigajax").innerHTML=c.responseText;(function(){$$(".chemin script").each(function(f){myJs=("<script>"+f.innerHTML+"<\/script>");myJs=myJs.replace("<!--","");myJs=myJs.replace("//-->","");myJs.evalScripts()});var e='<script>Tapestry.init({"linkZone":[';$$("#items form").each(function(f){e=e+'["'+f.readAttribute("id")+'", "shoppingCartZone", "'+f.readAttribute("action")+'"],'});e=e.substr(0,e.length-1);e=e+"]});<\/script>";e.evalScripts()}).delay(0.5,this);$("contenu").parentNode.parentNode.id="pageListingProduit";var d=0;$$("#contenu .item").each(function(e){d++;createLayer("produit"+d,-62,-121);var f=document.createElement("div");f.id="produit"+d;f.style.zIndex=1000;f.style.left=-62+"px";f.style.top=-121+"px";f.style.position="relative";f.style.cursor="pointer";f.style.visibility="hidden";f.innerHTML="<div class='popUpProduit'>"+e.down().nextSibling.innerHTML+"</div>";e.down().nextSibling.innerHTML="";e.removeChild(e.down().nextSibling);e.insertBefore(f,e.down().nextSibling)});loadPng()}})}function stripJSComment(a){a=a.replace("<!-- //","");a=a.replace("// -->","");return a}Ajax.Request.prototype.setRequestHeaders=Ajax.Request.prototype.setRequestHeaders.wrap(function(a){this.transport.setRequestHeader("If-Modified-Since","Thu, 1 Jan 1970 00:00:00 GMT");a()});function reloadFromPagination(b){var a=b.element().up().readAttribute("href");if(a&&b){b.stop();new Ajax.Request(a,{method:"GET",requestHeaders:{"X-Requested-With":""},onCreate:function(){$(document.body).setStyle({cursor:"progress"})},onSuccess:function(d){rText=d.responseText;rText=rText.replace("<!-- //","");rText=rText.replace("// -->","");var c=new Element("div");c.innerHTML=rText;$(document.body).setStyle({cursor:"auto"});$("contenu").innerHTML=c.down("[id=contenu]").innerHTML;var f=0;$$("#contenu .item").each(function(g){f++;createLayer("produit"+f,-62,-121);var h=document.createElement("div");h.id="produit"+f;h.style.zIndex=1000;h.style.left=-62+"px";h.style.top=-121+"px";h.style.position="relative";h.style.cursor="pointer";h.style.visibility="hidden";h.innerHTML="<div class='popUpProduit'>"+g.down().nextSibling.innerHTML+"</div>";g.down().nextSibling.innerHTML="";g.removeChild(g.down().nextSibling);g.insertBefore(h,g.down().nextSibling);g.down(".ajouter input").writeAttribute("value","")});loadPng();$$(".paginationPrev a, .paginationNext a").each(function(g){g.observe("click",reloadFromPagination)});var e='<script>Tapestry.init({"linkZone":[';$$("#items form").each(function(g){e=e+'["'+g.readAttribute("id")+'", "shoppingCartZone", "'+g.readAttribute("action")+'"],'});e=e.substr(0,e.length-1);e=e+"]});<\/script>";e.evalScripts.bind(e).defer();c.evalScripts.bind(c).defer()}})}}function safeOnChange2(a){$(a).request({requestHeaders:{"X-Requested-With":""},onCreate:function(){$(document.body).setStyle({cursor:"progress"})},onSuccess:function(c){rText=c.responseText;rText=rText.replace("<!-- //","");rText=rText.replace("// -->","");var b=new Element("div");b.innerHTML=rText;$("contenu").innerHTML=b.down("[id=contenu]").innerHTML;$(document.body).setStyle({cursor:"auto"});var e=0;$$("#contenu .item").each(function(f){e++;createLayer("produit"+e,-62,-121);var g=document.createElement("div");g.id="produit"+e;g.style.zIndex=1000;g.style.left=-62+"px";g.style.top=-121+"px";g.style.position="relative";g.style.cursor="pointer";g.style.visibility="hidden";g.innerHTML="<div class='popUpProduit'>"+f.down().nextSibling.innerHTML+"</div>";f.down().nextSibling.innerHTML="";f.removeChild(f.down().nextSibling);f.insertBefore(g,f.down().nextSibling);f.down(".ajouter input").writeAttribute("value","")});loadPng();$$(".paginationPrev a, .paginationNext a").each(function(f){f.observe("click",reloadFromPagination)});var d='<script>Tapestry.init({"linkZone":[';$$("#items form").each(function(f){d=d+'["'+f.readAttribute("id")+'", "shoppingCartZone", "'+f.readAttribute("action")+'"],'});d=d.substr(0,d.length-1);d=d+"]});<\/script>";d.evalScripts.bind(d).defer();b.evalScripts.bind(b).defer()}})}Event.observe(window,"load",function(a){$$(".loadWithAjax").each(function(b){b.observe("click",reloadFromMenu)})});function reloadFromMenu(b){window.oldScroolY=document.viewport.getScrollOffsets()[1];var a=b.element().readAttribute("href");if(!a){a=b.element().up().readAttribute("href")}if(location.protocol=="https:"){b.stop();new Ajax.Request(a,{method:"GET",evalJS:false,requestHeaders:{"X-Requested-With":""},onCreate:function(){$(document.body).setStyle({cursor:"progress"})},onSuccess:function(c){if(c.responseText){traitementResponse(c)}else{document.location=c.request.url}},onFailure:function(c){document.location=c.request.url}})}}function stripAllJSComment(a){a=a.replace("<!-- //","");a=a.replace("// -->","");a=a.replace("//-->","");a=a.replace("<!--","");a=a.replace("-->","");return a}function traitementResponse(d){try{var c=d.responseText;var b=new Element("div",{style:"display:none"});var j=c.indexOf("<body>");var p=c.indexOf("</body>",j);b.innerHTML=c.substring(j+6,p);document.body.appendChild(b)}catch(l){}if($("colonneGauche")){$("colonneGauche").remove()}if($("contenu")){$("contenu").remove()}if($("myNav")){$("myNav").remove()}if($("recherche")){$("recherche").remove()}var a=null;var f=null;a=b.select("#colonneGauche,[id=colonneGauche]")[0];f=a.next();if(f.readAttribute("id")!="contenu"){f=$("pageGauche").appendChild(b.select("#contenu,[id=contenu]")[0])}$("pageGauche").appendChild(a);$("pageGauche").appendChild(f);$$("#pageGauche .loadWithAjax").each(function(e){e.observe("click",reloadFromMenu)});if($("pageGauche").up().readAttribute("id")=="pageAccueil"){$("pageGauche").up().writeAttribute("id","pageInscription");$("pageGauche").up().addClassName("pageCompte")}window.scrollTo(0,window.oldScroolY);$(document.body).setStyle({cursor:"auto"});if(b.down("title")){document.title=b.down("title").innerHTML+""}try{var j=c.indexOf('body onload="');if(j>0){var p=c.indexOf('"',j+13);var o="<script>"+c.substring(j+13,p)+"<\/script>";o.evalScripts.bind(o).defer()}}catch(l){}var j=c.indexOf("Tapestry.init({");var p=c.indexOf("});",j);var n="<script>try{"+c.substring(j,p+3)+"}catch(e){}<\/script>";n.evalScripts.bind(n).defer();var h=b.getElementsByTagName("script");var m=$("contenu").getElementsByTagName("script");var g;var k="";for(g=0;g<h.length;g++){k=k+"<script>try{";k=k+stripAllJSComment(h[g].innerHTML);k=k+"}catch(e){}<\/script>"}for(g=0;g<m.length;g++){k=k+"<script>try{";k=k+stripAllJSComment(m[g].innerHTML);k=k+"}catch(e){}<\/script>"}try{k.evalScripts.bind(k).defer()}catch(l){}(function(){document.body.removeChild(b)}).delay(0.5,this)}submitQteProduitsPreferes=function(a,c){regex=new RegExp("^[0-9]+$");if(regex.match(a.value)){var b=Tapestry.findZoneManager($(a).previous());if(!b){return}b.updateFromURL("/mesproduitspreferes.setQtte/"+c+"/"+a.value+"/")}else{a.value=0}};delThisRowFromProduitsPreferes=function(a){var b=$("delMyParent").up(2);b.next().remove();b.next().remove();b.previous().remove();b.previous().remove();b.setAttribute("colspan","5");b.colSpan="5";b.setStyle({"text-align":"center"});b.update("Ce produit a &eacute;t&eacute; supprim&eacute; de votre liste")};submitQteProduitsListe=function(a,c){regex=new RegExp("^[0-9]+$");if(regex.match(a.value)){var b=Tapestry.findZoneManager($(a).previous());if(!b){return}b.updateFromURL("/meslistesdecourses.contenumeslistesdecoursesdetail.setqtte/"+c+"/"+a.value+"/")}else{a.value=0}};displayPopAjoutListeAuPanier=function(){showPopup("popAjoutListeAuPanier")};displayPopAjoutProduitAuPanier=function(){showPopup("popAjoutProduitAuPanier")};displayPopSupprimerProduit=function(){showPopup("popSupprimerProduit")};displayPopSupList=function(){showPopup("supList")};function validPopupForm(){if(isChampVide(document.popupAjoutListesForm.popupNouvelleListe.value)&&((document.popupAjoutListesForm.select&&isChampVide(document.popupAjoutListesForm.select.value))||(!document.popupAjoutListesForm.select))){alert("Veuillez s\351lectionner une liste ou en cr\351er une nouvelle")}else{if(!fieldIsOnError()){document.popupAjoutListesForm.submit()}}}function fieldIsOnError(){if(document.popupAjoutListesForm.select){var a=false;$$("#popupAjoutListesForm #select option").each(function(b){if(b.value!=""&&b.value==document.popupAjoutListesForm.popupNouvelleListe.value){a=true}});if(a==true){alert("Vous avez déjà utilisé ce nom pour une liste.\nVeuillez choisir un autre nom pour votre liste de courses")}return a}else{return false}}function showpopupAddProductToList(){showPopup("addProductToList")}function showpopupAddOneProductToList(){showPopup("addOneProductToList")}function limitCars(c,b){var d;var a=350;if(window.event){d=b.keyCode}else{if(b.which){d=b.which}}if(d!=8&&d!=46&&d!=37&&d!=38&&d!=39&&d!=40){if(a==$F(c).length){return false}else{if($F(c).length>a){$(c).setValue($F(c).substring(0,a));return false}}}}var updateZone=function(c,b){var a=$T(c).zoneManager;if(!a){return}a.updateFromURL(b)};
