// JavaScript Document

// funktion zum öffnen eines seperaten browserfensters
function MM_openBrWindow(theURL,winName,features) { //v2.0
lmp =  window.open(theURL,winName,features);
lmp.focus();
}

// funktionen für last minute suche
DatArray = new Array("So","Mo","Di","Mi","Do","Fr","Sa","??" )
function SELECT_VON()
{
document.write("<select name='VON' size=1>")
for (var i=1; i<=50;i++)
{
document.write('<option value='+i+'>'+GetDatum(i)+'')
}
document.write("</select>")
}
function SELECT_BIS()
{
document.write("<select name='BIS' size=1>")
for (var i=4; i<=71;i++)
{
if (i==15) document.write('<option selected ');  else document.write('<option ');
document.write('value='+i+'>'+GetDatum(i)+'')
}
document.write('</select>')
}
function GetDatum(offset)
{ var time = new Date()
  time.setTime( time.getTime()+offset*86400000);
  tag     = time.getDate();
  monat   = time.getMonth()+1;
  jahr    = time.getYear();
  if (tag   < 10)   tag   = "0"+tag;
  if (monat < 10)   monat = "0"+monat;
  if (jahr  < 2000) jahr += 1900;
  return DatArray[time.getDay()]+' '+tag+'.'+monat+'.'+jahr;
}
//-->