var makePayments = {
  mGetData: function(pResId) {
    pars = 'reservation_id='+pResId;
    myAjax = new Ajax.Request('getreservation.php',{method:'post',parameters:pars,onComplete:makePayments.mPostData});
  },
  mPostData: function(request) {
    eval("var response="+request.responseText);
    $('my_reservation_id').value=response.reservation_id;
    $('my_s_name').value=response.franchise_name;
    $('my_s_address').value=response.franchise_address;
    $('my_s_city').value=response.franchise_city;
    $('my_s_state').value=response.franchise_state;
    $('my_s_zip').value=response.franchise_zip;
    $('my_total').value=response.owed;
    $('my_x_login').value=response.storename;
    $('my_x_tran_key').value=response.trankey;
    $('make_payments_form').submit();
  }
};
