function HMGet(url) {
 var poststr = url + "&d=" + encodeURI( document.getElementById("HMMapdata").value );
 HMMakePOSTRequest(url, poststr);
 }
function GEOHeatmap()
{
this._width = 0;
this._height = 0;
this._lat1 = 0;
this._lat2 = 0;
this._lon1 = 0;
this._lon2 = 0;
this._url = '';
this._distBoost = 1;
this._proxyUrl = '';
this._decay = 0;
this._baseURL = '?k=d975a671-4a29-44bc-9ee1-6e1b281f52bb&u=1';
this._data = "";
this.Init = _GEOHMInit;
this.SetData = _GEOHMSetData;
this.GetURL = _GEOHMGetURL;
this.UseURL = _GEOHMUseURL;
this.SetBoost = _GEOHMSetBoost;
this.SetProxyURL = _GEOHMSetProxyURL;
this.SetDecay = _GEOHMSetDecay;
}
function _GEOHMInit(width, height)
{
this._width = width;
this._height = height;
}
function _GEOHMSetData(data)
{
this._data = data.slice(0);
}
function _GEOHMUseURL(url)
{
this._baseURL = url;
}
function _GEOHMSetBoost(boost)
{
this._distBoost = boost;
}
function _GEOHMSetDecay(decay)
{
this._decay = decay;
}
function _GEOHMSetProxyURL(url)
{
this._proxyUrl = url;
}
function _GEOHMGetURL()
{
 if(this._proxyUrl != '')
  this._url = this._proxyUrl + this._baseURL + "&x=" + this._decay.toString() + "&b=" + this._distBoost.toString() + "&w=" + this._width.toString() + "&h=" + this._height.toString();
 else
  this._url = 'http://www.heatmapapi.com/HeatmapGenerate2.aspx' + this._baseURL + "&x=" + this._decay.toString() + "&b=" + this._distBoost.toString() + "&w=" + this._width.toString() + "&h=" + this._height.toString();
 var url = this._url.toLocaleString();
 return url;
}
