function setCookie(c_name,value,days){if (days) {var date=new Date(); date.setDate(date.getDate()+days); var expires = "; expires="+exdate.toUTCString(); }else var expires = ""; document.cookie=c_name+ "=" +escape(value)+expires+"; path=/";  }function getCookie(name) {	var arg=name+"=";   var alen=arg.length; 	var clen=document.cookie.length; 	var i=0; 	while (i<clen) {		var j=i+alen; 		if (document.cookie.substring(i, j)==arg)                        return getCookieVal (j);                 i=document.cookie.indexOf(" ",i)+1;                         if (i==0) break;}	return null; }function getCookieVal(offset) {	var endstr=document.cookie.indexOf (";", offset); 	if (endstr==-1)      		endstr=document.cookie.length; 	valu=unescape(document.cookie.substring(offset, endstr));   return Number(valu)}function setparam(mdf, mds){setCookie('formmod',mdf); setCookie('shoemod',mds); }function affdetail(modform,modplate){var w; w=window.open('', 'image', 'width=100, height=100, menubar=no, toolbar=no, scrollbars=no, status=no, location=no, resizable=no'); w.document.open(); w.document.write("<html xmlns='http://www.w3.org/1999/xhtml'><head>"); w.document.write("<link rel='stylesheet' href='../styles.css' type='text/css' />"); w.document.write("<script type='text/javascript'>"); w.document.write("function checksize()  { if (document.images[0].complete) { large=document.images[0].width; haut=document.images[0].height; "); w.document.write("window.resizeTo(large+50,haut+300); window.focus();} "); w.document.write("else { setTimeout('checksize()',250) } } "); w.document.write("function afftable(fileta) { var y; y=window.open(fileta, 'image'); y.focus(); } </script></head>"); w.document.write("<body onload='checksize()'  marginwidth='10' marginheight='10'>"); w.document.write("<center><b>"+txchass[langue]+compos[modform][langue]+"<br />"); w.document.write(txplate[modplate][langue]+"</b><br /><br />"); w.document.write("<img src='../images/"+txplate[modplate][0]+"' border='0' /><br /><br />"); w.document.write("<a href='javascript:afftable(\""+txtable[langue]+txplate[modplate][4]+"\")'>"); w.document.write(txtable[langue+3]+"</a><br />"+txtable[langue+6]); w.document.write("<br /><br /><input type='button' value='"+txclose[langue]+"' onclick='window.close()' /></center>"); w.document.write("</body></html>"); w.document.close(); w.focus(); } function affphoto(modl,foto){var w; w=window.open('', 'image', 'width=100, height=100, menubar=no, toolbar=no, scrollbars=no, status=no, location=no, resizable=no'); w.document.open(); w.document.write("<html xmlns='http://www.w3.org/1999/xhtml'><head>"); w.document.write("<link rel='stylesheet' href='../styles.css' type='text/css' />"); w.document.write("<script type='text/javascript'>"); w.document.write("function checksize()  { if (document.images[0].complete) { large=document.images[0].width; haut=document.images[0].height; "); w.document.write("window.resizeTo(large+50,haut+200); window.focus();} "); w.document.write("else { setTimeout('check()',250) } } </script></head>"); w.document.write("<body onload='checksize()'  marginwidth='10' marginheight='10'>"); w.document.write("<center><b>"+modl+"</b><br /><br />"); w.document.write("<img src='"+foto+"' border='0' />"); w.document.write("<br /><br /><input type='button' value='"+txclose[langue]+"' onclick='window.close()' /></center>"); w.document.write("</body></html>"); w.document.close(); w.focus(); } function taillesavail(){ptmin=pture[modmod][3]; ptl=pture[modmod].length-1; ptmax=pture[modmod][ptl]; document.write(ptmin+" - "+ptmax); }function taillesdisp(){taille=taillun[langue]; document.write("<option selected='selected'> </option>");for(i=3;i<=ptl;i++){ptpt=pture[modmod][i]; document.write("<option>"+ptpt); if(ptpt==28){document.write("/29/30 ("+taille+")");} else if (ptpt==31){document.write("/32 ("+taille+")");} else if (ptpt==33){document.write("/34 ("+taille+")");} else document.write("</option>");};}function prtcoul(couleur){lcd=couleur.length;coul=couleur[0];document.write(coulroue[coul][langue]);if (lcd>1) {for (i=1;i<lcd;i++){coul=couleur[i];document.write("<br /><br />" + coulroue[coul][langue]);}}}function prtlicoul(couleur){lcd=couleur.length;coul=couleur[0];document.write(coulroue[coul][langue]);if (lcd>1) {for (i=1;i<lcd;i++){coul=couleur[i];document.write(", " + coulroue[coul][langue]);}}}function selcoul(couleur){document.write("<option selected='selected'> </option>");lcd=couleur.length;for (i=0;i<lcd;i++){coul=couleur[i];document.write("<option>" + coulroue[coul][langue] + "</option>");}}function cmdcoul(formule,couleur){document.write("<option selected='selected'>" + coulroue[formule][langue] + "</option>"); lcd=couleur.length; if (lcd>1) {for (i=0;i<lcd;i++){coul=couleur[i]; if (!(coul==formule)) document.write("<option>" + coulroue[coul][langue] + "</option>");}}}
