/* Location wechseln - zur ausgewählten Stadt */
function gotoKubuStadt(id, key) {
  if(''!=id) {
    parent.location.href = '/kundenbuchung/process.php?proc=stadt&stadt_id='+id+'&key='+key;
  }
}
/* Location wechseln - zur ausgewählten Station */
function gotoKubuStation(id, key) {
  if(''!=id) {
    parent.location.href = '/kundenbuchung/process.php?proc=station&station_id='+id+'&key='+key;
  }
}
/* Buchungsanfrage für Station */
function gotoBookingRequest(stadt_id, station_id, key) {
  var url = '/kundenbuchung/process.php?proc=buchanfrage_erg&key='+key;
  var addparams = '';
  if(false != stadt_id) {
    url += '&stadt_id='+stadt_id;
  }
  if(false != station_id) {
    url += '&station_id='+station_id;
  }
  var visible_form = false;
  jQuery('#bform3:visible').each(function(i,elem){  
  	visible_form = true; 
  });
  if(visible_form){
    addparams = '&'+jQuery('#bform3').serialize();
  }
  parent.location.href = url+addparams;
}
function gotoCar(url)
{
  var addparams = '';
  var visible_form = false;
  jQuery('#bform3:visible').each(function(i,elem){  
    visible_form = true; 
  });
  if(visible_form){
    addparams = '&'+jQuery('#bform3').serialize();
  }
  parent.location.href = '/kundenbuchung/'+url+addparams;
}
function gotoUrl(url)
{
  if(typeof key == 'string'){ url+='&key='+key; }
  parent.location.href = url;
}
function openWin(url, titel, w, h)
{
    var w1 = window.open(url,titel,'toolbar=no,scrollbars=no,width='+w+',height='+h+'');
    if(w1.focus) w1.focus();
}

