function popup_forum(){
	str="http://www.baw-alumni.de/pages/forum/popup/list.php?id_session=<? echo $id_session ?>&f=1&<? echo SID; ?>";
	popupForum = window.open(str,"BAWforum","width=680,height=550,resizeable=no, titlebars=no,scrollbars=yes,screenX=0, screenY=0");
}

function popup_forum2(){
	str="http://www.baw-alumni.de/pages/forum/popup/index.php?id_session=<? echo $id_session ?>&f=0&<? echo SID; ?>";
	popupForum = window.open(str,"BAWforum","width=680,height=550,resizeable=no, titlebars=no,scrollbars=yes,screenX=0, screenY=0");
}

function popup_forum3(){
	str="http://www.baw-alumni.de/pages/forum/popup/list.php?id_session=<? echo $id_session ?>&f=2&<? echo SID; ?>";
	popupForum = window.open(str,"BAWforum","width=680,height=550,resizeable=no, titlebars=no,scrollbars=yes,screenX=0, screenY=0");
}

function fensterOeffnen(theurl, windowname, width, height, left, top) {
	url = theurl;
	fenstername = windowname;
	breite = width;
	hoehe = height;
	links = left;
	oben = top;
	var fenster = window.open(url, fenstername, "left="+links+", top="+oben+", width="+breite+", height="+hoehe);
	fenster.focus;
}

function druckfensterOeffnen(theurl, windowname, width, height, left, top) {
	url = theurl;
	fenstername = windowname;
	breite = width;
	hoehe = height;
	links = left;
	oben = top;
	var fenster = window.open(url, fenstername, "left="+links+", top="+oben+", width="+breite+", height="+hoehe+", scrollbars=yes");
	fenster.focus;
}

// Seitenhoehe ausnutzen bei wenig Inhalt //
function computeContentHeight() {
	var name = navigator.appName;
	var useragent = navigator.userAgent;
	
	if (name == "Microsoft Internet Explorer") {
		if (useragent.indexOf("MSIE ")) {
			ua = useragent.split(";");
			if (ua[1] == " MSIE 6.0") {
				// IE 6
				var h = document.documentElement.clientHeight;
				h = h - 195;
				if (h > 0) {
						if(document.all('content').height < h) {
							document.all('content').height = h;
						}
					
				}
			} else {
				// IE 5.x
				var h = document.body.clientHeight;
				h = h - 195;
				if (h > 0) {
					if(document.all('content').height < h) {
							document.all('content').height = h;
						}
				}
			}
		}
	} else {
		// Mozilla
		var h  = window.innerHeight;
		h = h - 195;
		if (h > 0) {
			if(document.getElementById('content').offsetHeight < h) {
			/*if(document.getElementById('content').style.height < h + "px") {*/
				document.getElementById('content').style.height = h + "px";
			}
			return;
		}
	}
	
}


  function winOpen(url)
  {
    fenster = window.open(url,"hinweis","width=540,height=430,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,location=no,directories=no");
  }
  
 function checkAll(IDs)
 {
	
	var ID = IDs.split(",");

	for(i = 0; i < ID.length; i++)
	{
		if(ID[i] != 'nix')
		{
			if(document.getElementById("check_"+ID[i]).checked == false)
			{
				document.getElementById("check_"+ID[i]).checked = true;
			}
			
		}
	}	
 }
 
