var valscreen=1200; //1200 //alert(screen.availWidth); function valideQuantite(Qt) { Nb=Qt.length; for (var i=0; i =0) && (s<=9)) ) { window.alert("votre code postal ne doit comporter que des chiffres, recommencez svp"); return false; } } return true; } function winOpen(url, largeur, hauteur){ gauche = (screen.width/2)-(largeur/2); haut = (screen.height/2)-(hauteur/2); window.open(url,"popup","height="+hauteur+",width="+largeur+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = yes,fullscreen = no,top ="+haut+",left ="+gauche); } function OuvFen(num_page,largeur_fenetre,hauteur_fenetre) { mafen = window.open(num_page,"mafenetre","width="+largeur_fenetre+",height="+hauteur_fenetre+",scrollbars=no,statusbar=no,toolbar=no,status=no"); //mafen.resizeTo(largeur_fenetre+20,hauteur_fenetre+20); mafen.focus(); } function OuvFenScroll(url){ //gauche = (screen.width/2)-(largeur/2); //haut = (screen.height/2)-(hauteur/2); largeur=600; hauteur=300; haut=0; gauche=0; mafen = window.open(url,"popup","height="+hauteur+",width="+largeur+",status = no,toolbar = no,menubar = no,location = no,resizable = yes,titlebar = no,scrollbars = yes,fullscreen = no,top ="+haut+",left ="+gauche); mafen.focus(); }