// // var WCONF1b = 'scrollbars=yes,addressbar=no, toolbar=no,location=no,directories=no,' + 'status=no,menubar=no,resizable=no,width=550,height=290'; var WCONF1 = 'scrollbars=yes,addressbar=no, toolbar=no,location=no,directories=no,' + 'status=no,menubar=no,resizable=no,width=550,height=600'; var WCONF2 = 'scrollbars=yes,toolbar=yes,location=no,directories=no,' + 'status=no,menubar=no,resizable=yes,width=600,height=700'; var WCONF2b = 'scrollbars=yes,toolbar=yes,location=no,directories=no,' + 'status=no,menubar=no,resizable=yes,width=600,height=800'; //Parametres d'ouverture de fenetre secondaire pour les BDD (GEISA) var WCONF3 = 'scrollbars=yes,toolbar=yes,location=no,directories=yes,' + 'status=yes,menubar=yes,resizable=yes,width=850,height=750'; var WCONF4 = 'scrollbars=yes,toolbar=yes,location=no,directories=yes,' + 'status=yes,menubar=yes,resizable=yes,width=1000'; var WCONF5 = 'scrollbars=yes,toolbar=no,location=no,directories=yes,' + 'status=yes,menubar=yes,resizable=yes,width=1000'; var NWIN1 = 'NWin1'; var NWIN2 = 'NWin2'; function url(param) { var chaine=window.location.search; chaine=chaine.substring(1); var dz=chaine.indexOf("#",0); if(dz!=-1) { chaine=chaine.substring(0,dz);} chaine=chaine+"&"; if(chaine.indexOf(param,0)!=-1){left=100,top=100 var pos=chaine.indexOf(param,0); var pos2=chaine.indexOf("=",pos); var pos3=chaine.indexOf("&",pos); contenu=chaine.substring(pos2+1,pos3);} return contenu } // ouvrir une fenetre secondaire function OuvrirPage (Url) { var width = 550; var height = 600; var top=(screen.height-height)/2; var left=(screen.width-width)/2; var params = WCONF1+', top='+top+', left='+left; openW (Url, NWIN1, params); } //ouvrir une fenetre secondaire function OuvrirPageWD (page,Url) { var width = 500; var height = 290; var left = (screen.width - width)/2; var top = (screen.height - height)/2; var params = WCONF1b+', top='+top+', left='+left; var w = window.open (page+"?adr="+Url, 'DISCLAIMER', params); //w.getElementsByName("ad").value=Url; //windowbib.document.getElementById('ch').getElementsByTagName("a")[0].setAttribute('href', Url); //w.focus(); } // ouvrir une autre fenetre secondaire function OuvrirPageBis (Url) { openW (Url, NWIN2, WCONF2); } function OuvrirPage4 (Url) { openW (Url, NWIN2, WCONF4); } // ouvrir une fenetre secondaire pour les BDD (GEISA) function OuvrirFeuille (Url) { openW (Url, NWIN1, WCONF3); } //ouvrir une fenetre secondaire pour les BDD (GEISA) function OuvrirFeuilleDynW (Url, w, h) { var windowbib = window.open (Url, 'w', "dependent=no,menubar=no,resizable=none,scrollbars=yes,toolbar=no,left=100,top=100,width="+w+",height="+h); //windowbib.document.getElementById('pif').getElementsByTagName("img")[0].setAttribute('src', 'resources/images/en.jpg'); } //ouvrir une fenetre secondaire pour les BDD (GEISA) function OuvrirFeuilleDyn (Url) { var windowbib = window.open (Url, 'd', "dependent=yes,menubar=no,resizable=none,scrollbars=yes,toolbar=yes,left=100,top=100,width=1100,height=600"); //windowbib.document.getElementById('pif').getElementsByTagName("img")[0].setAttribute('src', 'resources/images/en.jpg'); } //ouvrir une fenetre secondaire pour les BDD (GEISA) function OuvrirFeuilleDynM (Url) { var windowbib = window.open (Url, 'm', "dependent=yes,resizable=none,scrollbars=yes,toolbar=yes,left=100,top=100,width=760,height=600"); //windowbib.document.getElementById('pif').getElementsByTagName("img")[0].setAttribute('src', 'resources/images/en.jpg'); } //ouvrir une fenetre secondaire pour les BDD (GEISA) function OuvrirFeuilleDynPL (Url) { var windowbib = window.open (Url, 'pl', "dependent=no,menubar=no,resizable=none,scrollbars=yes,toolbar=yes,left=100,top=100,width=700,height=900"); //windowbib.document.getElementById('pif').getElementsByTagName("img")[0].setAttribute('src', 'resources/images/en.jpg'); } function OuvrirFeuilleDynSp (Url) { var windowbib = window.open (Url, 'sp', "dependent=no,menubar=no,resizable=none,scrollbars=yes,toolbar=no,left=100,top=100,width=1300,height=600"); //windowbib.document.getElementById('pif').getElementsByTagName("img")[0].setAttribute('src', 'resources/images/en.jpg'); } function loadVisus() { mois=document.getElementById("month").value; annee=document.getElementById("year").value; document.getElementById("di").value=annee+mois+'01'; document.thisForm.submit(); } function OuvrirFeuille2 (Url) { openW (Url, NWIN1, WCONF5); } function openW (url, wName, conf) { var w = window.open (url, wName, conf); if (w) w.focus (); else alert ('Impossible de creer une nouvelle fenetre: ' + wName + ' !!'); } var NAV_WIND_NAME_EXP = "navigExp"; var NAV_WIND_NAME = "navig"; //maj automatique de la navigation function majNav () { var NAV_WIND_SNUM = "4"; var urlInf = window.document.URL; var re = /(type=)\d/; var urlNav = urlInf.replace (re, "$1" + NAV_WIND_SNUM); window.open (urlNav, NAV_WIND_NAME); if (typeof (parent.frames[NAV_WIND_NAME_EXP]) != "undefined") { var wNExp = parent.frames[NAV_WIND_NAME_EXP].document; wNExp.write (navigPageClear ()); wNExp.close(); } } // maj de la navigation secondaire (cas des experiences), frame 'navigExp' function setNavUrl (wName, id, lang) { if (typeof (parent.frames[NAV_WIND_NAME_EXP]) != "undefined") { var wNExp = parent.frames[NAV_WIND_NAME_EXP].document; wNExp.write (navigPageGenerate (wName, id, lang)); wNExp.close(); } } // regeneration complete de la page (ne contient que la navigation secondaire) function navigPageGenerate (wName, id, lang) { var s = "\n"; s += "
" s += ""; s += "
"; s += ""; return s; } // raz navig secondaire function navigPageClear () { var s = "\n"; s += ""; return s; } function extractUrlParams () { var t = location.search.substring(1).split('&'); var f = []; for (var i=0; i= 0 ) { // Chrome document.getElementById("divtab").className='tabChrome'; } else { // Autre document.getElementById('divtab').className='tabMozilla'; } } function changeMenu(lmenu,type) { if (document.getElementById(lmenu).className != 'menuselect') { if (type == 'over') { document.getElementById(lmenu).className='menuover'; } else { document.getElementById(lmenu).className='menuon'; } } } function changeMenuOut() { //alert("ok"); document.getElementById("menu1").className='menuon'; } function loadImage(annee) { var tab; tab=extractUrlParams(); var station=tab['station']; var fichier1; var fichier2; if ( annee == 'lt' ) { fichier1='plot_lt_'+station+'_dobson_o3.jpg'; } else { fichier1='plot_'+annee+'_'+station+'_dobson_o3.jpg'; } document.getElementById("im1").src="./visu/"+station+"/dobson/"+fichier1; } function openNDACC() { return true; }