function PopUp(URLLink, Width, Height, Typ) { if (Typ == null){ if (Width == null) Width = 650; if (Height == null) Height = 500; status = ''; winprops = "'width=" + eval(Width) + ",height=" + eval(Height) + ",top=10,left=10,scrollbars=yes,resizable=yes,menubar=no,toolbar=no,status=no'"; 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=PopUp"; } else { URLLink = URLLink + "?openDocument&DL=PopUp"; } win = window.open(URLLink, "PopUp", eval(winprops)); win.focus(); } if (Typ == 'Formular') { if (Width == '') Width = 567; if (Height == '') Height = 680; status = ''; winprops = "'width=" + eval(Width) + ",height=" + eval(Height) + ",left=10,top=10,scrollbars=yes,resizable=yes,menubar=no,toolbar=no,status=no'"; URLLink = 'https://secure.ambav.de/internet/ambav/ambav_formular.nsf/FormEntry?ReadForm&Name='+URLLink; winform = window.open(URLLink, "Formular", eval(winprops)); winform.focus(); } } function PopUp_Marcus(URLLink, Width, Height) { if (Width == null) Width = 650; if (Height == null) Height = 500; status = ''; winprops = "'width=" + eval(Width) + ",height=" + eval(Height) + ",scrollbars=yes,resizable=yes,menubar=no,toolbar=no,status=no'"; if(URLLink.indexOf("http") == -1 && URLLink.indexOf("$file") == -1) { if(URLLink.indexOf("?OpenDocument") == -1 && URLLink.indexOf("&DL=PopUp") == -1) URLLink = URLLink + "?OpenDocument&DL=PopUp"; else if(URLLink.indexOf("?OpenDocument") > 0 && URLLink.indexOf("&DL=PopUp") == -1) URLLink = URLLink + "&DL=PopUp"; } win = window.open(URLLink, "PopUp", eval(winprops)); win.focus(); } function PrintPreview(URLLink, Width, Height) { if (Width == null) Width = 650; if (Height == null) Height = 500; status = ''; if(top.name != "PopUp" && top.name != "Preview" && top.name != "Search") { 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=PopUp") == -1) URLLink = URLLink + "?OpenDocument&DL=PopUp"; else if(URLLink.indexOf("?OpenDocument") > 0 && URLLink.indexOf("&DL=PopUp") == -1) URLLink = URLLink + "&DL=PopUp"; win = window.open(URLLink, "Preview", eval(winprops)); win.focus(); win.print(); } else { window.print(); } }