1 function centerParms(width,height,extra) {
2 xPos = (screen.width - width) / 2;
3 yPos = (screen.height - height) / 2;
5 string = "left=" + xPos + ",top=" + yPos;
8 string += "width=" + width + ",height=" + height;
13 function set_history_window(id,trans_id_type) {
14 var parm = centerParms(800,500) + ",width=800,height=500,status=yes,scrollbars=yes";
17 "INPUT_ENCODING=UTF-8&" +
18 "action=show_history&" +
19 "longdescription=" + "&" +
20 "trans_id_type=" + encodeURIComponent(trans_id_type) + "&" +
21 "input_name=" + encodeURIComponent(id) + "&"
22 window.open(url, "_new_generic", parm);