var contentvars = '';

function ajax_get(page, sprache) {
  asyncRequest(
    'GET',
    '/core/smartsupply/ajax_get.php?n_lfdpage='+page+'&n_lfdsprache='+sprache,
    function(o) {
      parse_response(o.responseText, page);
    }
  );
}

function parse_response(response, page) {

  eval(response);

  if(data.warenkorb != null) {
    id_update('box_cart', data.warenkorb);
  }
}

function id_update(id, text) {
  if(!document.getElementById(id)) {
    return;
  }
  else {
    document.getElementById(id).innerHTML = text;
  }
}

/*
function ajax_addvar(varname, value) {
  contentvars = contentvars+'&'+varname+'='+value;
}
*/
