
function JBaseLocation()
{
  var m_point;
  var m_zipcode;
  var m_city;
  var m_state;
  var m_valid;
  
  this.SetPoint = SetPoint;
  this.Point = GetPoint;
  this.SetZipCode = SetZipCode;
  this.ZipCode = GetZipCode;
  this.SetCity = SetCity;
  this.City = GetCity;
  this.SetState = SetState;
  this.State = GetState;
  this.SetValid = SetValid;
  this.Valid = IsValid;
  this.GetRequestString = GetRequestString;
  
  m_point = new JLatLngPoint;
  m_point.SetValid( false );
  
  function SetPoint( pnt )
  {
    m_point = pnt;
  }
  
  function GetPoint()
  {    
    return m_point;
  }
  
  function SetZipCode( zipcode )
  {
    m_zipcode = zipcode;
  }
  
  function GetZipCode()
  {
    return m_zipcode;
  }
  
  function SetCity( city )
  {
    m_city = city;
  }
  
  function GetCity()
  {
    return m_city;
  }
  
  function SetState( state )
  {
    m_state = state;
  }
  
  function GetState()
  {
    return m_state;
  }
  
  function SetValid( bValid )
  {
    m_valid = bValid;
  }
  
  function IsValid()
  {
    return m_valid;
  }
  
  function GetRequestString()
  {
    var strRequest = "";
    strRequest += GetPoint().GetRequestString();
    strRequest += "&city=" + GetCity();
    strRequest += "&state=" + GetState();
    strRequest += "&zipcode=" + GetZipCode();
    strRequest += "&validbase=" + IsValid();
    return strRequest;
  }
}