function loadVar(step){
 rf = document.calform;
 id   = rf.id.value
 what = rf.what.value
 lang = rf.lang.value
 ALL_tot_people= rf.ALL_tot_people.value
 nights = rf.nights.value
 StartDay = rf.StartDay.value
 StartMonth = rf.StartMonth.value
 StartYear = rf.StartYear.value
 EndDay = rf.EndDay.value
 EndMonth = rf.EndMonth.value
 EndYear = rf.EndYear.value
 if ( ! rf.selected_period ) {
   selected_period='all'
 }else{
   selected_period= rf.selected_period.value
 }
 if ( step == 3 ) {
    if (rf.lodge.checked) {
      lodge=1
    }else{
      lodge=0
    }
    if (rf.camp.checked) {
      camp=1
    }else{
      camp=0
    }
 }
 if ( step == 4 ) {
    address1 = rf.address1.value
    address2 = rf.address2.value
    NAP = rf.NAP.value
    city = rf.city.value
    mobile = rf.mobile.value
    phone = rf.phone.value
    fax = rf.fax.value
    M_tot_boss = rf.M_tot_boss.value
    M_tot_participants = rf.M_tot_participants.value
    M_tot_attendant = rf.M_tot_attendant.value
    F_tot_boss = rf.F_tot_boss.value
    F_tot_participants = rf.F_tot_participants.value
    F_tot_attendant = rf.F_tot_attendant.value
    tot_10_15 = rf.tot_10_15.value
    tot_15_20 = rf.tot_15_20.value
    tot_20_plus = rf.tot_20_plus.value
    if (rf.JS.checked) {
      JS=1
    }else{
      JS=0
    }
 }

 pstr = "id=" + id;
 pstr += "&what=" + what;
// pstr += "&email=" + email;
// pstr += "&activation_code=" + activation_code;
 pstr += "&selected_period=" + selected_period;
 pstr += "&lang=" + lang;
 pstr += "&ALL_tot_people=" + ALL_tot_people;
 pstr += "&nights=" + nights;
 pstr += "&StartDay=" + StartDay;
 pstr += "&StartMonth=" + StartMonth;
 pstr += "&StartYear=" + StartYear;
 pstr += "&EndDay=" + EndDay;
 pstr += "&EndMonth=" + EndMonth;
 pstr += "&EndYear=" + EndYear;
 pstr += "&selected_period=" + selected_period;
 if ( step == 3 ) {
  pstr += "&lodge=" + lodge
  pstr += "&camp=" + camp
 }
 if ( step == 4 ) {
  pstr += "&address1=" + address1
  pstr += "&address2=" + address2
  pstr += "&NAP=" + NAP
  pstr += "&city=" + city
  pstr += "&mobile=" + mobile
  pstr += "&phone=" + phone
  pstr += "&fax=" + fax
  pstr += "&M_tot_boss=" + M_tot_boss
  pstr += "&M_tot_participants=" + M_tot_participants
  pstr += "&M_tot_attendant=" + M_tot_attendant
  pstr += "&F_tot_boss=" + F_tot_boss
  pstr += "&F_tot_participants=" + F_tot_participants
  pstr += "&F_tot_attendant=" + F_tot_attendant
  pstr += "&tot_10_15=" + tot_10_15
  pstr += "&tot_15_20=" + tot_15_20
  pstr += "&tot_20_plus=" + tot_20_plus
  pstr += "&JS=" + JS
} 
if ( step == 3 ) {
  pstr += "&step3=1";
}else if ( step == 4 ) {
  pstr += "&step4=1";
}

// pstr += "#atSel";
 

 loc="reservation.php?" + pstr;
 if(IE){window.navigate(loc)}else{top.location=loc}
 return true;
}
