function getOptionsstring()
{
  if( document.f.anzahl_optionen.value >= 1 ) {
  		str		= "";
  		anzahl = document.f.anzahl_optionen.value;
  		for( z=1;z<=anzahl;z++ ) {
					obj = eval("document.f.select_optionen_"+z);

					if(obj.checked == true) {
  				obj = eval("document.f.select_optionen_"+z);
  				str = str+","+obj.value;
					}
  		}

  		str = str.substr(1);
  }

		document.f.str_optionen.value = str;

		xajax_updateKosten( document.f.station.value, document.f.gruppe.value, document.f.jahr_ab.value, document.f.monat_ab.value, document.f.tag_ab.value, document.f.jahr_bis.value, document.f.monat_bis.value, document.f.tag_bis.value, document.f.uhr_bis.selectedIndex, document.f.uhr_ab.value, document.f.uhr_bis.value, str );
}

function setDaten(jahr, monat, tag, suffix)
{
		var jetzt = new Date();
		var aktJahr = jetzt.getFullYear();

		if(jahr == aktJahr)
			jahr = 0;
		else
			jahr = 1;

		monat--;
		tag--;

		obj_tag		= eval("document.f.tag"+suffix);
		obj_monat	= eval("document.f.monat"+suffix);
		obj_jahr	= eval("document.f.jahr"+suffix);

		obj_tag.options[tag].selected			= true;
		obj_monat.options[monat].selected	= true;
		obj_jahr.options[jahr].selected		= true;

		xajax_checkDatum(suffix, document.f.jahr_ab.value, document.f.monat_ab.value, document.f.tag_ab.value, document.f.jahr_bis.value, document.f.monat_bis.value, document.f.tag_bis.value, document.f.gruppe.value, document.f.station.value);
}
