var derlink="http://www.urlaub-heute.de"
var titel="Urlaub Heute - Lastminute und Infos"
function favorit(){
if (document.all)
window.external.AddFavorite(derlink,titel)
}


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("Es sind nur max. 4 Reisende möglich!")
return
}

RA.value=Ra
submit()
}
}
function SELECT_VON()
{
document.write("<select name='VON' size=1>")
for (var i=1; i<=100;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<=120;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)
return DatArray[time.getDay()]+' '+time.getDate()+'.'+(1+time.getMonth())+'.'+(2000+(time.getYear()%100))
}
