
function Search()
{
with (document.SUCH)
{
LMIN.value = xL.options[xL.selectedIndex].value.substr(0,2)
         LMAX.value = xL.options[xL.selectedIndex].value.substr(3,2)
}
document.SUCH.submit()
}
Von=0
Bis=11
tv=1
tr=0
if (tr==0) tr=250
tb=tv+tr
function TCHECK(VonBis)
{
with (document.SUCH)
{
Von1 = VON.selectedIndex
Bis = Math.max(Math.min( BIS.selectedIndex + Von1-Von ,BIS.length-1),0);
BIS.selectedIndex = Bis;
Von=Von1
window.status="Von: "+Von
}
}
function SELECT_VON()
{
document.write("<select name='VON' size=1 onChange=TCHECK(0)>")
for (var i=tv; i<= tb ;i++)
{
document.write('<option value='+i+'>'+GetDatum(i)+'')
}
document.write("</select>")
}
function SELECT_BIS()
{
document.write("<select name='BIS' size=1 >")
for (var i=tv+3; i<= (tb+20);i++)
{
if (i==tv+14) document.write('<option selected ');  else document.write('<option ');
document.write('value='+i+'>'+GetDatum(i)+'')
}
document.write('</select>')
}
function GetDatum(offset)
{
DatArray = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","??" )
var time = new Date()
time.setTime( time.getTime()+offset*86400000);

tag     = time.getDate();
monat   = time.getMonth()+1;
jahr    = time.getYear() % 100;
if (tag   < 10)   tag   = "0"+tag;
if (monat < 10)   monat = "0"+monat;
if (jahr  < 10)   jahr  = "0"+jahr;
return tag+'.'+monat+'.'+jahr+' - '+DatArray[time.getDay()]
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=='Netscape')&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

