// Bei Link auf aktuelle Seite die CSS Klasse auf aktiv setzen
function highlightCurrentPageLink() {
// Alle Links durchlaufen und pruefen
var anzHrefs = document.getElementsByTagName("a").length;
for (var i = 0; i <= anzHrefs - 1; i++) {
// Link auf aktuelle Seite gefunden, also umsetzen CSS auf aktiv
if (document.getElementsByTagName("a")[i].href == document.location.href) {
var currentClassName = document.getElementsByTagName("a")[i].className;
var newClassName = currentClassName.replace(/k/,"a");
document.getElementsByTagName("a")[i].className = newClassName;
}
}
}

function surfto(form) {
        var myindex=form.select1.selectedIndex
        if (form.select1.options[myindex].value != "0") {
       	 top.frames.location=form.select1.options[myindex].value;}}



var image_frame_print;
function openImageFrame_print(width,height,bild_location){
  x=screen.availWidth-width-10; 
  image_frame_print=window.open("","image","height="+height+",width="+width+",location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=no,toolbar=no,directories=no,left="+x+",top=0");
  image_frame_print.document.open();
  image_frame_print.document.writeln("<head>");
  image_frame_print.document.writeln("<link rel='stylesheet' href='/include/zoom_style.css' type='text/css'>");
  image_frame_print.document.writeln("<body marginheight='0' leftmargin='0' topmargin='0' marginwidth='0' >");
  image_frame_print.document.writeln("<div style='text-align:center;width:100%;'><a class='hyperlink' href='javascript:window.print();'>drucken</a> - <a class='hyperlink' href='javascript:window.close();'>Fenster schließen</a></div><br>");
  image_frame_print.document.writeln("<img name='bild' src='"+bild_location+"' border='0' alt=''>");
  image_frame_print.document.writeln("<br><div style='text-align=center;width:100%;'><a class='hyperlink' href='javascript:window.print();'>drucken</a> - <a class='hyperlink' href='javascript:window.close();'>Fenster schließen</a></div>");
  image_frame_print.document.writeln("</body>");
  image_frame_print.document.writeln("</head>");
  image_frame_print.document.close();
  image_frame_print.resizeTo(width,height);
  image_frame_print.focus();  
  return false;
 }   
  
var image_frame_print;
function openImageFrame_print_eng(width,height,bild_location){
  x=screen.availWidth-width-10; 
  image_frame_print=window.open("","image","height="+height+",width="+width+",location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=no,toolbar=no,directories=no,left="+x+",top=0");
  image_frame_print.document.open();
  image_frame_print.document.writeln("<head>");
  image_frame_print.document.writeln("<link rel='stylesheet' href='/include/zoom_style.css' type='text/css'>");
  image_frame_print.document.writeln("<body marginheight='0' leftmargin='0' topmargin='0' marginwidth='0' >");
  image_frame_print.document.writeln("<div style='text-align:center;width:100%;'><a class='hyperlink' href='javascript:window.print();'>print</a> - <a class='hyperlink' href='javascript:window.close();'>close</a></div><br>");
  image_frame_print.document.writeln("<img name='bild' src='"+bild_location+"' border='0' alt=''>");
  image_frame_print.document.writeln("<br><div style='text-align=center;width:100%;'><a class='hyperlink' href='javascript:window.print();'>print</a> - <a class='hyperlink' href='javascript:window.close();'>close</a></div>");
  image_frame_print.document.writeln("</body>");
  image_frame_print.document.writeln("</head>");
  image_frame_print.document.close();
  image_frame_print.resizeTo(width,height);
  image_frame_print.focus();  
  return false;
 }   


var image_frame;
function openImageFrame(width,height,bild_location){
  x=screen.availWidth-width-10; 
  image_frame=window.open("","image","height="+height+",width="+width+",location=no,menubar=no,resizable=yes,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no,left="+x+",top=0");
  image_frame.document.open();
  image_frame.document.writeln("<body marginheight='0' leftmargin='0' topmargin='0' marginwidth='0' >");
  image_frame.document.writeln("<img name='bild' src='"+bild_location+"' border='0' alt=''>");
  image_frame.document.writeln("</body>");
  image_frame.document.close();
  image_frame.resizeTo(width+12,height+40);
  image_frame.focus();  
  return false;
 }  
   
function open_win(filename, winname,width,height,left,top)
		{left=screen.availWidth-width-10;
		open_window(filename,winname,"width=" + width + ",height=" + height + ",left=250" + ",top=250" + ",location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no");
		}
		
function open_win_mit(filename, winname,width,height,left,top)
		{left=screen.availWidth-width-10;
		open_window(filename,winname,"width=" + width + ",height=" + height + ",left=250" + ",top=250" + ",location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no");
		}
		
function open_window(filename,winname,params) {
handle=window.open("", winname, params);
handle.location.href=filename;
window.handle.document.close();
}
