function Search()
{
personen=0;
if (parseInt(document.SUCH.KIND1.options[document.SUCH.KIND1.selectedIndex].value)<18) personen++;
if (parseInt(document.SUCH.KIND2.options[document.SUCH.KIND2.selectedIndex].value)<18) personen++;
personen = personen + parseInt(document.SUCH.ERW.options[document.SUCH.ERW.selectedIndex].value);
if (personen>4) {
   alert("Wir können Ihnen leider nur Angebote für bis zu 4 Personen unterbreiten.");
   return false;
} else return true;
}
Von=0;
Bis=11;
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=2; i<=220;i++)
{
document.write('<option value='+i+'>'+GetDatum(i)+'')
}
document.write("</select>")
}
function SELECT_BIS()
{
document.write("<select name='BIS' size='1'>")
for (var i=5; i<=250;i++)
{
if (i==23) 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()]
}