Bloeder Bug: eine zu gefräßige INSERT legt zu allen Konten taxkeys an, was aber nicht...
[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) {
14   var parm = centerParms(800,500) + ",width=800,height=500,status=yes,scrollbars=yes";
15   var name = "History";
16   url = "common.pl?" +
17     "action=show_history&" +
18     "login=" +  encodeURIComponent(document.getElementsByName("login")[0].value)+ "&"+
19     "password=" + encodeURIComponent(document.getElementsByName("password")[0].value) + "&" +
20     "longdescription=" + "&" +
21     "input_name=" + escape(id) + "&"
22   window.open(url, "_new_generic", parm);
23 }