﻿//Class definition/constructor
function AjaxNewUser(url,placeholder,Name,Email,Phone,Stations)
{
  //Inherit properties from AjaxObject
  //Build params string
  var params = "&name=" + Name;
  params += "&email=" + Email;
  params += "&phone=" +Phone;
  params += "&stationids=" + Stations;
  
  AjaxObject.call(this,url,this.onJSONload,null,"POST",params);

  //Local variables
  this.placeholder = placeholder;
}
  //inherit methods from AjaxObject
  AjaxNewUser.prototype.inheritFrom(AjaxObject);

  AjaxNewUser.prototype.onJSONload = function()
  {
    this.placeholder.innerHTML = this.httpreq.responseText;
  }

