function search(form) { if (form=="Content"){ if(document.sucheContent.suchfeld.value == '') { alert("Bitte Suchbegriff eingeben"); } else { MyQuery = document.sucheContent.suchfeld.value; MyQuery = '../docs/searchresult?OpenDocument&Query=' + MyQuery.replace(/ /, '+'); document.location.href = MyQuery; } }else{ if(document.suche.suchfeld.value == '') { alert("Bitte Suchbegriff eingeben"); } else { MyQuery = document.suche.suchfeld.value; MyQuery = '../docs/searchresult?OpenDocument&Query=' + MyQuery.replace(/ /, '+'); document.location.href = MyQuery; } } return false; } function openAHP(site) { var docpfadtemp2=""; var urltemp=top.location.href.toLowerCase(); var subdomain=top.location.href.split("/"); subdomain=subdomain[2].toLowerCase(); subdomain=subdomain.replace(".service.amv.de",""); if (urltemp.indexOf(".service.amv.de")!=-1) docpfadtemp2="/amven_inter_agt/AMBAUpublikation.nsf/docs/"+subdomain; var docpfad="../../amven_inter.nsf/docs/"; var docpfadsuche='../../amven_agt_search.nsf/SKonfEingabeByKey/Eingabemaske" onclick="open_popup()" target="popup'; var homepagelink=docpfadtemp2+"Homepage"; var portraitlink=docpfadtemp2+"Portrait"; var kontaktlink=docpfadtemp2+"Kontakt"; switch(site) { case "home": top.location.href = homepagelink; break; case "portrait": top.location.href = portraitlink; break; case "kontakt": pop = window.open( kontaktlink, 'popup', 'width=650,height=600,scrollbars=yes,dependant=no,screenX=90,screenY=50,status=no,toolbar=no,menubar=no'); pop.focus(); break; default: top.location.href = homepagelink; break; } } function PopUp(URLLink, Width, Height) { if (Width == null) Width = 550; if (Height == null) Height = 600; winprops = "'width=" + eval(Width) + ",height=" + eval(Height) + ",top=10,left=10,scrollbars=yes,resizable=yes,menubar=no,toolbar=no,status=yes'"; var oURLLinkLow = URLLink.toLowerCase(); if(oURLLinkLow.indexOf("../")>=0) { var winName = "PopUp"; } else if(oURLLinkLow.indexOf("/appl/")>=0) { var winName = "Appl"; } else { var winName = "DialogCenter"; } if (oURLLinkLow.indexOf("javascript")!=-1 || oURLLinkLow.indexOf("http:")!=-1 || oURLLinkLow.indexOf("https:")!=-1 || oURLLinkLow.indexOf("dl=")!=-1 || oURLLinkLow.indexOf("$file")!=-1) { URLLink = URLLink; } else if (oURLLinkLow.indexOf("?")!=-1) { URLLink = URLLink + "&DL=PopUp"; } else { URLLink = URLLink + "?openDocument&DL=PopUp"; } if (URLLink.indexOf("AMV_Inter_Agt")!=-1) { URLLink = URLLink + "&RefDomain=" + window.location.host; } win = window.open(URLLink, winName, eval(winprops)); win.focus(); } var winPrint = 0; function PrintPreview(URLLink, Width, Height) { if (winPrint) winPrint.close(); if (Width == null) Width = 600; if (Height == null) Height = 600; status = ''; winprops = "'width=" + eval(Width) + ",height=" + eval(Height) + ",top=10,left=10,scrollbars=yes,resizable=yes,menubar=no,toolbar=no,status=no'"; if(URLLink.indexOf("?OpenDocument") == -1 && URLLink.indexOf("&DL=PrintPopUp") == -1) URLLink = URLLink + "?OpenDocument&DL=PrintPopUp&WDT=Print"; else if(URLLink.indexOf("?OpenDocument") > 0 && URLLink.indexOf("&DL=PrintPopUp") == -1) URLLink = URLLink + "&DL=PrintPopUp&WDT=Print"; winPrint = window.open(URLLink, "Preview", eval(winprops)); winPrint.focus(); winPrint.print(); } function openInOpener(URLLink) { if(URLLink.indexOf("FormEntry")>0) { void PopUp(URLLink,792,670); } else { try { if(opener == null | opener.closed) { window.open(URLLink); } else { opener.location = URLLink; opener.focus(); } } catch(e) { if(opener == null) { window.open(URLLink); } else { opener.location = URLLink; opener.focus(); } } } } function changeCssAttrib(cssElement, attribute, value){ usedStyles = document.styleSheets; var cssList = 0; if(usedStyles){ cssList = 'rules'; for( i=0; i Syntax für Anchor-Tag: Rententrechner // Verwendung: Verweisdoument "Nav. Vert. / Gesetzl. Abs. / Gesetzl. Rentenvers./ Persönliche Rentenermittlung" function RentenRechnerRooter() { var hostLow = location.hostname.toLowerCase(); var IndexOfService = hostLow.indexOf("service"); var Ergebnis = ""; if(IndexOfService != -1) { Ergebnis = "&agentur=ja" } return "http://rentenrechnerprod.am-gruppe.de/PortalbausteinRentenrechner/RentenrechnerController?ku=00"+Ergebnis; } // Übergabe von Parametern bei Aufruf PopUp // Bereich Tell2Friend: RefDomain = URL der empfohlenen Seite // DocTitle = Titel der weiterempfohlenen Seite // Bereich Jobs: Jobman_vnr= interne Jobnummer // Jobman_bez= Jobbezeichnung // Jobman_typ= Jobtyp // // die URL-Parameter werden durch &$ getrennt (Grund: im Dokumententitel kann auch ein & enthalten sein) function PopUpWithParam(URLLink, Width, Height, Bereich) { if (Width == null) Width = 550; if (Height == null) Height = 600; winprops = "'width=" + eval(Width) + ",height=" + eval(Height) + ",top=10,left=10,scrollbars=yes,resizable=yes,menubar=no,toolbar=no,status=yes'"; var oURLLinkLow = URLLink.toLowerCase(); if(oURLLinkLow.indexOf("../")>=0) { var winName = "PopUp"; } else if(oURLLinkLow.indexOf("/appl/")>=0) { var winName = "Appl"; } else { var winName = "DialogCenter"; } if (oURLLinkLow.indexOf("javascript")!=-1 || oURLLinkLow.indexOf("http:")!=-1 || oURLLinkLow.indexOf("https:")!=-1 || oURLLinkLow.indexOf("dl=")!=-1 || oURLLinkLow.indexOf("$file")!=-1) { URLLink = URLLink; } else if (oURLLinkLow.indexOf("?")!=-1) { URLLink = URLLink + "&DL=PopUp"; } else { URLLink = URLLink + "?openDocument&DL=PopUp"; } if (Bereich == "Tell2Friend") { URLLink = URLLink + "&$RefDomain=" + window.location.href + "&$DocTitle=" + window.document.title; } else if (Bereich == "Jobs") { URLLink = URLLink + "&$Jobman_vnr=" + window.jobmanager_vnr + "&$Jobman_bez=" + jobmanager_bez + "&$Jobman_typ=" + jobmanager_typ; } win = window.open(URLLink, winName, eval(winprops)); win.focus(); }