Von=0;
Bis=11;

function check_destination(){
	if(document.suchmaske.sArt.selectedIndex == 2) {
		if(document.suchmaske.sDSI.selectedIndex < 217){
			document.suchmaske.sDSI.options[216].selected = true;
		}
	} else {
		if(document.suchmaske.sDSI.selectedIndex >= 216){
			document.suchmaske.sDSI.options[0].selected = true;
		}
	}
}

function SELECT_VON() {
	document.write("<select class='schnellsuche' name='sVon' size=1>")
	document.write("<option value='1'>Ihr Abreisewunsch")
	for (var i=1; i<=100;i++) {
		document.write('<option 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()]
}
