// JavaScript Document
// Standard-Funktionen

function zeigen_verbergen(element) { // zeigt und verbirgt übergebenes Element
	var hoehe = document.getElementById(element).offsetHeight;
	
	if(hoehe > 1) { // wenn das Element zu sehen ist
		document.getElementById(element).style.height = "0px";
		document.getElementById(element).style.visibility = "hidden";	
		document.getElementById(element).style.overflow = "hidden";	
		document.getElementById(element).style.padding = "0px";
		document.getElementById(element).style.display = "none";
	  }
	 else { // wenn das Element verborgen ist
		document.getElementById(element).style.height = "auto";
		document.getElementById(element).style.visibility = "visible";	
		document.getElementById(element).style.overflow = "visible";	
		document.getElementById(element).style.padding = "5px";	
		document.getElementById(element).style.display = "block";
	 }
}


function vergroessern(pfad, breite, hoehe, titel) {
	Groesser = window.open("", "groesser", "width=1, height=1, left=45, top=150, toolbar=no, dependent=no, resizable=yes");
	Groesser.close();
	
	if(titel) {
		Groesser = window.open("", "groesser", "width=" + breite + ", height=" + hoehe + ", left=45, top=150, toolbar=no, dependent=no, resizable=no");
	
		Groesser.document.writeln("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
		Groesser.document.writeln("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
		Groesser.document.writeln("<head>");
		Groesser.document.writeln("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />");
		Groesser.document.writeln("<meta name=\"autor\" content=\"Daniel Schick\" />");
		Groesser.document.writeln("<title>bsv 99 sanitz .:. " + titel + "</title>");
		Groesser.document.writeln("<style type=\"text/css\">\r\n body { bgcolor: #000000; margin:0px; padding:0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; color: #333333; }</style>");
		Groesser.document.writeln("</head>");
		Groesser.document.writeln("<body>");
		Groesser.document.writeln("<img src=\"" + pfad + "\" border=\"0\" alt=\"" + titel + "\" />");		
		Groesser.document.writeln("</body>");
		Groesser.document.writeln("</html>");
		Groesser.document.close();
	}
	else {
			Groesser = window.open( pfad, "groesser", "width=" + breite + " , height=" + hoehe + ", left=45, top=150, toolbar=no, dependent=no, resizable=yes");
	}
		
	Groesser.focus();
}
