<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function fpopen(lnr){
	var url='dat/linienplan.php?linie='+lnr; 
	var features='scrollbars=yes,resizable=yes,width=797,height=550'; 
	var winname='Fahrplan'; 
	window.open(url,winname,features);
}

function fpopen_pr(lid,ap, nextfp){
	var url='\linienplan_druck.php?linienid='+lid+'&ap='+ap+'&nextfp='+nextfp; 
	var features='scrollbars=yes,resizable=yes,width=750,height=650'; 
	var winname='Fahrplan'; 
	window.open(url,winname,features);
}

function fahrten_pr(n,SID){
	var url='fahrten_pr.php?n='+n+'&SID='+SID; 
	var features='scrollbars=yes,resizable=yes,width=590,height=450'; 
	var winname='Fahrten'; 
	window.open(url,winname,features);
}

function fahrten_det(vars){
	var url='dat/details_up.php?d='+vars;
	var winname='Details';
	var features='scrollbars=auto,width=515,height=490';
	window.open(url,winname,features);
}

function senden(){
	document.suche.p.value="such_hstermittl.php";
	document.suche.opt.value="y";
	void(document.suche.submit());
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

function optionadd(ort,richt){
	if(richt=="von"){
		var option = new Option(ort,ort,false,true);
		document.suche.von.options[document.suche.von.length] = option;
	}
	else if (richt=="nach"){
		var option = new Option(ort,ort,false,true);
		document.suche.nach.options[document.suche.nach.length] = option;
	}
}

var aktfoc;
function chg(feld){
	if(aktfoc){
		document.suche.elements[aktfoc].style.borderColor='#FFE398';
	}
	document.suche.elements[feld].style.borderColor='#667FC1';
	aktfoc=feld;
}

function blu(){
	if(aktfoc){
		document.suche.elements[aktfoc].style.borderColor='#FFE398';
	}
	aktfoc='';
}


var offsetx=20
var offsety=0

function InfoBoxAusblenden() {
      document.getElementById('infobox').style.visibility = "hidden";
}

function InfoBoxAnzeigen(e,txt,offsetX,offsetY)
{
        if (offsetX) {offsetx=offsetX;} else {offsetx=20;}
        if (offsetY) {offsety=offsetY;} else {offsety=0;}
        var PositionX = 0;
        var PositionY = 0;
        if (!e) var e = window.event;
        if (e.pageX || e.pageY)
        {
                PositionX = e.pageX;
                PositionY = e.pageY;
        }
        else if (e.clientX || e.clientY)
        {
                PositionX = e.clientX + document.body.scrollLeft;
                PositionY = e.clientY + document.body.scrollTop;
        }
        if (txt) 
		  {
			  	if(txt=='A') document.getElementById("text").innerHTML=txt_A;
				if(txt=='R') document.getElementById("text").innerHTML=txt_R;
		  }
        document.getElementById('infobox').style.left = (PositionX+offsetx);
        document.getElementById('infobox').style.top = (PositionY+offsety);
        document.getElementById('infobox').style.visibility = "visible";
}
// -->