-$js = "";
-if ($use_popup_windows)
- $js .= get_js_open_window(800, 500);
-if ($use_date_picker)
- $js .= get_js_date_picker();
-
-page(_($help_context = "Inventory Item Movement"), @$_REQUEST['popup'], false, "", $js);
+if (!@$_GET['popup'])
+{
+ $js = "";
+ if ($use_popup_windows)
+ $js .= get_js_open_window(800, 500);
+ if ($use_date_picker)
+ $js .= get_js_date_picker();
+ page(_($help_context = "Inventory Item Movement"), @$_GET['popup'], false, "", $js);
+}