function zurSuche(){
  window.location.href=url+'booking/urlaubsexperte/1way/'+uebergabe;
}
function zumTermin(){
  window.location.href=url+'booking/urlaubsexperte/1way/'+uebergabe+'&detail=termine';
}

//Aufruf des Kalenders
function openwin(w_info,fenstername)
{
    var top  = screen.height;
    var left = screen.width;
    posx=((left/2)-100);
    posy=((top/2)-115);
    var infowin = window.open(w_info,fenstername,'width=200,height=230,scrollbars=no,screenX='+posx+',screenY='+posy+',left='+posx+',top='+posy+'');
    infowin.focus();
}

// Hiddenfeld zum Formular hinzufügen
function addHF(FormName,FeldName,FeldWert){
  var f = document.forms[FormName];
  var hf = document.createElement("input");
  hf.setAttribute("type","hidden");
  hf.setAttribute("name",FeldName);
  hf.setAttribute("value",FeldWert);
  f.appendChild(hf);
}

function dlc2name(arrFH,Dlc){
  var strRx = "("+Dlc+")#(.*)";
  var regExp = new RegExp(strRx,'i');
  for(var i=0;i<arrFH.length;i++){
    if(regExp.test(arrFH[i]))
      return RegExp.$2;
  }
  return "unbekannter Flughafen";
}

function seiten_replace(repl_vars){
  location.replace('index.php?'+repl_vars);
}

function alterkind(secalter){
  for(i=2;i<=11;i++){
    if(i==secalter){
      document.write('<option value="'+i+'" selected>'+i+' Jahre</option>');
    }else{
      document.write('<option value="'+i+'">'+i+' Jahre</option>');
    }
  }
}
