function MyPopup(seite, titel, w, h, scroll) {
	var xwin = null;
	var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	var settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+','+scroll;
	xwin = window.open(seite, titel, settings);
	return xwin;
}
function ResizeAndCenter(w, h) {
	window.resizeTo(w, h);
	var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	window.moveTo(LeftPosition, TopPosition);
}
function OpenThisPage(thepage) {
    var xwin = null;
    xwin = MyPopup(thepage, 'PopUp', 800, 600, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no');
    xwin.focus();
}
function printPage() {
    if (window.print) { window.print() }
    else { alert("Sorry, Ihr Browser unterstützt leider kein Drucken."); }
}
function helpPage(helpid) {
    xwin = MyPopup('help.aspx?id=' + helpid, 'PopUp', 800, 600, 'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no');
}
function deleteConfirm(page) {
    var xwin = null;
    var settings = "height=100,width=600,location=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no";
    xwin = window.open(page, '', settings);
    return xwin;
}
function logConfirm() {
}

function Toggle(Name) {

    if (document.getElementById(Name).style.display != "none") {
        document.getElementById(Name).style.display = "none";
    }
    else {
        document.getElementById(Name).style.display = "inherit";
    }
}
