//========================================================== 
// allgemeine Funktionen
//
//
//========================================================== 

function help(txt)
{
    var win = window.open("./content/presse/admin/help.inc.php?help=" + txt, "Kontakt", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=300,height=350");

    if(win.focus != null)
        win.focus();
}


function change_abt( sub, abt )
{
    var url = "index.php?content=3&sub=" + sub + "&abt=" + abt + "&task=view";
//    alert(url);
    
    document.frm_abt.method = "get";
    document.frm_abt.action = url;
    document.frm_abt.submit();
    
}

//#######################################################################
// Datum auswaehlen
function OpenWindow(strZiel, strName, intWidth)
{	// If txteintag has a value, the lookup window starts in month of the date 

    if ((document.frm_editcal.date.value != "") && (strName == "Auswahl1")) {	
		var elemente = document.frm_editcal.date.value.split(".");
		var intMonth = elemente[1];
		var intYear = elemente[2];
		strZiel = strZiel + "&year=" + intYear + "&month=" + intMonth;
    }

    Test = window.open(strZiel, strName, 'width='+intWidth+',height=150,scrollbars=no,resizablel');

    if (document.all) {
		var ClickX = window.event.x;
		var ClickY = window.event.y;

		if (navigator.appVersion.indexOf("MSIE")>0 ) {
			Test.moveTo(ClickX+window.screenLeft+5, ClickY+window.screenTop-50);
	 	}
	}
}