function showhideIconMenu(a,b){showhide("iconmenu"+a,b);if(getValueElement("iconadded"+a)=="1")b=="none"?showhide("added"+a,"block"):showhide("added"+a,"none");else showhide("added"+a,"none")}function updateCart(a){if(document.getElementById)document.getElementById("contenupanier").innerHTML=a;else if(document.all)document.all.contenupanier.innerHTML=a}function winWidth(){return window.innerWidth?window.innerWidth:document.body&&document.body.offsetWidth?document.body.offsetWidth:0}
function winHeight(){return window.innerHeight?window.innerHeight:document.body&&document.body.offsetHeight?document.body.offsetHeight:0}function getValueElement(a){if(document.getElementById){if(document.getElementById(a))return document.getElementById(a).value}else if(document.all)if(document.all[a])return document.all[a].value;return null}function setValueElement(a,b){if(document.getElementById)document.getElementById(a).value=b;else if(document.all)document.all[a].value=b}
function setFocus(){for(var a=0,b=0;b<5;b++)if(document.getElementById("keyword"+b).value!="")a++;else break;document.getElementById("keyword"+a).focus()}function defaultValues(){for(var a=0;a<5;a++)document.getElementById("keyword"+a).value="";for(a=0;a<4;a++)document.getElementById("format"+a).checked=1;document.getElementById("widthmin").value="";document.getElementById("widthmax").value="";document.getElementById("heightmin").value="";document.getElementById("heightmax").value="";setFocus()};