
    //PopUps
    function popMeUp(URLStr, windowName, width, height, parameter) {
        yoffset = Math.round((screen.availHeight - height) / 2);
        xoffset = Math.round((screen.availWidth - width) / 2);

        var extraparameter = "left="+xoffset+",top="+yoffset+",screenX="+xoffset+",screenY="+yoffset+"'";
        var par = parameter + extraparameter;
        popUpWin = window.open(URLStr, windowName, par);
        popUpWin.focus();
    }

    //alle Checkboxen in einem Formular auswählen
   	function checkAll(formName){
		for (var i=0;i<document.forms[formName].elements.length;i++){
			var e = document.forms[formName].elements[i];
			if((e.type=="checkbox") && (e.checked!=true)){
				e.click();
				e.checked = true;
			}

		}//for
	}//checkAll

    //alle Checkboxen in einem Formular abwählen
   	function unCheckAll(formName){
		for (var i=0;i<document.forms[formName].elements.length;i++){
			var e = document.forms[formName].elements[i];
			if((e.type=="checkbox") && (e.checked!=false)){
				e.click();
				e.checked = false;
			}

		}//for
	}//unCheckAll


	//anzeigen von Elementen
	function showElement(elementId) {
	  if (document.getElementById)
		document.getElementById(elementId).style.visibility = "visible";
	}//showElement


	//ausblenden von Elementen
	function hideElement(elementId) {
	  if (document.getElementById)
		document.getElementById(elementId).style.visibility = "hidden";
	}//hideElement
	
	
    //Javascript-Abfrage, ob etwas gelöscht werden soll
	function confirmDelete(type, txt, link) {
		if (type == "user") {
			check = confirm("Wollen Sie diesen User ("+txt+") wirklich löschen?");
			if(check == true) {
				window.location.href = link;
			}
		}
		if (type == "event") {
			check = confirm("Wollen Sie diesen Termin ("+txt+") wirklich löschen?");
			if(check == true) {
				window.location.href = link;
			}
		}
		if (type == "news") {
			check = confirm("Wollen Sie diese News ("+txt+") wirklich löschen?");
			if(check == true) {
				window.location.href = link;
			}
		}
		if (type == "merker") {
			check = confirm("Wollen Sie dieses Heft ("+txt+") wirklich löschen?");
			if(check == true) {
				window.location.href = link;
			}
		}
		if (type == "blackboard") {
			check = confirm("Wollen Sie diesen Eintrag ("+txt+") wirklich löschen?");
			if(check == true) {
				window.location.href = link;
			}
		}
		if (type == "partner") {
			check = confirm("Wollen Sie diesen Partner ("+txt+") wirklich löschen?");
			if(check == true) {
				window.location.href = link;
			}
		}
	}//confirmDelete