function openPopup(sUrl, sName, iWidth, iHeight, scrolling) { sUrl = sUrl.replace(/\//g, "%2F"); sUrl = sUrl.replace(/\?/g, "%3F"); sUrl = sUrl.replace(/=/g, "%3D"); sUrl = sUrl.replace(/&/g, "%26"); sTitle = "© by netp.de" bDontShowStandardTitle = false; myNicePopup = window.open('/abaton/js/popUpWindowForNice.php?sUrl='+sUrl+'&sTitle='+sTitle+'&sName='+sName+'&bDontShowStandardTitle='+bDontShowStandardTitle, sName, 'fullscreen=1'); var sw = window.screen.availWidth; var sh = window.screen.availHeight; var w = iWidth; var h = iHeight; myNicePopup.resizeTo(w, h); myNicePopup.moveTo((sw - w) / 2, (sh - h) / 2); myNicePopup.focus(); /* scrollbars = scrolling ? 'scrollbars=yes' : 'scrollbars=no'; theWindow = window.open(url, name, "dependent=yes,width="+width+",height="+height+",left=20,top=20,location=no,menubar=no,status=no,toolbar=no,"+scrollbars); theWindow.focus(); */ } function focusmain() { window.opener.focus(); } function modelessWin(url, mwidth, mheight, resizable, scrollbars, status) { window.showModelessDialog(url,"","status:"+status+";scroll:"+scrollbars+";center:0;edge:raise;help:0;resizable:"+resizable+";dialogWidth:"+mwidth+"px;dialogHeight:"+mheight+"px"); } function openChromeLess(title, text, vars) { win = window.open("/abaton/js/popUpWindow.php?sTitle="+title+"&sText="+text, "", "fullscreen=1"); var sw = window.screen.availWidth; var sh = window.screen.availHeight; var w = 300; var h = 200; win.resizeTo(w, h); win.moveTo((sw - w) / 2, (sh - h) / 2); } function openNicePopup(sUrl, sTitle, sName, iWidth, iHeight, bDontShowStandardTitle, sReturnField) { sUrl = sUrl.replace(/\//g, "%2F"); sUrl = sUrl.replace(/\?/g, "%3F"); sUrl = sUrl.replace(/=/g, "%3D"); sUrl = sUrl.replace(/&/g, "%26"); myNicePopup = window.open('/abaton/js/popUpWindowForNice.php?sUrl='+sUrl+'&sTitle='+sTitle+'&sName='+sName+'&bDontShowStandardTitle='+bDontShowStandardTitle, sName, 'fullscreen=1'); var sw = window.screen.availWidth; var sh = window.screen.availHeight; var w = iWidth; var h = iHeight; myNicePopup.resizeTo(w, h); myNicePopup.moveTo((sw - w) / 2, (sh - h) / 2); myNicePopup.focus(); } function openCalendar(sTargetField) { openNicePopup("/abaton/js/calendar.php?sTargetField="+sTargetField, "Kalendar", "calendar", 350, 360, 1, sTargetField); }