Helper function which sets the price on a specified table cell based on the table id, row id and column number.

function setTableCellVal(tableId, rowId, colNum, newValue) {
  $('#' + table).find('tr#' + rowId).find('td:eq(colNum)').html(newValue);
}