/*Objekt zum Vorbuchen

  methods: JavaScript ist nicht typisiert => keine klassen => prototyp des objekts über eine funktion
  mit den Objekteigenschaften als Parameter definiert. Innerhalb der definierenden Funktion werden die
  ObjektEigenschaften und ObjektMethoden über das Schlüsselwort this deklariert.
  ObjektEigenschaften: this.Eigenschaft = Eigenschaft
  Objektmethode: this.methode = methode
*/

function BookAndRegister(firstname,surname,email,camp_sel,cara_sel,tent_sel,moto_sel,car_sel,camp_count,cara_count,tent_count,moto_count,car_count,
                         adult_number,child_number,arrival_day,arrival_month,arrival_year,departure_day,departure_month,departure_year)
{
 /* <!--properties//--> */
 this.firstname = firstname;
 this.surname = surname;
 this.email = email;
 this.camp_sel = camp_sel;
 this.cara_sel = cara_sel;
 this.tent_sel = tent_sel;
 this.moto_sel = moto_sel; 
 this.car_sel = car_sel;
 this.camp_count = camp_count;
 this.cara_count = cara_count;
 this.tent_count = tent_count;
 this.moto_count = moto_count;
 this.car_count = car_count;
 this.adult_number = adult_number;
 this.child_number = child_number;
 this.arrival_day = arrival_day;
 this.arrival_month = arrival_month;
 this.arrival_year = arrival_year;
 this.departure_day = departure_day;
 this.departure_month = departure_month;
 this.departure_year = departure_year; 

 /* <!-- get methods //--> */
 function getFirstName()
 {
   return(this.firstname);
 }
  
 this.getFirstName = getFirstName;  

  
 function getSurname()
 {
   return(this.surname);
 }

 this.getSurname = getSurname;


 function getEmail()
 {
  return(this.email);
 }

 this.getEmail = getEmail;


 /* <!-- CAMPING EQUIPMENT GET - METHODS //--> */

 function getCampSel()
 {
  return(this.camp_sel);
 }

 this.getCampSel = getCampSel;


 function getCaraSel()
 {
  return(this.cara_sel);
 }

 this.getCaraSel = getCaraSel;


 function getTentSel()
 {
  return(this.Tent_sel);
 }

 this.getTentSel = getTentSel;


 function getMotoSel()
 {
  return(this.moto_sel);
 }

 this.getMotoSel = getMotoSel;


 function getCarSel()
 {
  return(this.car_sel);
 }

 this.getCarSel = getCarSel;


 function getCampCount()
 {
  return(this.camp_count);
 }

 this.getCampCount = getCampCount;


 function getCaraCount()
 {
  return(this.cara_count);
 }

 this.getCaraCount = getCaraCount;


 function getTentCount()
 {
  return(this.Tent_count);
 }

 this.getTentCount = getTentCount;


 function getMotoCount()
 {
  return(this.moto_count);
 }

 this.getMotoCount = getMotoCount;


 function getCarCount()
 {
  return(this.car_count);
 }

 this.getCarCount = getCarCount;

 
 function getAdultNumber()
 {
  return(this.adult_number)
 }

 this.getAdultNumber = getAdultNumber;


 function getChildNumber()
 {
  return(this.child_number);
 }
 
 this.getChildNumber = getChildNumber;


 /* <!--DATE GET - METHODS //--> */

 function getArrivalDay()
 {
  return(this.arrival_day);
 }

 this.getArrivalDay = getArrivalDay;

 
 function getArrivalMonth()
 {
  return(this.arrival_month)
 }

 this.getArrivalMonth = getArrivalMonth;

 
 function getArrivalYear()
 {
  return(this.arrival_year)
 }

 this.getArrivalYear = getArrivalYear;


 function getDepartureDay()
 {
  return(this.departure_day);
 }

 this.getDepartureDay = getDepartureDay;


 function getDepartureMonth()
 {
  return(this.departure_month);
 }

 this.getDepartureMonth = getDepartureMonth;
 

 function getDepartureYear()
 {
  return(this.departure_year);
 }

 this.getDepartureYear = getDepartureYear;
 /* <!-- set methods //--> */

 function setFirstName(firstnamename)
 {
  this.firstname = firstnamename;
 }

 this.setFirstName = setFirstName;


 function setSurname(surname)
 {
  this.surname = surname;
 }

 this.setSurname = setSurname;


 function setEmail(email)
 {
  this.email = email;
 }

 this.setEmail = setEmail;

 
 /* <!-- CAMPING EQUIPMENT SET - METHODS //--> */

 function setCampSel(camp_sel)
 {
  this.camp_sel = camp_sel;
 }

 this.setCampSel = setCampSel; 

 
 function setCaraSel(cara_sel)
 {
  this.cara_sel = cara_sel;
 }

 this.setCaraSel = setCaraSel;

 
 function setTentSel(Tent_sel)
 {
  this.Tent_sel = Tent_sel;
 }

 this.setTentSel = setTentSel;


 function setMotoSel(moto_sel)
 {
  this.moto_sel = moto_sel;
 }

 this.setMotoSel = setMotoSel;


 function setCarSel(car_sel)
 {
  this.car_sel = car_sel;
 }

 this.setCarSel = setCarSel; 

 function setCampCount(camp_count)
 {
  this.camp_count = camp_count;
 }

 this.setCampCount = setCampCount;


 function setCaraCount(cara_count)
 {
  this.cara_count = cara_count;
 }

 this.setCaraCount = setCaraCount;

 
 function setTentCount(Tent_count)
 {
  this.Tent_count = Tent_count;
 }

 this.setTentCount = setTentCount;


 function setMotoCount(moto_count)
 {
  this.moto_count = moto_count;
 }

 this.setMotoCount = setMotoCount;

 
 function setCarCount(car_count)
 {
  this.car_count = car_count;
 }

 this.setCarCount = setCarCount;


 function setAdultNumber(adult_number)
 {
  this.adult_number = adult_number;
 }

 this.setAdultNumber = setAdultNumber;

 
 function setChildNumber(child_number)
 {
  this.child_number = child_number;
 }

 this.setChildNumber = setChildNumber;

 
 /* <!-- DATE SET - METHODS //--> */

 function setArrivalDay(arrival_day)
 {
  this.arrival_day = arrival_day;
 }

 this.setArrivalDay = setArrivalDay;


 function setArrivalMonth(arrival_month)
 {
  this.arrival_month = arrival_month;
 }

 this.setArrivalMonth = setArrivalMonth;

 
 function setArrivalYear(arrival_year)
 {
  this.arrival_year = arrival_year;
 }

 this.setArrivalYear = setArrivalYear;


 function setDepartureDay(departure_day)
 {
  this.departure_day = departure_day;
 }

 this.setDepartureDay = setDepartureDay;


 function setDepartureMonth(departure_month)
 {
  this.departure_month = departure_month;
 }

 this.setDepartureMonth = setDepartureMonth;

 
 function setDepartureYear(departure_year)
 {
  this.departure_year = departure_year;
 }

 this.setDepartureYear = setDepartureYear;

}


 