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, 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&";
 
  18     url += "&trans_id_type=" + encodeURIComponent(trans_id_type);
 
  20     url += "&s_numbers=" + encodeURIComponent(snumbers);
 
  22     url += "&what_done=" + encodeURIComponent(what_done);
 
  24     url += "&input_name=" + encodeURIComponent(id);
 
  26   window.open(url, "_new_generic", parm);