DatArray = new Array("SO","Mo","Di","Mi","Do","Fr","SA","??" )
function Search()
{
with (window.document.GO)
{
Ra = parseInt(ERW.options[ERW.selectedIndex].value)
if (KA1.selectedIndex != 0) Ra++
if (KA2.selectedIndex != 0) Ra++
if (Ra >4)
{
	alert("Bei mehr als 4 Reisende, wenden Sie sich bitte an unseren Reiseservice. Vielen Dank!!")
	return
}


RA.value=Ra
submit()
}
}
function SELECT_VON()
{
document.write("<select  class=fincar name='termin' size='1' style='font-size:9px;'>")
for (var i=1; i<=100;i++)
{
if (i==7) document.write('<option selected="selected" ');  else document.write('<option ');

document.write('value="'+GetDatum(i)+'">'+GetDatum(i)+'')
}
document.write("</select>")
}
function SELECT_BIS()
{
document.write('<select  class=fincar name="ruecktermin" style="font-size:9px;">')
for (var i=4; i<=120;i++)
{
if (i==14) document.write('<option selected="selected" ');  else document.write('<option ');
document.write('value="'+GetDatum(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() % 100;
if (tag   < 10)   tag   = "0"+tag;
if (monat < 10)   monat = "0"+monat;
if (jahr  < 10)   jahr  = "200"+jahr;
//return tag+'.'+monat+'.'+jahr+' '+DatArray[time.getDay()]
return tag+'.'+monat+'.'+jahr;
}
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);