function trim(str){ return str.replace(/^\s+/, '').replace(/\s+$/, ''); } function displayWindow(theURL,winName,width,height,features) { var window_width = width; var window_height = height; var newfeatures= features; var window_top = (screen.height-window_height)/2; var window_left = (screen.width-window_width)/2; newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=' + newfeatures + ''); newWindow.focus(); } function applique_tarif(){ document.leformulaire.action="new_caddy_paiement.php" ; document.leformulaire.submit(); } function grille_tailles(langue){ if (langue=='fr') { window.open("../../images/grilles/taille_"+langue+".gif",'grille','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=640,height=400'); } if (langue=='en') { window.open("../../images/grilles/taille_"+langue+".gif",'grille','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=440,height=400'); } } function change_qt(index,quantite){ //location.href="/include/javascript_functions.inc.js?change_qt=1&quantite="+quantite+"&index="+index; location.href="caddy.php?change_qt=1&quantite="+quantite+"&index="+index; } function ajout_panier(ref){ // location.href="/include/javascript_functions.inc.js?choix=ajout_ref&ref="+ref+"&taille=42&couleur=86&quantite=1"; // alert ('ajout panier ? c koi ce bronx ...'); } function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i