
function GetDatum(offset) {
  var DatArray = new Array("So","Mo","Di","Mi","Do","Fr","Sa","??" );
  var time = new Date();
  time.setTime( time.getTime()+offset*86400000);
  tag     = time.getDate();
  monat   = time.getMonth()+1;
  jahr    = time.getYear();
  if (tag   < 10)   tag   = "0"+tag;
  if (monat < 10)   monat = "0"+monat;
  if (jahr  < 2000) jahr += 1900;
  return tag+'.'+monat+'.'+jahr+' - '+DatArray[time.getDay()];
}

function sel_von() {
    document.write('<select name="vnd" size="1" style="width:130px">');
    for (var i=1; i<=500; i++) {
        var sel='';
        if (i==7) sel=' selected';
        document.write('<option'+sel+' value='+i+'>'+GetDatum(i)+'</option>')
    }
    document.write('</select>');
}

function sel_bis() {
    document.write('<select name="bsd" size="1" style="width:130px">');
    for (var i=3; i<=600; i++) {
        var sel='';
        if (i==21) sel=' selected';
        document.write('<option'+sel+' value='+i+'>'+GetDatum(i)+'</option>')
    }
    document.write('</select>');
}

function ToDo() {
    var ixp = document.getElementById('ixp').value;
    var typ='P';
    if (ixp == 'katalog')       typ='P';
    if (ixp == 'pauschal')      typ='P';
    if (ixp == 'charter')       typ='N';
    if (ixp == 'auto')          typ='R';
    if (ixp == 'hotel')         typ='H';
    if (ixp == 'pauschal_s')    typ='P';
    if (ixp == 'charter_s')     typ='N';
    if (ixp == 'auto_s')        typ='R';
    document.tibet_form.typ.value=typ;
    document.tibet_form.submit();
}