function Glossary(nGlossaryID){ return glossary(nGlossaryID); } function glossary(nGlossaryID){ var strCIServer = "http://www.pioneerinvestments.at/jsp/xslt.jsp?ctrl=glossary/all/"; //var strCIServer = "http://www.capitalinvest.at/jsp/xslt.jsp?ctrl=glossary/all/"; //var strCIServer = "http://www.capitalinvest.at"; //var strCIServer = "http://192.168.1.218"; var strURL = ""; var nBrowser = parseInt(navigator.appVersion); var nScreenWidth = 800; var nScreenHeight = 600; var nLeft = 208; var nTop = 131; //var nWidth = 387; var nWidth = 500; // #das Fenster war zu klein, HS, 20050315 var nHeight = 520; //--- URL bilden --- //// /* // if((nGlossaryID != 0) && (glossary.arguments.length != 0)) // strURL = strCIServer + "/jsp/glossary/all/content/all/item.webj?glossarypk=" + nGlossaryID + "&referer=" + escape(document.location.href) + "&callfrom=fondsprofessionell"; // else // strURL = strCIServer + "/glossary/german/content/all/fondsprofessionell.htm" // */ strURL = strCIServer; //--- get screen resolution --- if(nBrowser >= 4) { nScreenWidth = screen.width; nScreenHeight = screen.height; //--- center on screen if higher than 800x600 --- if(nScreenWidth > 820) nLeft = (nScreenWidth - nWidth) / 2; if(nScreenHeight > 620) nTop = (nScreenHeight - nHeight) / 2; } //--- correction if toolbar or menu is visible --- if(nTop >= 44) nTop = nTop - 44; if(nTop >= 24) nTop = nTop - 24; //--- catch negative window coordinates --- if(nLeft < 0) nLeft = 0; if(nTop < 0) nTop = 0; //--- catch windows that are too big --- if((nLeft + nWidth) >= nScreenWidth) nWidth = nScreenWidth - nLeft - nWidth - 20; if((nTop + nHeight) >= nScreenHeight) nHeight = nScreenHeight - nTop - nHeight - 70; //--- open new / fill existing window --- var strOptions = ""; var strOptions = strOptions + "toolbar=0"; var strOptions = strOptions + ",location=0"; var strOptions = strOptions + ",directories=0"; var strOptions = strOptions + ",status=0"; var strOptions = strOptions + ",menubar=0"; var strOptions = strOptions + ",scrollbars=1"; var strOptions = strOptions + ",resizable=0"; var strOptions = strOptions + ",left=" + nLeft; var strOptions = strOptions + ",top=" + nTop; var strOptions = strOptions + ",width=" + nWidth; var strOptions = strOptions + ",height=" + nHeight; winNew = window.open(strURL, "glossary", strOptions); //--- Explorer 4 needs this, otherwise focus() will crash with an --- //--- access violation error in case the window is already open --- if(winNew.opener == null) winNew.opener = this; //--- set focus to the new window --- if(((nBrowser == 3) && (netscape())) || (nBrowser >= 4)) winNew.focus(); return 1; }