if ($res <= 0) {
            echo "Problem in removing takeoff from  area QUERY";
        } else {
            if ($db->sql_affectedrows()) {
                echo "Takeoff removed from area<br>";
            } else {
                echo "Problem in removing takeoff from  area";
            }
        }
    } else {
        if ($op == 'deleteTakeoffs') {
            $toDeleteStr = $_GET['takeoffs'];
            $toDeleteList = split('_', $toDeleteStr);
            //echo "list is :";
            //print_r($toDeleteList);
            $flightsNum = waypoint::deleteBulk($toDeleteList);
            echo "{$flightsNum} flights relocated<BR>";
            foreach ($toDeleteList as $waypointIDdelete) {
                echo "Takeoff #{$waypointIDdelete} deleted<BR>";
            }
        }
    }
}
if ($op == 'getTakeoffInfo') {
    $wpID = $_GET['wpID'] + 0;
    echo "<b>{$wpID}</b><BR>";
    $query = "SELECT intName , countryCode from {$waypointsTable} WHERE ID={$wpID} ";
    $res = $db->sql_query($query);
    if ($res > 0) {
        if ($row = mysql_fetch_assoc($res)) {
            $description = $row['intName'];