function search(form) {
Width = 459;
Height = 669;
winprops = "'width=" + eval(Width) + ",height=" + eval(Height) + ",top=10,left=10,scrollbars=yes,resizable=yes,menubar=no,toolbar=no,status=yes'";
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;
searchWin = window.open(MyQuery, "infoPopUp", eval(winprops));
searchWin.focus();
}
}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;
searchWin = window.open(MyQuery, "infoPopUp", eval(winprops));
searchWin.focus();
}
}
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 infoPopUp(URLLink, Width, Height) {
if (Width == null) Width = 459;
if (Height == null) Height = 358;
var winName = "infoPopUp";
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("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=infoPopUp";
} else {
URLLink = URLLink + "?openDocument&DL=infoPopUp";
}
win = window.open(URLLink, winName, eval(winprops));
win.focus();
}
function PopUp(URLLink, Width, Height) {
if (Width == null) Width = 730;
if (Height == null) Height = 558;
var winName = "PopUp";
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 || oURLLinkLow.indexOf("/docs/")>=0) {
winName = "PopUp";
} else if(oURLLinkLow.indexOf("/appl/")>=0) {
winName = "Appl";
} else if(oURLLinkLow.indexOf("notepad")>=0) {
winName = "Notepad";
} else {
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("KontaktAHP") != -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();
}
}
}
}
// MouseOver für die Reiterkarten - Setzt Active
function tabHover(listElement) {
if(listElement.className!='active') {
listElement.className='over';
}
}
// MouseOver für die Reiterkarten - Entfernt Active
function tabOut(listElement) {
if(listElement.className!='active') {
listElement.className='';
}
}
function searchAgency() {
var URL = "/internet/vfu/vfu_betreuer.nsf/T$Betreuersuche?CreateDocument";
var f = document.forms["Marginal"];
var isValid;
//var Street = f.AgencyStreet.value;
var ZipCode = f.AgencyZipCode.value;
// if(Street.indexOf("Ihre Strasse") >= 0 | Street == "") {
/*if(Street.indexOf("Ihr Ort") >= 0 | Street == "") {
isValid = false;
f.AgencyStreet.style.backgroundColor="#E98300";
} else {
f.AgencyStreet.style.backgroundColor="#FFFFFF";
}*/
/* if(ZipCode.indexOf("Ihre P") >= 0 | ZipCode == "" | ZipCode.length < 5) {
isValid = false;
f.AgencyZipCode.style.backgroundColor="#E98300";
}*/
var x = /\b^[0-9]{5}$/;
if (x.test(ZipCode)) {
if(ZipCode.indexOf("Ihre P") >= 0 | ZipCode == "" | ZipCode.length < 5) {
isValid = false;
f.AgencyZipCode.style.backgroundColor="#E98300";
searchAgencyExt();
}
} else {
isValid = false;
f.AgencyZipCode.style.backgroundColor="#E98300";
searchAgencyExt();
}
if (isValid != false) {
// alles OK
// URL = URL + "&SearchBy=Suche&Strasse=" + Street + "&Plz=" + ZipCode + "&Ort=&Vorname=&Name="
// URL = URL + "&SearchBy=PLZ&Strasse=" + Street + "&Plz=" + ZipCode + "&Ort=&Vorname=&Name="
URL = URL + "&SearchBy=PLZ&Plz=" + ZipCode + "&Ort=&Vorname=&Name=";
PopUp(URL, '730', '558');
} else {
return false;
}
}
function searchAgencyExt() {
var URL = "../../vfu_betreuer.nsf/FormEntry?ReadForm&Name=Betreuersuche";
PopUp(URL, '730', '558');
}
// added 3.9.05, Manfred Schmidt
// Purpose: Unterscheidung Aufruf Rentenrechner aus Context Internet oder Agentenhomepage
// Abhängig davon setzen eines URL-Parameters
// => 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;
}
function wrtSwfHome() {
document.write('');
}
function showAKInfo() {
MM_changeProp('akAngaben','','style.display','inline','DIV');;
}
function hideAKInfo() {
MM_changeProp('akAngaben','','style.display','none','DIV');
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i