// Customer.js
function Customer() {

}

Customer.prototype.getCustomerDetailsSummary = function()
{
   var summaryHTML = "Your goods will be delivered to "
      + "<TABLE CLASS='Summary'>";
   summaryHTML += "<TR><TD>" + this.getTitle() + " " + this.getFullName() 
      + "</TD></TR>";
   summaryHTML += "<TR><TD>" + this.getStreet() + "</TD></TR>";
   summaryHTML += "<TR><TD>" + this.getCity() + "</TD></TR>";
   summaryHTML += "<TR><TD>" + this.getLocality() + "</TD></TR>";
   summaryHTML += "<TR><TD>" + this.getPostalCode() + "</TD></TR>"
   summaryHTML += "<TR><TD>" + this.getCountry() + "</TD></TR>";
   summaryHTML += "</TABLE>"

   return summaryHTML;
}

Customer.prototype.setTitle = function(title)
{
   this.title = title;
}

Customer.prototype.getTitle = function()
{
   return this.title;
}

Customer.prototype.setFullName = function(fullName)
{
   this.fullName = fullName;
}

Customer.prototype.getFullName = function()
{
   return this.fullName;
}

Customer.prototype.setEmail = function(email)
{
   this.email = email;
}

Customer.prototype.getEmail = function()
{
   return this.email;
}

Customer.prototype.setStreet = function(street)
{
   this.street = street;
}

Customer.prototype.getStreet = function()
{
   return this.street;
}

Customer.prototype.setCity = function(city)
{
   this.city = city;
}

Customer.prototype.getCity = function()
{
   return this.city;
}

Customer.prototype.setLocality = function(locality)
{
   this.locality = locality;
}

Customer.prototype.getLocality = function()
{
   return this.locality;
}

Customer.prototype.setPostalCode = function(postalCode)
{
   this.postalCode = postalCode;
}

Customer.prototype.getPostalCode = function()
{
   return this.postalCode;
}

Customer.prototype.setCountry = function(country)
{
   this.country = country;
}

Customer.prototype.getCountry = function()
{
   return this.country;
}
