// Multiple Markers
var markers = [
<?php
$wa_startindex = 0;
while(!$Locations->atEnd()) {
$wa_startindex = $Locations->Index;
$Locations->moveNext();
?>
['<?php echo($Locations->Results[$wa_startindex]["pageName"]); ?>',<?php echo($Locations->Results[$wa_startindex]["lat"]); ?>,<?php echo($Locations->Results[$wa_startindex]["lng"]); ?>]<?php echo($Locations->atEnd()?"":","); ?>
<?php
}
$Locations->moveFirst(); //return RS to first record
unset($wa_startindex);
unset($wa_repeatcount);
?>
];