--- /dev/null
+function open_stock_in_out_window(in_out, row) {
+ var width = 980;
+ var height = 600;
+ var parm = centerParms(width, height) + ",width=" + width + ",height=" + height + ",status=yes,scrollbars=yes";
+
+ var parts_id = document.getElementsByName("id_" + row)[0].value;
+ var stock = document.getElementsByName("stock_" + in_out + "_" + row)[0].value;
+ var do_qty = document.getElementsByName("qty_" + row)[0].value;
+ var do_unit = document.getElementsByName("unit_" + row)[0].value;
+ var closed = document.getElementsByName("closed")[0].value;
+
+ url = "do.pl?" +
+ "action=stock_in_out_form&" +
+ "in_out=" + escape_more(in_out) + "&" +
+ "row=" + escape_more(row) + "&" +
+ "parts_id=" + escape_more(parts_id) + "&" +
+ "do_qty=" + escape_more(do_qty) + "&" +
+ "do_unit=" + escape_more(do_unit) + "&" +
+ "stock=" + escape_more(stock) + "&" +
+ "closed=" + escape_more(closed) + "&" +
+ "";
+ //alert(url);
+ window.open(url, "_new_generic", parm);
+
+}