function HighLight(i) {
        if (document.images) {
                var thang = document.images[i].src
                var off = thang.lastIndexOf("nr")
                if (off != -1) {
                        document.images[i].src = thang.substring(0,off) + "lt" + ".gif"
                }
        }
}

function Lightsoff(i) {
        if (document.images) {
                var thang = document.images[i].src
                var on = thang.lastIndexOf("lt")
                if (on != -1) {
                        document.images[i].src = thang.substring(0,on) + "nr" + ".gif"                }
        }
}

function openWindow(datei)
{
     window.open(datei, null, "height=500,width=750,scrollbars=yes,resizable=yes");    
}

function openMy(datei)
{
	var att = "resizeable=yes, width=750, height=500, scrollbars=yes";
	var x = window.open(datei, null, att);
	x.document.open();
	
}


function displayNewspaperReport(report){
	
	if(report.match("")) {	
		defaultReport = new String("bbv_11112002.jpg");
		report = defaultReport;
	}
	
	<!-- Extract the publisher information from the filename -->	
	var x = report.indexOf("_");	
	publisher = report.substring(0,x);	
	pubDay = report.substring(x+1, x+3);	
	pubMonth = report.substring(x+3, x+5);	
	pubYear = report.substring(x+5, x+9);
	document.writeln("<br><i>published by " + publisher + " on " + pubDay + "." + pubMonth + "." + pubYear +"</i>");	
	document.writeln("<br><br><img src=\"reports\\" + report + "\" width=\"500\" height=\"400\" alt=\"Report newspaper\">");
	
}


function openReportWindow(datei)
{
     	<!-- Extract the publisher information from the filename -->
	<!-- DOES NOT WORK!!! -->	
	var y = datei.indexOf("_");	
	publisher = datei.substring(0,y);	
	pubDay = datei.substring(y+1, y+3);	
	pubMonth = datei.substring(y+3, y+5);	
	pubYear = datei.substring(y+5, y+9);    
	
     	window.open(".\\reports\\" + datei , "Archive", "height=500,width=750,scrollbars=yes,resizable=yes");
     	<!-- 
		var x = window.open(".\\reports\\" + datei , "Archive", "height=500,width=750,scrollbars=yes,resizable=yes");
     		x.document.open();
        	document.writeln("<br><i>published by " + publisher + " on " + pubDay + "." + pubMonth + "." + pubYear +"</i>");	
      -->  
   
}





<!--
  
	<!-- -      Def. globale Var    ---- // -->
	var msg ="LIVE - TICKER: TuB wins!!! ";
	var position=0;
	var max	= msg.length;
	var speed=10;
	var typ =3;	// 1= Laufschrift in Titelzeile (funktioniert nicht mit Netscape !)
			// 2= Laufschrift in Statuszeile
			// 3= Laufschrift in Textfeld (Formular)

	<!-- -      Laufschriftgröße anpassen    ---- // -->
	if (max<120) max=120;
	
	<!-- -      Wenn Laufschrift in Titelzeile unter Netscape ausgeführt werden soll      ---- // -->
	<!-- -      wird Laufschrifttyp automatisch in '2' (Ausgabe Statuszeile) umgewandelt. ---- // -->
	var bN = navigator.appName; 
	if (bN=='Netscape')
	{	if (typ==1)
		typ=2;
	}
	
	<!-- -      Funktion die aus HTML gestartet wird ---- // -->
	function message()
	{
		<!-- -      Def. lokale Var    ---- // -->		
	  	var i,k;
	  	var timeout;
  
		<!-- -      Neuen AusgabeString ermitteln    ---- // -->
  		k=(66/msg.length)+1;
  		for(i=0;i<=k;i++) msg+=" "+msg;


			if (typ==1)
	    	{
				<!-- -      Ausgabe in Browsertitelzeile    ---- // -->
				document.title=msg.substring(position,position+70);
				<!-- -      Prüfen ob Funktion neu gestartet werden muß   ---- // -->
    		}
			
			else if (typ==2)
	    	{	<!-- -      Ausgabe in Browserstatuszeile   ---- // -->
				window.status=msg.substring(position,position+120);
				<!-- -      Prüfen ob Funktion neu gestartet werden muß   ---- // -->
    		}
			
			else if (typ==3)
	    	{   <!-- -      Ausgabe in Textfeld			    ---- // -->
				document.messageform.messagetext.value=msg.substring(position,position+max);
    		}	

			<!-- -      Prüfen ob Funktion neu gestartet werden muß   ---- // -->
			if(position++==max) position=0;
	
	 <!-- -      Pause	    		     ---- // -->
 	 timeout=setTimeout("message()",1000/speed); 
	}

// SpriptEnde -->





