% //Function to add commas to large numbers function commaSeparateNumber(val){ while (/(\d+)(\d{3})/.test(val.toString())){ val = val.toString().replace(/(\d+)(\d{3})/, '$1'+','+'$2'); } return val; } %> <% if (typeof southBoundCoord != "undefined"){ print('