function popup_windowNorm(sUrl) { popup_windowSize(sUrl,600,440); } function popup_windowLarge(sUrl) { popup_windowSize(sUrl,802,600); } function popup_windowSearch(sName) { window.open('',sName,'top=0,left=0,height=600,width=802,status=no,toolbar=no,menubar=no,location=no,resizable=yes,titlebar=yes,scrollbars=yes'); } function popup_windowLargeMenuBar(sUrl){ window.open(sUrl,'','top=0,left=0,height=600,width=802,status=no,toolbar=no,menubar=yes,location=no,resizable=yes,titlebar=yes,scrollbars=yes'); } function popup_windowLargeToolBar(sUrl) { window.open(sUrl,'','top=0,left=0,height=600,width=802,status=yes,toolbar=yes,menubar=yes,location=no,resizable=yes,titlebar=yes,scrollbars=yes'); } function popup_windowSize(sUrl,width,height,features) { if ( features!=null ) window.open(sUrl,'','top=0,left=0,height='+height+',width='+width+','+features); else window.open(sUrl,'','top=0,left=0,height='+height+',width='+width+',status=no,toolbar=no,menubar=no,location=no,resizable=yes,titlebar=yes,scrollbars=yes'); } function popup_windowNAV(sUrl) { if (sUrl!="") { var winNAV = window.open(sUrl,"","top=0,left=0,width=650,height=440,status=no,toolbar=no,menubar=no,location=no,resizable=yes,titlebar=no,scrollbars=yes"); return winNAV; } } function popup_windowNAVSmall(sUrl) { if (sUrl!="") { var winNAV = window.open(sUrl,"","top=0,left=0,width=428,height=318,status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=no"); return winNAV; } } function popup_windowPrint(sUrl) { if (sUrl!="") { var winNAV = window.open(sUrl,"","top=0,left=0,width=650,height=440,status=no,toolbar=yes,menubar=no,location=no,resizable=yes,titlebar=no,scrollbars=yes"); return winNAV; } } function ouvrirFen(theURL, theSize) { //v2.0 if (top.altair) { altair.location=theURL; } else{ fenAltair=window.open(theURL,'altair',theSize); } fenAltair.focus(); } function MM_goToURL() { //v3.0 var i, args=MM_goToURL.arguments; document.MM_returnValue = false; for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'"); } function popup_windowFull(sUrl) { if (sUrl!="") { var winNAV = window.open(sUrl,"","top=0,left=0,width=650,height=440,status=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes,titlebar=yes,scrollbars=yes"); return winNAV; } } function popup_windowLink(sUrl) { if (sUrl!="") { var winNAV = window.open(sUrl,"","top=0,left=0,width=650,height=440,status=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes,titlebar=yes,scrollbars=yes"); return winNAV; } } function popup_showModalLogin(sUrl) { if (sUrl!="") { var winNAV = window.showModalDialog(sUrl,"Login","dialogWidth:530px;dialogHeight:440px;center:1;scroll:0;help:0;status:0"); return winNAV; } } function popup_windowLogin(sUrl) { if (sUrl!="") { var winNAV = window.open(sUrl,"Login","top=0,left=0,width=530,height=440,status=no,toolbar=no,menubar=no,location=no,resizable=yes,titlebar=no,scrollbars=yes"); return winNAV; } } function showSite(url) { if (!url=="") { popup_windowSize(url,802,600); } } function showSiteFromSelect(o) { var v = o.options[o.selectedIndex].value; o.selectedIndex=0; showSite(v); } function showOpnw3FromSelect(o) { var v = o.options[o.selectedIndex].value; o.selectedIndex=0; window.location=v; } function popupEnlargeToContent() { self.document.body.scroll="no"; var wBodyAff = self.document.body.clientWidth; var wBodyNeeded = self.document.body.scrollWidth; var wResizeBy = 0; if (wBodyAff < wBodyNeeded) { wResizeBy = wBodyNeeded - wBodyAff; } var resizeBy = 0; var hBodyAff = self.document.body.clientHeight; var hBodyNeeded = self.document.body.scrollHeight; if (hBodyAff < hBodyNeeded) { hResizeBy = hBodyNeeded - hBodyAff; } self.window.resizeBy(wResizeBy, hResizeBy); } function previewEnlargeToContent() { var wBodyAff = self.document.body.clientWidth; var wBodyNeeded = self.document.body.scrollWidth; var wScreen = self.screen.width; var wResizeBy = 0; if (wBodyNeeded > wScreen) { self.document.body.scroll.horizontal="yes"; wResizeBy = wScreen - wBodyAff - 30; } else if (wBodyNeeded > wBodyAff) { wResizeBy = wBodyNeeded -wBodyAff; } var hBodyAff = self.document.body.clientHeight; var hBodyNeeded = self.document.body.scrollHeight; var hScreen = self.screen.height; var hResizeBy = 0; //alert (hBodyAff+" "+hBodyNeeded+" "+hScreen); if (hBodyNeeded > hScreen-120) { self.document.body.scroll.vertical="yes"; hResizeBy = hScreen - hBodyAff-200; } else if (hBodyNeeded > hBodyAff) { self.document.body.scroll.vertical="no"; hResizeBy = hBodyNeeded - hBodyAff; } //alert(hResizeBy); self.window.resizeBy(wResizeBy, hResizeBy); self.window.moveTo(0,0); }