\n'); } var nav = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 5 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))); function couleur(obj) { if (nav) obj.style.backgroundColor = "#FFFFFF"; } function check() { var msg = ""; if (!(document.formulairec.oramip.checked || document.formulairec.atmo.checked || document.formulairec.alerte.checked)) msg += "Vous devez choisir au moins une lettre d'information\n"; if (document.formulairec.email.value == "") { msg += "Le champ 'Votre email' est obligatoire\n"; if (nav) document.formulairec.email.style.backgroundColor = "#01B903"; } else { indexAroba = document.formulairec.email.value.indexOf('@'); indexPoint = document.formulairec.email.value.indexOf('.'); if ((indexAroba < 0) || (indexPoint < 0)) msg += "Le champ 'Votre email' est incorrect\n"; } if (msg == "") return(true); else { alert(msg); return(false); } } function zoom(page,tx,ty) { if (parseInt(navigator.appVersion) > 3) { x1 = parseInt((screen.availWidth - tx) / 2); y1 = parseInt((screen.availHeight - ty) / 2); } else { x1 = 50; y1 = 50; } if (fen != null) fen.close(); var fen = window.open(page,"Acces","status=no,toolbar=no,resizable=0,scrollbars=no,width=" + tx + ",height=" + ty + ",left=" + x1 + ",top=" + y1); fen.focus(); return false; } // Popup sondage tx = 690; ty = 550; if (parseInt(navigator.appVersion) > 3) { x1 = parseInt((screen.availWidth - tx) / 2); y1 = parseInt((screen.availHeight - ty) / 2); } else { x1 = 50; y1 = 50; } //window.open("sondage/index.php","Sondage","status=no,toolbar=no,resizable=0,scrollbars=1,width=" + tx + ",height=" + ty + ",left=" + x1 + ",top=" + y1); function openBrWindow(theURL,winName,width,height,features,bCentre) { //v3.0 by Kaori Dév 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; if(bCentre == 'false'){ newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + newfeatures + ''); }else{ url = theURL; nomFenetre = winName; optionsFenetre = 'width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + newfeatures; newWindow=window.open(''+ url + '', '' + nomFenetre + '', '' + optionsFenetre + ''); } newWindow.focus(); } //-->
|
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||