Dunning: Email und Zahlungsbedingung in Mahnlaufbericht aufgenommen
[kivitendo-erp.git] / js / show_history.js
1 function centerParms(width,height,extra) {
2   xPos = (screen.width - width) / 2;
3   yPos = (screen.height - height) / 2;
4
5   string = "left=" + xPos + ",top=" + yPos;
6
7   if (extra)
8     string += "width=" + width + ",height=" + height;
9
10   return string;
11 }
12
13 function set_history_window(id,trans_id_type, snumbers, what_done) {
14   var parm = centerParms(1100,500) + ",width=1100,height=500,status=yes,scrollbars=yes";
15   var url  = "common.pl?action=show_history&INPUT_ENCODING=UTF-8&";
16
17   if (trans_id_type)
18     url += "&trans_id_type=" + encodeURIComponent(trans_id_type);
19   if (snumbers)
20     url += "&s_numbers=" + encodeURIComponent(snumbers);
21   if (what_done)
22     url += "&what_done=" + encodeURIComponent(what_done);
23   if (id)
24     url += "&input_name=" + encodeURIComponent(id);
25
26   window.open(url, "_new_generic", parm);
27 }