//========= Universal ========== function getDocHeight(doc) { var docHt = 0, sh, oh; if (doc.height) docHt = doc.height; else if (doc.body) { if (doc.body.scrollHeight) docHt = sh = doc.body.scrollHeight; if (doc.body.offsetHeight) docHt = oh = doc.body.offsetHeight; if (sh && oh) docHt = Math.max(sh, oh); } return docHt; } function setIframeHeight(iframeName) { var iframeWin = window.frames[iframeName]; var iframeEl = document.getElementById? document.getElementById(iframeName): document.all? document.all[iframeName]: null; if ( iframeEl && iframeWin ) { iframeEl.style.height = "auto"; // helps resize (for some) if new doc shorter than previous var docHt = getDocHeight(iframeWin.document); //alert( docHt); // need to add some px to height to be sure it will all show if (docHt) iframeEl.style.height = docHt + 0 + "px"; } } function OpenForm( varFormName, varTitle ,varWidth, varHeight ){ if( varTitle <= "0" ){ varTitle = "Form"; }; if( varWidth <= "0" ){ varWidth = "600"; }; if( varHeight <= "0" ){ varHeight = "500"; }; posFormNameStart = varFormName.indexOf( ".nsf/" ); posFormNameEnd = varFormName.indexOf( "?Open" ); FrameName = varFormName.substring( posFormNameStart + 5 , posFormNameEnd ); // alert( FrameName ); w = window.open( "/" + varFormName + "&Title=" + escape( varTitle ) , FrameName , "width=" + varWidth + ",height=" + varHeight + ",status=1,menubar=0,scrollbars=1,resizable=1"); w.focus(); }; function OpenDoc( docName ){ window.open( docName + "?OpenDocument" , "Content" ) } function OpenContact( varFormName, varTitle ,varWidth, varHeight, varSubject, varDestination ){ if( varTitle <= "0" ){ varTitle = "Kontakt"; }; if( varWidth <= "0" ){ varWidth = "600"; }; if( varHeight <= "0" ){ varHeight = "500"; }; posFormNameStart = varFormName.indexOf( ".nsf/" ); posFormNameEnd = varFormName.indexOf( "?Open" ); FrameName = varFormName.substring( posFormNameStart + 5 , posFormNameEnd ); // alert( FrameName ); w = window.open( "/website2/chbs745.nsf/" + varFormName + "?OpenForm&Title=" + escape( varTitle ) + "&Subject=" + escape( varSubject ) + "&Destination=" + varDestination, FrameName , "width=" + varWidth + ",height=" + varHeight + ",status=1,menubar=0,scrollbars=1,resizable=1"); w.focus(); }; function changeHighlightFont() { var href = window.location.href; pos_col = href.indexOf("&color="); col = href.substr(pos_col+7,href.length); pos_amp = col.indexOf("&"); if (pos_amp >=0 ) col = col.substr( 0 , col.indexOf("&")); pos_bgcol = href.indexOf("&bgcolor="); bgcol = href.substr(pos_bgcol+9,href.length); pos_amp = bgcol.indexOf("&"); if ( pos_amp >=0 ) bgcol = bgcol.substr( 0 , bgcol.indexOf("&")); var getElement = document.getElementsByTagName("font"); for(var i=0;i') + qry.toLowerCase().indexOf('%3c') + qry.toLowerCase().indexOf('%3e') + qry.indexOf('[') + qry.indexOf(']') + qry.toLowerCase().indexOf('%5b') + qry.toLowerCase().indexOf('%5d') > -8 ){ return false; }else{ return true; } } function TellAFriend(subject, leadText, language){ features = 'width=600,height=580,menubar=0,status=1,resizable=1,scrollbars=1'; // language = location.href.substr( location.href.indexOf( '.nsf' ) -1 , 1 ); content_url = location.href; popup_url = '/webglobal/chbs783.nsf/tellafriend_' + language + '?Openform&url=' + content_url + ';~&subject=' + subject + ';~&leadtext=' + leadText; window.open( popup_url , 'TellAFriend' , features ); } function OpenPod( FileName ){ var href = window.location.href; if( href.indexOf( "chbs585" ) >= 0 ){ SiteID = "7l3JEg"; }else{ SiteID = "7PKU6V"; } var pos_dir = href.indexOf("website"); if( pos_dir == -1 ){ pos_dir = href.indexOf("webglobal"); } var pos_nsf = href.indexOf( ".nsf" ); var href_nsf = href.substr(0, pos_nsf + 5 ); var href_dir = href.substr(0, pos_dir); // http://www.baloise.ch/ oder z.B. https://target.basler.ch/Broker/service/ if( href.indexOf( "dom-bs" ) < 0 ){ window.open("http://www.etracker.de/lnkcnt.php?et=" + SiteID + "&url=" + href_nsf + escape( FileName ) ); }else{ window.open(href_nsf + escape( FileName ) ); } } //========= www.baloise.ch ========== function PopUp( varKeyWord, varLang, varTitle ,varWidth, varHeight ){ if( varTitle <= "0" ){ varTitle = "PopUp"; }; if( varWidth <= "0" ){ varWidth = "480"; }; if( varHeight <= "0" ){ varHeight = "480"; }; w = window.open( "/website2/chbs735.nsf/" + varLang + "/" + varKeyWord + "?OpenDocument&Title=" + escape( varTitle ), "PopUp" , "width=" + varWidth + ",height=" + varHeight + ",menubar=0,scrollbars=1,resizable=1"); w.focus(); }; function OpenPDF( pdfName , Lang ){ window.open( "/website2/chbs703" + Lang + ".nsf/PDF/" + escape( pdfName ) + "/$FILE/" + escape( pdfName ) ) } function OpenCHBS510( ID , Language ){ window.open( "/webdols/chbs510.nsf/Attachment_INTER_Akt_" + Language + "/" + ID + "_" + Language) } function OpenFile( FileName ){ //window.open( "/website2/chbs703.nsf/URLOpen/" + escape( FileName ) + "/$FILE/" + escape( FileName ) ) var href = window.location.href; if( href.indexOf( "chbs585" ) >= 0 ){ SiteID = "7l3JEg"; }else{ SiteID = "7PKU6V"; } var pos_dir = href.indexOf("website"); if( pos_dir == -1 ){ pos_dir = href.indexOf("webglobal"); } var href_dir = href.substr(0, pos_dir); // http://www.baloise.ch/ oder z.B. https://target.basler.ch/Broker/service/ window.open( href_dir + "website2/chbs703.nsf/ClickTracker/" + escape( FileName ) + "?OpenDocument&bal_siteID=" + SiteID + "&opener=" + href ) } //========= www.baloise.de ========== function PopUp_DE( varKeyWord, varLang, varTitle ,varWidth, varHeight ){ if( varTitle <= "0" ){ varTitle = "PopUp"; }; if( varWidth <= "0" ){ varWidth = "480"; }; if( varHeight <= "0" ){ varHeight = "480"; }; w = window.open( "/website6/dehg706.nsf/" + varLang + "/" + varKeyWord + "?OpenDocument&Title=" + escape( varTitle ), "PopUp" , "width=" + varWidth + ",height=" + varHeight + ",menubar=0,scrollbars=1,resizable=1"); w.focus(); }; function OpenFile_DE( FileName ){ window.open( "/website6/dehg703.nsf/URLOpen/" + escape( FileName ) + "/$FILE/" + escape( FileName ) ) } //========= Konzern Intranet ========== function PopUp_KI( varKeyWord, varLang, varTitle ,varWidth, varHeight ){ if( varTitle <= "0" ){ varTitle = "PopUp"; }; if( varWidth <= "0" ){ varWidth = "480"; }; if( varHeight <= "0" ){ varHeight = "480"; }; w = window.open( "/website3/chbs689.nsf/" + varLang + "/" + varKeyWord + "?OpenDocument&Title=" + escape( varTitle ), "PopUp" , "width=" + varWidth + ",height=" + varHeight + ",menubar=0,scrollbars=1,resizable=1"); w.focus(); }; function OpenFile_KI( FileName ){ window.open( "/website6/dehg703.nsf/URLOpen/" + escape( FileName ) + "/$FILE/" + escape( FileName ) ) } //========= www.baloise.com ========== function PopUp_COM( varKeyWord, varLang, varTitle ,varWidth, varHeight ){ if( varTitle <= "0" ){ varTitle = "PopUp"; }; if( varWidth <= "0" ){ varWidth = "480"; }; if( varHeight <= "0" ){ varHeight = "480"; }; w = window.open( "/website2/chbs735.nsf/" + varLang + "/" + varKeyWord + "?OpenDocument&Title=" + escape( varTitle ), "PopUp" , "width=" + varWidth + ",height=" + varHeight + ",menubar=0,scrollbars=1,resizable=1"); w.focus(); }; function PopUp_GB_COM( varKeyWord, varLang, varTitle ,varWidth, varHeight ){ if( varTitle <= "0" ){ varTitle = "PopUp"; }; if( varWidth <= "0" ){ varWidth = "480"; }; if( varHeight <= "0" ){ varHeight = "480"; }; w = window.open( "/website2/chbs766.nsf/" + varLang + "/" + varKeyWord + "?OpenDocument&Title=" + escape( varTitle ), "PopUp" , "width=" + varWidth + ",height=" + varHeight + ",menubar=0,scrollbars=1,resizable=1"); w.focus(); } function PopUp_GB03_COM( varKeyWord, varLang, varTitle ,varWidth, varHeight ){ if( varTitle <= "0" ){ varTitle = "PopUp"; }; if( varWidth <= "0" ){ varWidth = "480"; }; if( varHeight <= "0" ){ varHeight = "480"; }; w = window.open( "/website2/chbs767.nsf/" + varLang + "/" + varKeyWord + "?OpenDocument&Title=" + escape( varTitle ), "PopUp" , "width=" + varWidth + ",height=" + varHeight + ",menubar=0,scrollbars=1,resizable=1"); w.focus(); } function PopUp_GB04_COM( varKeyWord, varLang, varTitle ,varWidth, varHeight ){ if( varTitle <= "0" ){ varTitle = "PopUp"; }; if( varWidth <= "0" ){ varWidth = "480"; }; if( varHeight <= "0" ){ varHeight = "480"; }; w = window.open( "/website2/chbs773.nsf/" + varLang + "/" + varKeyWord + "?OpenDocument&Title=" + escape( varTitle ), "PopUp" , "width=" + varWidth + ",height=" + varHeight + ",menubar=0,scrollbars=1,resizable=1"); w.focus(); } function OpenPDF_COM( pdfName , Lang ){ window.open( "/website2/chbs703" + Lang + ".nsf/PDF/" + escape( pdfName ) + "/$FILE/" + escape( pdfName ) ) } function OpenFile_COM( FileName ){ //window.open( "/website2/chbs703.nsf/URLOpen/" + escape( FileName ) + "/$FILE/" + escape( FileName ) ) var href = window.location.href; var pos_dir = href.indexOf("website"); if( pos_dir == -1 ){ pos_dir = href.indexOf("webglobal"); } var href_dir = href.substr(0, pos_dir); // http://www.baloise.ch/ oder z.B. https://target.basler.ch/Broker/service/ window.open( href_dir + "website2/chbs703.nsf/ClickTracker/" + escape( FileName ) + "?OpenDocument&bal_siteID=7l3JEg") } //========= www.baloise.lu ========== function PopUp_LU( varKeyWord, varLang, varTitle ,varWidth, varHeight ){ if( varTitle <= "0" ){ varTitle = "PopUp"; }; if( varWidth <= "0" ){ varWidth = "480"; }; if( varHeight <= "0" ){ varHeight = "480"; }; w = window.open( "/website4/lulu706.nsf/" + varLang + "/" + varKeyWord + "?OpenDocument&Title=" + escape( varTitle ), "PopUp" , "width=" + varWidth + ",height=" + varHeight + ",menubar=0,scrollbars=1,resizable=1"); w.focus(); }; function OpenFile_LU( FileName ){ window.open( "/website4/lulu703.nsf/URLOpen/" + escape( FileName ) + "/$FILE/" + escape( FileName ) ) } //========= www.baloise.co.at ========== function PopUp_AT( varKeyWord, varLang, varTitle ,varWidth, varHeight ){ if( varTitle <= "0" ){ varTitle = "PopUp"; }; if( varWidth <= "0" ){ varWidth = "480"; }; if( varHeight <= "0" ){ varHeight = "480"; }; w = window.open( "/website5/atwi702.nsf/" + varLang + "/" + varKeyWord + "?OpenDocument&Title=" + escape( varTitle ), "PopUp" , "width=" + varWidth + ",height=" + varHeight + ",menubar=0,scrollbars=1,resizable=1"); w.focus(); }; function OpenFile_AT( FileName ){ //window.open( "/website5/atwi703.nsf/URLOpen/" + escape( FileName ) + "/$FILE/" + escape( FileName ) ) var href = window.location.href; var pos_dir = href.indexOf("website"); if( pos_dir == -1 ){ pos_dir = href.indexOf("webglobal"); } var href_dir = href.substr(0, pos_dir); // http://www.baloise.ch/ oder z.B. https://target.basler.ch/Broker/service/ window.open( href_dir + "website5/atwi703.nsf/ClickTracker/" + escape( FileName ) + "?OpenDocument&bal_siteID=7l39a3") }