southWest.lng() + lngSpan * Math.random()); map.addOverlay(new GMarker(point)); map.setCenter(point, 15); } } </script> </div> <!--/ to show map --> <!-- to show calender --> <div style="display:none" id="calender"> <?php $item_detail = itemClass::collect_booking_dates($item_id); $disable_dates_all = ''; while ($row = mysql_fetch_assoc($item_detail)) { //print_r($row); if ($row['newissuedate'] !== '0000-00-00') { $startDate = $row['newissuedate']; $endDate = $row['newienddate']; } else { $startDate = $row['issue_date']; $endDate = $row['end_date']; } $date = getDatesBetween2Dates($startDate, $endDate); foreach ($date as $allDate) { //print_r($allDate);die; $disable_dates_all .= '['; $disable_dates_all .= $allDate;