﻿function getAnyCrimesDisplayed()
{
  return (_getElementById("AnyCrimesDisplayed").value == "true");
}

function getMapLeft()
{
  return _getElementById("MapLeft").value;
}
function getMapRight()
{
  return _getElementById("MapRight").value;
}
function getMapTop()
{
  return _getElementById("MapTop").value;
}
function getMapBottom()
{
  return _getElementById("MapBottom").value;
}

function getNumPremises()
{
  return _getElementById("NumPremises").value;
}

function getNumOffenses()
{
  return _getElementById("NumOffenses").value;
}

function getEarliestDate()
{
  return parseDate(_getElementById("EarliestAvailableDate").value);
}
function getLatestDate()
{
  return parseDate(_getElementById("LatestAvailableDate").value);
}
function isClustering()
{
  //alert("isClustering");
  //alert (_getElementById("Clustering"));
  //alert (_getElementById("Clustering").value);
  if (_getElementById("Clustering") != null &&
      _getElementById("Clustering").value == "true")
    return true;
  return false;
}

function getNumClustersLong()
{
  return _getElementById("NumClustersLong").value;
}
function getNumClustersLat()
{
  return _getElementById("NumClustersLat").value;
}