function confirmDelete(aLink , aMessage)
{
  var r=confirm(aMessage);

  if(r == true)
    window.location.href=aLink;
}

// AJAX FUNCTIONS FUER TRAFIKANTENSUCHE

function updateResults(plz,city,bundesland,service,name)
{
  $.get("/ajax/trafikanten_process.inc.php" , {plz: plz, city: city, bundesland: bundesland, service: service, name: name,  getWhat: "result"} , function(response){ $("#result").html(response);});
}


function updateAllSelects(type,plz,city,bundesland,service)
{
  if(type != 'PLZ')  
    $.get("/ajax/trafikanten_process.inc.php" , {getWhat: "plz" , plz: plz, bundesland: bundesland, city: city, services: service} , function(response){ $("#plz").html(response);});
  if(type != 'BL')  
    $.get("/ajax/trafikanten_process.inc.php" , {getWhat: "bundesland" , plz: plz, bundesland: bundesland, city: city, services: service} , function(response){ $("#bundesland").html(response);});
  if(type != 'CITY')  
    $.get("/ajax/trafikanten_process.inc.php" , {getWhat: "city" , plz: plz, bundesland: bundesland, city: city, services: service} , function(response){ $("#city").html(response);});
  if(type != 'SERVICE')  
    $.get("/ajax/trafikanten_process.inc.php" , {getWhat: "service" , plz: plz, bundesland: bundesland, city: city, services: service} , function(response){ $("#service").html(response);});
}

