//funcion de buscar alojameintos
 $curl = curl_init($service_url);
 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
 //to return the content
 $result = curl_exec($curl);
 $httpcode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
 curl_close($curl);
 $decoded = json_decode($result, true);
 //echo "Header:" . $httpcode . "</br>";
 $size = count($decoded);
 if ($httpcode == 200 && $size > 0) {
     //mostramos los hotels en forma de tabla
     echo "<table id=\"tabla_hoteles\" >";
     for ($i = 0; $i < $size; $i++) {
         $h = new Hotel();
         $h->read_hotel($decoded[$i]);
         if ($i % 2 == 0) {
             echo "<tr>";
             echo "<td>";
             echo "<div class =\"hotel\">";
             //echo "<input type=\"checkbox\" name=\"hotel\" value=\"".$h->idAlojamiento."\" >";
             $h->mostrar($i, $n_actividades, $size);
             //echo "</input>";
             echo "</div><!-- end hotel -->";
             echo "</td>";
         } else {
             echo "<td>";
             echo "<div class =\"hotel\">";
             //echo "<input type=\"checkbox\" name=\"hotel\" value=\"".$h->idAlojamiento."\" >";
             $h->mostrar($i, $n_actividades, $size);
             //echo "</input>";