1 function calculate_qty_selection_dialog(input_name, input_id, formel_name, formel_id) {
 
   2   // The target input element is determined by it's dom id or by it's name.
 
   3   // The formula input element (the one containing the formula) is determined by it's dom id or by it's name.
 
   4   // If the id is not provided the name is used.
 
   6     var formel = $('#' + formel_id).val();
 
   8     var formel = $('[name="' + formel_name + '"]').val();
 
  10   var url  = "common.pl";
 
  12     action:     "calculate_qty",
 
  13     input_name: input_name,
 
  18     id:     'calc_qty_dialog',
 
  24       title:  kivi.t8('Please enter values'),