function sf_openBrWindow(theURL, winName, myWidth, myHeight) 
	{
	features='toolbar=no,location=no,status=no,menubar=yes,scrollbars=yes,resizable=yes';
	if (screen.height<601) myHeight = 450;
	if(window.screen){
		var myLeft = (screen.width-myWidth)/2;
		var myTop = (screen.height-myHeight)/2-60;
		if(myTop < 30) myTop = 30;
		features+=(features!='')?',':'';
		features+='left='+myLeft+',top='+myTop;
		}
	window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
	}

function sf_openLeitbild()
	{
	sf_openBrWindow("../Leitbild-Martha-Maria.php", "Leitbild", "800", "600");
	}

function sf_openJob(JobID)
	{
	sf_openBrWindow("../Jobs/JobDetail.php?JobID="+JobID, "Leitbild", "800", "600");
	}

function sf_openAktuelles(Layout, ID)
	{
	URL = "../Aktuelles/"+Layout+".php?ID="+ID;
	sf_openBrWindow(URL, "Aktuelles", "800", "600");
	}

function sf_openPresse(ID)
	{
	URL = "../pressepdfs/"+ID+".pdf";
	sf_openBrWindow(URL, "Presse", "800", "600");
	}

function sf_openLayouts() 
	{
	myWidth=340;
	myHeight=450;
	winName='Layouts';
	theURL='../Aktuelles/Layouts.htm';
	features='toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no';
	if (screen.height<601) myHeight = 450;
	if(window.screen){
		var myLeft = (screen.width-myWidth)/2;
		var myTop = (screen.height-myHeight)/2-60;
		if(myTop < 30) myTop = 30;
		features+=(features!='')?',':'';
		features+='left='+myLeft+',top='+myTop;
		}
	window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
	}


function custom_print() {
self.print();
/*    if (document.all) {
        if (navigator.appVersion.indexOf("5.0") == -1) {
            var OLECMDID_PRINT = 6;
            var OLECMDEXECOPT_DONTPROMPTUSER = 2;
            var OLECMDEXECOPT_PROMPTUSER = 1;
            var WebBrowser = "<OBJECT ID=\"WebBrowser1\" WIDTH=0 HEIGHT=0 CLASSID=\"CLSID:8856F961-340A-11D0-A96B-00C04FD705A2\"></OBJECT>";
            document.body.insertAdjacentHTML("beforeEnd", WebBrowser);
            WebBrowser1.ExecWB(6, 2);
            WebBrowser1.outerHTML = "";
        } else {
            self.print();
        }
    } else {
        self.print();
    }*/
}
